Change image of Navigation Drawer Activity

0

I'm creating an app through Android Studio and chose Navigation Drawer Activity as the system screen.

ButIwouldliketoknowhowtochangethegreenbackgroundandputanimage.

Ithinkit'sintheblockbelow:

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="@dimen/nav_header_height"
    android:background="@drawable/side_nav_bar"
    android:gravity="bottom"
    android:orientation="vertical"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:theme="@style/ThemeOverlay.AppCompat.Dark">

On this line:

android:background="@drawable/side_nav_bar"

I'm not sure, but if so, how do I change?

    
asked by anonymous 23.01.2018 / 22:31

1 answer

0

I was able to change. To do this, I copied the image I wanted to put and pasted it into the drawable folder of Android Studio, then changed the line:

android:background="@drawable/bg16"

And it worked!

    
23.01.2018 / 22:39