| AndBase开发框架 1.5.7

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

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

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

## Public 成员函数
| AbPullListView (Context context)
| AbPullListView (Context context, AttributeSet attrs)
void | setAdapter (ListAdapter adapter)
void | setPullRefreshEnable (boolean enable)
void | setPullLoadEnable (boolean enable)
void | stopRefresh ()
void | stopLoadMore ()
boolean | onTouchEvent (MotionEvent ev)
void | computeScroll ()
void | setAbOnListViewListener (AbOnListViewListener listViewListener)
void | onScrollStateChanged (AbsListView view, int scrollState)
void | onScroll (AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
AbListViewHeader | getHeaderView ()
AbListViewFooter | getFooterView ()
ProgressBar | getHeaderProgressBar ()
ProgressBar | getFooterProgressBar ()
Public 成员函数 继承自 com.ab.view.pullview.AbMultiColumnBaseAbsListView.OnScrollListener
void | onScrollStateChanged (AbMultiColumnBaseAbsListView view, int scrollState)
void | onScroll (AbMultiColumnBaseAbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)

## Private 成员函数
void | initView (Context context)
void | updateHeaderHeight (float delta)
void | resetHeaderHeight ()
void | startLoadMore ()

## Private 属性
float | mLastY = -1
Scroller | mScroller
AbOnListViewListener | mListViewListener
AbListViewHeader | mHeaderView
AbListViewFooter | mFooterView
int | mHeaderViewHeight
int | mFooterViewHeight
boolean | mEnablePullRefresh = true
boolean | mEnablePullLoad = true
boolean | mPullRefreshing = false
boolean | mPullLoading
boolean | mIsFooterReady = false
int | mTotalItemCount
int | mScrollBack
ListAdapter | mAdapter = null
int | count = 0

## 静态 Private 属性
static final int | SCROLLBACK_HEADER = 0
static final int | SCROLLBACK_FOOTER = 1
static final int | SCROLL_DURATION = 200
static final float | OFFSET_RADIO = 1.8f

## 额外继承的成员函数
静态 Public 属性 继承自 com.ab.view.pullview.AbMultiColumnBaseAbsListView.OnScrollListener
static int | SCROLL_STATE_IDLE = 0
static int | SCROLL_STATE_TOUCH_SCROLL = 1
static int | SCROLL_STATE_FLING = 2

## 详细描述

The Class AbPullListView.

## 构造及析构函数说明

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

构造.

参数

  context | the context

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

构造.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

void com.ab.view.pullview.AbPullListView.computeScroll | ( | ) |  |
| inline

描述：TODO

参见
  android.view.View::computeScroll()

ProgressBar com.ab.view.pullview.AbPullListView.getFooterProgressBar | ( | ) |  |
| inline

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

返回

异常

AbListViewFooter com.ab.view.pullview.AbPullListView.getFooterView | ( | ) |  |
| inline

描述：获取Footer View

返回

异常

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

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

返回

异常

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

描述：获取Header View

返回

异常

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

初始化View.

参数

  context | the context

void com.ab.view.pullview.AbPullListView.onScroll | ( | AbsListView | view,
|  | int | firstVisibleItem,
|  | int | visibleItemCount,
|  | int | totalItemCount
| ) |  |
| inline

描述：TODO

void com.ab.view.pullview.AbPullListView.onScrollStateChanged | ( | AbsListView | view,
|  | int | scrollState
| ) |  |
| inline

描述：TODO

boolean com.ab.view.pullview.AbPullListView.onTouchEvent | ( | MotionEvent | ev) |  |
| inline

描述：onTouchEvent

void com.ab.view.pullview.AbPullListView.resetHeaderHeight | ( | ) |  |
| inline private

根据状态设置Header的位置.

void com.ab.view.pullview.AbPullListView.setAbOnListViewListener | ( | AbOnListViewListener | listViewListener) |  |
| inline

描述：设置ListView的监听器.

参数

  listViewListener |

void com.ab.view.pullview.AbPullListView.setAdapter | ( | ListAdapter | adapter) |  |
| inline

描述：设置适配器

void com.ab.view.pullview.AbPullListView.setPullLoadEnable | ( | boolean | enable) |  |
| inline

打开或者关闭加载更多功能.

参数

  enable | 开关标记

void com.ab.view.pullview.AbPullListView.setPullRefreshEnable | ( | boolean | enable) |  |
| inline

打开或者关闭下拉刷新功能.

参数

  enable | 开关标记

void com.ab.view.pullview.AbPullListView.startLoadMore | ( | ) |  |
| inline private

开始加载更多.

void com.ab.view.pullview.AbPullListView.stopLoadMore | ( | ) |  |
| inline

停止加载更多并重置footer的状态.

void com.ab.view.pullview.AbPullListView.stopRefresh | ( | ) |  |
| inline

停止刷新并重置header的状态.

void com.ab.view.pullview.AbPullListView.updateHeaderHeight | ( | float | delta) |  |
| inline private

更新header的高度.

参数

  delta | 差的距离

## 类成员变量说明

int com.ab.view.pullview.AbPullListView.count = 0
| private

上一次的数量

ListAdapter com.ab.view.pullview.AbPullListView.mAdapter = null
| private

数据相关.

boolean com.ab.view.pullview.AbPullListView.mEnablePullLoad = true
| private

The m enable pull load.

boolean com.ab.view.pullview.AbPullListView.mEnablePullRefresh = true
| private

The m enable pull refresh.

AbListViewFooter com.ab.view.pullview.AbPullListView.mFooterView
| private

The m footer view.

int com.ab.view.pullview.AbPullListView.mFooterViewHeight
| private

The m footer view height.

AbListViewHeader com.ab.view.pullview.AbPullListView.mHeaderView
| private

The m header view.

int com.ab.view.pullview.AbPullListView.mHeaderViewHeight
| private

The m header view height.

boolean com.ab.view.pullview.AbPullListView.mIsFooterReady = false
| private

The m is footer ready.

float com.ab.view.pullview.AbPullListView.mLastY = -1
| private

The m last y.

AbOnListViewListener com.ab.view.pullview.AbPullListView.mListViewListener
| private

The m list view listener.

boolean com.ab.view.pullview.AbPullListView.mPullLoading
| private

The m pull loading.

boolean com.ab.view.pullview.AbPullListView.mPullRefreshing = false
| private

The m pull refreshing.

int com.ab.view.pullview.AbPullListView.mScrollBack
| private

The m scroll back.

Scroller com.ab.view.pullview.AbPullListView.mScroller
| private

The m scroller.

int com.ab.view.pullview.AbPullListView.mTotalItemCount
| private

总条数.

final float com.ab.view.pullview.AbPullListView.OFFSET_RADIO = 1.8f
| static private

The Constant OFFSET_RADIO.

final int com.ab.view.pullview.AbPullListView.SCROLL_DURATION = 200
| static private

The Constant SCROLL_DURATION.

final int com.ab.view.pullview.AbPullListView.SCROLLBACK_FOOTER = 1
| static private

The Constant SCROLLBACK_FOOTER.

final int com.ab.view.pullview.AbPullListView.SCROLLBACK_HEADER = 0
| static private

The Constant SCROLLBACK_HEADER.

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

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