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

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.

构造及析构函数说明

com.ab.view.pullview.AbPullView.AbPullView ( Context  context)
inline

构造.

参数
contextthe context
com.ab.view.pullview.AbPullView.AbPullView ( Context  context,
AttributeSet  attrs 
)
inline

构造.

参数
contextthe context
attrsthe attrs

成员函数说明

void com.ab.view.pullview.AbPullView.addChildView ( View  child,
int  index 
)
inline

描述:向滚动容器中添加View.

参数
childthe child
indexthe index
void com.ab.view.pullview.AbPullView.addChildView ( View  child)
inline

描述:向滚动容器中添加View.

参数
childthe child
void com.ab.view.pullview.AbPullView.computeScroll ( )
inline

描述:TODO

ProgressBar com.ab.view.pullview.AbPullView.getHeaderProgressBar ( )
inline

描述:获取Header ProgressBar,用于设置自定义样式

返回
异常
AbListViewHeader com.ab.view.pullview.AbPullView.getHeaderView ( )
inline

描述:获取Header View

返回
异常
void com.ab.view.pullview.AbPullView.initView ( Context  context)
inlineprivate

初始化View.

参数
contextthe context
boolean com.ab.view.pullview.AbPullView.onTouchEvent ( MotionEvent  ev)
inline

描述:TODO

void com.ab.view.pullview.AbPullView.resetHeaderHeight ( )
inlineprivate

根据状态设置Header的位置.

void com.ab.view.pullview.AbPullView.setAbOnRefreshListener ( AbOnRefreshListener  abOnRefreshListener)
inline

描述:设置ListView的监听器.

参数
abOnRefreshListener
void com.ab.view.pullview.AbPullView.setPullRefreshEnable ( boolean  enable)
inline

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

参数
enable开关标记
void com.ab.view.pullview.AbPullView.stopRefresh ( )
inline

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

void com.ab.view.pullview.AbPullView.updateHeaderHeight ( float  delta)
inlineprivate

更新header的高度.

参数
delta差的距离

类成员变量说明

AbOnRefreshListener com.ab.view.pullview.AbPullView.mAbOnRefreshListener = null
private

The m ab on refresh listener.

boolean com.ab.view.pullview.AbPullView.mEnablePullRefresh = true
private

The m enable pull refresh.

AbListViewHeader com.ab.view.pullview.AbPullView.mHeaderView
private

The m header view.

int com.ab.view.pullview.AbPullView.mHeaderViewHeight
private

The m header view height.

float com.ab.view.pullview.AbPullView.mLastY = -1
private

The m last y.

boolean com.ab.view.pullview.AbPullView.mPullRefreshing = false
private

The m pull refreshing.

int com.ab.view.pullview.AbPullView.mScrollBack
private

The m scroll back.

Scroller com.ab.view.pullview.AbPullView.mScroller
private

The m scroller.

LinearLayout com.ab.view.pullview.AbPullView.mScrollLayout
private

The m scroll layout.

final float com.ab.view.pullview.AbPullView.OFFSET_RADIO = 1.8f
staticprivate

The Constant OFFSET_RADIO.

final int com.ab.view.pullview.AbPullView.SCROLL_DURATION = 400
staticprivate

The Constant SCROLL_DURATION.

final int com.ab.view.pullview.AbPullView.SCROLLBACK_HEADER = 0
staticprivate

The Constant SCROLLBACK_HEADER.


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