类 | |
| interface | AbOnItemClickListener |
Public 成员函数 | |
| CalendarView (Context context) | |
| CalendarView (Context context, AttributeSet attrs) | |
| void | initRow () |
| void | setOnItemClickListener (AbOnItemClickListener mAbOnItemClickListener) |
| void | setHeaderHeight (int height) |
| void | setHeaderTextSize (int size) |
| void | rebuildCalendar (Calendar calendar) |
| void | setHeaderBackgroundResource (int resid) |
| String | getStrDateAtPosition (int position) |
| int | getCalendarCellSize () |
| ArrayList< CalendarCell > | getCalendarCells () |
| String | getCalSelected () |
静态 Public 属性 | |
| static Calendar | calStartDate = Calendar.getInstance() |
Private 成员函数 | |
| void | initStartDateForMonth () |
| void | updateCalendar () |
| void | initCalendar () |
Private 属性 | |
| String | TAG = "CalendarView" |
| Context | context |
| LinearLayout.LayoutParams | layoutParamsFW = null |
| LinearLayout | mLinearLayoutHeader = null |
| LinearLayout | mLinearLayoutContent = null |
| CalendarHeader | mCalendarHeader = null |
| int | width = 320 |
| int | height = 480 |
| int | headerHeight = 45 |
| int | rowHeight = 40 |
| int | cellWidth = 40 |
| Calendar | calToday = Calendar.getInstance() |
| Calendar | calSelected = null |
| Calendar | calCalendar = Calendar.getInstance() |
| int | currentMonth = 0 |
| int | currentYear = 0 |
| int | firstDayOfWeek = Calendar.SUNDAY |
| ArrayList< CalendarCell > | mCalendarCells = new ArrayList<CalendarCell>() |
| AbOnItemClickListener | mOnItemClickListener |
| AbOnItemClickListener | mOnDayCellClick |
© 2012 amsoft.cn 名称:CalendarView.java 描述:日历View
|
inline |
Instantiates a new ab grid view.
| context | the context |
|
inline |
Instantiates a new calendar view.
| context | the context |
| attrs | the attrs |
|
inline |
描述:获取当前日历的所有条目.
|
inline |
描述:获取这个日历的总日期数.
|
inline |
描述:获取选中的日期,默认为今天.
|
inline |
描述:根据索引获取选择的日期.
| position | the position |
|
inlineprivate |
描述:更新日历.
|
inline |
Inits the row.
|
inlineprivate |
描述:由于日历上的日期都是从周日开始的,计算第一个单元格的日期.
|
inline |
Rebuild calendar.
| calendar | the calendar |
|
inline |
描述:设置标题背景.
| resid | the new header background resource |
|
inline |
Sets the header height.
| height | the new header height |
|
inline |
Sets the header text size.
| size | the new header text size |
|
inline |
Sets the on item click listener.
| mAbOnItemClickListener | the new on item click listener |
|
inlineprivate |
描述:更新日历.
|
private |
The cal calendar.
|
private |
The cal selected.
|
static |
The cal start date.
|
private |
The cal today.
|
private |
The cell width.
|
private |
The context.
|
private |
The current month.
|
private |
The current year.
|
private |
The first day of week.
|
private |
星期头的行高.
|
private |
The height.
|
private |
The layout params fw.
|
private |
The m calendar cells.
|
private |
The m calendar header.
|
private |
The m linear layout content.
|
private |
The m linear layout header.
|
private |
点击日历,触发事件.
|
private |
The m on item click listener.
|
private |
The row height.
|
private |
The tag.
|
private |
The width.
1.8.8