0
Hello, I recently started programming for Android Native and I’m having difficulty changing the padding menu item 3 points. I would like to know if it is possible and how to decrease the padding of the item in question.
I tried to change his minWidth in style.xml but was not successful.
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimaryLight</item>
<item name="android:actionOverflowButtonStyle">@style/DotsTheme</item>
<item name="android:actionButtonStyle">@style/ActionButtonTheme</item>
</style>
<style name="DotsTheme" parent="android:style/Widget.Holo.ActionButton.Overflow">
<item name="android:src">@drawable/ic_baseline_more_vert_24</item>
<item name="android:minWidth">0dp</item>
</style>
<style name="ActionButtonTheme" parent="@android:style/Widget.ActionButton">
<item name="android:minWidth">0dp</item>
</style>
Below is the code of the menu_chat.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_video_call"
android:icon="@drawable/ic_baseline_videocam_24"
android:title="@string/menu_video_call"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/menu_voice_call"
android:icon="@drawable/ic_baseline_call_24"
android:title="@string/menu_voice_call"
app:showAsAction="ifRoom"/>
<group
android:id="@+id/menu_more">
<item
android:id="@+id/action_view_contact"
android:title="@string/menu_moreViewContact"/>
<item
android:id="@+id/action_view_all_media"
android:title="@string/menu_moreViewAllMedia"/>
<item
android:id="@+id/action_search"
android:title="@string/menu_more_search"/>
<item
android:id="@+id/action_silence_notify"
android:title="@string/userProfile_silence_notify"/>
<item
android:id="@+id/action_change_wallpaper"
android:title="@string/menu_moreChangeWallpaper"/>
<item
android:id="@+id/sub_menu_more"
android:title="@string/more">
<menu>
<item
android:id="@+id/action_report"
android:title="@string/report"/>
<item
android:id="@+id/action_block"
android:title="@string/block"/>
<item
android:id="@+id/action_clear_chat"
android:title="@string/clearChat"/>
<item
android:id="@+id/action_export_chat"
android:title="@string/exportChat"/>
<item
android:id="@+id/action_add_shortcut"
android:title="@string/add_shortcut"/>
</menu>
</item>
</group>
</menu>