Public 成员函数 | |
| AbSlidingMenuView (Context context) | |
| AbSlidingMenuView (Context context, AttributeSet attrs) | |
| boolean | dispatchTouchEvent (MotionEvent ev) |
| boolean | onInterceptTouchEvent (MotionEvent ev) |
| boolean | onTouchEvent (MotionEvent event) |
| void | open () |
| void | close () |
| void | computeScroll () |
| int | getScreenState () |
| void | setContentView (View view) |
静态 Public 属性 | |
| static final int | SCREEN_STATE_CLOSE = 0 |
| static final int | SCREEN_STATE_OPEN = 1 |
| static final int | TOUCH_STATE_RESTART = 0 |
| static final int | TOUCH_STATE_SCROLLING = 1 |
| static final int | SCROLL_STATE_NO_ALLOW = 0 |
| static final int | SCROLL_STATE_ALLOW = 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 属性 | |
| Scroller | mScroller |
| VelocityTracker | mVelocityTracker |
| int | mWidth |
| int | mScreenState = 0 |
| int | mTouchState = 0 |
| int | mScrollState = 0 |
| int | mVelocityValue = 0 |
| boolean | mOnClick = false |
© 2012 amsoft.cn 名称:AbSlidingMenuView.java 描述:左右简单的侧边栏实现 滑动事件只在一个android:clickable="true"的View上.
|
inline |
构造.
| context | the context |
|
inline |
构造.
| context | the context |
| attrs | the attrs |
|
inline |
关闭menu.
|
inline |
描述:滚动.
|
inline |
描述:执行触摸事件.
| ev | the ev |
|
inline |
获取当前状态.
|
inlineprivate |
初始化速度检测.
| event | the event |
|
inline |
描述:拦截的触摸事件.
| ev | the ev |
|
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 |
|
inline |
描述:触摸事件.
| event | the event |
|
inline |
打开menu.
|
inlineprivate |
释放速度检测.
|
inline |
设置主View.
| view | the new content view |
|
private |
The m on click.
|
private |
The m screen state.
|
private |
The m scroller.
|
private |
The m scroll state.
|
private |
The m touch state.
|
private |
The m velocity tracker.
|
private |
The m velocity value.
|
private |
The m width.
|
static |
The Constant SCREEN_STATE_CLOSE.
|
static |
The Constant SCREEN_STATE_OPEN.
|
static |
The Constant SCROLL_STATE_ALLOW.
|
static |
The Constant SCROLL_STATE_NO_ALLOW.
|
static |
The Constant TOUCH_STATE_RESTART.
|
static |
The Constant TOUCH_STATE_SCROLLING.
1.8.8