Monday, January 9, 2012

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

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 Linear Layout.
But I have to use GridLayout as per my requirements.

There is no layout_weight in GridLayout.

Please help me to get the solution for API level 14.

Thanks and Regards,
Shruthi.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate