315 lines
12 KiB
XML
315 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
android:background="@color/gray_bg"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_content_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_back"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="5dp"
|
|
android:background="@drawable/ic_back_black"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:maxLength="8"
|
|
android:paddingLeft="5dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:scaleType="fitXY"
|
|
android:textColor="@color/white"
|
|
android:textSize="13sp"
|
|
android:visibility="visible"
|
|
tools:visibility="visible" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerVertical="true">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:clickable="true"
|
|
android:ellipsize="end"
|
|
android:maxEms="12"
|
|
android:maxLines="1"
|
|
android:text="日程管理"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_search"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginRight="10dp"
|
|
android:src="@drawable/ic_search_black_solid_icon" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_add"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/ic_add_icon_solid" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@color/white"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight=".4"
|
|
android:background="@color/gray_dd"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="7dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_year"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:text="年"
|
|
android:textColor="@color/black" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/ic_arrow_down_black" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_weight=".3"
|
|
android:background="@color/gray_dd"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="7dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_month"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:text="月"
|
|
android:textColor="@color/black" />
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:src="@drawable/ic_arrow_down_black" />
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/rg_type"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_weight=".4"
|
|
android:background="@color/gray_dd"
|
|
android:orientation="horizontal"
|
|
android:padding="2dp">
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_month"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/switch_custom_gray_white_nor"
|
|
android:button="@null"
|
|
android:checked="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="5dp"
|
|
android:text="月"
|
|
android:textColor="@color/col_blue_gray"
|
|
android:textStyle="bold" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_year"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/switch_custom_gray_white_nor"
|
|
android:button="@null"
|
|
android:gravity="center"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="5dp"
|
|
android:text="年"
|
|
android:textColor="@color/col_blue_gray"
|
|
android:textStyle="bold" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="#E7E7E7" />
|
|
</LinearLayout>
|
|
|
|
|
|
<com.haibin.calendarview.CalendarLayout
|
|
android:id="@+id/calendarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:orientation="vertical"
|
|
app:calendar_content_view_id="@+id/nsv_scroll"
|
|
app:calendar_show_mode="both_month_week_view">
|
|
|
|
|
|
<com.haibin.calendarview.CalendarView
|
|
android:id="@+id/calendarView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:current_day_lunar_text_color="#8C8C8C"
|
|
app:current_day_text_color="#8C8C8C"
|
|
app:current_month_lunar_text_color="#8C8C8C"
|
|
app:current_month_text_color="#333333"
|
|
app:lunar_text_size="10sp"
|
|
app:max_year="2050"
|
|
app:max_year_day="31"
|
|
app:max_year_month="12"
|
|
app:min_year="2018"
|
|
app:min_year_day="1"
|
|
app:min_year_month="1"
|
|
app:month_view="com.tenlionsoft.baselib.core.widget.calendar.CustomMonthView"
|
|
app:month_view_auto_select_day="last_select_day_ignore_current"
|
|
app:month_view_show_mode="mode_only_current"
|
|
app:other_month_lunar_text_color="#8C8C8C"
|
|
app:other_month_text_color="#8C8C8C"
|
|
app:scheme_lunar_text_color="#CFCFCF"
|
|
app:scheme_text=""
|
|
app:scheme_text_color="#333"
|
|
app:scheme_theme_color="#8C8C8C"
|
|
app:selected_lunar_text_color="#2158F9"
|
|
app:selected_text_color="#2158F9"
|
|
app:selected_theme_color="#00000000"
|
|
app:week_background="#ffffff"
|
|
app:week_bar_height="46dp"
|
|
app:week_line_background="#FFFFFF"
|
|
app:week_line_margin="16dp"
|
|
app:week_start_with="sun"
|
|
app:week_text_color="#111111"
|
|
app:week_text_size="10sp"
|
|
app:week_view="com.tenlionsoft.baselib.core.widget.calendar.CustomWeekView"
|
|
app:week_view_scrollable="false"
|
|
app:year_view_background="#f6f6f6"
|
|
app:year_view_day_text_color="#8C8C8C"
|
|
app:year_view_day_text_size="8sp"
|
|
app:year_view_month_text_color="#8C8C8C"
|
|
app:year_view_month_text_size="20sp"
|
|
app:year_view_scheme_color="#8C8C8C"
|
|
app:year_view_week_height="0dp"
|
|
app:year_view_week_text_color="#8C8C8C"
|
|
app:year_view_week_text_size="7sp" />
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/nsv_scroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_record"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rlv_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:listitem="@layout/item_schedule" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="20dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:src="@drawable/ic_empty_data" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="center"
|
|
android:text="所选日期\n没有安排"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
</com.haibin.calendarview.CalendarLayout>
|
|
</LinearLayout> |