1

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.

Alessandro Roaro
  • 4,390
  • 6
  • 27
  • 47
  • 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 Answers1

1

If you won't use text, you should use ImageButton instead.

Just set setBackgroundDrawable and be happy ^^

Cechinel
  • 657
  • 1
  • 8
  • 26