Will it work if I setListViewAdapter dynamically?

by olko » Wed, 04 Mar 2009 16:40:08 GMT


Sponsored Links
 I am trying to change ListView adapter on the  fly like this (the
AdapterMain* extends BaseAdapter):

                                if(main_view) {
                                        setListAdapter(new 
AdapterMain(app_context));
                                }
                                else {
                                        setListAdapter(new 
AdapterMainDetails(app_context));
                                }

Should I do other things or this would be enough?
--~--~---------~--~----~------------~-------~--~----~



Will it work if I setListViewAdapter dynamically?

by olko » Sat, 07 Mar 2009 03:49:50 GMT


 > It will work :)

yes, it does :)






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. is there a way to get the "carrier"

tia.
--~--~---------~--~----~------------~-------~--~----~

2. Tripit Oauth

Hey,

I am working on a new project with TripIt integration. Tripit has an
api and has Oauth authentication.
I have tested much with oauth-signpost but I am not able to receive an
access token.

Does someone has a good example for oauth (signpost) that works good
with Android?

Thank you,

Wouter
--~--~---------~--~----~------------~-------~--~----~

3. Android SDK loads every time i open Eclipse

4. Null pointer exception Calling getContentResolver().query for video file URI

5. Problem with Wi-Fi connectivity with Android 1.6

6. First QVGA Android Phone 聴 HT C Tattoo聶 聴 on sale October 2009. Is your applic ation r eady?

7. Test RIL on service layer