53023ffdeae781e9750a5ef90a31ee3f5e0c2b4c |
|
18-Sep-2015 |
Alan Viverette <alanv@google.com> |
SubMenuBuilder.getRootMenu() should return root menu, not parent Also fixes incorrect call from MenuItemImpl to dispatchMenuSelected, which should according to the documentation be passing the direct parent menu of the menu item. Bug: 23725571 Change-Id: I2d1f04b80ce05d141ba2dfd77f62bb13b2268625
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
038f1c80af06da55056120e121d43e3ee89ec726 |
|
21-Jul-2011 |
Adam Powell <adamp@google.com> |
Bug 5061529 - Save/restore action view state for menu items across invalidations. This includes expand/collapse state. Add CollapsibleActionView interface. Views can implement this to have special behavior when they are presented as an expanding/collapsing action view. This lets SearchView and others take care of fiddly behavior (focus stealing; opening the IME) automatically without apps needing to implement this themselves. Change-Id: Ibbd1eb5fcf3e3a862419e9344ad50f896bd05e36
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
8d02deabac62c4a68a335a7b3141795466362b89 |
|
01-Jun-2011 |
Adam Powell <adamp@google.com> |
Implement bug 4500971 - Collapsable action views Action views may now be flagged as 'collapsable'. This means that the action menu will always show them in the collapsed state by default. When selected, the action view will "take over" the navigation/view side of an action bar until dismissed via the home/up button. This feature allows for more long-term exclusive modes akin to ActionModes but less intrusive. The action menu itself remains unaffected. Collapsable action views are ideal for things such as search or categories of tool palettes. Change-Id: Ibafce5631befbfe67c5d834c2e2617d3d7f6da7a
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
f746fc9e45c2bc80d8af2eb10d849c5807ebe1c7 |
|
21-May-2011 |
Adam Powell <adamp@google.com> |
Fix bug 4450805 - item selection dispatching in submenus. Change-Id: I6c56c9c8c6bd6c719250df4a21bda7d0ef463de4
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
696cba573e651b0e4f18a4718627c8ccecb3bda0 |
|
29-Mar-2011 |
Adam Powell <adamp@google.com> |
Refactor menu internals. In the old world, MenuBuilder and MenuItemImpl were responsible for generating views for any presentation of a menu. MenuBuilder needed to know any types and resources involved, and the implied caching semantics did not work well for menus presented within AdapterViews. In the new world, the MenuPresenter interface takes over the responsibility of generating views or adapters for menu items. MenuBuilder/MenuItemImpl still provide extra metadata tracking used by these presenters. Mutiple presenters may be active for a single menu at a time. All of this remains internal framework implementation details. BaseMenuPresenter provides a simple base for presenters that treats the host MenuView more like an AdapterView. This allows for less rebuilding of views when items are added/removed. Callbacks have been restructured. Calls that relate to the menu itself are still handled by MenuBuilder.Callback, but calls related to a specific presentation of a menu are handled by MenuPresenter.Callback objects attached to a MenuPresenter. Also add API to programmatically set divider options for LinearLayout and hidden API so that ActionBarView can have finer-grained control over divider placement. Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/com/android/internal/view/menu/SubMenuBuilder.java
|