How to change the button fontsize without changing button size (in android) ?

Posted by cibercitizen1 on Stack Overflow See other posts from Stack Overflow or by cibercitizen1
Published on 2010-05-27T16:19:13Z Indexed on 2010/05/27 16:21 UTC
Read the original article Hit count: 569

Filed under:
|
|
|

I need to have a grid (created by program, not by xml) of equally sized buttons. They display text in different sizes. The problem is that when I change the text size to a smaller size, then the button automatically resizes to be smaller than the others.

Thanks,

Note: the grid is created adding *TableRow*s of buttons to a TableLayout. The buttons are created and added to a TableRow

tr.addView(bu, 36, 45);

© Stack Overflow or respective owner

Related posts about android

Related posts about button