Quantcast
Viewing all articles
Browse latest Browse all 77050

Adding padding to Hamburger Menu Icon

We are using the master detail page to implement navigation drawer hamburger menu.Now we are styling the action bar in a native way using a theme.

<style name="CustomActionBarTheme"
           parent="@android:style/Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
          <item name="android:homeAsUpIndicator">@drawable/back</item>
    </style>'
   '<style name="MyActionBar"
           parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">#06336E</item>
    </style>

However on using this the hamburger menu icon gets completely left aligned with absolutely no padding.I am unable to set a padding to it.
We are using the Icon property of the menu page to set the hamburger icon image.


Viewing all articles
Browse latest Browse all 77050

Trending Articles