Public 成员函数 | |
| CalendarCell (Context context, int position, int iWidth, int iHeight) | |
| Calendar | getThisCellDate () |
| void | setThisCellDate (int iYear, int iMonth, int iDay, Boolean isToday, Boolean isSelected, Boolean isHoliday, int isActiveMonth, boolean hasRecord) |
| boolean | IsViewFocused () |
| void | drawDayNumber (Canvas canvas) |
| int | getCellColor () |
| void | setSelected (boolean selected) |
| void | setHasRecord (boolean hasRecord) |
| void | setOnItemClickListener (AbOnItemClickListener onItemClickListener) |
| void | doItemClick () |
| boolean | onTouchEvent (MotionEvent event) |
| boolean | onKeyDown (int keyCode, KeyEvent event) |
| void | createReminder (Canvas canvas, int Color) |
| boolean | isActiveMonth () |
静态 Public 成员函数 | |
| static void | startAlphaAnimIn (View view) |
静态 Public 属性 | |
| static int | ANIM_ALPHA_DURATION = 100 |
Protected 成员函数 | |
| void | onDraw (Canvas canvas) |
Private 成员函数 | |
| void | drawDayView (Canvas canvas, boolean bFocused) |
| int | getTextHeight () |
Private 属性 | |
| int | textSize = 22 |
| AbOnItemClickListener | mOnItemClickListener |
| Paint | pt = new Paint() |
| RectF | rect = new RectF() |
| String | textDateValue = "" |
| int | iDateYear = 0 |
| int | iDateMonth = 0 |
| int | iDateDay = 0 |
| boolean | isSelected = false |
| boolean | isActiveMonth = false |
| boolean | isToday = false |
| boolean | bTouchedDown = false |
| boolean | isHoliday = false |
| boolean | hasRecord = false |
| int | position = 0 |
| int | selectCellColor = Color.rgb(150, 195, 70) |
| int | bgColor = Color.rgb(163,163, 163) |
| int | numberColor = Color.rgb(86, 86, 86) |
| int | cellColor = Color.WHITE |
| int | notActiveMonthColor = Color.rgb(178, 178, 178) |
| int | todayColor = Color.rgb(150, 200, 220) |
© 2012 amsoft.cn 名称:CalendarCell.java 描述:日历控件单元格绘制类
|
inline |
Instantiates a new calendar cell.
| context | the context |
| position | the position |
| iWidth | the i width |
| iHeight | the i height |
|
inline |
描述:有记录时的样子.
| canvas | the canvas |
| Color | the color |
|
inline |
描述:执行点击事件.
|
inline |
描述:绘制日历中的数字.
| canvas | the canvas |
|
inlineprivate |
描述:绘制日历方格.
| canvas | the canvas |
| bFocused | the b focused |
|
inline |
描述:根据条件返回不同颜色值.
|
inlineprivate |
描述:得到字体高度.
|
inline |
描述:获取这个Cell的日期.
|
inline |
描述:是否为活动的月.
|
inline |
Checks if is view focused.
|
inlineprotected |
描述:重载绘制方法.
| canvas | the canvas |
|
inline |
描述:TODO.
| keyCode | the key code |
| event | the event |
|
inline |
描述:TODO.
| event | the event |
|
inline |
描述:设置是否有数据.
| hasRecord | the new checks for record |
|
inline |
描述:设置点击事件.
| onItemClickListener | the new on item click listener |
|
inline |
描述:设置是否被选中.
| selected | the new selected |
|
inline |
描述:设置这个Cell的日期.
| iYear | the i year |
| iMonth | the i month |
| iDay | the i day |
| isToday | the is today |
| isSelected | the is selected |
| isHoliday | the is holiday |
| isActiveMonth | the is active month |
| hasRecord | the has record |
|
inlinestatic |
描述:动画不透明度渐变.
| view | the view |
|
static |
The anim alpha duration.
|
private |
The bg color.
|
private |
The b touched down.
|
private |
The cell color.
|
private |
The has record.
|
private |
The i date day.
|
private |
The i date month.
|
private |
The i date year.
|
private |
The is active month.
|
private |
The is holiday.
|
private |
The is selected.
|
private |
The is today.
|
private |
The m on item click listener.
|
private |
The not active month color.
|
private |
The number color.
|
private |
The position.
|
private |
The pt.
|
private |
The rect.
|
private |
The select cell color.
|
private |
The text date value.
|
private |
The text size.
|
private |
The today color.
1.8.8