I have the navigation drawer menu and in the header part I have only one image. I would like to put the user to login. In kids I would like to leave as in the image below:
Iwouldliketoputtheimagethenameandtheemailoftheuseralreadyloggedin.Cansomeonehelpme,tellmeifit'stoohard?Thankyou.
Ihavethecode:
XML:
<?xmlversion="1.0" encoding="utf-8"?>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:textSize="20dp"
android:text="@string/label_header"
android:textAppearance="@style/Base.TextAppearance.Widget.AppCompat.Toolbar.Subtitle"
android:id="@+id/textView14"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
android:id="@+id/textViewLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_headerSmall"
android:layout_gravity="center_horizontal"
android:layout_below="@+id/textView14"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />