任务完成后从列表消失;重要度改名并新增紧急度五角星;通知按钮间距与默认专注页
This commit is contained in:
@@ -37,14 +37,32 @@
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/text"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end" />
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/text"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvStars"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:textSize="11sp"
|
||||
android:includeFontPadding="false"
|
||||
android:letterSpacing="0.08"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMeta"
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
android:id="@+id/notifStop"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:padding="10dp"
|
||||
android:background="@drawable/bg_notif_action"
|
||||
android:scaleType="fitCenter"
|
||||
|
||||
@@ -96,6 +96,33 @@
|
||||
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/urgency"
|
||||
style="@style/T.Section" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/urgencyRow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="horizontal" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 专注时长在左,截止日期在右:设置一组日期时顺带确认时长 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -145,44 +172,51 @@
|
||||
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"
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
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" />
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<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" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
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>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
<color name="rest_deep">#2F6455</color>
|
||||
|
||||
<color name="danger">#C0392B</color>
|
||||
|
||||
<!-- 紧急度五角星:紧急三颗红 / 中两颗绿 / 不急一颗灰 -->
|
||||
<color name="urgent_high">#E5484D</color>
|
||||
<color name="urgent_mid">#2FA96C</color>
|
||||
<color name="urgent_low">#9E9E9E</color>
|
||||
<color name="success">#2E7D51</color>
|
||||
|
||||
<color name="bg">#F5F8FC</color>
|
||||
|
||||
@@ -78,7 +78,8 @@
|
||||
<string name="empty_done">还没有已完成的任务</string>
|
||||
<string name="task_title_hint">要做什么?</string>
|
||||
<string name="task_note_hint">备注(可选)</string>
|
||||
<string name="priority">优先级</string>
|
||||
<string name="priority">重要度</string>
|
||||
<string name="urgency">紧急度</string>
|
||||
<string name="p_low">低</string>
|
||||
<string name="p_mid">中</string>
|
||||
<string name="p_high">高</string>
|
||||
|
||||
Reference in New Issue
Block a user