Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Adding padding to Hamburger Menu Icon

$
0
0

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 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>