| AndBase开发框架 1.6

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

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

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

## 类
class | AdapterDataSetObserver
interface | OnScrollListener

## Public 成员函数
| AbMultiColumnListView (Context context)
| AbMultiColumnListView (Context context, AttributeSet attrs)
| AbMultiColumnListView (Context context, AttributeSet attrs, int defStyle)
AbMultiColumnListAdapter | getAdapter ()
void | setAdapter (AbMultiColumnListAdapter adapter)
boolean | checkVisibility (int position)
OnScrollListener | getOnScrollListener ()
void | setOnScrollListener (OnScrollListener onScrollListener)
int[] | getReleaseImageResIds ()
void | setReleaseImageResIds (int[] releaseImageResIds)

## Protected 成员函数
void | onLayout (boolean changed, int l, int t, int r, int b)
void | layoutChildren ()
void | addChildren ()
void | onScrollChanged (int x, int y, int oldx, int oldy)

## Private 成员函数
void | findColumnToAdd (AbViewInfo viewInfo)

## Private 属性
int | columnWidth
int | firstColumnHeight
int | secondColumnHeight
int | thirdColumnHeight
boolean | loadOnce
LinearLayout | firstColumn
LinearLayout | secondColumn
LinearLayout | thirdColumn
LinearLayout | scrollLayout
AbMultiColumnListAdapter | mAdapter = null
AdapterDataSetObserver | mDataSetObserver
List< AbViewInfo > | mItems = null
OnScrollListener | mOnScrollListener = null
int[] | mReleaseImageResIds

## 静态 Private 属性
static int | scrollViewHeight

## 详细描述

The Class AbMultiColumnListView.

## 构造及析构函数说明

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

Instantiates a new ab multi column list view.

参数

  context | the context

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

Instantiates a new ab multi column list view.

参数

  context | the context
  attrs | the attrs

com.ab.view.pullview.AbMultiColumnListView.AbMultiColumnListView | ( | Context | context,
|  | AttributeSet | attrs,
|  | int | defStyle
| ) |  |
| inline

Instantiates a new ab multi column list view.

参数

  context | the context
  attrs | the attrs
  defStyle | the def style

## 成员函数说明

void com.ab.view.pullview.AbMultiColumnListView.addChildren | ( |  | ) |
| inline protected

Adds the children.

boolean com.ab.view.pullview.AbMultiColumnListView.checkVisibility | ( | int | position | ) |
| inline

遍历List中的每个View，对可见性进行检查.

参数

  position | the position

返回
  true, if successful

void com.ab.view.pullview.AbMultiColumnListView.findColumnToAdd | ( | AbViewInfo | viewInfo | ) |
| inline private

找到此时应该添加View的一列。原则就是对三列的高度进行判断， 当前高度最小的一列就是应该添加的一列。.

参数

  viewInfo | the view info

AbMultiColumnListAdapter com.ab.view.pullview.AbMultiColumnListView.getAdapter | ( |  | ) |
| inline

Gets the adapter.

返回
  the adapter

OnScrollListener com.ab.view.pullview.AbMultiColumnListView.getOnScrollListener | ( |  | ) |
| inline

Gets the on scroll listener.

返回
  the on scroll listener

int [] com.ab.view.pullview.AbMultiColumnListView.getReleaseImageResIds | ( |  | ) |
| inline

Gets the release image res ids.

返回
  the release image res ids

void com.ab.view.pullview.AbMultiColumnListView.layoutChildren | ( |  | ) |
| inline protected

Layout children.

void com.ab.view.pullview.AbMultiColumnListView.onLayout | ( | boolean | changed,
|  | int | l,
|  | int | t,
|  | int | r,
|  | int | b
| ) |  |
| inline protected

进行一些关键性的初始化操作，获取AbMultiColumnListView的高度， 以及得到第一列的宽度值。并在这里开始加载第一页的图片。.

参数

  changed | the changed
  l | the l
  t | the t
  r | the r
  b | the b

void com.ab.view.pullview.AbMultiColumnListView.onScrollChanged | ( | int | x,
|  | int | y,
|  | int | oldx,
|  | int | oldy
| ) |  |
| inline protected

void com.ab.view.pullview.AbMultiColumnListView.setAdapter | ( | AbMultiColumnListAdapter | adapter | ) |
| inline

Sets the adapter.

参数

  adapter | the new adapter

void com.ab.view.pullview.AbMultiColumnListView.setOnScrollListener | ( | OnScrollListener | onScrollListener | ) |
| inline

Sets the on scroll listener.

参数

  onScrollListener | the new on scroll listener

void com.ab.view.pullview.AbMultiColumnListView.setReleaseImageResIds | ( | int[] | releaseImageResIds | ) |
| inline

Sets the release image res ids.

参数

  releaseImageResIds | the new release image res ids

## 类成员变量说明

int com.ab.view.pullview.AbMultiColumnListView.columnWidth
| private

每一列的宽度.

LinearLayout com.ab.view.pullview.AbMultiColumnListView.firstColumn
| private

第一列的布局.

int com.ab.view.pullview.AbMultiColumnListView.firstColumnHeight
| private

当前第一列的高度.

boolean com.ab.view.pullview.AbMultiColumnListView.loadOnce
| private

是否已加载过一次layout，这里onLayout中的初始化只需加载一次.

AbMultiColumnListAdapter com.ab.view.pullview.AbMultiColumnListView.mAdapter = null
| private

Adapter.

AdapterDataSetObserver com.ab.view.pullview.AbMultiColumnListView.mDataSetObserver
| private

Adapter改变的监听器.

List<AbViewInfo> com.ab.view.pullview.AbMultiColumnListView.mItems = null
| private

已加载的View.

OnScrollListener com.ab.view.pullview.AbMultiColumnListView.mOnScrollListener = null
| private

已加载的View.

int [] com.ab.view.pullview.AbMultiColumnListView.mReleaseImageResIds
| private

可释放图片资源的id.

LinearLayout com.ab.view.pullview.AbMultiColumnListView.scrollLayout
| private

直接子布局.

int com.ab.view.pullview.AbMultiColumnListView.scrollViewHeight
| static private

布局的高度。.

LinearLayout com.ab.view.pullview.AbMultiColumnListView.secondColumn
| private

第二列的布局.

int com.ab.view.pullview.AbMultiColumnListView.secondColumnHeight
| private

当前第二列的高度.

LinearLayout com.ab.view.pullview.AbMultiColumnListView.thirdColumn
| private

第三列的布局.

int com.ab.view.pullview.AbMultiColumnListView.thirdColumnHeight
| private

当前第三列的高度.

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

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