2026-11-28 00:25:22 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:background="@drawable/bg_sheet">
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="36dp"
|
|
|
|
|
android:layout_height="4dp"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:background="@color/divider" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
|
android:paddingBottom="22dp">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/sheetTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/add_project"
|
|
|
|
|
style="@style/T.Title" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/etName"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="14dp"
|
|
|
|
|
android:background="@drawable/bg_field"
|
|
|
|
|
android:paddingStart="14dp"
|
|
|
|
|
android:paddingEnd="14dp"
|
|
|
|
|
android:paddingTop="13dp"
|
|
|
|
|
android:paddingBottom="13dp"
|
|
|
|
|
android:hint="@string/project_name_hint"
|
|
|
|
|
android:textColor="@color/text"
|
|
|
|
|
android:textColorHint="@color/text_tertiary"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
android:inputType="text"
|
|
|
|
|
android:maxLines="1" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="18dp"
|
|
|
|
|
android:text="@string/project_color"
|
|
|
|
|
style="@style/T.Section" />
|
|
|
|
|
|
2026-11-28 08:06:55 +08:00
|
|
|
<!-- 八色圆点横向可滑,末位颜色不再被弹层右边缘裁掉 -->
|
|
|
|
|
<HorizontalScrollView
|
2026-11-28 00:25:22 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="10dp"
|
2026-11-28 08:06:55 +08:00
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/colorRow"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
|
android:paddingBottom="4dp" />
|
|
|
|
|
</HorizontalScrollView>
|
2026-11-28 00:25:22 +08:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="22dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnDelete"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="@drawable/bg_btn_ghost"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
|
android:text="@string/delete"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@color/danger"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnSave"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
|
android:background="@drawable/bg_btn_primary"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="@string/save"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/on_brand" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|