I have a Button
with no text and with a drawable on the right of it added through setCompoundDrawablesWithIntrinsicBounds
. On the left, though, there is some unused space which I would like to remove. Is there a way to do that? The only way I have found to fix this in some way is setting the padding of the button in order to center the drawable.
Asked
Active
Viewed 477 times
1

Alessandro Roaro
- 4,665
- 6
- 29
- 48
-
I think Ahmad's answer can help you http://stackoverflow.com/questions/14105631/removing-image-button-padding-android – Emmanuel Nov 22 '13 at 18:11
1 Answers
1
If you won't use text, you should use ImageButton instead.
Just set setBackgroundDrawable and be happy ^^

Cechinel
- 677
- 2
- 8
- 26