|
| | CustomViewBehind (Context context) |
| |
| | CustomViewBehind (Context context, AttributeSet attrs) |
| |
| void | setCustomViewAbove (CustomViewAbove customViewAbove) |
| |
| void | setCanvasTransformer (CanvasTransformer t) |
| |
| void | setWidthOffset (int i) |
| |
| void | setMarginThreshold (int marginThreshold) |
| |
| int | getMarginThreshold () |
| |
| int | getBehindWidth () |
| |
| void | setContent (View v) |
| |
| View | getContent () |
| |
| void | setSecondaryContent (View v) |
| |
| View | getSecondaryContent () |
| |
| void | setChildrenEnabled (boolean enabled) |
| |
| void | scrollTo (int x, int y) |
| |
| boolean | onInterceptTouchEvent (MotionEvent e) |
| |
| boolean | onTouchEvent (MotionEvent e) |
| |
| void | setMode (int mode) |
| |
| int | getMode () |
| |
| void | setScrollScale (float scrollScale) |
| |
| float | getScrollScale () |
| |
| void | setShadowDrawable (Drawable shadow) |
| |
| void | setSecondaryShadowDrawable (Drawable shadow) |
| |
| void | setShadowWidth (int width) |
| |
| void | setFadeEnabled (boolean b) |
| |
| void | setFadeDegree (float degree) |
| |
| int | getMenuPage (int page) |
| |
| void | scrollBehindTo (View content, int x, int y) |
| |
| int | getMenuLeft (View content, int page) |
| |
| int | getAbsLeftBound (View content) |
| |
| int | getAbsRightBound (View content) |
| |
| boolean | marginTouchAllowed (View content, int x) |
| |
| void | setTouchMode (int i) |
| |
| boolean | menuOpenTouchAllowed (View content, int currPage, float x) |
| |
| boolean | menuTouchInQuickReturn (View content, int currPage, float x) |
| |
| boolean | menuClosedSlideAllowed (float dx) |
| |
| boolean | menuOpenSlideAllowed (float dx) |
| |
| void | drawShadow (View content, Canvas canvas) |
| |
| void | drawFade (View content, Canvas canvas, float openPercent) |
| |
| void | drawSelector (View content, Canvas canvas, float openPercent) |
| |
| void | setSelectorEnabled (boolean b) |
| |
| void | setSelectedView (View v) |
| |
| void | setSelectorBitmap (Bitmap b) |
| |
|
| void | dispatchDraw (Canvas canvas) |
| |
| void | onLayout (boolean changed, int l, int t, int r, int b) |
| |
| void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
| |
| com.ab.view.slidingmenu.CustomViewBehind.CustomViewBehind |
( |
Context |
context | ) |
|
|
inline |
Instantiates a new custom view behind.
- 参数
-
| com.ab.view.slidingmenu.CustomViewBehind.CustomViewBehind |
( |
Context |
context, |
|
|
AttributeSet |
attrs |
|
) |
| |
|
inline |
Instantiates a new custom view behind.
- 参数
-
| context | the context |
| attrs | the attrs |
| void com.ab.view.slidingmenu.CustomViewBehind.dispatchDraw |
( |
Canvas |
canvas | ) |
|
|
inlineprotected |
| void com.ab.view.slidingmenu.CustomViewBehind.drawFade |
( |
View |
content, |
|
|
Canvas |
canvas, |
|
|
float |
openPercent |
|
) |
| |
|
inline |
Draw fade.
- 参数
-
| content | the content |
| canvas | the canvas |
| openPercent | the open percent |
| void com.ab.view.slidingmenu.CustomViewBehind.drawSelector |
( |
View |
content, |
|
|
Canvas |
canvas, |
|
|
float |
openPercent |
|
) |
| |
|
inline |
Draw selector.
- 参数
-
| content | the content |
| canvas | the canvas |
| openPercent | the open percent |
| void com.ab.view.slidingmenu.CustomViewBehind.drawShadow |
( |
View |
content, |
|
|
Canvas |
canvas |
|
) |
| |
|
inline |
Draw shadow.
- 参数
-
| content | the content |
| canvas | the canvas |
| int com.ab.view.slidingmenu.CustomViewBehind.getAbsLeftBound |
( |
View |
content | ) |
|
|
inline |
Gets the abs left bound.
- 参数
-
- 返回
- the abs left bound
| int com.ab.view.slidingmenu.CustomViewBehind.getAbsRightBound |
( |
View |
content | ) |
|
|
inline |
Gets the abs right bound.
- 参数
-
- 返回
- the abs right bound
| int com.ab.view.slidingmenu.CustomViewBehind.getBehindWidth |
( |
| ) |
|
|
inline |
Gets the behind width.
- 返回
- the behind width
| View com.ab.view.slidingmenu.CustomViewBehind.getContent |
( |
| ) |
|
|
inline |
Gets the content.
- 返回
- the content
| int com.ab.view.slidingmenu.CustomViewBehind.getMarginThreshold |
( |
| ) |
|
|
inline |
Gets the margin threshold.
- 返回
- the margin threshold
| int com.ab.view.slidingmenu.CustomViewBehind.getMenuLeft |
( |
View |
content, |
|
|
int |
page |
|
) |
| |
|
inline |
Gets the menu left.
- 参数
-
| content | the content |
| page | the page |
- 返回
- the menu left
| int com.ab.view.slidingmenu.CustomViewBehind.getMenuPage |
( |
int |
page | ) |
|
|
inline |
Gets the menu page.
- 参数
-
- 返回
- the menu page
| int com.ab.view.slidingmenu.CustomViewBehind.getMode |
( |
| ) |
|
|
inline |
Gets the mode.
- 返回
- the mode
| float com.ab.view.slidingmenu.CustomViewBehind.getScrollScale |
( |
| ) |
|
|
inline |
Gets the scroll scale.
- 返回
- the scroll scale
| View com.ab.view.slidingmenu.CustomViewBehind.getSecondaryContent |
( |
| ) |
|
|
inline |
Gets the secondary content.
- 返回
- the secondary content
| int com.ab.view.slidingmenu.CustomViewBehind.getSelectorTop |
( |
| ) |
|
|
inlineprivate |
Gets the selector top.
- 返回
- the selector top
| boolean com.ab.view.slidingmenu.CustomViewBehind.marginTouchAllowed |
( |
View |
content, |
|
|
int |
x |
|
) |
| |
|
inline |
Margin touch allowed.
- 参数
-
| content | the content |
| x | the x |
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewBehind.menuClosedSlideAllowed |
( |
float |
dx | ) |
|
|
inline |
Menu closed slide allowed.
- 参数
-
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewBehind.menuOpenSlideAllowed |
( |
float |
dx | ) |
|
|
inline |
Menu open slide allowed.
- 参数
-
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewBehind.menuOpenTouchAllowed |
( |
View |
content, |
|
|
int |
currPage, |
|
|
float |
x |
|
) |
| |
|
inline |
Menu open touch allowed.
- 参数
-
| content | the content |
| currPage | the curr page |
| x | the x |
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewBehind.menuTouchInQuickReturn |
( |
View |
content, |
|
|
int |
currPage, |
|
|
float |
x |
|
) |
| |
|
inline |
Menu touch in quick return.
- 参数
-
| content | the content |
| currPage | the curr page |
| x | the x |
- 返回
- true, if successful
| boolean com.ab.view.slidingmenu.CustomViewBehind.onInterceptTouchEvent |
( |
MotionEvent |
e | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.onLayout |
( |
boolean |
changed, |
|
|
int |
l, |
|
|
int |
t, |
|
|
int |
r, |
|
|
int |
b |
|
) |
| |
|
inlineprotected |
| void com.ab.view.slidingmenu.CustomViewBehind.onMeasure |
( |
int |
widthMeasureSpec, |
|
|
int |
heightMeasureSpec |
|
) |
| |
|
inlineprotected |
| boolean com.ab.view.slidingmenu.CustomViewBehind.onTouchEvent |
( |
MotionEvent |
e | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.scrollBehindTo |
( |
View |
content, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Scroll behind to.
- 参数
-
| content | the content |
| x | the x |
| y | the y |
| void com.ab.view.slidingmenu.CustomViewBehind.scrollTo |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.setCanvasTransformer |
( |
CanvasTransformer |
t | ) |
|
|
inline |
Sets the canvas transformer.
- 参数
-
| t | the new canvas transformer |
| void com.ab.view.slidingmenu.CustomViewBehind.setChildrenEnabled |
( |
boolean |
enabled | ) |
|
|
inline |
Sets the children enabled.
- 参数
-
| enabled | the new children enabled |
| void com.ab.view.slidingmenu.CustomViewBehind.setContent |
( |
View |
v | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.setCustomViewAbove |
( |
CustomViewAbove |
customViewAbove | ) |
|
|
inline |
Sets the custom view above.
- 参数
-
| customViewAbove | the new custom view above |
| void com.ab.view.slidingmenu.CustomViewBehind.setFadeDegree |
( |
float |
degree | ) |
|
|
inline |
Sets the fade degree.
- 参数
-
| degree | the new fade degree |
| void com.ab.view.slidingmenu.CustomViewBehind.setFadeEnabled |
( |
boolean |
b | ) |
|
|
inline |
Sets the fade enabled.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewBehind.setMarginThreshold |
( |
int |
marginThreshold | ) |
|
|
inline |
Sets the margin threshold.
- 参数
-
| marginThreshold | the new margin threshold |
| void com.ab.view.slidingmenu.CustomViewBehind.setMode |
( |
int |
mode | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.setScrollScale |
( |
float |
scrollScale | ) |
|
|
inline |
Sets the scroll scale.
- 参数
-
| scrollScale | the new scroll scale |
| void com.ab.view.slidingmenu.CustomViewBehind.setSecondaryContent |
( |
View |
v | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.setSecondaryShadowDrawable |
( |
Drawable |
shadow | ) |
|
|
inline |
Sets the secondary shadow drawable.
- 参数
-
| shadow | the new secondary shadow drawable |
| void com.ab.view.slidingmenu.CustomViewBehind.setSelectedView |
( |
View |
v | ) |
|
|
inline |
Sets the selected view.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewBehind.setSelectorBitmap |
( |
Bitmap |
b | ) |
|
|
inline |
Sets the selector bitmap.
- 参数
-
| void com.ab.view.slidingmenu.CustomViewBehind.setSelectorEnabled |
( |
boolean |
b | ) |
|
|
inline |
Sets the selector enabled.
- 参数
-
| b | the new selector enabled |
| void com.ab.view.slidingmenu.CustomViewBehind.setShadowDrawable |
( |
Drawable |
shadow | ) |
|
|
inline |
Sets the shadow drawable.
- 参数
-
| shadow | the new shadow drawable |
| void com.ab.view.slidingmenu.CustomViewBehind.setShadowWidth |
( |
int |
width | ) |
|
|
inline |
Sets the shadow width.
- 参数
-
| width | the new shadow width |
| void com.ab.view.slidingmenu.CustomViewBehind.setTouchMode |
( |
int |
i | ) |
|
|
inline |
| void com.ab.view.slidingmenu.CustomViewBehind.setWidthOffset |
( |
int |
i | ) |
|
|
inline |
Sets the width offset.
- 参数
-
| final int com.ab.view.slidingmenu.CustomViewBehind.MARGIN_THRESHOLD = 48 |
|
staticprivate |
The Constant MARGIN_THRESHOLD.
| boolean com.ab.view.slidingmenu.CustomViewBehind.mChildrenEnabled |
|
private |
| View com.ab.view.slidingmenu.CustomViewBehind.mContent |
|
private |
| float com.ab.view.slidingmenu.CustomViewBehind.mFadeDegree |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewBehind.mFadeEnabled |
|
private |
| final Paint com.ab.view.slidingmenu.CustomViewBehind.mFadePaint = new Paint() |
|
private |
| int com.ab.view.slidingmenu.CustomViewBehind.mMarginThreshold |
|
private |
| int com.ab.view.slidingmenu.CustomViewBehind.mMode |
|
private |
| float com.ab.view.slidingmenu.CustomViewBehind.mScrollScale |
|
private |
| View com.ab.view.slidingmenu.CustomViewBehind.mSecondaryContent |
|
private |
| Drawable com.ab.view.slidingmenu.CustomViewBehind.mSecondaryShadowDrawable |
|
private |
The m secondary shadow drawable.
| View com.ab.view.slidingmenu.CustomViewBehind.mSelectedView |
|
private |
| Bitmap com.ab.view.slidingmenu.CustomViewBehind.mSelectorDrawable |
|
private |
| boolean com.ab.view.slidingmenu.CustomViewBehind.mSelectorEnabled = true |
|
private |
| Drawable com.ab.view.slidingmenu.CustomViewBehind.mShadowDrawable |
|
private |
| int com.ab.view.slidingmenu.CustomViewBehind.mShadowWidth |
|
private |
| int com.ab.view.slidingmenu.CustomViewBehind.mWidthOffset |
|
private |
| int com.ab.view.slidingmenu.CustomViewBehind.selectedViewId = 2012 |
|
private |
| final String com.ab.view.slidingmenu.CustomViewBehind.TAG = "CustomViewBehind" |
|
staticprivate |
该类的文档由以下文件生成: