<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<!-- 主要内容区域 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_above="@+id/bottom_navigation"
|
android:orientation="vertical">
|
|
<!-- 倒数日列表 -->
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/countdown_list"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:padding="16dp" />
|
|
</LinearLayout>
|
|
<!-- 底部导航栏 -->
|
<LinearLayout
|
android:id="@+id/bottom_navigation"
|
android:layout_width="match_parent"
|
android:layout_height="56dp"
|
android:layout_alignParentBottom="true"
|
android:background="#FFFFFF"
|
android:orientation="horizontal"
|
android:elevation="8dp">
|
|
<ImageButton
|
android:id="@+id/btn_add"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_add"
|
android:contentDescription="添加"/>
|
|
<ImageButton
|
android:id="@+id/btn_edit"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_edit"
|
android:contentDescription="编辑"/>
|
|
<ImageButton
|
android:id="@+id/btn_delete"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:background="?android:attr/selectableItemBackground"
|
android:src="@drawable/ic_delete"
|
android:contentDescription="删除"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|