Friday, 5 June 2015

Is possible to increase the size of ActionBarDrawerToggle (Drawer menu)?

When you construct a new ActionBarDrawerToggle one of the parameters is the drawerImageRes.

 If you want this resource to be larger, try editing this resource (usually R.drawable.ic_drawer) and increasing its size.

I found the answer, I need research about Action Bar first.
Add this :
<style name="Theme.white_style" parent="@android:style/Theme.Holo.Light.DarkActionBar">
        <item name="android:actionBarSize">64dp</item>
        <item name="actionBarSize">64dp</item>
</style> 
It worked!
p/s : According to Iconography, define height matched the specification for the action bar icons, which is 32 x 32 dp.
mdpi - 32 dp = 32 px
hdpi - 32 dp * 1.5 = 48 px
xxhdpi - 32 dp * 2 = 64 px

No comments:

Post a Comment