Android Question ActoolBar Icon padding is not working here?

Marlou Fin

Member
Licensed User
Hi Guys,

Adding this code in the manifest and expecting that the icon in the toolbar will have no spaces in between but this code is not working. Can you site any issue in the manifest?


B4X:
CreateResource(values, dimen.xml,
   <resources>
          <dimen name="action_button_padding">0dp</dimen>
   </resources>
)

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#87CEEB</item>
        <item name="colorPrimaryDark">#007CF5</item>
        <item name="colorAccent">#AAAA00</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:navigationBarColor">#FFFE0000</item>
        <item name="android:textColorPrimary">#FFFF0000</item>
        <item name="android:actionButtonStyle">@style/ActionButton</item>
    </style>
    <style name="ActionButton" parent="@android:style/Widget.ActionButton">
        <item name="android:paddingStart">0dp</item>
        <item name="android:paddingEnd">0dp</item>
        <item name="android:minWidth">0dp</item>
        <item name="android:drawablePadding">@dimen/action_button_padding</item>
    </style>
</resources>
)
 

Attachments

  • actoolbar icons.PNG
    actoolbar icons.PNG
    4.2 KB · Views: 285
Last edited:
Top