Note that there are some explanatory texts on larger screens.

plurals
  1. POParsing and creating a Infinite/indefinite level of List/sublist from a XML in Android
    primarykey
    data
    text
    <p>In my <code>Android Application</code> whose server side App is also getting developed by me. In this app android app request some <code>XML</code> from server and parse it. The <code>XML</code> contains the information that describes how much tab should be in the app and each tab have a <code>ListView</code> while each list item can navigate to another <code>Activity</code> which may also result in another sub <code>ListView</code> this level is infinite. <code>XML</code> that I am generating from server is of this type.</p> <pre><code>&lt;Application&gt; &lt;Tabs&gt; &lt;Tab id="1" tabtitle="Info"&gt; &lt;ListItems&gt; &lt;ListItem id="1" itemtype="list" itemtitle="1.1" itemdata="Issue1,Issue2,Issue3,Issue4,Issue 5"&gt; &lt;/ListItem&gt; &lt;ListItem id="3" itemtype="list" itemtitle="1.2" itemdata="News Links"&gt; &lt;/ListItem&gt; &lt;ListItem id="5" itemtype="list" itemtitle="1.3" itemdata="sampleDataURL type"&gt; &lt;ListItems&gt; &lt;ListItem id="1" itemtype="list" itemtitle="1.3.1" itemdata="some data"&gt; &lt;/ListItem&gt; &lt;ListItem id="3" itemtype="list" itemtitle="1.3.2" itemdata="some data"&gt; &lt;ListItems&gt; &lt;ListItem id="1" itemtype="list" itemtitle="1.3.2.1" itemdata="Issue1,Issue2,Issue3,Issue4,Issue 5"&gt; &lt;/ListItem&gt; &lt;ListItem id="3" itemtype="list" itemtitle="1.3.2.2" itemdata="News Links"&gt; &lt;/ListItem&gt; &lt;/ListItems&gt; &lt;/ListItem&gt; &lt;/ListItems&gt; &lt;/ListItem&gt; &lt;/ListItems&gt; &lt;/Tab&gt; &lt;Tab id="2" tabtitle="More"&gt; &lt;ListItems&gt; &lt;/ListItems&gt; &lt;/Tab&gt; &lt;Tab id="3" tabtitle="Share"&gt; &lt;ListItems&gt; &lt;/ListItems&gt; &lt;/Tab&gt; &lt;/Tabs&gt; &lt;/Application&gt; </code></pre> <p>As a result my my android can generate 3 tabs at runtime but please guide what type of code/logic should I compose to write it's <code>SAXParser</code> and what type of Model data should i populate in android App through parser.Should i go for <code>HashMap</code> rather than <code>ArrayList&lt;CustomClass&gt;</code>. </p> <p>This is challenging for me to implement it efficiently and robustly.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload