If you're using a vector drawable for the icon, you can change the width of the icon. With the following standard 24dp icon from the Material icons set, increase android:viewportWidth
and android:width
. They need to be equal, otherwise the image is stretched/compressed. Since the vector is drawn from the top left of its bounds, increasing the width adds space to the right of the vector path.
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24.0"
android:viewportWidth="24.0"
android:width="24dp">
<path android:fillColor="#FF000000" android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z"/>
</vector>
Alternatively, assuming the following is in your app's theme:
<item name="actionOverflowButtonStyle">@style/OverflowButton</item>
You can actually apply padding or margin in the OverflowButton
style. The following is what I'm using:
<style name="OverflowButton">
<item name="srcCompat">@drawable/ic_more_vert_white_24dp</item>
<item name="android:tintMode">src_in</item>
<item name="android:tint">?textColorOnPrimary</item>
<item name="android:paddingRight">8dp</item>
</style>
I prefer to use padding since the padding will be included in the touchable area