| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<LinearLayout |
| 3 |
xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 |
<#if appCompat> |
| 5 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
| 6 |
</#if> |
| 7 |
android:layout_width="match_parent" |
| 8 |
android:layout_height="@dimen/nav_header_height" |
| 9 |
android:background="@drawable/side_nav_bar" |
| 10 |
android:paddingBottom="@dimen/activity_vertical_margin" |
| 11 |
android:paddingLeft="@dimen/activity_horizontal_margin" |
| 12 |
android:paddingRight="@dimen/activity_horizontal_margin" |
| 13 |
android:paddingTop="@dimen/activity_vertical_margin" |
| 14 |
android:theme="@style/ThemeOverlay.AppCompat.Dark" |
| 15 |
android:orientation="vertical" |
| 16 |
android:gravity="bottom"> |
| 17 |
|
| 18 |
<ImageView |
| 19 |
android:layout_width="wrap_content" |
| 20 |
android:layout_height="wrap_content" |
| 21 |
android:paddingTop="@dimen/nav_header_vertical_spacing" |
| 22 |
<#if appCompat> |
| 23 |
app:srcCompat="@android:drawable/sym_def_app_icon" |
| 24 |
<#else> |
| 25 |
android:src="@android:drawable/sym_def_app_icon" |
| 26 |
</#if> |
| 27 |
android:id="@+id/imageView" /> |
| 28 |
|
| 29 |
<TextView |
| 30 |
android:layout_width="match_parent" |
| 31 |
android:layout_height="wrap_content" |
| 32 |
android:paddingTop="@dimen/nav_header_vertical_spacing" |
| 33 |
android:text="Android Studio" |
| 34 |
android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> |
| 35 |
|
| 36 |
<TextView |
| 37 |
android:layout_width="wrap_content" |
| 38 |
android:layout_height="wrap_content" |
| 39 |
android:text="[email protected]" |
| 40 |
android:id="@+id/textView" /> |
| 41 |
|
| 42 |
</LinearLayout> |