On Thu, Jan 26, 2012 at 11:37 PM, TreKing <treking...@gmail.com> wrote:
> If I manually add instances of the layout (the one I'm inflating) to the
> linear layout via the designer, they show up.
> If I dynamically add instances of different layouts to the LinearLayout one
> after the other, they show up.
> If I dynamically add instances of the same layout to the LinearLayout, then
> only the first shows up.
>
> So apparently I can only add one instance of a given layout to a
> LinearLayout for a widget? That does not seem right at all ...

Try calling setId() on LinearLayout before passing it to addView(),
giving it a unique ID value, and see if that helps.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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