English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public class

android.widget.ListMenuItemView

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.view.ViewGroup ViewManager ViewParent
android.widget.RelativeLayout
android.widget.ListMenuItemView MenuView.ItemView MenuView.ItemView.CheckableCapable MenuView.ItemView.IconCapable MenuView.ItemView.ShortcutCapable

The item view for each item in the ListView-based MenuViews.

Also see ViewGroup.LayoutParams for layout attributes.

Summary

XML Attributes inherited from class android.view.ViewGroup
XML Attributes inherited from class android.view.View
Constants inherited from class android.widget.RelativeLayout
Constants inherited from class android.view.ViewGroup
Constants inherited from class android.view.View
Fields inherited from class android.view.ViewGroup
Fields inherited from class android.view.View

Public Constructors

          ListMenuItemView(Context context, AttributeSet attrs, Map inflateParams, int defStyle)
          ListMenuItemView(Context context, AttributeSet attrs, Map inflateParams)

Public Methods

        MenuItemData  getItemData()
Gets the item data that this view is displaying.
        void  initialize(MenuItemData itemData)
Initializes with the provided MenuItemData.
        void  setCheckable(boolean checkable)
Displays the checkbox for the item view.
        void  setChecked(boolean checked)
Checks the checkbox for the item view.
        void  setIcon(Drawable icon)
Set the icon of this item view.
        void  setItemInvoker(ItemInvoker itemInvoker)
Set the MenuBuilder.ItemInvoker that will be called when this item view is clicked.
        void  setShortcut(boolean showShortcut, char shortcutKey)
Sets the shortcut for the item.
        void  setTitle(CharSequence title)
Sets the title of the item view.

Protected Methods

        void  onFinishInflate()
Finalize inflating a view from XML.
Methods inherited from class android.widget.RelativeLayout
Methods inherited from class android.view.ViewGroup