Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

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

>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activities.ProfileEditActivity">
<!-- toolbar-->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="250dp"
android:background="@color/primary"
style="@style/styleRoundedCornersImage"/>
<!--backbtn -->
<ImageButton
android:id="@+id/back_Btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="@android:color/transparent"
android:src="@drawable/ic_backbtn" />
<!--title-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Edit profile"
android:layout_marginTop="10dp"
android:textColor="@color/white"
android:textStyle="bold"
android:layout_centerHorizontal="true"/>

<com.google.android.material.imageview.ShapeableImageView
android:layout_width="110dp"
android:layout_height="110dp"
android:layout_centerHorizontal="true"
android:id="@+id/profile_img"
android:layout_marginTop="40dp"
android:src="@drawable/ic_user"
android:background="@color/white"
app:shapeAppearanceOverlay="@style/styleRoundedCornersImage"/>

<RelativeLayout
android:layout_width="350dp"
android:layout_height="449dp"
android:layout_marginStart="30dp"
android:layout_marginTop="225dp"
android:layout_marginEnd="30dp">

<!-- name input-->


<com.google.android.material.textfield.TextInputLayout
android:id="@+id/nameTil"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintEnabled="false">

<EditText
android:id="@+id/nameEt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:drawableStart="@drawable/ic_user"
android:drawablePadding="10dp"
android:hint="Name"
android:inputType="textPersonName|textCapWords"
android:textColor="@color/black"
android:textColorHint="@color/black" />

</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/genderTil"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/nameTil"
app:hintEnabled="false">

<EditText
android:id="@+id/genderEt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:drawableStart="@drawable/ic_user"
android:drawablePadding="10dp"
android:hint="Gender"
android:inputType="textPersonName|textCapWords"
android:textColor="@color/black"
android:textColorHint="@color/black" />

</com.google.android.material.textfield.TextInputLayout>

<!--button-->
<Button
android:id="@+id/updatebtn"
style="@style/styleRoundedCornersImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/genderTil"
android:layout_marginTop="20dp"
android:text="Update"
android:textColor="@color/white" />

</RelativeLayout>

</RelativeLayout>

You might also like