Re: [android-developers] How to fill the screen in GridLayout using child views?

2012-01-10 Thread TreKing
On Tue, Jan 10, 2012 at 10:22 PM, Shruthi Varma 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 prob

Re: [android-developers] How to fill the screen in GridLayout using child views?

2012-01-10 Thread Shruthi Varma
To use layout_weight, I need LinearLayout. I have so many other items placed in random order inside GridLayout. So, I am not able to use LinearLayout. 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

Re: [android-developers] How to fill the screen in GridLayout using child views?

2012-01-09 Thread TreKing
On Mon, Jan 9, 2012 at 3:36 AM, Shruthi Varma wrote: > I can achieve this by giving layout_weight in Linear Layout. > But I have to use GridLayout as per my requirements. > Use a LinearLayout inside a GridLayout. Or change your requirements. --

[android-developers] How to fill the screen in GridLayout using child views?

2012-01-09 Thread Shruthi Varma
Hi All, I have to place 2 EditText fields horizontally in a row in GridLayout, so that it occupies the whole screen. That means, I want to divide the screen into half and place one EditText in first half and the second EditText in the other half. I can achieve this by giving layout_weight in Line