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. help in android call logs

hi all,
please tell me how can i get call history in android app


-- 
Thanks
Ashutosh Mohle
Software Engineer
CS-KNIT-2010



Praying for the peace and love for all

-- 

2. Is there a WebDav client for Android

Hi,

I would like to use a WebDav client for my Android app. While jakarta
slide is no longer supported, I was trying JackRabbit instead. But
that does not work on Android as it says "Conversion to Dalvik format
failed". I think the problem is with the inclusion of the javax
packages in the jackrabbit-standalone.jar which comes bundled with the
package. Even it that can be worked around, with jarjar options or
building jackrabbit-standalone using maven, and trying to exclude the
packages, the size of the jar itself is around 30 MB. Another open
source, Sardine, can not be used as it internally uses "JAXB" package.
Android has no support for the same and a bug has already been raised
(Issue 314).
Is anybody aware of Android specific open source WebDav client?

Regds.

-- 

3. will the android emulator support opengles 2.0 in the future?

4. 1380 Paid Applications in One Free Torrent then How to SELL it?

5. TextView Html.ImageGetter Widget

6. which jar file can be used to play an audio file in android

7. Odp: DB4O Native query time issue