Changeset View
Changeset View
Standalone View
Standalone View
app/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:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:background="@color/teal_300" | android:background="?attr/colorPrimary" | ||||
android:gravity="bottom" | android:gravity="bottom" | ||||
android:minHeight="120dp" | android:minHeight="120dp" | ||||
android:orientation="vertical" | android:orientation="vertical" | ||||
android:padding="16dp" | android:padding="16dp" | ||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"> | android:theme="@style/ThemeOverlay.AppCompat.Dark"> | ||||
<!-- | <!-- | ||||
<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_full" | android:text="@string/app_name_full" | ||||
android:textAppearance="@style/ThemeOverlay.AppCompat.Light" | android:textAppearance="@style/TextAppearance.AppCompat.Title" | ||||
android:textColor="#FFFFFF" | android:textColor="@color/white" | ||||
android:textSize="20sp" /> | android:textSize="20sp" /> | ||||
<!--<TextView | <!--<TextView | ||||
android:text="@string/app_version" | android:text="@string/app_version" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" android:id="@+id/versionTextView" | android:layout_height="wrap_content" android:id="@+id/versionTextView" | ||||
android:textAppearance="@style/TextAppearance.AppCompat.Small" | android:textAppearance="@style/TextAppearance.AppCompat.Small" | ||||
android:gravity="center_vertical" android:layout_margin="10dp"/>--> | android:gravity="center_vertical" android:layout_margin="10dp"/>--> | ||||
</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