I want to remove the font padding from an Android button?
I’ve tried set includeFontPadding to false, but it has no effect.
How can i change the font padding of the button?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to define a seperate drawable resource for the button something like this.
For example this is button_layout.xml
Here you can arrange the padding as you want for the button.
And when you are declaring the button use this as the background.
Something like.