Saturday, August 18, 2012

[android-developers] Re: List of views to change in layout

You can do like this ,
 
  1. Use the list view instead of FrameLayout 
  2. add one list item as Framelayout.
  3. Change data set and notify the list adapter  


On Friday, 17 August 2012 13:50:28 UTC-7, Budd wrote:
Hi,

I got a question about how to change to view dymaically.

I have a empty FrameLayout in my activity.

I want to do is every 10 seconds
1) Remove all the view in the layout
2) create new videoview or webview (depend on what kind of content in the array)
3) Add it to the layout

Any suggestion how i should do it to avoid memory leak or etc?

Thank you.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate