Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@espritm
Created March 27, 2017 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espritm/c9e8290ffdfe2ce8d573ef459810faf6 to your computer and use it in GitHub Desktop.
Save espritm/c9e8290ffdfe2ce8d573ef459810faf6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="240dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="240dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/background_2114367_640" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="240dp"
android:orientation="vertical"
android:gravity="bottom"
android:layout_marginLeft="16dp">
<ImageView
android:layout_width="44dp"
android:layout_height="44dp"
android:id="@+id/mainActivity_navigationView_header_imageview_userAvatar" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/mainActivity_navigationView_header_textview_UserPseudo"
android:textStyle="bold"
android:textColor="@color/white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/mainActivity_navigationView_header_textview_UserDesc"
android:textColor="@color/white"
android:layout_marginBottom="16dp" />
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment