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.

参数
canvasthe canvas
alphathe alpha
cvbthe cvb
contentthe content
abstract void com.ab.view.slidingmenu.MenuInterface.drawSelector ( View  content,
Canvas  canvas,
float  percentOpen 
)
abstract

Draw selector.

参数
contentthe content
canvasthe canvas
percentOpenthe percent open
abstract void com.ab.view.slidingmenu.MenuInterface.drawShadow ( Canvas  canvas,
Drawable  shadow,
int  width 
)
abstract

Draw shadow.

参数
canvasthe canvas
shadowthe shadow
widththe width
abstract int com.ab.view.slidingmenu.MenuInterface.getAbsLeftBound ( CustomViewBehind  cvb,
View  content 
)
abstract

Gets the abs left bound.

参数
cvbthe cvb
contentthe content
返回
the abs left bound
abstract int com.ab.view.slidingmenu.MenuInterface.getAbsRightBound ( CustomViewBehind  cvb,
View  content 
)
abstract

Gets the abs right bound.

参数
cvbthe cvb
contentthe content
返回
the abs right bound
abstract int com.ab.view.slidingmenu.MenuInterface.getMenuLeft ( CustomViewBehind  cvb,
View  content 
)
abstract

Gets the menu left.

参数
cvbthe cvb
contentthe content
返回
the menu left
abstract boolean com.ab.view.slidingmenu.MenuInterface.marginTouchAllowed ( View  content,
int  x,
int  threshold 
)
abstract

Margin touch allowed.

参数
contentthe content
xthe x
thresholdthe threshold
返回
true, if successful
abstract boolean com.ab.view.slidingmenu.MenuInterface.menuClosedSlideAllowed ( int  x)
abstract

Menu closed slide allowed.

参数
xthe x
返回
true, if successful
abstract boolean com.ab.view.slidingmenu.MenuInterface.menuOpenSlideAllowed ( int  x)
abstract

Menu open slide allowed.

参数
xthe x
返回
true, if successful
abstract boolean com.ab.view.slidingmenu.MenuInterface.menuOpenTouchAllowed ( View  content,
int  currPage,
int  x 
)
abstract

Menu open touch allowed.

参数
contentthe content
currPagethe curr page
xthe x
返回
true, if successful
abstract boolean com.ab.view.slidingmenu.MenuInterface.menuTouchInQuickReturn ( View  content,
int  currPage,
int  x 
)
abstract

Menu touch in quick return.

参数
contentthe content
currPagethe curr page
xthe x
返回
true, if successful
abstract void com.ab.view.slidingmenu.MenuInterface.scrollBehindTo ( int  x,
int  y,
CustomViewBehind  cvb,
float  scrollScale 
)
abstract

Scroll behind to.

参数
xthe x
ythe y
cvbthe cvb
scrollScalethe scroll scale

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