diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-28 18:42:15 +0200 |
---|---|---|
committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-28 18:42:15 +0200 |
commit | 34914e01dd3a6cca867ed27ddeaa067772834707 (patch) | |
tree | 66fd1e2217d768ccc88e62d175bdd5389b881333 /app/src/main/res/layout/nav_header_main.xml | |
parent | 6838e72ab0710a831e2b49b4cc173dbe34abfe28 (diff) |
Added navigation drawer
Diffstat (limited to 'app/src/main/res/layout/nav_header_main.xml')
-rw-r--r-- | app/src/main/res/layout/nav_header_main.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml new file mode 100644 index 0000000..67e02bd --- /dev/null +++ b/app/src/main/res/layout/nav_header_main.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns: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"> + + <ImageView + android:id="@+id/imageView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/nav_header_vertical_spacing" + app:srcCompat="@mipmap/ic_launcher_round" + android:contentDescription="@string/about" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/nav_header_vertical_spacing" + android:text="@string/about" + android:textAppearance="@style/TextAppearance.AppCompat.Body1" /> + + <TextView + android:id="@+id/textView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/about" /> + +</LinearLayout> |