| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | Protected 成员函数 | Private 属性 | 所有成员列表
com.ab.view.app.AbCalendar类 参考
类 com.ab.view.app.AbCalendar 继承关系图:

## Public 成员函数
| AbCalendar (Context context, Drawable caleBg, Drawable caleDot, Point posYear, List< Drawable > dYearArray, Point posMonth, List< Drawable > dMonthArray, Point posDate, List< Drawable > dDateArray, Point posWeek, List< Drawable > dWeekArray)
float | getDateTextSize ()
void | setDateTextSize (float dateTextSize)

## Protected 成员函数
void | onAttachedToWindow ()
void | onDetachedFromWindow ()
void | onMeasure (int widthMeasureSpec, int heightMeasureSpec)
void | onSizeChanged (int w, int h, int oldw, int oldh)
void | onDraw (Canvas canvas)

## Private 属性
Time | mCalendar
Drawable | mCaleBg
Drawable | mCaleDot
Point | mPosYear
List< Drawable > | dArrayYear
Point | mPosMonth
List< Drawable > | dArrayMonth
Point | mPosDate
List< Drawable > | dArrayDate
Point | mPosWeek
List< Drawable > | dArrayWeek
int | mBgWidth
int | mBgHeight
float | mDateTextSize
final BroadcastReceiver | dateChangedReceiver
boolean | mAttached

## 详细描述

© 2012 amsoft.cn 名称：AbCalendar.java 描述：自定义显示日期的view

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-11-7 下午2:35:05

## 构造及析构函数说明

com.ab.view.app.AbCalendar.AbCalendar | ( | Context | context,
|  | Drawable | caleBg,
|  | Drawable | caleDot,
|  | Point | posYear,
|  | List< Drawable > | dYearArray,
|  | Point | posMonth,
|  | List< Drawable > | dMonthArray,
|  | Point | posDate,
|  | List< Drawable > | dDateArray,
|  | Point | posWeek,
|  | List< Drawable > | dWeekArray
| ) |  |
| inline

Instantiates a new ab calendar.

参数

  context | the context
  caleBg | the cale bg
  caleDot | the cale dot
  posYear | the pos year
  dYearArray | the d year array
  posMonth | the pos month
  dMonthArray | the d month array
  posDate | the pos date
  dDateArray | the d date array
  posWeek | the pos week
  dWeekArray | the d week array

## 成员函数说明

float com.ab.view.app.AbCalendar.getDateTextSize | ( |  | ) |
| inline

Gets the date text size.

返回
  the date text size

void com.ab.view.app.AbCalendar.onAttachedToWindow | ( |  | ) |
| inline protected

void com.ab.view.app.AbCalendar.onDetachedFromWindow | ( |  | ) |
| inline protected

void com.ab.view.app.AbCalendar.onDraw | ( | Canvas | canvas | ) |
| inline protected

void com.ab.view.app.AbCalendar.onMeasure | ( | int | widthMeasureSpec,
|  | int | heightMeasureSpec
| ) |  |
| inline protected

void com.ab.view.app.AbCalendar.onSizeChanged | ( | int | w,
|  | int | h,
|  | int | oldw,
|  | int | oldh
| ) |  |
| inline protected

void com.ab.view.app.AbCalendar.setDateTextSize | ( | float | dateTextSize | ) |
| inline

Sets the date text size.

参数

  dateTextSize | the new date text size

## 类成员变量说明

List<Drawable> com.ab.view.app.AbCalendar.dArrayDate
| private

The d array date.

List<Drawable> com.ab.view.app.AbCalendar.dArrayMonth
| private

The d array month.

List<Drawable> com.ab.view.app.AbCalendar.dArrayWeek
| private

The d array week.

List<Drawable> com.ab.view.app.AbCalendar.dArrayYear
| private

The d array year.

final BroadcastReceiver com.ab.view.app.AbCalendar.dateChangedReceiver
| private

初始值:
= new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_TIMEZONE_CHANGED)) {
String tz = intent.getStringExtra("time-zone");
mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
}
invalidate();
}
}

The date changed receiver.

boolean com.ab.view.app.AbCalendar.mAttached
| private

The m attached.

int com.ab.view.app.AbCalendar.mBgHeight
| private

The m bg height.

int com.ab.view.app.AbCalendar.mBgWidth
| private

The m bg width.

Drawable com.ab.view.app.AbCalendar.mCaleBg
| private

The m cale bg.

Drawable com.ab.view.app.AbCalendar.mCaleDot
| private

The m cale dot.

Time com.ab.view.app.AbCalendar.mCalendar
| private

The m calendar.

float com.ab.view.app.AbCalendar.mDateTextSize
| private

The m date text size.

Point com.ab.view.app.AbCalendar.mPosDate
| private

The m pos date.

Point com.ab.view.app.AbCalendar.mPosMonth
| private

The m pos month.

Point com.ab.view.app.AbCalendar.mPosWeek
| private

The m pos week.

Point com.ab.view.app.AbCalendar.mPosYear
| private

The m pos year.

该类的文档由以下文件生成:

- src/com/ab/view/app/AbCalendar.java