See LayoutInflater @ 
http://developer.android.com/intl/de/reference/android/view/LayoutInflater.html
And there is a getLayoutInflater() in Activity class. (http://
developer.android.com/intl/de/reference/android/app/
Activity.html#getLayoutInflater%28%29)


There is also an example:
http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html

On 8 июн, 03:36, krishna <krishna.k.0...@gmail.com> wrote:
> I have a relative layout (let's say innerRL place in layout
> inner_view.xml) which I wanna add to another layout (main_layout), I
> wanna dynamically add multiple instances of innerRL. Specifying
> innerRL in xml gives me ease of maintenance (as against doing totally
> in the code), however I want to be able to add several instances
> dynamically. Using findViewById(resource_id) gives me that particular
> instance, should I have to use clone()?
>
> One other approach I see is ArrayAdapter, but it seems overkill.
>
> -Krishna

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to