Files
FocusBox/src/main/res/layout/sheet_pick_task.xml

111 lines
4.0 KiB
XML
Raw Normal View History

<?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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<ImageView
android:id="@+id/pickBack"
android:layout_width="34dp"
android:layout_height="34dp"
android:background="@drawable/bg_icon_btn"
android:padding="8dp"
android:src="@drawable/ic_back"
android:tint="@color/text_secondary"
android:contentDescription="@string/pick_back" />
<LinearLayout
android:id="@+id/pickTitleBox"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pickTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pick_project"
style="@style/T.Title" />
<TextView
android:id="@+id/pickStep"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
style="@style/T.Caption" />
</LinearLayout>
<ImageView
android:id="@+id/pickClose"
android:layout_width="34dp"
android:layout_height="34dp"
android:background="@drawable/bg_icon_btn"
android:padding="8dp"
android:src="@drawable/ic_close"
android:tint="@color/text_secondary"
android:contentDescription="@string/cancel" />
</LinearLayout>
<TextView
android:id="@+id/pickHint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
style="@style/T.Meta" />
<ScrollView
android:id="@+id/pickScroll"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_marginTop="10dp"
android:clipToPadding="false"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:scrollbars="none">
<LinearLayout
android:id="@+id/pickList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
<TextView
android:id="@+id/pickClear"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="6dp"
android:background="@drawable/bg_btn_ghost"
android:gravity="center"
android:text="@string/clear_task"
android:textSize="14sp"
android:textColor="@color/text_secondary"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>