I’m trying to set a left icon on a button with:
setCompoundDrawablesWithIntrinsicBounds(R.drawable.foo, 0, 0, 0);
but the icon is placed flush up against the left edge of my button, and the text string. Is there a way to specify some left/right padding on the supplied icon so that it isn’t right up against the edges?
Thanks
I believe what you’re looking for is
android:drawablePaddingHere’s an example of using
drawablePaddingalong withpaddingLeftandpaddingRightto position an image in a button