
Szuflady nawigacyjne
595
jesteś tutaj
¨
Fragmenty i aktywności
¨
Nagłówek
¨
Opcje
¨
Szuflada
Kompletny kod pliku nav_header.xml
Poniżej przedstawiliśmy kompletny kod pliku nav_header.xml;
zaktualizuj plik w swoim projekcie, tak by był identyczny z naszym:
<?xml version=”1.0” encoding=”utf-8”?>
<FrameLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”match_parent”
android:layout_height=”180dp”
android:theme=”@style/ThemeOverlay.AppCompat.Dark” >
<ImageView
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:scaleType=”centerCrop”
android:src=”@drawable/kitten_small” />
<LinearLayout ...