| AndBase开发框架 1.6

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

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

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

## Public 成员函数
void | onCreate (Bundle savedInstanceState)
void | onPostCreate (Bundle savedInstanceState)
View | findViewById (int id)
void | setContentView (int id)
void | setContentView (View v)
void | setContentView (View v, LayoutParams params)
void | setBehindContentView (int id)
void | setBehindContentView (View v)
void | setBehindContentView (View v, LayoutParams params)
SlidingMenu | getSlidingMenu ()
void | toggle ()
void | showContent ()
void | showMenu ()
void | showSecondaryMenu ()
void | setSlidingActionBarEnabled (boolean b)
boolean | onKeyUp (int keyCode, KeyEvent event)

## Protected 成员函数
void | onSaveInstanceState (Bundle outState)

## Private 属性
SlidingActivityHelper | mHelper

## 详细描述

The Class SlidingActivity.

## 成员函数说明

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

SlidingMenu com.ab.view.slidingmenu.SlidingActivity.getSlidingMenu | ( |  | ) |
| inline

Gets the SlidingMenu associated with this activity.

返回
  the SlidingMenu associated with this activity.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.onCreate | ( | Bundle | savedInstanceState | ) |
| inline

boolean com.ab.view.slidingmenu.SlidingActivity.onKeyUp | ( | int | keyCode,
|  | KeyEvent | event
| ) |  |
| inline

void com.ab.view.slidingmenu.SlidingActivity.onPostCreate | ( | Bundle | savedInstanceState | ) |
| inline

void com.ab.view.slidingmenu.SlidingActivity.onSaveInstanceState | ( | Bundle | outState | ) |
| inline protected

void com.ab.view.slidingmenu.SlidingActivity.setBehindContentView | ( | int | layoutResID | ) |
| inline

Set the behind view content from a layout resource. The resource will be inflated, adding all top-level views to the behind view.

参数

  layoutResID | Resource ID to be inflated.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.setBehindContentView | ( | View | view | ) |
| 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. 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.

参数

  view | The desired content to display.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.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.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.setContentView | ( | int | id | ) |
| inline

void com.ab.view.slidingmenu.SlidingActivity.setContentView | ( | View | v | ) |
| inline

void com.ab.view.slidingmenu.SlidingActivity.setContentView | ( | View | v,
|  | LayoutParams | params
| ) |  |
| inline

void com.ab.view.slidingmenu.SlidingActivity.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

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.showContent | ( |  | ) |
| inline

Close the SlidingMenu and show the content view.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.showMenu | ( |  | ) |
| inline

Open the SlidingMenu and show the menu view.

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.showSecondaryMenu | ( |  | ) |
| inline

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

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

void com.ab.view.slidingmenu.SlidingActivity.toggle | ( |  | ) |
| inline

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

实现了 com.ab.view.slidingmenu.SlidingActivityBase.

## 类成员变量说明

SlidingActivityHelper com.ab.view.slidingmenu.SlidingActivity.mHelper
| private

The m helper.

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

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