[android-developers] Re: Equally spaced TableLayout grid

2010-02-03 Thread ClarkBattle
I think you just have to use GridView

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Equally spaced TableLayout grid

2010-02-01 Thread Ivan
I have exactly the same requirement. I need to create a 2x2 layout of
4 buttons where each button must be the same size. I tried TableLayout
and LinearLayout combos without any luck so far.

On Jan 29, 11:42 am, ClarkBattle clarkbat...@gmail.com wrote:
 I have a TableLayout where each cell of the table contains a single
 button or textView.  I want to make sure that every cell has the same
 height and the same width.  In other words all column widths are the
 same and all row heights are the same.  Of course, it has to do this
 while resizing the TableLayout to its given layout_width and
 layout_height.  Do I have to do the math myself and set each cell
 manually or is there an automatic way to do it?

 Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Equally spaced TableLayout grid

2010-02-01 Thread Ivan
could it be solved here? 
http://andmobidev.blogspot.com/2010/01/setting-width-of-view-using-percentage.html

On Jan 30, 12:08 pm, Ivan iwan.mem...@gmail.com wrote:
 I have exactly the same requirement. I need to create a 2x2 layout of
 4 buttons where each button must be the same size. I tried TableLayout
 and LinearLayout combos without any luck so far.

 On Jan 29, 11:42 am, ClarkBattle clarkbat...@gmail.com wrote:

  I have a TableLayout where each cell of the table contains a single
  button or textView.  I want to make sure that every cell has the same
  height and the same width.  In other words all column widths are the
  same and all row heights are the same.  Of course, it has to do this
  while resizing the TableLayout to its given layout_width and
  layout_height.  Do I have to do the math myself and set each cell
  manually or is there an automatic way to do it?

  Thanks.



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en