Public 成员函数 | |
| AbPullView (Context context) | |
| AbPullView (Context context, AttributeSet attrs) | |
| void | setPullRefreshEnable (boolean enable) |
| void | stopRefresh () |
| boolean | onTouchEvent (MotionEvent ev) |
| void | computeScroll () |
| void | setAbOnRefreshListener (AbOnRefreshListener abOnRefreshListener) |
| void | addChildView (View child, int index) |
| void | addChildView (View child) |
| AbListViewHeader | getHeaderView () |
| ProgressBar | getHeaderProgressBar () |
Private 成员函数 | |
| void | initView (Context context) |
| void | updateHeaderHeight (float delta) |
| void | resetHeaderHeight () |
Private 属性 | |
| float | mLastY = -1 |
| Scroller | mScroller |
| LinearLayout | mScrollLayout |
| AbListViewHeader | mHeaderView |
| int | mHeaderViewHeight |
| boolean | mEnablePullRefresh = true |
| boolean | mPullRefreshing = false |
| AbOnRefreshListener | mAbOnRefreshListener = null |
| int | mScrollBack |
静态 Private 属性 | |
| static final int | SCROLLBACK_HEADER = 0 |
| static final int | SCROLL_DURATION = 400 |
| static final float | OFFSET_RADIO = 1.8f |
The Class AbPullView.
|
inline |
构造.
| context | the context |
|
inline |
构造.
| context | the context |
| attrs | the attrs |
|
inline |
描述:向滚动容器中添加View.
| child | the child |
| index | the index |
|
inline |
描述:向滚动容器中添加View.
| child | the child |
|
inline |
描述:TODO
|
inline |
描述:获取Header ProgressBar,用于设置自定义样式
|
inline |
描述:获取Header View
|
inlineprivate |
初始化View.
| context | the context |
|
inline |
描述:TODO
|
inlineprivate |
根据状态设置Header的位置.
|
inline |
描述:设置ListView的监听器.
| abOnRefreshListener |
|
inline |
打开或者关闭下拉刷新功能.
| enable | 开关标记 |
|
inline |
停止刷新并重置header的状态.
|
inlineprivate |
更新header的高度.
| delta | 差的距离 |
|
private |
The m ab on refresh listener.
|
private |
The m enable pull refresh.
|
private |
The m header view.
|
private |
The m header view height.
|
private |
The m last y.
|
private |
The m pull refreshing.
|
private |
The m scroll back.
|
private |
The m scroller.
|
private |
The m scroll layout.
|
staticprivate |
The Constant OFFSET_RADIO.
|
staticprivate |
The Constant SCROLL_DURATION.
|
staticprivate |
The Constant SCROLLBACK_HEADER.
1.8.4