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

Public 成员函数

 AbPullGridView (Context context)
 
 AbPullGridView (Context context, AttributeSet attrs)
 
void setPullRefreshEnable (boolean enable)
 
void setPullLoadEnable (boolean enable)
 
void stopRefresh ()
 
void stopLoadMore ()
 
boolean onTouchEvent (MotionEvent ev)
 
void computeScroll ()
 
void setAbOnListViewListener (AbOnListViewListener listViewListener)
 
void setAdapter (BaseAdapter adapter)
 
boolean onTouch (View arg0, MotionEvent ev)
 
void onScroll (AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
 
void onScrollStateChanged (AbsListView view, int scrollState)
 
AbListViewHeader getHeaderView ()
 
AbListViewFooter getFooterView ()
 
ProgressBar getHeaderProgressBar ()
 
ProgressBar getFooterProgressBar ()
 
- Public 成员函数 继承自 com.ab.view.pullview.AbBaseGridView
 AbBaseGridView (Context context)
 
 AbBaseGridView (Context context, AttributeSet attrs)
 
void addHeaderView (View v)
 
void addFooterView (View v)
 
GridView getGridView ()
 
void setGridView (GridView mGridView)
 
- 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 startLoadMore ()
 
void updateHeaderHeight (float delta)
 
void resetHeaderHeight ()
 

Private 属性

float mLastY = -1
 
Scroller mScroller
 
AbListViewHeader mHeaderView
 
AbListViewFooter mFooterView
 
int mHeaderViewHeight
 
boolean mEnablePullRefresh = true
 
boolean mEnablePullLoad = true
 
boolean mPullRefreshing = false
 
boolean mPullLoading
 
AbOnListViewListener mListViewListener = null
 
int mScrollBack
 
GridView mGridView = null
 
BaseAdapter mAdapter = null
 
boolean childScrollState = false
 
int count = 0
 
int mTotalItemCount
 

静态 Private 属性

static final int SCROLLBACK_HEADER = 0
 
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 AbPullGridView.

构造及析构函数说明

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

构造..

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

构造.

参数
contextthe context
attrsthe attrs

成员函数说明

void com.ab.view.pullview.AbPullGridView.computeScroll ( )
inline
ProgressBar com.ab.view.pullview.AbPullGridView.getFooterProgressBar ( )
inline

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

返回
异常
AbListViewFooter com.ab.view.pullview.AbPullGridView.getFooterView ( )
inline

描述:获取Footer View

返回
异常
ProgressBar com.ab.view.pullview.AbPullGridView.getHeaderProgressBar ( )
inline

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

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

描述:获取Header View

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

Inits the with context.

参数
contextthe context
void com.ab.view.pullview.AbPullGridView.onScroll ( AbsListView  view,
int  firstVisibleItem,
int  visibleItemCount,
int  totalItemCount 
)
inline
void com.ab.view.pullview.AbPullGridView.onScrollStateChanged ( AbsListView  view,
int  scrollState 
)
inline
boolean com.ab.view.pullview.AbPullGridView.onTouch ( View  arg0,
MotionEvent  ev 
)
inline
boolean com.ab.view.pullview.AbPullGridView.onTouchEvent ( MotionEvent  ev)
inline

描述:事件

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

根据状态设置Header的位置.

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

描述:设置ListView的监听器.

参数
listViewListener
void com.ab.view.pullview.AbPullGridView.setAdapter ( BaseAdapter  adapter)
inline

描述:设置数据列表的适配器.

参数
adapterthe new adapter
void com.ab.view.pullview.AbPullGridView.setPullLoadEnable ( boolean  enable)
inline

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

参数
enable开关标记
void com.ab.view.pullview.AbPullGridView.setPullRefreshEnable ( boolean  enable)
inline

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

参数
enable开关标记
void com.ab.view.pullview.AbPullGridView.startLoadMore ( )
inlineprivate

开始加载更多.

void com.ab.view.pullview.AbPullGridView.stopLoadMore ( )
inline

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

void com.ab.view.pullview.AbPullGridView.stopRefresh ( )
inline

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

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

更新header的高度.

参数
新增的高度

类成员变量说明

boolean com.ab.view.pullview.AbPullGridView.childScrollState = false
private

外层是否可滚动.

int com.ab.view.pullview.AbPullGridView.count = 0
private

上一次的数量

BaseAdapter com.ab.view.pullview.AbPullGridView.mAdapter = null
private

数据相关.

boolean com.ab.view.pullview.AbPullGridView.mEnablePullLoad = true
private

The m enable pull load.

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

The m enable pull refresh.

AbListViewFooter com.ab.view.pullview.AbPullGridView.mFooterView
private

The m footer view.

GridView com.ab.view.pullview.AbPullGridView.mGridView = null
private

The m grid view.

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

头部刷新View.

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

头部View的高度.

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

The m last y.

AbOnListViewListener com.ab.view.pullview.AbPullGridView.mListViewListener = null
private

The m ab on refresh listener.

boolean com.ab.view.pullview.AbPullGridView.mPullLoading
private

The m pull loading.

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

The m pull refreshing.

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

The m scroll back.

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

The m scroller.

int com.ab.view.pullview.AbPullGridView.mTotalItemCount
private

总条数.

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

The Constant OFFSET_RADIO.

final int com.ab.view.pullview.AbPullGridView.SCROLL_DURATION = 200
staticprivate

The Constant SCROLL_DURATION.

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

The Constant SCROLLBACK_HEADER.


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