AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Private 属性 | 所有成员列表
com.ab.view.slidingmenu.SlidingActivityHelper类 参考

Public 成员函数

 SlidingActivityHelper (Activity activity)
 
void onCreate (Bundle savedInstanceState)
 
void onPostCreate (Bundle savedInstanceState)
 
void setSlidingActionBarEnabled (boolean slidingActionBarEnabled)
 
View findViewById (int id)
 
void onSaveInstanceState (Bundle outState)
 
void registerAboveContentView (View v, LayoutParams params)
 
void setContentView (View v)
 
void setBehindContentView (View view, LayoutParams layoutParams)
 
SlidingMenu getSlidingMenu ()
 
void toggle ()
 
void showContent ()
 
void showMenu ()
 
void showSecondaryMenu ()
 
boolean onKeyUp (int keyCode, KeyEvent event)
 

Private 属性

Activity mActivity
 
SlidingMenu mSlidingMenu
 
View mViewAbove
 
View mViewBehind
 
boolean mBroadcasting = false
 
boolean mOnPostCreateCalled = false
 
boolean mEnableSlide = true
 

详细描述

The Class SlidingActivityHelper.

构造及析构函数说明

com.ab.view.slidingmenu.SlidingActivityHelper.SlidingActivityHelper ( Activity  activity)
inline

Instantiates a new SlidingActivityHelper.

参数
activitythe associated activity

成员函数说明

View com.ab.view.slidingmenu.SlidingActivityHelper.findViewById ( int  id)
inline

Finds a view that was identified by the id attribute from the XML that was processed in onCreate(Bundle).

参数
idthe resource id of the desired view
返回
The view if found or null otherwise.
SlidingMenu com.ab.view.slidingmenu.SlidingActivityHelper.getSlidingMenu ( )
inline

Gets the SlidingMenu associated with this activity.

返回
the SlidingMenu associated with this activity.
void com.ab.view.slidingmenu.SlidingActivityHelper.onCreate ( Bundle  savedInstanceState)
inline

Sets mSlidingMenu as a newly inflated SlidingMenu. Should be called within the activitiy's onCreate()

参数
savedInstanceStatethe saved instance state (unused)
boolean com.ab.view.slidingmenu.SlidingActivityHelper.onKeyUp ( int  keyCode,
KeyEvent  event 
)
inline

On key up.

参数
keyCodethe key code
eventthe event
返回
true, if successful
void com.ab.view.slidingmenu.SlidingActivityHelper.onPostCreate ( Bundle  savedInstanceState)
inline

Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()

参数
savedInstanceStatethe saved instance state (unused)
void com.ab.view.slidingmenu.SlidingActivityHelper.onSaveInstanceState ( Bundle  outState)
inline

Called to retrieve per-instance state from an activity before being killed so that the state can be restored in onCreate(Bundle) or onRestoreInstanceState(Bundle) (the Bundle populated by this method will be passed to both).

参数
outStateBundle in which to place your saved state.
void com.ab.view.slidingmenu.SlidingActivityHelper.registerAboveContentView ( View  v,
LayoutParams  params 
)
inline

Register the above content view.

参数
vthe above content view to register
paramsLayoutParams for that view (unused)
void com.ab.view.slidingmenu.SlidingActivityHelper.setBehindContentView ( View  view,
LayoutParams  layoutParams 
)
inline

Set the behind view content to an explicit view. This view is placed directly into the behind view 's view hierarchy. It can itself be a complex view hierarchy.

参数
viewThe desired content to display.
layoutParamsLayout parameters for the view. (unused)
void com.ab.view.slidingmenu.SlidingActivityHelper.setContentView ( View  v)
inline

Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy. When calling this method, the layout parameters of the specified view are ignored. Both the width and the height of the view are set by default to MATCH_PARENT. To use your own layout parameters, invoke setContentView(android.view.View, android.view.ViewGroup.LayoutParams) instead.

参数
vThe desired content to display.
void com.ab.view.slidingmenu.SlidingActivityHelper.setSlidingActionBarEnabled ( boolean  slidingActionBarEnabled)
inline

Controls whether the ActionBar slides along with the above view when the menu is opened, or if it stays in place.

参数
slidingActionBarEnabledTrue if you want the ActionBar to slide along with the SlidingMenu, false if you want the ActionBar to stay in place
void com.ab.view.slidingmenu.SlidingActivityHelper.showContent ( )
inline

Close the SlidingMenu and show the content view.

void com.ab.view.slidingmenu.SlidingActivityHelper.showMenu ( )
inline

Open the SlidingMenu and show the menu view.

void com.ab.view.slidingmenu.SlidingActivityHelper.showSecondaryMenu ( )
inline

Open the SlidingMenu and show the secondary menu view. Will default to the regular menu if there is only one.

void com.ab.view.slidingmenu.SlidingActivityHelper.toggle ( )
inline

Toggle the SlidingMenu. If it is open, it will be closed, and vice versa.

类成员变量说明

Activity com.ab.view.slidingmenu.SlidingActivityHelper.mActivity
private

The m activity.

boolean com.ab.view.slidingmenu.SlidingActivityHelper.mBroadcasting = false
private

The m broadcasting.

boolean com.ab.view.slidingmenu.SlidingActivityHelper.mEnableSlide = true
private

The m enable slide.

boolean com.ab.view.slidingmenu.SlidingActivityHelper.mOnPostCreateCalled = false
private

The m on post create called.

SlidingMenu com.ab.view.slidingmenu.SlidingActivityHelper.mSlidingMenu
private

The m sliding menu.

View com.ab.view.slidingmenu.SlidingActivityHelper.mViewAbove
private

The m view above.

View com.ab.view.slidingmenu.SlidingActivityHelper.mViewBehind
private

The m view behind.


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