You can use the FrameLayout to pair a button with an ImageView, setting the button background to be transparent. This gives you more control over the padding and scaling of button images than just setting a background does.
You can use the FrameLayout to pair a button with an ImageView, setting the button background to be transparent. This gives you more control over the padding and scaling of button images than just setting a background does.