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. "match_parent" for a Button could result in a full- screen button! You can also affect the visible size of widgets by adjusting their padding.
On Dec 2, 2:34 am, Abhishek Kumar Gupta <[email protected]> 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_content"? Please help me. > If the question is below standard then sorry for that. -- 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

