Android : Architecture design for multi-hierarchial, dynamic page creation from xml in android

on Thursday, August 21, 2014



I am designing a system where in I retrieve a multi layered xml and dynamically design a hierarchial application using the data. The XML looks like

<XML>
<G ID>
<G Desc>
<I Id>
<I Desc>
<J ID>
<J Desc>
<J ID>
<J Desc>
<I Id>
<I Desc>
<J ID>
<J Desc>
<J ID>
<J Desc>
<G ID>
<G Desc>
<I Id>
<I Desc>
<J ID>
<J Desc>
<J ID>
<J Desc>
<I Id>
<I Desc>
<J ID>
<J Desc>
<J ID>
<J Desc>


and so on..


There will be undefined number of G Id and I Id, j ID depending on runtime. The user clicks the list view of G ID specific item to get I id list for that item. However the I id and J id list depends on what G Id was clicked.


The approach that I am thinking is to create 3 activities and pass data between them, change the list view on each activity dynamically on click. The parsing happens initially and data is percolated between activities.


Any pointers appreciated.


0 comments:

Post a Comment