|
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
| |
| void | onSizeChanged (int w, int h, int oldw, int oldh) |
| |
| void | onLayout (boolean changed, int l, int t, int r, int b) |
| |
| void | onPageScrolled (int position, float offset, int offsetPixels) |
| |
| float | getPercentOpen () |
| |
| void | dispatchDraw (Canvas canvas) |
| |
| boolean | canScroll (View v, boolean checkV, int dx, int x, int y) |
| |
| com.ab.view.slidingmenu.CustomViewAbove.CustomViewAbove |
( |
Context |
context | ) |
|
|
inline |
Instantiates a new custom view above.
- 参数
-
| com.ab.view.slidingmenu.CustomViewAbove.CustomViewAbove |
( |
Context |
context, |
|
|
AttributeSet |
attrs |
|
) |
| |
|
inline |
Instantiates a new custom view above.
- 参数
-
| context | the context |
| attrs | the attrs |
| void com.ab.view.slidingmenu.CustomViewAbove.addIgnoredView |
( |
View |
v | ) |
|
|
inline |
Adds the ignored view.
- 参数
-
| boolean com.ab.view.slidingmenu.CustomViewAbove.arrowScroll |
( |
int |
direction | ) |
|
|
inline |
Arrow scroll.
- 参数
-
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewAbove.canScroll |
( |
View |
v, |
|
|
boolean |
checkV, |
|
|
int |
dx, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
inlineprotected |
Tests scrollability within child views of v given a delta of dx.
- 参数
-
| v | View to test for horizontal scrollability |
| checkV | Whether the view v passed should itself be checked for scrollability (true), or just its children (false). |
| dx | Delta scrolled in pixels |
| x | X coordinate of the active touch point |
| y | Y coordinate of the active touch point |
- 返回
- true if child views of v can be scrolled by delta of dx.
| void com.ab.view.slidingmenu.CustomViewAbove.clearIgnoredViews |
( |
| ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.completeScroll |
( |
| ) |
|
|
inlineprivate |
| void com.ab.view.slidingmenu.CustomViewAbove.computeScroll |
( |
| ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.determineDrag |
( |
MotionEvent |
ev | ) |
|
|
inlineprivate |
| int com.ab.view.slidingmenu.CustomViewAbove.determineTargetPage |
( |
float |
pageOffset, |
|
|
int |
velocity, |
|
|
int |
deltaX |
|
) |
| |
|
inlineprivate |
Determine target page.
- 参数
-
| pageOffset | the page offset |
| velocity | the velocity |
| deltaX | the delta x |
- 返回
- the int
| void com.ab.view.slidingmenu.CustomViewAbove.dispatchDraw |
( |
Canvas |
canvas | ) |
|
|
inlineprotected |
| boolean com.ab.view.slidingmenu.CustomViewAbove.dispatchKeyEvent |
( |
KeyEvent |
event | ) |
|
|
inline |
| float com.ab.view.slidingmenu.CustomViewAbove.distanceInfluenceForSnapDuration |
( |
float |
f | ) |
|
|
inlinepackage |
Distance influence for snap duration.
- 参数
-
- 返回
- the float
| void com.ab.view.slidingmenu.CustomViewAbove.endDrag |
( |
| ) |
|
|
inlineprivate |
| boolean com.ab.view.slidingmenu.CustomViewAbove.executeKeyEvent |
( |
KeyEvent |
event | ) |
|
|
inline |
You can call this function yourself to have the scroll view perform scrolling from a key event, just as if the event had been dispatched to it by the view hierarchy.
- 参数
-
| event | The key event to execute. |
- 返回
- Return true if the event was handled, else false.
| int com.ab.view.slidingmenu.CustomViewAbove.getBehindWidth |
( |
| ) |
|
|
inline |
Gets the behind width.
- 返回
- the behind width
| int com.ab.view.slidingmenu.CustomViewAbove.getChildWidth |
( |
int |
i | ) |
|
|
inline |
Gets the child width.
- 参数
-
- 返回
- the child width
| View com.ab.view.slidingmenu.CustomViewAbove.getContent |
( |
| ) |
|
|
inline |
Gets the content.
- 返回
- the content
| int com.ab.view.slidingmenu.CustomViewAbove.getContentLeft |
( |
| ) |
|
|
inline |
Gets the content left.
- 返回
- the content left
| int com.ab.view.slidingmenu.CustomViewAbove.getCurrentItem |
( |
| ) |
|
|
inline |
Gets the current item.
- 返回
- the current item
| int com.ab.view.slidingmenu.CustomViewAbove.getDestScrollX |
( |
int |
page | ) |
|
|
inline |
Gets the dest scroll x.
- 参数
-
- 返回
- the dest scroll x
| int com.ab.view.slidingmenu.CustomViewAbove.getLeftBound |
( |
| ) |
|
|
inlineprivate |
Gets the left bound.
- 返回
- the left bound
| float com.ab.view.slidingmenu.CustomViewAbove.getPercentOpen |
( |
| ) |
|
|
inlineprotected |
Gets the percent open.
- 返回
- the percent open
| int com.ab.view.slidingmenu.CustomViewAbove.getPointerIndex |
( |
MotionEvent |
ev, |
|
|
int |
id |
|
) |
| |
|
inlineprivate |
Gets the pointer index.
- 参数
-
- 返回
- the pointer index
| int com.ab.view.slidingmenu.CustomViewAbove.getRightBound |
( |
| ) |
|
|
inlineprivate |
Gets the right bound.
- 返回
- the right bound
| int com.ab.view.slidingmenu.CustomViewAbove.getTouchMode |
( |
| ) |
|
|
inline |
Gets the touch mode.
- 返回
- the touch mode
| void com.ab.view.slidingmenu.CustomViewAbove.initCustomViewAbove |
( |
| ) |
|
|
inlinepackage |
Inits the custom view above.
| boolean com.ab.view.slidingmenu.CustomViewAbove.isInIgnoredView |
( |
MotionEvent |
ev | ) |
|
|
inlineprivate |
Checks if is in ignored view.
- 参数
-
- 返回
- true, if is in ignored view
| boolean com.ab.view.slidingmenu.CustomViewAbove.isMenuOpen |
( |
| ) |
|
|
inline |
Checks if is menu open.
- 返回
- true, if is menu open
| boolean com.ab.view.slidingmenu.CustomViewAbove.isSlidingEnabled |
( |
| ) |
|
|
inline |
Checks if is sliding enabled.
- 返回
- true, if is sliding enabled
| boolean com.ab.view.slidingmenu.CustomViewAbove.onInterceptTouchEvent |
( |
MotionEvent |
ev | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.onLayout |
( |
boolean |
changed, |
|
|
int |
l, |
|
|
int |
t, |
|
|
int |
r, |
|
|
int |
b |
|
) |
| |
|
inlineprotected |
| void com.ab.view.slidingmenu.CustomViewAbove.onMeasure |
( |
int |
widthMeasureSpec, |
|
|
int |
heightMeasureSpec |
|
) |
| |
|
inlineprotected |
| void com.ab.view.slidingmenu.CustomViewAbove.onPageScrolled |
( |
int |
position, |
|
|
float |
offset, |
|
|
int |
offsetPixels |
|
) |
| |
|
inlineprotected |
This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch scroll. If you override this method you must call through to the superclass implementation (e.g. super.onPageScrolled(position, offset, offsetPixels)) before onPageScrolled returns.
- 参数
-
| position | Position index of the first page currently being displayed. Page position+1 will be visible if positionOffset is nonzero. |
| offset | Value from [0, 1) indicating the offset from the page at position. |
| offsetPixels | Value in pixels indicating the offset from position. |
| void com.ab.view.slidingmenu.CustomViewAbove.onSecondaryPointerUp |
( |
MotionEvent |
ev | ) |
|
|
inlineprivate |
On secondary pointer up.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.onSizeChanged |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
oldw, |
|
|
int |
oldh |
|
) |
| |
|
inlineprotected |
| boolean com.ab.view.slidingmenu.CustomViewAbove.onTouchEvent |
( |
MotionEvent |
ev | ) |
|
|
inline |
| boolean com.ab.view.slidingmenu.CustomViewAbove.pageLeft |
( |
| ) |
|
|
inlinepackage |
Page left.
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewAbove.pageRight |
( |
| ) |
|
|
inlinepackage |
Page right.
- 返回
- true, if successful
| void com.ab.view.slidingmenu.CustomViewAbove.pageScrolled |
( |
int |
xpos | ) |
|
|
inlineprivate |
| void com.ab.view.slidingmenu.CustomViewAbove.removeIgnoredView |
( |
View |
v | ) |
|
|
inline |
Removes the ignored view.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.scrollTo |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.setAboveOffset |
( |
int |
i | ) |
|
|
inline |
Sets the above offset.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.setContent |
( |
View |
v | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.setCurrentItem |
( |
int |
item | ) |
|
|
inline |
Set the currently selected page. If the CustomViewPager has already been through its first layout there will be a smooth animated transition between the current item and the specified item.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.setCurrentItem |
( |
int |
item, |
|
|
boolean |
smoothScroll |
|
) |
| |
|
inline |
Set the currently selected page.
- 参数
-
| item | Item index to select |
| smoothScroll | True to smoothly scroll to the new item, false to transition immediately |
| void com.ab.view.slidingmenu.CustomViewAbove.setCurrentItemInternal |
( |
int |
item, |
|
|
boolean |
smoothScroll, |
|
|
boolean |
always |
|
) |
| |
|
inlinepackage |
Sets the current item internal.
- 参数
-
| item | the item |
| smoothScroll | the smooth scroll |
| always | the always |
| void com.ab.view.slidingmenu.CustomViewAbove.setCurrentItemInternal |
( |
int |
item, |
|
|
boolean |
smoothScroll, |
|
|
boolean |
always, |
|
|
int |
velocity |
|
) |
| |
|
inlinepackage |
Sets the current item internal.
- 参数
-
| item | the item |
| smoothScroll | the smooth scroll |
| always | the always |
| velocity | the velocity |
| void com.ab.view.slidingmenu.CustomViewAbove.setCustomViewBehind |
( |
CustomViewBehind |
cvb | ) |
|
|
inline |
Sets the custom view behind.
- 参数
-
| cvb | the new custom view behind |
Set a separate OnPageChangeListener for internal use by the support library.
- 参数
-
- 返回
- The old listener that was set, if any.
| void com.ab.view.slidingmenu.CustomViewAbove.setOnClosedListener |
( |
OnClosedListener |
l | ) |
|
|
inline |
Sets the on closed listener.
- 参数
-
| l | the new on closed listener |
| void com.ab.view.slidingmenu.CustomViewAbove.setOnOpenedListener |
( |
OnOpenedListener |
l | ) |
|
|
inline |
Sets the on opened listener.
- 参数
-
| l | the new on opened listener |
| void com.ab.view.slidingmenu.CustomViewAbove.setOnPageChangeListener |
( |
OnPageChangeListener |
listener | ) |
|
|
inline |
Set a listener that will be invoked whenever the page changes or is incrementally scrolled. See OnPageChangeListener.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.setScrollingCacheEnabled |
( |
boolean |
enabled | ) |
|
|
inlineprivate |
Sets the scrolling cache enabled.
- 参数
-
| enabled | the new scrolling cache enabled |
| void com.ab.view.slidingmenu.CustomViewAbove.setSlidingEnabled |
( |
boolean |
b | ) |
|
|
inline |
Sets the sliding enabled.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewAbove.setTouchMode |
( |
int |
i | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewAbove.smoothScrollTo |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inlinepackage |
Like View#scrollBy, but scroll smoothly instead of immediately.
- 参数
-
| x | the number of pixels to scroll by on the X axis |
| y | the number of pixels to scroll by on the Y axis |
| void com.ab.view.slidingmenu.CustomViewAbove.smoothScrollTo |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
velocity |
|
) |
| |
|
inlinepackage |
Like View#scrollBy, but scroll smoothly instead of immediately.
- 参数
-
| x | the number of pixels to scroll by on the X axis |
| y | the number of pixels to scroll by on the Y axis |
| velocity | the velocity associated with a fling, if applicable. (0 otherwise) |
| void com.ab.view.slidingmenu.CustomViewAbove.startDrag |
( |
| ) |
|
|
inlineprivate |
| boolean com.ab.view.slidingmenu.CustomViewAbove.thisSlideAllowed |
( |
float |
dx | ) |
|
|
inlineprivate |
This slide allowed.
- 参数
-
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewAbove.thisTouchAllowed |
( |
MotionEvent |
ev | ) |
|
|
inlineprivate |
This touch allowed.
- 参数
-
- 返回
- true, if successful
| final boolean com.ab.view.slidingmenu.CustomViewAbove.DEBUG = false |
|
staticprivate |
| final int com.ab.view.slidingmenu.CustomViewAbove.INVALID_POINTER = -1 |
|
staticprivate |
| int com.ab.view.slidingmenu.CustomViewAbove.mActivePointerId = INVALID_POINTER |
|
protected |
ID of the active pointer. This is used to retain consistency during drags/flings if multiple pointers are used.
| final int com.ab.view.slidingmenu.CustomViewAbove.MAX_SETTLE_DURATION = 600 |
|
staticprivate |
The Constant MAX_SETTLE_DURATION.
| View com.ab.view.slidingmenu.CustomViewAbove.mContent |
|
private |
| int com.ab.view.slidingmenu.CustomViewAbove.mCurItem |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewAbove.mEnabled = true |
|
private |
| int com.ab.view.slidingmenu.CustomViewAbove.mFlingDistance |
|
private |
| List<View> com.ab.view.slidingmenu.CustomViewAbove.mIgnoredViews = new ArrayList<View>() |
|
private |
| final int com.ab.view.slidingmenu.CustomViewAbove.MIN_DISTANCE_FOR_FLING = 25 |
|
staticprivate |
The Constant MIN_DISTANCE_FOR_FLING.
| float com.ab.view.slidingmenu.CustomViewAbove.mInitialMotionX |
|
private |
The m internal page change listener.
| boolean com.ab.view.slidingmenu.CustomViewAbove.mIsBeingDragged |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewAbove.mIsUnableToDrag |
|
private |
| float com.ab.view.slidingmenu.CustomViewAbove.mLastMotionX |
|
private |
Position of the last motion event.
| float com.ab.view.slidingmenu.CustomViewAbove.mLastMotionY |
|
private |
| int com.ab.view.slidingmenu.CustomViewAbove.mMaximumVelocity |
|
protected |
| int com.ab.view.slidingmenu.CustomViewAbove.mMinimumVelocity |
|
private |
The m on page change listener.
| boolean com.ab.view.slidingmenu.CustomViewAbove.mQuickReturn = false |
|
private |
| Scroller com.ab.view.slidingmenu.CustomViewAbove.mScroller |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewAbove.mScrolling |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewAbove.mScrollingCacheEnabled |
|
private |
The m scrolling cache enabled.
| float com.ab.view.slidingmenu.CustomViewAbove.mScrollX = 0.0f |
|
private |
| int com.ab.view.slidingmenu.CustomViewAbove.mTouchSlop |
|
private |
| VelocityTracker com.ab.view.slidingmenu.CustomViewAbove.mVelocityTracker |
|
protected |
Determines speed during touch scrolling.
| final Interpolator com.ab.view.slidingmenu.CustomViewAbove.sInterpolator |
|
staticprivate |
初始值:= new Interpolator() {
public float getInterpolation(float t) {
t -= 1.0f;
return t * t * t * t * t + 1.0f;
}
}
The Constant sInterpolator.
| final String com.ab.view.slidingmenu.CustomViewAbove.TAG = "CustomViewAbove" |
|
staticprivate |
| final boolean com.ab.view.slidingmenu.CustomViewAbove.USE_CACHE = false |
|
staticprivate |
该类的文档由以下文件生成: