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类.
|
inline |
初始化Header.
| context | the context |
|
inline |
初始化Header.
| context | the context |
| attrs | the attrs |
|
inline |
Gets the arrow image view.
|
inline |
获取header的高度.
|
inline |
描述:获取Header ProgressBar,用于设置自定义样式.
|
inline |
描述:获取HeaderView.
|
inline |
描述:得到当前状态.
|
inline |
获取header可见的高度.
|
inlineprivate |
初始化View.
| context | the context |
|
inline |
描述:设置顶部刷新图标.
| resId | the new arrow image |
|
inline |
描述:设置背景颜色.
| color | the new background color |
|
inline |
描述:设置Header ProgressBar样式.
| indeterminateDrawable | the new header progress bar drawable |
|
inline |
设置上一次刷新时间.
| time | 时间字符串 |
|
inline |
设置状态.
| state | the new state |
|
inline |
设置提示状态文字的大小.
| size | the new state text size |
|
inline |
描述:设置字体颜色.
| color | the new text color |
|
inline |
设置提示时间文字的大小.
| size | the new time text size |
|
inline |
设置header可见的高度.
| height | the new visiable height |
|
private |
箭头图标.
|
private |
箭头图标View.
|
private |
Header的高度.
|
private |
进度图标View.
|
private |
时间的View.
|
private |
主View.
|
private |
保存上一次的刷新时间.
|
private |
上下文.
|
private |
向下的动画.
|
private |
向上的动画.
|
private |
当前状态.
|
private |
动画时间.
|
static |
显示 下拉刷新.
|
static |
显示 松开刷新.
|
static |
显示 正在刷新....
|
private |
文本提示的View.
1.8.8