Android Question Button vertical alignment

RB Smissaert

Well-Known Member
Licensed 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
 

LucaMs

Expert
Licensed User
Have you tried to change the text (maybe there is a character not visible at the beginning; just an idea)?

Can you attach the layout (even partial, the part in question)?
 
Upvote 0

klaus

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

1589614909402.png


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