| AndBase开发框架 1.6

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

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

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

## 类
interface | AbOnChangeListener
interface | AbOnItemClickListener
interface | AbOnScrollListener
interface | AbOnTouchListener

## Public 成员函数
| AbSlidingPlayView (Context context)
| AbSlidingPlayView (Context context, AttributeSet attrs)
void | initView (Context context)
void | creatIndex ()
void | makesurePosition ()
void | addView (View view)
void | addViews (List< View > views)
void | removeAllViews ()
void | startPlay ()
void | stopPlay ()
void | setOnItemClickListener (AbOnItemClickListener onItemClickListener)
void | setOnPageChangeListener (AbOnChangeListener abChangeListener)
void | setOnPageScrolledListener (AbOnScrollListener abScrolledListener)
void | setOnTouchListener (AbOnTouchListener abOnTouchListener)
void | setPageLineImage (Bitmap displayImage, Bitmap hideImage)
ViewPager | getViewPager ()
int | getCount ()
void | setNavHorizontalGravity (int horizontalGravity)
void | setParentScrollView (ScrollView parentScrollView)
void | setParentListView (ListView parentListView)
void | setNavLayoutBackground (int resid)

## Public 属性
LinearLayout.LayoutParams | navLayoutParams = null

## 包属性
int | position
Bitmap | hideImage

## Private 成员函数
void | onPageScrolledCallBack (int position)
void | onPageSelectedCallBack (int position)

## Private 属性
Context | context
AbInnerViewPager | mViewPager
LinearLayout | navLinearLayout
int | count
Bitmap | displayImage
AbOnItemClickListener | mOnItemClickListener
AbOnChangeListener | mAbChangeListener
AbOnScrollListener | mAbScrolledListener
AbOnTouchListener | mAbOnTouchListener
ArrayList< View > | mListViews = null
AbViewPagerAdapter | mAbViewPagerAdapter = null
LinearLayout | mNavLayoutParent = null
int | navHorizontalGravity = Gravity.RIGHT
int | playingDirection = 0
boolean | play = false
Handler | handler
Runnable | runnable

## 详细描述

© 2012 amsoft.cn 名称：AbPlayView 描述：可播放显示的View.

作者
  还如一梦中

版本

日期
  2011-11-28

## 构造及析构函数说明

com.ab.view.sliding.AbSlidingPlayView.AbSlidingPlayView | ( | Context | context | ) |
| inline

创建一个AbSlidingPlayView.

参数

  context | the context

com.ab.view.sliding.AbSlidingPlayView.AbSlidingPlayView | ( | Context | context,
|  | AttributeSet | attrs
| ) |  |
| inline

从xml初始化的AbSlidingPlayView.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

void com.ab.view.sliding.AbSlidingPlayView.addView | ( | View | view | ) |
| inline

描述：添加可播放视图.

参数

  view | the view

void com.ab.view.sliding.AbSlidingPlayView.addViews | ( | List< View > | views | ) |
| inline

描述：添加可播放视图列表.

参数

  views | the views

void com.ab.view.sliding.AbSlidingPlayView.creatIndex | ( |  | ) |
| inline

创建导航点.

int com.ab.view.sliding.AbSlidingPlayView.getCount | ( |  | ) |
| inline

描述：获取当前的View的数量.

返回
  the count

ViewPager com.ab.view.sliding.AbSlidingPlayView.getViewPager | ( |  | ) |
| inline

描述：获取这个滑动的ViewPager类.

返回
  the view pager

void com.ab.view.sliding.AbSlidingPlayView.initView | ( | Context | context | ) |
| inline

描述：初始化这个View.

参数

  context | the context

void com.ab.view.sliding.AbSlidingPlayView.makesurePosition | ( |  | ) |
| inline

定位点的位置.

void com.ab.view.sliding.AbSlidingPlayView.onPageScrolledCallBack | ( | int | position | ) |
| inline private

描述：设置页面切换事件.

参数

  position | the position

void com.ab.view.sliding.AbSlidingPlayView.onPageSelectedCallBack | ( | int | position | ) |
| inline private

描述：设置页面切换事件.

参数

  position | the position

void com.ab.view.sliding.AbSlidingPlayView.removeAllViews | ( |  | ) |
| inline

描述：删除可播放视图.

void com.ab.view.sliding.AbSlidingPlayView.setNavHorizontalGravity | ( | int | horizontalGravity | ) |
| inline

描述：设置页显示条的位置,在AddView前设置.

参数

  horizontalGravity | the nav horizontal gravity

void com.ab.view.sliding.AbSlidingPlayView.setNavLayoutBackground | ( | int | resid | ) |
| inline

描述：设置导航点的背景.

参数

  resid | the new nav layout background

void com.ab.view.sliding.AbSlidingPlayView.setOnItemClickListener | ( | AbOnItemClickListener | onItemClickListener | ) |
| inline

设置点击事件监听.

参数

  onItemClickListener | the new on item click listener

void com.ab.view.sliding.AbSlidingPlayView.setOnPageChangeListener | ( | AbOnChangeListener | abChangeListener | ) |
| inline

描述：设置页面切换的监听器.

参数

  abChangeListener | the new on page change listener

void com.ab.view.sliding.AbSlidingPlayView.setOnPageScrolledListener | ( | AbOnScrollListener | abScrolledListener | ) |
| inline

描述：设置页面滑动的监听器.

参数

  abScrolledListener | the new on page scrolled listener

void com.ab.view.sliding.AbSlidingPlayView.setOnTouchListener | ( | AbOnTouchListener | abOnTouchListener | ) |
| inline

描述：设置页面Touch的监听器.

参数

  abOnTouchListener | the new on touch listener

void com.ab.view.sliding.AbSlidingPlayView.setPageLineImage | ( | Bitmap | displayImage,
|  | Bitmap | hideImage
| ) |  |
| inline

Sets the page line image.

参数

  displayImage | the display image
  hideImage | the hide image

void com.ab.view.sliding.AbSlidingPlayView.setParentListView | ( | ListView | parentListView | ) |
| inline

如果外层有ListView需要设置.

参数

  parentListView | the new parent list view

void com.ab.view.sliding.AbSlidingPlayView.setParentScrollView | ( | ScrollView | parentScrollView | ) |
| inline

如果外层有ScrollView需要设置.

参数

  parentScrollView | the new parent scroll view

void com.ab.view.sliding.AbSlidingPlayView.startPlay | ( |  | ) |
| inline

描述：自动轮播.

void com.ab.view.sliding.AbSlidingPlayView.stopPlay | ( |  | ) |
| inline

描述：自动轮播.

## 类成员变量说明

Context com.ab.view.sliding.AbSlidingPlayView.context
| private

上下文.

int com.ab.view.sliding.AbSlidingPlayView.count
| private

计数.

Bitmap com.ab.view.sliding.AbSlidingPlayView.displayImage
| private

导航图片.

Handler com.ab.view.sliding.AbSlidingPlayView.handler
| private

用与轮换的 handler.

Bitmap com.ab.view.sliding.AbSlidingPlayView.hideImage
| package

AbOnChangeListener com.ab.view.sliding.AbSlidingPlayView.mAbChangeListener
| private

改变.

AbOnTouchListener com.ab.view.sliding.AbSlidingPlayView.mAbOnTouchListener
| private

触摸.

AbOnScrollListener com.ab.view.sliding.AbSlidingPlayView.mAbScrolledListener
| private

滚动.

AbViewPagerAdapter com.ab.view.sliding.AbSlidingPlayView.mAbViewPagerAdapter = null
| private

适配器.

ArrayList<View> com.ab.view.sliding.AbSlidingPlayView.mListViews = null
| private

List views.

LinearLayout com.ab.view.sliding.AbSlidingPlayView.mNavLayoutParent = null
| private

导航的点父View.

AbOnItemClickListener com.ab.view.sliding.AbSlidingPlayView.mOnItemClickListener
| private

点击.

AbInnerViewPager com.ab.view.sliding.AbSlidingPlayView.mViewPager
| private

内部的ViewPager.

int com.ab.view.sliding.AbSlidingPlayView.navHorizontalGravity = Gravity.RIGHT
| private

导航内容的对齐方式.

LinearLayout.LayoutParams com.ab.view.sliding.AbSlidingPlayView.navLayoutParams = null

导航布局参数.

LinearLayout com.ab.view.sliding.AbSlidingPlayView.navLinearLayout
| private

导航的布局.

boolean com.ab.view.sliding.AbSlidingPlayView.play = false
| private

播放的开关.

int com.ab.view.sliding.AbSlidingPlayView.playingDirection = 0
| private

播放的方向.

int com.ab.view.sliding.AbSlidingPlayView.position
| package

Runnable com.ab.view.sliding.AbSlidingPlayView.runnable
| private

初始值:
= new Runnable() {
public void run() {
if(mViewPager!=null){
handler.sendEmptyMessage(0);
}
}
}

用于轮播的线程.

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

- src/com/ab/view/sliding/AbSlidingPlayView.java