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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

