任务筛选面板默认收起:摘要行点击展开,选完胶囊自动收起(v0.5.11)
This commit is contained in:
@@ -45,20 +45,60 @@
|
||||
android:contentDescription="@string/add_task" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 五栏联动筛选:项目 / 时间 / 重要度 / 紧急度 / 状态;整体圆角卡片底 -->
|
||||
<!-- 筛选卡片:默认只显示摘要行,点击展开五栏联动筛选(项目 / 时间 / 重要度 / 紧急度 / 状态) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/filterPanel"
|
||||
android:id="@+id/filterCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/bg_card"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="8dp" />
|
||||
android:background="@drawable/bg_card">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/filterHeader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:background="?attr/selectableItemBackground">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFilterSummary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:textSize="13sp"
|
||||
android:textColor="@color/text_secondary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnFilterToggle"
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:padding="3dp"
|
||||
android:src="@drawable/ic_chevron_right"
|
||||
android:tint="@color/text_tertiary"
|
||||
android:contentDescription="@string/filter_title" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/filterPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingBottom="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user