Public 成员函数 | |
| AbSlidingPageView (Context context) | |
| AbSlidingPageView (Context context, AttributeSet attrs) | |
| void | showNext () |
| void | showPrevious () |
| void | computeScroll () |
| int | getScreenState () |
| void | addContentView (View view) |
| void | addNextView (View view) |
| int | getNextViewOffset () |
| void | setNextViewOffset (int nextViewOffset) |
| OnPageChangeListener | getOnPageChangeListener () |
| void | setOnPageChangeListener (OnPageChangeListener onPageChangeListener) |
静态 Public 属性 | |
| static final int | SCREEN_STATE_NEXT = 0 |
| static final int | SCREEN_STATE_PROVIOUS = 1 |
Protected 成员函数 | |
| void | onLayout (boolean changed, int l, int t, int r, int b) |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
Private 成员函数 | |
| void | obtainVelocityTracker (MotionEvent event) |
| void | releaseVelocityTracker () |
Private 属性 | |
| String | TAG = AbSlidingPageView.class.getSimpleName() |
| boolean | D = true |
| Scroller | mScroller |
| VelocityTracker | mVelocityTracker |
| int | mScreenState = SCREEN_STATE_PROVIOUS |
| int | nextViewOffset = 50 |
| OnPageChangeListener | onPageChangeListener = null |
| boolean | finish = true |
© 2012 amsoft.cn 名称:AbSlidingPageView.java 描述:页面滚动切换,实现焦点触发和Touch,适用于电视开发.
|
inline |
构造.
| context | the context |
|
inline |
构造.
| context | the context |
| attrs | the attrs |
|
inline |
设置主View.
| view | the view |
|
inline |
设置下一个View.
| view | the view |
|
inline |
描述:滚动.
|
inline |
Gets the next view offset.
|
inline |
Gets the on page change listener.
|
inline |
获取当前状态.
|
inlineprivate |
初始化速度检测.
| event | the event |
|
inlineprotected |
描述:View的位置设定.
| changed | the changed |
| l | the l |
| t | the t |
| r | the r |
| b | the b |
|
inlineprotected |
描述:测量View的宽高.
| widthMeasureSpec | the width measure spec |
| heightMeasureSpec | the height measure spec |
|
inlineprivate |
释放速度检测.
|
inline |
设置遮挡距离.
| nextViewOffset | the new next view offset |
|
inline |
设置页面改变监听器.
| onPageChangeListener | the new on page change listener |
|
inline |
打开下一个View.
|
inline |
返回上一个View.
|
private |
记录日志的开关.
|
private |
目标滚动是否完成.
|
private |
当前屏幕状态.
|
private |
滚动器.
|
private |
速度.
|
private |
下一个View的偏移.
|
private |
页面切换监听器.
|
static |
显示的下一个View.
|
static |
显示的前一个View.
|
private |
记录日志的标记.
1.8.8