mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
308 lines
13 KiB
XML
308 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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=".Activity.AccountAndProfileActivity">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="false"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/back_image"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:src="@drawable/back_button"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginTop="25dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginTop="20dp"
|
|
android:fontFamily="@font/bebas"
|
|
android:text="@string/account_and_profile"
|
|
android:textColor="@color/black"
|
|
android:textSize="40sp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/back_image" />
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/profile_avatar"
|
|
android:src="@drawable/profile_avatar"
|
|
android:layout_marginTop="15dp"
|
|
app:riv_corner_radius="180dp"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintTop_toBottomOf="@id/textView"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/change_image_button"
|
|
android:text="Đổi ảnh"
|
|
android:textColor="@color/white"
|
|
android:fontFamily="@font/bebas"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
app:layout_constraintTop_toBottomOf="@id/profile_avatar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_email"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:hint="@string/email_text"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/textInput_phone"
|
|
app:startIconDrawable="@drawable/baseline_email_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_email"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:inputType="textEmailAddress"
|
|
android:enabled="false"
|
|
/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintTop_toBottomOf="@id/textInput_email"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:id="@+id/countdown_layout"
|
|
android:visibility="gone"
|
|
>
|
|
<TextView
|
|
android:id="@+id/textview_resendCode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="15sp"
|
|
android:text="Gửi lại sau: "
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/black"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/textview_countdown"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/opensans"
|
|
android:text="00:35"
|
|
android:textColor="@color/secondary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/textview_verify_email"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="15sp"
|
|
android:text="Xác thực"
|
|
android:layout_marginEnd="20dp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/primaryColor"
|
|
android:textStyle="bold"
|
|
app:layout_constraintTop_toBottomOf="@+id/textInput_email"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/textview_resendCode_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="15sp"
|
|
android:text="@string/resend_code"
|
|
android:layout_marginEnd="20dp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/primaryColor"
|
|
android:textStyle="bold"
|
|
app:layout_constraintTop_toBottomOf="@+id/textInput_email"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_phone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:hint="@string/phone_text"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/textInput_fullName"
|
|
app:startIconDrawable="@drawable/baseline_phone_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_phone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:inputType="phone"
|
|
android:enabled="false"
|
|
/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_fullName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:hint="@string/full_name"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/textInput_birthDay"
|
|
app:startIconDrawable="@drawable/baseline_abc_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_fullName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:inputType="text"
|
|
/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_birthDay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="40dp"
|
|
android:hint="@string/birthday_text"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/change_password"
|
|
app:startIconDrawable="@drawable/baseline_calendar_month_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_birthDay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="false"
|
|
android:cursorVisible="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"
|
|
/>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/change_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintBottom_toTopOf="@id/updated_button"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/ic_pencil"
|
|
android:src="@drawable/baseline_vpn_key_24"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="ContentDescription"
|
|
app:tint="@color/primaryColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:text="@string/change_password"
|
|
android:textSize="18sp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/black"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_weight="1"
|
|
/>
|
|
|
|
<ImageView
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:rotation="180"
|
|
android:src="@drawable/back_button"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/updated_button"
|
|
style="@style/DefaultSolid"
|
|
android:fontFamily="@font/bebas"
|
|
android:text="@string/updated"
|
|
android:textSize="20sp"
|
|
android:padding="10dp"
|
|
android:layout_marginStart="40dp"
|
|
android:layout_marginEnd="40dp"
|
|
android:layout_marginBottom="17dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#80000000"
|
|
android:id="@+id/progress_layout"
|
|
android:clickable="true"
|
|
android:visibility="visible"
|
|
>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBarLoadData"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:indeterminateTint="@color/primaryColor"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |