mirror of
https://github.com/Nezumi-2711/Foodify-Shipper.git
synced 2026-09-22 13:38:42 +00:00
335 lines
13 KiB
XML
335 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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=".Fragment.ProfileFragment">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="false"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:textAlignment="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:fontFamily="@font/koho"
|
|
android:text="Thông tin tài khoản"
|
|
android:textColor="@color/black"
|
|
android:textSize="30sp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/profile_avatar"
|
|
android:src="@drawable/profile_avatar"
|
|
android:layout_marginTop="30dp"
|
|
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"
|
|
/>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/textInput_email"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:hint="Địa chỉ email"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/profile_avatar"
|
|
app:startIconDrawable="@drawable/baseline_email_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_email"
|
|
android:fontFamily="@font/koho"
|
|
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_phone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:hint="Số điện thoại"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/textInput_email"
|
|
app:startIconDrawable="@drawable/baseline_phone_24"
|
|
app:startIconTint="@color/primaryColor">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edt_phone"
|
|
android:fontFamily="@font/koho"
|
|
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_marginTop="30dp"
|
|
android:hint="Họ và tên"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/textInput_phone"
|
|
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:fontFamily="@font/koho"
|
|
android:inputType="text"
|
|
android:enabled="false"
|
|
/>
|
|
|
|
</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_marginTop="30dp"
|
|
android:hint="Ngày tháng năm sinh"
|
|
app:boxBackgroundColor="@color/white"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/textInput_fullName"
|
|
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:fontFamily="@font/koho"
|
|
android:layout_height="match_parent"
|
|
android:enabled="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_marginTop="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/textInput_birthDay"
|
|
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="Đổi mật khẩu"
|
|
android:textSize="18sp"
|
|
android:fontFamily="@font/koho"
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/change_information"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/change_password"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:src="@drawable/baseline_mode_edit_24"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
tools:ignore="ContentDescription"
|
|
app:tint="@color/primaryColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:text="Chỉnh sửa thông tin"
|
|
android:textSize="18sp"
|
|
android:fontFamily="@font/koho"
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/feedback"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintTop_toBottomOf="@id/change_information"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/ic_feedback"
|
|
android:src="@drawable/feedback"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
tools:ignore="ContentDescription"
|
|
app:tint="@color/primaryColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/koho"
|
|
android:text="Đóng góp ý kiến"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/log_out"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/feedback"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<ImageView
|
|
android:src="@drawable/baseline_logout_24"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
tools:ignore="ContentDescription"
|
|
app:tint="@color/primaryColor"
|
|
/>
|
|
|
|
<TextView
|
|
android:text="Đăng xuất"
|
|
android:textSize="18sp"
|
|
android:fontFamily="@font/koho"
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/log_out"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView> |