| AndBase开发框架 1.6

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

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

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 所有成员列表
com.ab.view.slidingmenu.MenuInterface接口 参考

## Public 成员函数
abstract void | scrollBehindTo (int x, int y, CustomViewBehind cvb, float scrollScale)
abstract int | getMenuLeft (CustomViewBehind cvb, View content)
abstract int | getAbsLeftBound (CustomViewBehind cvb, View content)
abstract int | getAbsRightBound (CustomViewBehind cvb, View content)
abstract boolean | marginTouchAllowed (View content, int x, int threshold)
abstract boolean | menuOpenTouchAllowed (View content, int currPage, int x)
abstract boolean | menuTouchInQuickReturn (View content, int currPage, int x)
abstract boolean | menuClosedSlideAllowed (int x)
abstract boolean | menuOpenSlideAllowed (int x)
abstract void | drawShadow (Canvas canvas, Drawable shadow, int width)
abstract void | drawFade (Canvas canvas, int alpha, CustomViewBehind cvb, View content)
abstract void | drawSelector (View content, Canvas canvas, float percentOpen)

## 详细描述

The Interface MenuInterface.

## 成员函数说明

abstract void com.ab.view.slidingmenu.MenuInterface.drawFade | ( | Canvas | canvas,
|  | int | alpha,
|  | CustomViewBehind | cvb,
|  | View | content
| ) |  |
| abstract

Draw fade.

参数

  canvas | the canvas
  alpha | the alpha
  cvb | the cvb
  content | the content

abstract void com.ab.view.slidingmenu.MenuInterface.drawSelector | ( | View | content,
|  | Canvas | canvas,
|  | float | percentOpen
| ) |  |
| abstract

Draw selector.

参数

  content | the content
  canvas | the canvas
  percentOpen | the percent open

abstract void com.ab.view.slidingmenu.MenuInterface.drawShadow | ( | Canvas | canvas,
|  | Drawable | shadow,
|  | int | width
| ) |  |
| abstract

Draw shadow.

参数

  canvas | the canvas
  shadow | the shadow
  width | the width

abstract int com.ab.view.slidingmenu.MenuInterface.getAbsLeftBound | ( | CustomViewBehind | cvb,
|  | View | content
| ) |  |
| abstract

Gets the abs left bound.

参数

  cvb | the cvb
  content | the content

返回
  the abs left bound

abstract int com.ab.view.slidingmenu.MenuInterface.getAbsRightBound | ( | CustomViewBehind | cvb,
|  | View | content
| ) |  |
| abstract

Gets the abs right bound.

参数

  cvb | the cvb
  content | the content

返回
  the abs right bound

abstract int com.ab.view.slidingmenu.MenuInterface.getMenuLeft | ( | CustomViewBehind | cvb,
|  | View | content
| ) |  |
| abstract

Gets the menu left.

参数

  cvb | the cvb
  content | the content

返回
  the menu left

abstract boolean com.ab.view.slidingmenu.MenuInterface.marginTouchAllowed | ( | View | content,
|  | int | x,
|  | int | threshold
| ) |  |
| abstract

Margin touch allowed.

参数

  content | the content
  x | the x
  threshold | the threshold

返回
  true, if successful

abstract boolean com.ab.view.slidingmenu.MenuInterface.menuClosedSlideAllowed | ( | int | x | ) |
| abstract

Menu closed slide allowed.

参数

  x | the x

返回
  true, if successful

abstract boolean com.ab.view.slidingmenu.MenuInterface.menuOpenSlideAllowed | ( | int | x | ) |
| abstract

Menu open slide allowed.

参数

  x | the x

返回
  true, if successful

abstract boolean com.ab.view.slidingmenu.MenuInterface.menuOpenTouchAllowed | ( | View | content,
|  | int | currPage,
|  | int | x
| ) |  |
| abstract

Menu open touch allowed.

参数

  content | the content
  currPage | the curr page
  x | the x

返回
  true, if successful

abstract boolean com.ab.view.slidingmenu.MenuInterface.menuTouchInQuickReturn | ( | View | content,
|  | int | currPage,
|  | int | x
| ) |  |
| abstract

Menu touch in quick return.

参数

  content | the content
  currPage | the curr page
  x | the x

返回
  true, if successful

abstract void com.ab.view.slidingmenu.MenuInterface.scrollBehindTo | ( | int | x,
|  | int | y,
|  | CustomViewBehind | cvb,
|  | float | scrollScale
| ) |  |
| abstract

Scroll behind to.

参数

  x | the x
  y | the y
  cvb | the cvb
  scrollScale | the scroll scale

该接口的文档由以下文件生成:

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