[android-developers] Re: What are ideal parameters for the width & height of the layout of widget?

2011-12-03 Thread Zsolt Vasvari
This is documented clearly in the official SDK docs. On Dec 1, 11:34 pm, Abhishek Kumar Gupta wrote: > In the case of Widget, if I use RelativeLayout as the main layout, then > what will be the best parameters for layout_width & layout_height i.e. > whether I have to use "match_parent" or "wrap_c

[android-developers] Re: What are ideal parameters for the width & height of the layout of widget?

2011-12-03 Thread Doug Gordon
You are not very specific about what you are doing, but in general the "container" section of your layout -- the RelativeLayout part -- would be set to "match_parent", but a typical widget such as a Button would be set to "wrap_content" because you don't want it to be any larger than it has to be.