android 自定义日历控件
日历控件View: [java] view plain copy print ? /** * 日历控件 功能:获得点选的日期区间 * */ public class CalendarView extends View implements View.OnTouchListener { private final static String TAG = "anCalendar"; private Date selectedStartDate; private Date selectedEndDate; private Date curDate; // 当前日历显示的月 private Date today; // 今天的日期文字显示红色 private Date downDate; // 手指按下状态时临时日期 private Date showFirstDate, showLastDate; // 日历显示的第一个日期和最后一个日期 private int downIndex; // 按下的格子索引 private Calendar calendar; private Surface surface; private int[] date = new int[ 42]; // 日历显示数字 private int curStartIndex, curEndIndex; //