完整内容,请查看: http://www.zhdoc.net/android/reference/android/widget/ActionMenuView.html
ActionMenuView
public class ActionMenuView
extends LinearLayout
implements MenuBuilder.ItemInvoker
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.LinearLayout | |||
↳ | android.widget.ActionMenuView |
ActionMenuView is a presentation of a series of menu options as a View. It provides several top level options as action buttons while spilling remaining options over as items in an overflow menu. This allows applications to present packs of actions inline with specific or repeating content.
ActionMenuView呈现视图的一系列菜单选项。它提供了几个顶层选项作为操作按钮,同时将剩余选项放到一个溢出菜单(overflow menu)中的项目。此方法允许应用程序以特定的或重复的内容来呈现一组动作。
摘要
嵌套类 | |
---|---|
class | ActionMenuView.LayoutParams
|
interface | ActionMenuView.OnMenuItemClickListener Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners. |
继承XML属性 | |
---|---|
![]() android.widget.LinearLayout
| |
![]() android.view.ViewGroup
| |
![]() android.view.View
|
继承常量 |
---|
![]() android.widget.LinearLayout
|
![]() android.view.ViewGroup
|
![]() android.view.View
|
继承字段 |
---|
![]() android.view.View
|
Public构造方法 | |
---|---|
ActionMenuView(Context context) | |
ActionMenuView(Context context, AttributeSet attrs) |
Public方法 | |
---|---|
void | dismissPopupMenus() Dismiss any popups associated with this menu view. |
ActionMenuView.LayoutParams | generateLayoutParams(AttributeSet attrs) Returns a new set of layout parameters based on the supplied attributes set. |
Menu | getMenu() Returns the Menu object that this ActionMenuView is currently presenting. |
Drawable | getOverflowIcon() Return the current drawable used as the overflow icon. |
int | getPopupTheme() |
boolean | hideOverflowMenu() Hide the overflow items from the associated menu. |
boolean | isOverflowMenuShowing() Check whether the overflow menu is currently showing. |
void | onConfigurationChanged(Configuration newConfig) Called when the current configuration of the resources being used by the application have changed. |
void | onDetachedFromWindow() This is called when the view is detached from a window. |
void | setOnMenuItemClickListener(ActionMenuView.OnMenuItemClickListener listener) |
void | setOverflowIcon(Drawable icon) Set the icon to use for the overflow button. |
void | setPopupTheme(int resId) Specifies the theme to use when inflating popup menus. |
boolean | showOverflowMenu() Show the overflow items from the associated menu. |
保护方法 | |
---|---|
boolean | checkLayoutParams(ViewGroup.LayoutParams p) |
ActionMenuView.LayoutParams | generateDefaultLayoutParams() Returns a set of layout parameters with a width of |
ActionMenuView.LayoutParams | generateLayoutParams(ViewGroup.LayoutParams p) Returns a safe set of layout parameters based on the supplied layout params. |
void | onLayout(boolean changed, int left, int top, int right, int bottom) Called from layout when this view should assign a size and position to each of its children. |
void | onMeasure(int widthMeasureSpec, int heightMeasureSpec) Measure the view and its content to determine the measured width and the measured height. |
继承方法
完整内容,请查看: http://www.zhdoc.net/android/reference/android/widget/ActionMenuView.html