mirror of
https://gitea.winboll.cc/ZhanGSKen/MyWinBoLL.git
synced 2026-08-14 21:47:11 +08:00
43e783f5aa
- 添加 sortTaskList() 按排档时间正序排列列表 - 加载、添加、编辑、删除、排档后均排序并刷新界面 - 编辑/添加对话框的排档时间输入框旁增加现在按钮 - 点击现在按钮将当前整点时间填入输入框
175 lines
5.6 KiB
XML
175 lines
5.6 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="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp"
|
|
android:background="?android:attr/windowBackground">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="编辑任务排档"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:paddingBottom="15dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="任务名称:"
|
|
android:textSize="14sp"
|
|
android:paddingBottom="5dp"/>
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_task_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="请输入任务名称"
|
|
android:inputType="text"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="当前排档时间(yyyy-MM-dd HH):"
|
|
android:textSize="14sp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="5dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_start_time"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="例如:09:00"
|
|
android:inputType="time"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"/>
|
|
|
|
<Button
|
|
android:id="@+id/dialog_btn_now"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="现在"
|
|
android:layout_marginStart="10dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="排档幅度:"
|
|
android:textSize="14sp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="5dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_month"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="月份"
|
|
android:inputType="number"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"
|
|
android:layout_marginEnd="5dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="月"/>
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_day"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="天数"
|
|
android:inputType="number"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="5dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="天"/>
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_hour"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="小时"
|
|
android:inputType="number"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"
|
|
android:layout_marginStart="10dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="小时"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="备注:"
|
|
android:textSize="14sp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="5dp"/>
|
|
|
|
<EditText
|
|
android:id="@+id/dialog_et_remark"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="请输入备注信息"
|
|
android:inputType="textMultiLine"
|
|
android:minLines="3"
|
|
android:gravity="top|start"
|
|
android:padding="10dp"
|
|
android:background="@android:drawable/edit_text"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="20dp"
|
|
android:gravity="end">
|
|
|
|
<Button
|
|
android:id="@+id/dialog_btn_cancel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="取消"
|
|
android:layout_marginEnd="10dp"/>
|
|
|
|
<Button
|
|
android:id="@+id/dialog_btn_save"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="保存"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|