| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| AbNumberClock (Context context, Drawable timeBg, Drawable timeColon, List< Drawable > timeBmp, List< Drawable > apmBmp)

## 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 成员函数
boolean | get24HourMode ()
void | onTimeChanged ()
void | updateContentDescription (Time time)

## Private 属性
Time | mCalendar
Drawable | mTimeBg
Drawable | mTimeColon
List< Drawable > | dTimeBmp
List< Drawable > | dApmBmp
int | mTimeBgWidth
int | mTimeBgHeight
boolean | mAttached
final Handler | mHandler = new Handler()
String | mMinutes
String | mHour
String | mSecond
final BroadcastReceiver | mIntentReceiver

## 详细描述

© 2012 amsoft.cn 名称：AbNumberClock.java 描述：自定义数字时钟的view

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-11-6 上午10:19:42

## 构造及析构函数说明

com.ab.view.app.AbNumberClock.AbNumberClock | ( | Context | context,
|  | Drawable | timeBg,
|  | Drawable | timeColon,
|  | List< Drawable > | timeBmp,
|  | List< Drawable > | apmBmp
| ) |  |
| inline

Instantiates a new ab number clock.

参数

  context | the context
  timeBg | the time bg
  timeColon | the time colon
  timeBmp | the time bmp
  apmBmp | the apm bmp

## 成员函数说明

boolean com.ab.view.app.AbNumberClock.get24HourMode | ( |  | ) |
| inline private

Gets the 24 hour mode.

返回
  the 24 hour mode

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

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

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

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

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

void com.ab.view.app.AbNumberClock.onTimeChanged | ( |  | ) |
| inline private

On time changed.

void com.ab.view.app.AbNumberClock.updateContentDescription | ( | Time | time | ) |
| inline private

Update content description.

参数

  time | the time

## 类成员变量说明

List<Drawable> com.ab.view.app.AbNumberClock.dApmBmp
| private

The d apm bmp.

List<Drawable> com.ab.view.app.AbNumberClock.dTimeBmp
| private

The d time bmp.

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

The m attached.

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

The m calendar.

final Handler com.ab.view.app.AbNumberClock.mHandler = new Handler()
| private

The m handler.

String com.ab.view.app.AbNumberClock.mHour
| private

The m hour.

final BroadcastReceiver com.ab.view.app.AbNumberClock.mIntentReceiver
| 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());
}
}
}

The m intent receiver.

String com.ab.view.app.AbNumberClock.mMinutes
| private

The m minutes.

String com.ab.view.app.AbNumberClock.mSecond
| private

The m second.

Drawable com.ab.view.app.AbNumberClock.mTimeBg
| private

The m time bg.

int com.ab.view.app.AbNumberClock.mTimeBgHeight
| private

The m time bg height.

int com.ab.view.app.AbNumberClock.mTimeBgWidth
| private

The m time bg width.

Drawable com.ab.view.app.AbNumberClock.mTimeColon
| private

The m time colon.

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

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