I am creating an android application and i need to manage how to display data of list view in some fragment .. My list view consists of multiple sections with a header on each section.. The data of these sections are loaded from a web service(web call for each section) and i need to manage which sections to display to the user and also sort the sections by priority so that the important sections are displayed at the top of the view.
My question is how can i make this configurable and loaded once in my application so that when getting the data i can construct the list view properly using an already loaded configuration, i thought of using SharedPreferences or maybe an XML file as a configuration storage.
Again, my interests are to:
- Manage which sections to be viewed in my list view. (for all users and not per user)
- Sort the sections by priorities.
Thanks in advance for the help.
No comments:
Post a Comment