On Thu, Sep 9, 2010 at 3:43 PM, Bret Foreman <[email protected]> wrote: > I changed it to do as you suggest: > > LinearLayout layout = new LinearLayout(this); > layout.setOrientation(LinearLayout.VERTICAL); > setContentView(layout); > > but what should be the LayoutParms for the added widgets in order to > get the desired effect?
I have no idea. It's your app. Odds are, it's: new LinearLayout.LayoutParams(LinearLayout.FILL_PARENT, LinearLayout.WRAP_CONTENT) but, again, it's your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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

