[android-developers] Adding multiple child views

2011-02-08 Thread alan
I have developed a layout to which i want to add multiple copies of the same child view. the child view is defined in a xml file. To add each child to its parent i am calling: ChildView childView = new ChildView (context); linearLayout.addView(childView ,new

Re: [android-developers] Adding multiple child views

2011-02-08 Thread TreKing
On Tue, Feb 8, 2011 at 4:24 AM, alan a...@birtles.org.uk wrote: do I have to handle save and restore of state in ChildView? Yes. http://developer.android.com/reference/android/view/View.html#onSaveInstanceState()