Changeset View
Changeset View
Standalone View
Standalone View
res/layout/nav_header.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
xmlns:app="http://schemas.android.com/apk/res-auto" | xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
android:orientation="vertical" android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:background="@color/grey_100" | android:background="@color/teal_300" | ||||
android:gravity="bottom" | |||||
android:minHeight="120dp" | |||||
android:orientation="vertical" | |||||
android:padding="16dp" | android:padding="16dp" | ||||
android:theme="@style/ThemeOverlay.AppCompat.Dark" | android:theme="@style/ThemeOverlay.AppCompat.Dark"> | ||||
android:gravity="bottom"> | <!-- | ||||
<ImageView | <ImageView | ||||
android:id="@+id/nav_img" | android:id="@+id/nav_img" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="100dp" | android:layout_height="100dp" | ||||
android:minHeight="40dp" | android:minHeight="40dp" | ||||
app:srcCompat="@drawable/ic_mars2020" /> | app:srcCompat="@drawable/ic_mars2020" /> | ||||
--> | |||||
<TextView | <TextView | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:text="@string/app_name" | android:text="@string/app_name_full" | ||||
android:textAppearance="@style/ThemeOverlay.AppCompat.Light" | android:textAppearance="@style/ThemeOverlay.AppCompat.Light" | ||||
android:textSize="20sp" | android:textColor="#FFFFFF" | ||||
/> | android:textSize="20sp" /> | ||||
</LinearLayout> | </LinearLayout> | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register