309 lines
12 KiB
XML
309 lines
12 KiB
XML
|
|
<?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" />
|
|||
|
|
|
|||
|
|
<ScrollView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:scrollbars="none">
|
|||
|
|
|
|||
|
|
<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="20dp">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/sheetTitle"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:text="@string/add_task"
|
|||
|
|
style="@style/T.Title" />
|
|||
|
|
|
|||
|
|
<EditText
|
|||
|
|
android:id="@+id/etTitle"
|
|||
|
|
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/task_title_hint"
|
|||
|
|
android:textColor="@color/text"
|
|||
|
|
android:textColorHint="@color/text_tertiary"
|
|||
|
|
android:textSize="15sp"
|
|||
|
|
android:inputType="textCapSentences"
|
|||
|
|
android:maxLines="3" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="18dp"
|
|||
|
|
android:text="@string/belongs_project"
|
|||
|
|
style="@style/T.Section" />
|
|||
|
|
|
|||
|
|
<HorizontalScrollView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:scrollbars="none">
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:id="@+id/projectRow"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="horizontal" />
|
|||
|
|
</HorizontalScrollView>
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="18dp"
|
|||
|
|
android:orientation="horizontal">
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="0dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_weight="1"
|
|||
|
|
android:orientation="vertical">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:text="@string/priority"
|
|||
|
|
style="@style/T.Section" />
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:id="@+id/priorityRow"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:orientation="horizontal" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="vertical">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:text="@string/focus_duration"
|
|||
|
|
style="@style/T.Section" />
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:gravity="center_vertical">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnFocusMinus"
|
|||
|
|
android:layout_width="30dp"
|
|||
|
|
android:layout_height="30dp"
|
|||
|
|
android:background="@drawable/bg_chip_off"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="−"
|
|||
|
|
android:textSize="16sp"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvFocus"
|
|||
|
|
android:layout_width="62dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="25 分钟"
|
|||
|
|
android:textSize="13sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnFocusPlus"
|
|||
|
|
android:layout_width="30dp"
|
|||
|
|
android:layout_height="30dp"
|
|||
|
|
android:background="@drawable/bg_chip_off"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="+"
|
|||
|
|
android:textSize="16sp"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
</LinearLayout>
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="18dp"
|
|||
|
|
android:text="@string/due_date"
|
|||
|
|
style="@style/T.Section" />
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:gravity="center_vertical">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnDue"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:background="@drawable/bg_chip_off"
|
|||
|
|
android:paddingStart="14dp"
|
|||
|
|
android:paddingEnd="14dp"
|
|||
|
|
android:paddingTop="8dp"
|
|||
|
|
android:paddingBottom="8dp"
|
|||
|
|
android:text="@string/no_due"
|
|||
|
|
android:textSize="13sp"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/btnClearDue"
|
|||
|
|
android:layout_width="26dp"
|
|||
|
|
android:layout_height="26dp"
|
|||
|
|
android:layout_marginStart="8dp"
|
|||
|
|
android:padding="5dp"
|
|||
|
|
android:src="@drawable/ic_close"
|
|||
|
|
android:contentDescription="@string/clear_due"
|
|||
|
|
android:visibility="gone" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="18dp"
|
|||
|
|
android:text="@string/repeat"
|
|||
|
|
style="@style/T.Section" />
|
|||
|
|
|
|||
|
|
<HorizontalScrollView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:scrollbars="none">
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:id="@+id/repeatRow"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="horizontal" />
|
|||
|
|
</HorizontalScrollView>
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:id="@+id/repeatEveryRow"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="10dp"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:gravity="center_vertical"
|
|||
|
|
android:visibility="gone">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="0dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_weight="1"
|
|||
|
|
android:text="@string/repeat_interval"
|
|||
|
|
android:textSize="14sp"
|
|||
|
|
android:textColor="@color/text_secondary" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnEveryMinus"
|
|||
|
|
android:layout_width="30dp"
|
|||
|
|
android:layout_height="30dp"
|
|||
|
|
android:background="@drawable/bg_chip_off"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="−"
|
|||
|
|
android:textSize="16sp"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvEvery"
|
|||
|
|
android:layout_width="62dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:textSize="13sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnEveryPlus"
|
|||
|
|
android:layout_width="30dp"
|
|||
|
|
android:layout_height="30dp"
|
|||
|
|
android:background="@drawable/bg_chip_off"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="+"
|
|||
|
|
android:textSize="16sp"
|
|||
|
|
android:textColor="@color/text" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<EditText
|
|||
|
|
android:id="@+id/etNote"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="18dp"
|
|||
|
|
android:background="@drawable/bg_field"
|
|||
|
|
android:paddingStart="14dp"
|
|||
|
|
android:paddingEnd="14dp"
|
|||
|
|
android:paddingTop="13dp"
|
|||
|
|
android:paddingBottom="13dp"
|
|||
|
|
android:hint="@string/task_note_hint"
|
|||
|
|
android:textColor="@color/text"
|
|||
|
|
android:textColorHint="@color/text_tertiary"
|
|||
|
|
android:textSize="14sp"
|
|||
|
|
android:gravity="top"
|
|||
|
|
android:minLines="2"
|
|||
|
|
android:inputType="textMultiLine|textCapSentences" />
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="20dp"
|
|||
|
|
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>
|
|||
|
|
</ScrollView>
|
|||
|
|
</LinearLayout>
|