com.leafdigital.ui.api
Interface PopupMenu


public interface PopupMenu

Represents a popup menu with a number of items and separators. It is not currently possible to just create a popup menu and show it; see TextView.MenuHandler for one use.


Method Summary
 void addItem(java.lang.String name, java.lang.Runnable action)
          Adds an item to the menu.
 void addSeparator()
          Adds a separator to the menu.
 

Method Detail

addItem

void addItem(java.lang.String name,
             java.lang.Runnable action)
Adds an item to the menu.

Parameters:
name - Name of item
action - Runnable that happens if the item is clicked

addSeparator

void addSeparator()
Adds a separator to the menu.



Copyright © 2011 Samuel Marshall. All rights reserved.