Files
Android-key-of-love/app/src/main/res/layout/sheet_edit_nickname.xml
pengxiaolong a1fbc6417f 优化1
2026-01-15 13:01:31 +08:00

62 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:padding="16dp"
android:background="#F8F8F8"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Header -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_title"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="Change the nickname"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="#1B1F1A"/>
<ImageView
android:id="@+id/btn_close"
android:layout_width="26dp"
android:layout_height="26dp"
android:src="@drawable/pop_collapse"/>
</LinearLayout>
<!-- Input -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:boxBackgroundMode="none">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_nickname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:background="#FFFFFF"/>
</com.google.android.material.textfield.TextInputLayout>
<View
android:layout_width="match_parent"
android:layout_height="43dp"/>
<!-- Save -->
<TextView
android:id="@+id/btn_save"
android:layout_width="match_parent"
android:layout_height="45dp"
android:gravity="center"
android:text="Save"
android:textColor="#FFFFFF"
android:background="@drawable/keyboard_ettings"/>
</LinearLayout>