How to change the size of menu item icon in NavigationView?

I have the following menu item:

        android:title="@string/lock" >
    <menu >

            android:title="@string/block_mess_string" />

            android:title="@string/block_call_string" />

            android:title="@string/lock_app_string" />


…there’s still more but it’s really long

  • State list drawable and disabled state
  • Handling large Bitmaps
  • How to include *.so library in Android Studio?
  • Android SQLite issue - table … has no column named
  • android get thumbnail of image stored on sdcard whose path is known
  • Android : Change entire app layout directions programmatically
  • but the icon is really small (even it has res 256×256). I’d like to make it bigger! Is that possible?
    Here’s the screenshot:

    enter image description here

    EDIT: OK, we both know that Google “lock” the icon size. But I want to know that can I “bypass” that lock and make something… customizable ?

    Related posts:

    Finish an activity from another activity
    Should I comment my log calls when creating my final package?
    WebRTC on Android
    Android: Under what circumstances would a Dialog appearing cause onPause() to be called?
    Status Bar Color not showing - 5.0 Lollipop Android Studio: (AppCompat-v7:r21)
    Show selection from suggestion list in Android searchview
  • Android - how to find multiple views with common attribute
  • Optimization of AndEngine game
  • How to close the status bar/notification panel after notification button click
  • Knowing when Firebase has completed API call?
  • How to get all cookies from CookieManager android ?
  • Expand all children in expandable list view
  • 4 Solutions collect form web for “How to change the size of menu item icon in NavigationView?”

    You can change the size of navigationView icon by overriding design_navigation_icon_size attribute. You can put it in dimens and because you’re overriding a private attribute, you need to include tools:override="true"

    <dimen name="design_navigation_icon_size" tools:override="true">40dp</dimen>

    Got Solution

    Make Below entry in dimens.

    <dimen name="design_navigation_icon_size">48dp</dimen>

    The main thing that decide the icon’s size is the dimension:navigation_icon_size, have a look at the NavigationMenuItemView class:

     public NavigationMenuItemView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.mIconSize = context.getResources().getDimensionPixelSize(dimen.navigation_icon_size);

    so, we can just overide the property in our dimens file.

    For example:

    <dimen name="navigation_icon_size">48dp</dimen>

    add that code in the dimens file, and you can find it’s size changed.


    enter image description here


    enter image description here

    According to the the design document set by Google itself, icons should be set to 14sp. I suggest you abide by this recommendation, since this is a standard used throughout all apps. As you said, there are no apps which have large icons in the navigation drawer, as this is not the norm when developing a navigation drawer icon.

    enter image description here

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.