fragment_cheng_zhang.xml 5.1 KB
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    tools:context="com.shunzhi.parent.ui.fragment.report.ChengZhangFragment">

    <include layout="@layout/layout_chengzhang" />

    <LinearLayout
        android:id="@+id/layout_report"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="@dimen/size_dp_10"
        android:orientation="vertical">

        <!--<include layout="@layout/layout_week" /> android:layout_below="@+id/linearlayout"-->

        <com.amy.monthweek.materialcalendarview.MonthWeekMaterialCalendarView xmlns:app="http://schemas.android.com/apk/res-auto"
            android:id="@+id/slidelayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <com.prolificinteractive.materialcalendarview.MaterialCalendarView
                android:id="@+id/calendarView_month_mode"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/white"
                app:mcv_calendarMode="month"
                app:mcv_dateTextAppearance="@style/TextAppearance.MaterialCalendarWidget.Date"
                app:mcv_selectionColor="@color/huodong_blue"
                app:mcv_showOtherDates="defaults|other_months"
                app:mcv_showWeekView="false" />

            <com.prolificinteractive.materialcalendarview.MaterialCalendarView
                android:id="@+id/calendarView_week_mode"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@android:color/white"
                android:visibility="invisible"
                app:mcv_calendarMode="week"
                app:mcv_dateTextAppearance="@style/TextAppearance.MaterialCalendarWidget.Date"
                app:mcv_selectionColor="@color/huodong_blue"
                app:mcv_showTopBar="false"
                app:mcv_showWeekView="false" />

            <android.support.v7.widget.RecyclerView
                android:id="@+id/recycle_report"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/bgColor">

            </android.support.v7.widget.RecyclerView>

            <LinearLayout
                android:id="@+id/weekview_top"
                android:layout_width="match_parent"
                android:layout_height="44dp"
                android:background="@color/white"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周日"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周一"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周二"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周三"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周四"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周五"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:text="周六"
                    android:textSize="@dimen/textSize16" />

            </LinearLayout>

        </com.amy.monthweek.materialcalendarview.MonthWeekMaterialCalendarView>

    </LinearLayout>

</FrameLayout>