Android Question Button vertical alignment

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Trying to copy the Samsung default keyboard and having difficulty with placing the characters in the buttons.
In the designer I added buttons, Statelist drawable, Height 32, Width 28, Default font, font size 16, vertical alignment: CENTER_VERTICAL
With these values the font is cutoff at the bottom and it is not centered vertically. It looks there is plenty of space in the button to accept
the character. I want to keep this as simple as possible, so not keen to use icons or panels etc. in the buttons.
How should this be done?

RBS
 

klaus

Expert
Licensed User
Longtime User
Set Padding to 0,0,0,0.

1589614909402.png


Without and with Padding 0,0,0,0
1589615061571.png
 
Upvote 0
Top