| | |
| | | <RelativeLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="?attr/actionBarSize" |
| | | android:background="#FFFFFF" |
| | | android:elevation="4dp"> |
| | | |
| | | <!-- 返回按钮 --> |
| | | <ImageButton |
| | | android:id="@+id/btn_back" |
| | | android:layout_width="48dp" |
| | | android:layout_height="48dp" |
| | | android:layout_centerVertical="true" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:src="@android:drawable/ic_menu_close_clear_cancel" |
| | | android:contentDescription="返回" /> |
| | | android:background="#FFFFFF"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_centerInParent="true" |
| | | android:text="标题" |
| | | android:text="新增短信提醒" |
| | | android:textSize="18sp" |
| | | android:textColor="#000000" /> |
| | | |
| | | <!-- 关闭按钮 --> |
| | | <ImageButton |
| | | android:id="@+id/btn_close" |
| | | android:layout_width="48dp" |
| | | android:layout_height="48dp" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_centerVertical="true" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:src="@android:drawable/ic_menu_close_clear_cancel" /> |
| | | </RelativeLayout> |
| | | |
| | | <!-- 快速提醒输入框 --> |
| | | <EditText |
| | | android:id="@+id/edit_quick_reminder" |
| | | <!-- 提醒类型选择 --> |
| | | <Spinner |
| | | android:id="@+id/spinner_type" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_margin="16dp" |
| | | android:background="@android:drawable/edit_text" |
| | | android:hint="快速提醒" |
| | | android:padding="12dp" /> |
| | | android:padding="12dp" |
| | | android:background="@android:drawable/btn_dropdown" /> |
| | | |
| | | <!-- 添加提醒按钮 --> |
| | | <!-- 昵称输入框 --> |
| | | <EditText |
| | | android:id="@+id/edit_nickname" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="16dp" |
| | | android:hint="昵称" |
| | | android:padding="12dp" |
| | | android:background="@android:drawable/edit_text" /> |
| | | |
| | | <!-- 关键词输入框 --> |
| | | <EditText |
| | | android:id="@+id/edit_keywords" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_margin="16dp" |
| | | android:hint="关键词" |
| | | android:padding="12dp" |
| | | android:background="@android:drawable/edit_text" /> |
| | | |
| | | <!-- 已添加列表标题 --> |
| | | <Button |
| | | android:id="@+id/btn_add_reminder" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="16dp" |
| | | android:layout_marginTop="16dp" |
| | | android:layout_margin="16dp" |
| | | android:backgroundTint="#03A9F4" |
| | | android:text="添加到提醒" |
| | | android:text="确定新增" |
| | | android:textColor="#FFFFFF" /> |
| | | |
| | | </LinearLayout> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:padding="16dp" |
| | | android:text="已添加列表" |
| | | android:textStyle="bold" /> |
| | | |
| | | <!-- 已添加列表 --> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/recycler_reminders" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="221dp" |
| | | android:layout_weight="1" |
| | | android:padding="8dp" /> |
| | | |
| | | <!-- 确定新增按钮 --> |
| | | |
| | | </LinearLayout> |