- 源码镜像 src/main(81 个文件):首页双模式、任务、项目、统计、设置 - 补齐 README / LICENSE / CHANGELOG / CONTRIBUTING / .gitignore - 不含构建配置、签名材料、编译产物与备份数据
88 lines
3.1 KiB
XML
88 lines
3.1 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="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="14dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="6dp">
|
|
|
|
<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/projects_title"
|
|
style="@style/T.Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvSummary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="3dp"
|
|
style="@style/T.Meta" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/btnArchived"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingTop="6dp"
|
|
android:paddingBottom="6dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/bg_chip_off"
|
|
android:text="@string/show_archived"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/text_secondary" />
|
|
|
|
<ImageView
|
|
android:id="@+id/btnAdd"
|
|
android:layout_width="42dp"
|
|
android:layout_height="42dp"
|
|
android:background="@drawable/bg_icon_btn"
|
|
android:padding="10dp"
|
|
android:src="@drawable/ic_plus"
|
|
android:contentDescription="@string/add_project" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="18dp"
|
|
android:scrollbars="none" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvEmpty"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/empty_projects"
|
|
android:textColor="@color/text_tertiary"
|
|
android:textSize="14sp"
|
|
android:visibility="gone" />
|
|
</FrameLayout>
|
|
</LinearLayout>
|