2

Analyze advanced XML in Android

 2 years ago
source link: https://www.codesd.com/item/analyze-advanced-xml-in-android.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Analyze advanced XML in Android

advertisements

Hey guys i am new to android development, I am developing a project which uses XML file from web to list data.But as i said its advance, i am displaying a list of item from index.XML(this file have index of topics) which is displayed on app. i am able to display the data from index.xml.

now i want that when someone click on the item it downloads another XML and shows it. I am not able to make these index data clickable nor i am getting any idea how to display the data from other (you can call sub xml file) XMl files.

help me please

INDEX XML(don't go with name) http://aakashqq.x10.mx/temp.xml

Sub XML files: InspireProgress.com/cricket.xml InspireProgress.com/hockey.xml InspireProgress.com/lacrosse.xml

AIM:in short i want app to display index from main XML file, when user clicks on any item it open up's a new sub XML and display Prob: how do i get items click-able and how do i show a new sub XML accordingly


Presumably you are dumping this XML to some kind of text file where you should initialise proper GUI controls from the XML.

Simply design an interface which will meet your requirements, then work on code to populate the interface with necessary controls by feeding it events from the XML (SAX is an excellent choice here).


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK