Reputation: 5162
How do you fix(prevent them from moving) the size of cells in a tablelayout in android?
I have a tablelayout with image buttons inside each cell, the problem is, when I change (or remove) the image, the size of the button changes. How do I prevent this?
Upvotes: 0
Views: 2910
Reputation: 304
Set each View’s layout_width equal to 0. Add in each View layout_weight, according to your needs
Reference : http://pournaras.zilsen.com/2010/11/01/fixed-column-width-in-tablelayout/
Upvotes: 1