<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context="cn.flightfeather.thirdappmodule.activity.TaskActivity">
|
|
<include
|
android:id="@+id/actionbar"
|
layout="@layout/layout_actionbar"
|
/>
|
|
<com.haibin.calendarview.CalendarLayout
|
android:id="@+id/calendarLayout"
|
android:layout_below="@id/actionbar"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="#fff"
|
android:layout_above="@+id/ll_bottom_bar"
|
app:calendar_content_view_id="@+id/recyclerView">
|
|
<com.haibin.calendarview.CalendarView
|
android:id="@+id/calendarView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#fff"
|
app:current_month_text_color="#333333"
|
app:min_year="2004"
|
app:other_month_text_color="#e1e1e1"
|
app:scheme_text="假"
|
app:scheme_text_color="#fff"
|
app:scheme_theme_color="#128c4b"
|
app:selected_text_color="#333"
|
app:selected_theme_color="#108cd4"
|
app:week_background="#fff"
|
app:week_text_color="#111" />
|
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/recyclerView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@drawable/shap_stroke_top" />
|
|
<TextView
|
android:id="@+id/tv_no_data"
|
android:layout_centerHorizontal="true"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="100dp"
|
android:textSize="16dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="无任务"/>
|
|
</com.haibin.calendarview.CalendarLayout>
|
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_topclass_task"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/actionbar"
|
android:layout_above="@id/ll_bottom_bar"
|
android:background="@color/white"
|
android:visibility="gone"
|
/>
|
|
<LinearLayout
|
android:id="@+id/ll_bottom_bar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_vertical"
|
android:background="@drawable/shap_stroke_top"
|
android:orientation="horizontal"
|
android:layout_alignParentBottom="true"
|
android:padding="@dimen/dimen4"
|
android:layout_alignParentStart="true">
|
|
<RadioGroup
|
android:id="@+id/rGroup_taskperiod"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<RadioButton
|
android:id="@+id/rb_subtask"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:checked="true"
|
android:text="子任务"/>
|
|
<RadioButton
|
android:id="@+id/rb_topclasstask"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="顶层任务"/>
|
|
</RadioGroup>
|
|
<CheckBox
|
android:id="@+id/cb_subtaskExecutor"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="我的任务"
|
/>
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:textColor="@color/colorPrimary"
|
/>
|
|
<TextView
|
android:id="@+id/tv_add"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:padding="6dp"
|
android:layout_marginRight="12dp"
|
android:text="添加"/>
|
</LinearLayout>
|
|
</RelativeLayout>
|