You can have a distribution like this: RelativeLayout ----> GridLayout ----> LinearLayout
where GridLayout and LinearLayout fill all their parent (The relativelayout). That's a way to achieve what you want ;) On Jan 11, 5:30 am, TreKing <[email protected]> wrote: > On Tue, Jan 10, 2012 at 10:22 PM, Shruthi Varma > <[email protected]>wrote: > > > To use layout_weight, I need LinearLayout. > > Correct. > > > I have so many other items placed in random order inside GridLayout. > > OK. > > > So, I am not able to use LinearLayout. > > What's stopping you from adding more? > > > But my actual problem is GridLayout is not filling the screen width. > > Even if I give, layout_width as fill_parent for GridLayout... It only > > covers half of the screen as it has just 4 columns. > > > How to make it cover the whole screen width?? Please help/ > > I don't know - I haven't used it myself. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

