History log of /frameworks/base/core/java/com/android/internal/view/menu/ActionMenu.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e631e32a1a771a36267af3f8af8b64e9365bc19e 19-Oct-2016 Peeyush Agarwal <apeeyush@google.com> Extend MenuItem to allow modifier keys for shortcut

Before this, CTRL was the default modifier for MenuItem shortcuts.
Now, It's possible to specify the modifier in XML or via MenuItem
methods.
The modifier list includes META, CTRL, ALT, SHIFT, SYM and FUNCTION.

WIP on support library implementation

Bug: 32165848
Test: Run the tests using following commands:
> cts-tradefed run cts-dev -m CtsViewTestCases -t
> android.view.cts.MenuTest#testPerformShortcut
> cts-tradefed run cts-dev -m CtsViewTestCases -t
> android.view.cts.MenuInflaterTest#testInflateShortcutModifiersFromXml

Change-Id: I7db4607d4657451934761914efe4c250de109653
/frameworks/base/core/java/com/android/internal/view/menu/ActionMenu.java
33b974393b6fadcefc896ec4a0f9b66724f61e9f 20-Apr-2010 Adam Powell <adamp@google.com> ActionBar added to framework, integrated with Activity and styles.
Added onClick attribute support to menus in MenuInflater.

Change-Id: I739771b4f249d87a0d8b15969f3d526b099067a1
/frameworks/base/core/java/com/android/internal/view/menu/ActionMenu.java