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

Chris Maverick

I have the following menu item:

<item
   android:id="@+id/lock"
   android:checkable="true"
   android:title="@string/lock" >
   <menu>
       <item
          android:id="@+id/block_mess"
          android:checked="true"
          android:icon="@drawable/chantinnhan"
          android:title="@string/block_mess_string" />
        <item
            android:id="@+id/block_call"
            android:checked="false"
            android:icon="@drawable/chancuocgoi"
            android:title="@string/block_call_string" />
        <item
            android:id="@+id/lock_app"
            android:checked="false"
            android:icon="@drawable/khoaungdung"
            android:title="@string/lock_app_string" />
   </menu>
</item>

...there's still more but it's really long

but the icon is really small (even it has res 256x256). I'd like to make it bigger! Is this 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?

Amad Yus

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>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to change Menu Item icon from fragment?

From Dev

How can I change the NavigationView's item text size?

From Dev

How to change a single menu item text size

From Dev

Windows 7: How to change context menu item icon?

From Dev

How to add an item to a menu group in NavigationView

From Dev

How can I get menu item in NavigationView?

From Dev

How to set ellipsize in menu item of NavigationView?

From Dev

How to change title color of menu's enclosing item in NavigationView's xml files

From Dev

How to change the icon of a listview item

From Dev

How to change the icon of a listview item

From Dev

How to change desktop icon size?

From Dev

How to give custom text colour for a single menu item in a NavigationView?

From Dev

How can I add a custom item to a NavigationView with a menu layout?

From Dev

How to test if a NavigationView menu item is disabled or enabled with Espresso?

From Dev

How to display menu item with icon and text in AppCompatActivity

From Dev

How to show drawing brush as a Menu item Icon

From Dev

Xamarin NavigationView menu item customization

From Dev

change color of only ONE menu item icon in android

From Dev

polymer paper-menu-button change the default size of icon

From Dev

Android menu item with icon

From Dev

How to change option menu icon in the action bar?

From Dev

How to change the menu icon of a Toolbar in AppCompat

From Dev

How to change Ubuntu Mate applications menu icon

From Dev

How to (easily) change Lubuntu applications menu icon

From Dev

change Item text color of NavigationView

From Dev

NavigationView(Change Color of Selected Item)

From Dev

change Item text color of NavigationView

From Java

how to change a drawableLeft icon size on a button?

From Dev

Change the color of menu icon

Related Related

  1. 1

    How to change Menu Item icon from fragment?

  2. 2

    How can I change the NavigationView's item text size?

  3. 3

    How to change a single menu item text size

  4. 4

    Windows 7: How to change context menu item icon?

  5. 5

    How to add an item to a menu group in NavigationView

  6. 6

    How can I get menu item in NavigationView?

  7. 7

    How to set ellipsize in menu item of NavigationView?

  8. 8

    How to change title color of menu's enclosing item in NavigationView's xml files

  9. 9

    How to change the icon of a listview item

  10. 10

    How to change the icon of a listview item

  11. 11

    How to change desktop icon size?

  12. 12

    How to give custom text colour for a single menu item in a NavigationView?

  13. 13

    How can I add a custom item to a NavigationView with a menu layout?

  14. 14

    How to test if a NavigationView menu item is disabled or enabled with Espresso?

  15. 15

    How to display menu item with icon and text in AppCompatActivity

  16. 16

    How to show drawing brush as a Menu item Icon

  17. 17

    Xamarin NavigationView menu item customization

  18. 18

    change color of only ONE menu item icon in android

  19. 19

    polymer paper-menu-button change the default size of icon

  20. 20

    Android menu item with icon

  21. 21

    How to change option menu icon in the action bar?

  22. 22

    How to change the menu icon of a Toolbar in AppCompat

  23. 23

    How to change Ubuntu Mate applications menu icon

  24. 24

    How to (easily) change Lubuntu applications menu icon

  25. 25

    change Item text color of NavigationView

  26. 26

    NavigationView(Change Color of Selected Item)

  27. 27

    change Item text color of NavigationView

  28. 28

    how to change a drawableLeft icon size on a button?

  29. 29

    Change the color of menu icon

HotTag

Archive