类 | |
| interface | CanvasTransformer |
| interface | OnClosedListener |
| interface | OnCloseListener |
| interface | OnOpenedListener |
| interface | OnOpenListener |
Public 成员函数 | |
| SlidingMenu (Context context) | |
| SlidingMenu (Activity activity, int slideStyle) | |
| SlidingMenu (Context context, AttributeSet attrs) | |
| SlidingMenu (Context context, AttributeSet attrs, int defStyle) | |
| void | attachToActivity (Activity activity, int slideStyle) |
| void | attachToActivity (Activity activity, int slideStyle, boolean actionbarOverlay) |
| void | setContent (int res) |
| void | setContent (View view) |
| View | getContent () |
| void | setMenu (int res) |
| void | setMenu (View v) |
| View | getMenu () |
| void | setSecondaryMenu (int res) |
| void | setSecondaryMenu (View v) |
| View | getSecondaryMenu () |
| void | setSlidingEnabled (boolean b) |
| boolean | isSlidingEnabled () |
| void | setMode (int mode) |
| int | getMode () |
| void | setStatic (boolean b) |
| void | showMenu () |
| void | showMenu (boolean animate) |
| void | showSecondaryMenu () |
| void | showSecondaryMenu (boolean animate) |
| void | showContent () |
| void | showContent (boolean animate) |
| void | toggle () |
| void | toggle (boolean animate) |
| boolean | isMenuShowing () |
| boolean | isSecondaryMenuShowing () |
| int | getBehindOffset () |
| void | setBehindOffset (int i) |
| void | setBehindOffsetRes (int resID) |
| void | setAboveOffset (int i) |
| void | setAboveOffsetRes (int resID) |
静态 Public 属性 | |
| static final int | SLIDING_WINDOW = 0 |
| static final int | SLIDING_CONTENT = 1 |
| static final int | TOUCHMODE_MARGIN = 0 |
| static final int | TOUCHMODE_FULLSCREEN = 1 |
| static final int | TOUCHMODE_NONE = 2 |
| static final int | LEFT = 0 |
| static final int | RIGHT = 1 |
| static final int | LEFT_RIGHT = 2 |
Private 属性 | |
| boolean | mActionbarOverlay = false |
| CustomViewAbove | mViewAbove |
| CustomViewBehind | mViewBehind |
| OnOpenListener | mOpenListener |
| OnOpenListener | mSecondaryOpenListner |
| OnCloseListener | mCloseListener |
静态 Private 属性 | |
| static final String | TAG = "SlidingMenu" |
The Class SlidingMenu.
|
inline |
Instantiates a new SlidingMenu.
| context | the associated Context |
|
inline |
Instantiates a new SlidingMenu and attach to Activity.
| activity | the activity to attach slidingmenu |
| slideStyle | the slidingmenu style |
|
inline |
Instantiates a new SlidingMenu.
| context | the associated Context |
| attrs | the attrs |
|
inline |
Instantiates a new SlidingMenu.
| context | the associated Context |
| attrs | the attrs |
| defStyle | the def style |
|
inline |
Attaches the SlidingMenu to an entire Activity.
| activity | the Activity |
| slideStyle | either SLIDING_CONTENT or SLIDING_WINDOW |
|
inline |
Attaches the SlidingMenu to an entire Activity.
| activity | the Activity |
| slideStyle | either SLIDING_CONTENT or SLIDING_WINDOW |
| actionbarOverlay | whether or not the ActionBar is overlaid |
|
inline |
Gets the behind offset.
|
inline |
Retrieves the current content.
|
inline |
Retrieves the main menu.
|
inline |
Returns the current side that the SlidingMenu is on.
|
inline |
Retrieves the current secondary menu (right).
|
inline |
Checks if is the behind view showing.
|
inline |
Checks if is the behind view showing.
|
inline |
Checks if is sliding enabled.
|
inline |
Sets the above offset.
| i | the new above offset, in pixels |
|
inline |
Sets the above offset.
| resID | The dimension resource id to be set as the above offset. |
|
inline |
Sets the behind offset.
| i | The margin, in pixels, on the right of the screen that the behind view scrolls to. |
|
inline |
Sets the behind offset.
| resID | The dimension resource id to be set as the behind offset. The menu, when open, will leave this width margin on the right of the screen. |
|
inline |
Set the above view content from a layout resource. The resource will be inflated, adding all top-level views to the above view.
| res | the new content |
|
inline |
Set the above view content to the given View.
| view | The desired content to display. |
|
inline |
Set the behind view (menu) content from a layout resource. The resource will be inflated, adding all top-level views to the behind view.
| res | the new content |
|
inline |
Set the behind view (menu) content to the given View.
| v | the new menu |
|
inline |
Sets which side the SlidingMenu should appear on.
| mode | must be either SlidingMenu.LEFT or SlidingMenu.RIGHT |
|
inline |
Set the secondary behind view (right menu) content from a layout resource. The resource will be inflated, adding all top-level views to the behind view.
| res | the new content |
|
inline |
Set the secondary behind view (right menu) content to the given View.
| v | the new secondary menu |
|
inline |
Sets the sliding enabled.
| b | true to enable sliding, false to disable it. |
|
inline |
Sets whether or not the SlidingMenu is in static mode (i.e. nothing is moving and everything is showing)
| b | true to set static mode, false to disable static mode. |
|
inline |
Closes the menu and shows the above view.
|
inline |
Closes the menu and shows the above view.
| animate | true to animate the transition, false to ignore animation |
|
inline |
Opens the menu and shows the menu view.
|
inline |
Opens the menu and shows the menu view.
| animate | true to animate the transition, false to ignore animation |
|
inline |
Opens the menu and shows the secondary menu view. Will default to the regular menu if there is only one.
|
inline |
Opens the menu and shows the secondary (right) menu view. Will default to the regular menu if there is only one.
| animate | true to animate the transition, false to ignore animation |
|
inline |
Toggle the SlidingMenu. If it is open, it will be closed, and vice versa.
|
inline |
Toggle the SlidingMenu. If it is open, it will be closed, and vice versa.
| animate | true to animate the transition, false to ignore animation |
|
static |
Constant value for use with setMode(). Puts the menu to the left of the content.
|
static |
Constant value for use with setMode(). Puts menus to the left and right of the content.
|
private |
The m actionbar overlay.
|
private |
The m close listener.
|
private |
The m open listener.
|
private |
The m secondary open listner.
|
private |
The m view above.
|
private |
The m view behind.
|
static |
Constant value for use with setMode(). Puts the menu to the right of the content.
|
static |
The Constant SLIDING_CONTENT.
|
static |
The Constant SLIDING_WINDOW.
|
staticprivate |
The Constant TAG.
|
static |
Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe gesture anywhere on the screen
|
static |
Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe gesture on the screen's margin
|
static |
Constant value for use with setTouchModeAbove(). Denies the SlidingMenu to be opened with a swipe gesture
1.8.8