| com.ab.view.slidingmenu.SlidingActivityHelper.SlidingActivityHelper |
( |
Activity |
activity | ) |
|
|
inline |
| 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).
- 参数
-
| id | the resource id of the desired view |
- 返回
- The view if found or null otherwise.
| SlidingMenu com.ab.view.slidingmenu.SlidingActivityHelper.getSlidingMenu |
( |
| ) |
|
|
inline |
| 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()
- 参数
-
| savedInstanceState | the saved instance state (unused) |
| boolean com.ab.view.slidingmenu.SlidingActivityHelper.onKeyUp |
( |
int |
keyCode, |
|
|
KeyEvent |
event |
|
) |
| |
|
inline |
On key up.
- 参数
-
| keyCode | the key code |
| event | the 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()
- 参数
-
| savedInstanceState | the 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).
- 参数
-
| outState | Bundle in which to place your saved state. |
| void com.ab.view.slidingmenu.SlidingActivityHelper.registerAboveContentView |
( |
View |
v, |
|
|
LayoutParams |
params |
|
) |
| |
|
inline |
Register the above content view.
- 参数
-
| v | the above content view to register |
| params | LayoutParams 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.
- 参数
-
| view | The desired content to display. |
| layoutParams | Layout 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.
- 参数
-
| v | The 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.
- 参数
-
| slidingActionBarEnabled | True 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 |
| void com.ab.view.slidingmenu.SlidingActivityHelper.showMenu |
( |
| ) |
|
|
inline |
| 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 |
| boolean com.ab.view.slidingmenu.SlidingActivityHelper.mBroadcasting = false |
|
private |
| boolean com.ab.view.slidingmenu.SlidingActivityHelper.mEnableSlide = true |
|
private |
| boolean com.ab.view.slidingmenu.SlidingActivityHelper.mOnPostCreateCalled = false |
|
private |
The m on post create called.
| SlidingMenu com.ab.view.slidingmenu.SlidingActivityHelper.mSlidingMenu |
|
private |
| View com.ab.view.slidingmenu.SlidingActivityHelper.mViewAbove |
|
private |
| View com.ab.view.slidingmenu.SlidingActivityHelper.mViewBehind |
|
private |
该类的文档由以下文件生成: