I can not figure out how to make the image fixed 24dp in height and width, so that the button itself was 48dp in height and width. I use SVG as images. android:padding...
on the button does not help.
Button:
<Button android:layout_width="48dp" android:layout_height="48dp" android:background="@drawable/btn_more_vert_black"/>
Background:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/btn_more_vert_black_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/btn_more_vert_black_default" android:state_focused="true" /> <item android:drawable="@drawable/btn_more_vert_black_default" /> </selector>
btn_more_vert_black_default - standard icons from the material design library.