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.

参数
contextthe context
timeBgthe time bg
timeColonthe time colon
timeBmpthe time bmp
apmBmpthe apm bmp

成员函数说明

boolean com.ab.view.app.AbNumberClock.get24HourMode ( )
inlineprivate

Gets the 24 hour mode.

返回
the 24 hour mode
void com.ab.view.app.AbNumberClock.onAttachedToWindow ( )
inlineprotected
void com.ab.view.app.AbNumberClock.onDetachedFromWindow ( )
inlineprotected
void com.ab.view.app.AbNumberClock.onDraw ( Canvas  canvas)
inlineprotected
void com.ab.view.app.AbNumberClock.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
inlineprotected
void com.ab.view.app.AbNumberClock.onSizeChanged ( int  w,
int  h,
int  oldw,
int  oldh 
)
inlineprotected
void com.ab.view.app.AbNumberClock.onTimeChanged ( )
inlineprivate

On time changed.

void com.ab.view.app.AbNumberClock.updateContentDescription ( Time  time)
inlineprivate

Update content description.

参数
timethe 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.


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