| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| AbListViewHeader (Context context)
| AbListViewHeader (Context context, AttributeSet attrs)
void | setState (int state)
void | setVisiableHeight (int height)
int | getVisiableHeight ()
LinearLayout | getHeaderView ()
void | setRefreshTime (String time)
int | getHeaderHeight ()
void | setTextColor (int color)
void | setBackgroundColor (int color)
ProgressBar | getHeaderProgressBar ()
void | setHeaderProgressBarDrawable (Drawable indeterminateDrawable)
int | getState ()
void | setStateTextSize (int size)
void | setTimeTextSize (int size)
ImageView | getArrowImageView ()
void | setArrowImage (int resId)

## 静态 Public 属性
static final int | STATE_NORMAL = 0
static final int | STATE_READY = 1
static final int | STATE_REFRESHING = 2

## Private 成员函数
void | initView (Context context)

## Private 属性
Context | mContext
LinearLayout | headerView
ImageView | arrowImageView
ProgressBar | headerProgressBar
Bitmap | arrowImage = null
TextView | tipsTextview
TextView | headerTimeView
int | mState = -1
Animation | mRotateUpAnim
Animation | mRotateDownAnim
final int | ROTATE_ANIM_DURATION = 180
String | lastRefreshTime = null
int | headerHeight

## 详细描述

© 2012 amsoft.cn 名称：AbListViewHeader.java 描述：下拉刷新的Header View类.

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-01-17 下午11:52:13

## 构造及析构函数说明

com.ab.view.pullview.AbListViewHeader.AbListViewHeader | ( | Context | context | ) |
| inline

初始化Header.

参数

  context | the context

com.ab.view.pullview.AbListViewHeader.AbListViewHeader | ( | Context | context,
|  | AttributeSet | attrs
| ) |  |
| inline

初始化Header.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

ImageView com.ab.view.pullview.AbListViewHeader.getArrowImageView | ( |  | ) |
| inline

Gets the arrow image view.

返回
  the arrow image view

int com.ab.view.pullview.AbListViewHeader.getHeaderHeight | ( |  | ) |
| inline

获取header的高度.

返回
  高度

ProgressBar com.ab.view.pullview.AbListViewHeader.getHeaderProgressBar | ( |  | ) |
| inline

描述：获取Header ProgressBar，用于设置自定义样式.

返回
  the header progress bar

LinearLayout com.ab.view.pullview.AbListViewHeader.getHeaderView | ( |  | ) |
| inline

描述：获取HeaderView.

返回
  the header view

int com.ab.view.pullview.AbListViewHeader.getState | ( |  | ) |
| inline

描述：得到当前状态.

返回
  the state

int com.ab.view.pullview.AbListViewHeader.getVisiableHeight | ( |  | ) |
| inline

获取header可见的高度.

返回
  the visiable height

void com.ab.view.pullview.AbListViewHeader.initView | ( | Context | context | ) |
| inline private

初始化View.

参数

  context | the context

void com.ab.view.pullview.AbListViewHeader.setArrowImage | ( | int | resId | ) |
| inline

描述：设置顶部刷新图标.

参数

  resId | the new arrow image

void com.ab.view.pullview.AbListViewHeader.setBackgroundColor | ( | int | color | ) |
| inline

描述：设置背景颜色.

参数

  color | the new background color

void com.ab.view.pullview.AbListViewHeader.setHeaderProgressBarDrawable | ( | Drawable | indeterminateDrawable | ) |
| inline

描述：设置Header ProgressBar样式.

参数

  indeterminateDrawable | the new header progress bar drawable

void com.ab.view.pullview.AbListViewHeader.setRefreshTime | ( | String | time | ) |
| inline

设置上一次刷新时间.

参数

  time | 时间字符串

void com.ab.view.pullview.AbListViewHeader.setState | ( | int | state | ) |
| inline

设置状态.

参数

  state | the new state

void com.ab.view.pullview.AbListViewHeader.setStateTextSize | ( | int | size | ) |
| inline

设置提示状态文字的大小.

参数

  size | the new state text size

void com.ab.view.pullview.AbListViewHeader.setTextColor | ( | int | color | ) |
| inline

描述：设置字体颜色.

参数

  color | the new text color

void com.ab.view.pullview.AbListViewHeader.setTimeTextSize | ( | int | size | ) |
| inline

设置提示时间文字的大小.

参数

  size | the new time text size

void com.ab.view.pullview.AbListViewHeader.setVisiableHeight | ( | int | height | ) |
| inline

设置header可见的高度.

参数

  height | the new visiable height

## 类成员变量说明

Bitmap com.ab.view.pullview.AbListViewHeader.arrowImage = null
| private

箭头图标.

ImageView com.ab.view.pullview.AbListViewHeader.arrowImageView
| private

箭头图标View.

int com.ab.view.pullview.AbListViewHeader.headerHeight
| private

Header的高度.

ProgressBar com.ab.view.pullview.AbListViewHeader.headerProgressBar
| private

进度图标View.

TextView com.ab.view.pullview.AbListViewHeader.headerTimeView
| private

时间的View.

LinearLayout com.ab.view.pullview.AbListViewHeader.headerView
| private

主View.

String com.ab.view.pullview.AbListViewHeader.lastRefreshTime = null
| private

保存上一次的刷新时间.

Context com.ab.view.pullview.AbListViewHeader.mContext
| private

上下文.

Animation com.ab.view.pullview.AbListViewHeader.mRotateDownAnim
| private

向下的动画.

Animation com.ab.view.pullview.AbListViewHeader.mRotateUpAnim
| private

向上的动画.

int com.ab.view.pullview.AbListViewHeader.mState = -1
| private

当前状态.

final int com.ab.view.pullview.AbListViewHeader.ROTATE_ANIM_DURATION = 180
| private

动画时间.

final int com.ab.view.pullview.AbListViewHeader.STATE_NORMAL = 0
| static

显示 下拉刷新.

final int com.ab.view.pullview.AbListViewHeader.STATE_READY = 1
| static

显示 松开刷新.

final int com.ab.view.pullview.AbListViewHeader.STATE_REFRESHING = 2
| static

显示 正在刷新....

TextView com.ab.view.pullview.AbListViewHeader.tipsTextview
| private

文本提示的View.

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

- src/com/ab/view/pullview/AbListViewHeader.java