一、布局文件
<LinearLayout 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:orientation="vertical"
tools:context="com.cn.fqs.dd.ui.CalendarActivity" >
<include
android:id="@+id/include_calendar_actionbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/actionbar"/>
<TextView
android:id="@+id/show"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#191970"
android:gravity="center"
android:text="XXXX年XX月XX日"
android:textColor="#ffffffff"
android:textSize="18sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:textColor="#ffffffff"
android:background="#ff669900"
android:textSize="12sp"
android:text="星期天"/>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:background="#ffafafaf"
android:textColor="#ffffffff"
android:textSize="12sp"
android:text="星期一"/>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:background="#ffafafaf"
android:textColor="#ffffffff"
android:textSize="12sp"
android:text="星期二"/>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:background="#ffafafaf"
android:textColor="#ffffffff"
android:textSize="12sp"
android:text="星期三"/>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:background="#ffafafaf"
android:textColor="#ffffffff"
android:textSize="12sp"
android:text="星期四"/>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:background="#ffafafaf