| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| 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)

## Protected 成员函数
void | dispatchDraw (Canvas canvas)
void | onLayout (boolean changed, int l, int t, int r, int b)
void | onMeasure (int widthMeasureSpec, int heightMeasureSpec)

## Private 成员函数
int | getSelectorTop ()

## Private 属性
int | mTouchMode = SlidingMenu.TOUCHMODE_MARGIN
CustomViewAbove | mViewAbove
View | mContent
View | mSecondaryContent
int | mMarginThreshold
int | mWidthOffset
CanvasTransformer | mTransformer
boolean | mChildrenEnabled
int | selectedViewId = 2012
int | mMode
boolean | mFadeEnabled
final Paint | mFadePaint = new Paint()
float | mScrollScale
Drawable | mShadowDrawable
Drawable | mSecondaryShadowDrawable
int | mShadowWidth
float | mFadeDegree
boolean | mSelectorEnabled = true
Bitmap | mSelectorDrawable
View | mSelectedView

## 静态 Private 属性
static final String | TAG = "CustomViewBehind"
static final int | MARGIN_THRESHOLD = 48

## 详细描述

The Class CustomViewBehind.

## 构造及析构函数说明

com.ab.view.slidingmenu.CustomViewBehind.CustomViewBehind | ( | Context | context | ) |
| inline

Instantiates a new custom view behind.

参数

  context | the context

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 | ) |
| inline protected

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.

参数

  content | the content

返回
  the abs left bound

int com.ab.view.slidingmenu.CustomViewBehind.getAbsRightBound | ( | View | content | ) |
| inline

Gets the abs right bound.

参数

  content | the content

返回
  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.

参数

  page | the 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 | ( |  | ) |
| inline private

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.

参数

  dx | the dx

返回
  true, if successful

boolean com.ab.view.slidingmenu.CustomViewBehind.menuOpenSlideAllowed | ( | float | dx | ) |
| inline

Menu open slide allowed.

参数

  dx | the dx

返回
  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
| ) |  |
| inline protected

void com.ab.view.slidingmenu.CustomViewBehind.onMeasure | ( | int | widthMeasureSpec,
|  | int | heightMeasureSpec
| ) |  |
| inline protected

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

Sets the content.

参数

  v | the new content

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.

参数

  b | the new 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

Sets the mode.

参数

  mode | the new mode

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

Sets the secondary (right) menu for use when setMode is called with SlidingMenu.LEFT_RIGHT.

参数

  v | the right menu

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.

参数

  v | the new selected view

void com.ab.view.slidingmenu.CustomViewBehind.setSelectorBitmap | ( | Bitmap | b | ) |
| inline

Sets the selector bitmap.

参数

  b | the new 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

Sets the touch mode.

参数

  i | the new touch mode

void com.ab.view.slidingmenu.CustomViewBehind.setWidthOffset | ( | int | i | ) |
| inline

Sets the width offset.

参数

  i | the new width offset

## 类成员变量说明

final int com.ab.view.slidingmenu.CustomViewBehind.MARGIN_THRESHOLD = 48
| static private

The Constant MARGIN_THRESHOLD.

boolean com.ab.view.slidingmenu.CustomViewBehind.mChildrenEnabled
| private

The m children enabled.

View com.ab.view.slidingmenu.CustomViewBehind.mContent
| private

The m content.

float com.ab.view.slidingmenu.CustomViewBehind.mFadeDegree
| private

The m fade degree.

boolean com.ab.view.slidingmenu.CustomViewBehind.mFadeEnabled
| private

The m fade enabled.

final Paint com.ab.view.slidingmenu.CustomViewBehind.mFadePaint = new Paint()
| private

The m fade paint.

int com.ab.view.slidingmenu.CustomViewBehind.mMarginThreshold
| private

The m margin threshold.

int com.ab.view.slidingmenu.CustomViewBehind.mMode
| private

The m mode.

float com.ab.view.slidingmenu.CustomViewBehind.mScrollScale
| private

The m scroll scale.

View com.ab.view.slidingmenu.CustomViewBehind.mSecondaryContent
| private

The m secondary content.

Drawable com.ab.view.slidingmenu.CustomViewBehind.mSecondaryShadowDrawable
| private

The m secondary shadow drawable.

View com.ab.view.slidingmenu.CustomViewBehind.mSelectedView
| private

The m selected view.

Bitmap com.ab.view.slidingmenu.CustomViewBehind.mSelectorDrawable
| private

The m selector drawable.

boolean com.ab.view.slidingmenu.CustomViewBehind.mSelectorEnabled = true
| private

The m selector enabled.

Drawable com.ab.view.slidingmenu.CustomViewBehind.mShadowDrawable
| private

The m shadow drawable.

int com.ab.view.slidingmenu.CustomViewBehind.mShadowWidth
| private

The m shadow width.

int com.ab.view.slidingmenu.CustomViewBehind.mTouchMode = SlidingMenu.TOUCHMODE_MARGIN
| private

The m touch mode.

CanvasTransformer com.ab.view.slidingmenu.CustomViewBehind.mTransformer
| private

The m transformer.

CustomViewAbove com.ab.view.slidingmenu.CustomViewBehind.mViewAbove
| private

The m view above.

int com.ab.view.slidingmenu.CustomViewBehind.mWidthOffset
| private

The m width offset.

int com.ab.view.slidingmenu.CustomViewBehind.selectedViewId = 2012
| private

The selected view id.

final String com.ab.view.slidingmenu.CustomViewBehind.TAG = "CustomViewBehind"
| static private

The Constant TAG.

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

- src/com/ab/view/slidingmenu/CustomViewBehind.java