Thanks for answer. You was right, that, LinearLayout need to add together with LayoutParams. Either to LinearLayout must be added other items.
On Oct 3, 7:16 pm, hackbod <[EMAIL PROTECTED]> wrote: > You need to add it with a LinearLayout.LayoutParams as the second > argument. > > On Oct 3, 8:38 am, Ramunas <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I have a class: => class ListAdapterView extends LinearLayout > > In this class need to add new LinearLayout. When I use this belove > > code my application crash. > > LinearLayout ll=new LinearLayout(context); > > this.addView(ll); > > > How I can add LinearLayout to LinearLayout programicly? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

