Change the size of Navigationview icons

Asked

Viewed 474 times

1

Tamanho que eu quero

Tamanho que está

I can not increase the size of these icons... I spent a whole day researching everything on the net... book at home tbem and I would like to know if you have possibility to change the same... if you have someone who can explain to where... If it is through code please explain I’m still new in the subject rsrs The image "Church Jacarepagua" has the size of the icons that I would like to see below is the image of my development... Note: I created that Navigation Drawer Activity

activity_main.xml >>>

<?xml version="1.0" encoding="utf-8"?>

<include
    layout="@layout/app_bar_main2"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<android.support.design.widget.NavigationView
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    app:headerLayout="@layout/nav_header_main2"
    app:menu="@menu/activity_main2_drawer" />

activity_main2_drawer.xml >>>>>

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:showIn="navigation_view">


<group android:checkableBehavior="single">
    <item
        android:id="@+id/nav_camera"
        android:orderInCategory="100"
        android:icon="@mipmap/ic_launcher_test"
        android:title="Import" />
    <item
        android:id="@+id/nav_gallery"
        android:icon="@drawable/tod"
        android:title="Gallery" />
    <item
        android:id="@+id/nav_slideshow"
        android:icon="@drawable/teste"
        android:title="Slideshow" />
    <item
        android:id="@+id/outro"
        android:icon="@drawable/layout_butao"
        android:title="Slideshow" />
    <item
        android:id="@+id/nav_manage"
        android:icon="@drawable/ic_menu_manage"
        android:title="Tools"
        />

    <item
        android:id="@+id/nav_share"
        android:icon="@drawable/ic_assignment_returned_black_24dp"
        android:title="Share"

        />
    <item
        android:id="@+id/nav_send"
        android:icon="@drawable/camada"
        android:title="Send" />


</group>

app_bar_main2.xml>>>>

<?xml version="1.0" encoding="utf-8"?>

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main2" />

<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_margin="@dimen/fab_margin"
    />

  • Read this: https://pt.meta.stackoverflow.com/a/5484/132 - Without at least part of its code, it is difficult to help.

  • Problem is simple in the image below the icon is smaller q the image above... I want to increase the icone of Navigationview...

  • Place a larger image size

  • 1

    @Paiva I already tested this of course but thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.