Currently I'm trying to find an efficient way to handle the following
scenario.  Please comment on my current implementations and all
feedback is greatly appreciated!

I have about 7 adapters with data.  This data comes from database and
some come from xml queries over the internet which are kept static in
memory.  In my current implementation I re-use one ListView constantly
to display this data as requested by the user.

Here are the questions:
1. Is this a proper approach? or should I have a ListView for every
Adapter?

2. Every time I re-use that ListView I just use setAdapter( adapter )
and it replaces any data with the new data.  Is this a proper way to
do it?  What about if one adapter requires a header view and than I
place a new adapter to it?


There are many cases I can mention here but my main concern is if I
need to massage the ListView every time I set a new adapter and if I'm
adding a header view for certain adapters?

Thanks and sorry for the semi explanatory post...
Moto!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to