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
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.
2 matches
Mail list logo