Is it possible for me to dynamically switch the adapter to the gallery?
In onCreate()my activity, I did this:
myGallery.setAdapter(adapter1);
And then in my code I did
myGallery.setAdapter(anotherAdapter1);
I tried, but in the emulator myGallery never updates when I add "setAdapter" again. How can I make myGallery release all the elements when it used adapter1, and then forces it to refill the elements for anotherAdapter1?
Thanks.
source
share