1
I have the Drawer navigation menu and in the header part I have only one image. I would like to put for the user to perform a login. As kids I would like to leave as in the image below:
I would like to put the image the name and email of the user already logged in. Can someone help me, tell me if it’s too hard ? Thank you.
I have the code:
XML:
<?xml version="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" />
How about you put in the codes you already have so we can start? Also, when using a screenshot to describe the problem, try writing an image description. Help can come from a(a) user(a) of screen readers. :)
– Pablo Almeida
@Pabloalmeida edited my question and put the xml I have.
– Artur Mafezzoli Júnior