Modifying the profile layout

This layout will help to get the profile details from the users. Open activity_profile.xml and modify it as follows (please check GitHub for the full layout code):

<?xml version="1.0" encoding="utf-8"?>

<!--full name-->

<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/profileFullNameTitlePro"
android:textStyle="bold"
android:text="@string/title_full_names"
android:textAppearance="?android:textAppearanceSmall"
android:layout_marginStart="8dp"
app:layout_constraintStart_toStartOf="parent" android:layout_marginTop="32dp"
app:layout_constraintTop_toBottomOf="@+id/usernamePro" android:layout_marginEnd="8dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0"/>

<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
tools:text="@tools:sample/full_names"
android:id="@+id/profileFullNamePro"
android:textAppearance="?android:textAppearanceSmall"
app:layout_constraintTop_toTopOf="@+id/profileFullNameTitlePro"
app:layout_constraintBottom_toBottomOf="@+id/profileFullNameTitlePro"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="160dp"
app:layout_constraintVertical_bias="1.0"/>

------
------
</android.support.constraint.ConstraintLayout>

Here we have one TextView for the username, a TextView for each profile item label name, and four for the profile contents of Full Name, Email, Contact Number, and Country.

Here is the preview of the Profile details:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.111.87