Solution 1 :
In the NavigationView
you can use the itemIconSize
attribute. The default value is 24dp
.
Something like:
<com.google.android.material.navigation.NavigationView
app_itemIconSize="32dp"
..>
You can also use a custom style:
<style name="MyNavigationView" parent="Widget.MaterialComponents.NavigationView">
<item name="itemIconSize">...</item>
</style>
and then:
<com.google.android.material.navigation.NavigationView
style="@style/MyNavigationView"
..>
Standard:
After:
Problem :
I want to change the size of the icons but i dont know how. I have seen posts where people fix that but i dont understand them. Can you help me with my code?
<?xml version="1.0" encoding="utf-8"?>
<item
android_id="@+id/page_1"
android_enabled="true"
android_icon="@drawable/casa"
android_title="skere"/>
<item
android_id="@+id/page_2"
android_enabled="true"
android_icon="@drawable/map10"
android_title="skere2"/>
<item
android_id="@+id/page_3"
android_enabled="true"
android_icon="@drawable/oferta_ic"
android_title="skere3"/>
<item
android_id="@+id/page_4"
android_enabled="true"
android_icon="@drawable/calendario"
android_title="skere4"/>
I want this icons to be bigger
Comments
Comment posted by ChristianoBolla
You could try to add extra whitespace (padding) to the images themselves
Comment posted by Gabriele Mariotti
Are you using a NavigationView?
Comment posted by Jorge
yes, im using a NavigationView