csyperski wrote: > I am trying to add a LinearLayout using only code to a Activity and I > keep getting as error.
> LinearLayout llVert = new LinearLayout(this); > llVert.setOrientation(LinearLayout.VERTICAL); > llVert.setLayoutParams(new > LayoutParams(LayoutParams.WRAP_CONTENT, > LayoutParams.WRAP_CONTENT)); > > llDetails.addView(imEdit); > llDetails.addView(llVert); > > > llRoot.addView(llDetails); Note that you do not have any LinearLayout.Params for this addView() call. > Here is the stack: That is not a complete stack trace. That is Eclipse telling you it has suspended execution of your program. In particular, you have lost the information about that RuntimeException, which would be really useful for you to figure out what your problem is. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---