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. How to notify ListAdapter

Hi,


I'm crating tab view using this tutorial
:Link<http://developer.android.com/resources/tutorials/views/hello-tabwidget.html>.
Now I need to reload tab content data when user view that tab. is there any
way to notify ListAdapter ?



Thanks,
Chandana

-- 

2. How change android Home default application (launcher.apk)

Could you please hint exact location. like how can i launch my customised
home application


On Fri, Jul 2, 2010 at 5:12 PM, Fred Grott(Android Expert,





> 

3. SQLiteOpenHelper.getWritableDatabase ambiguous documentation

4. Memory mangement - GC infinite loop

5. Emulator keeps slowing down after a couple of deployments/Run as Android Application in Eclipse

6. ASK: HTC Hero official Android 2.1 OTA update notification

7. TCP IP connection via Mobile Network