任务最高优先级开发

This commit is contained in:
AriaLyy
2017-06-02 17:38:32 +08:00
parent 9aa7df035a
commit 5ee2cba331
59 changed files with 475 additions and 165 deletions

View File

@@ -29,6 +29,15 @@
style="?buttonBarButtonStyle"
/>
<Button
android:id="@+id/highest_priority"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="将任务设置为最高优先级任务"
style="?buttonBarButtonStyle"
/>
<Button
android:id="@+id/dialog_task"
android:layout_width="match_parent"

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<variable
name="taskName"
type="String"
/>
</data>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<include layout="@layout/layout_bar"/>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:text="@{taskName}"
android:textColor="@android:color/black"
android:textSize="16sp"
/>
<include
layout="@layout/content_single"
android:id="@+id/task"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/name"
/>
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/task"
android:layout_margin="16dp"
/>
</RelativeLayout>
</layout>