• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/com/android/internal/view/menu/
History log of /frameworks/base/core/java/com/android/internal/view/menu/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e38eb4d4ef504c0b72d51dfcc8fcd06cf73c0d50 23-Oct-2014 Alan Viverette <alanv@google.com> Revert "Check MenuItem.isVisible() for keyboard shortcuts"

Just kidding we do want this to work like it used to.

This reverts commit e354a9e4da56da45d7035e1e93301554c5faf32e.

Change-Id: Ia51050a93e25c1ad16144b0da3f6178a98ad971a
enuBuilder.java
e354a9e4da56da45d7035e1e93301554c5faf32e 21-Oct-2014 Alan Viverette <alanv@google.com> Check MenuItem.isVisible() for keyboard shortcuts

Parity with support-v7 change.

BUG: 18021345
Change-Id: I583b586d451a21bbd207d2b0584a396e1125ee59
enuBuilder.java
29632521c36548d71b610fc4de864281bab4dfb4 16-Oct-2014 Alan Viverette <alanv@google.com> Add style support to PopupMenu, clean up constructor javadoc

BUG: 18002523
Change-Id: Ice492686b814460248ccbe9727c64dd002e7ed7a
enuPopupHelper.java
d719539f91d4f5cf6c0f9be0b68b750dcd443433 22-Aug-2014 Yigit Boyar <yboyar@google.com> Fix RTL bug for actionbar tooltips

Bug: 12570378
Change-Id: I13ba94c8b736a3a80a8d79e95bd18b93a1157303
ctionMenuItemView.java
3d0f21dab8d891b9aebdd5277348d549eeb843e6 11-Jul-2014 Alan Viverette <alanv@google.com> API for inflating action bar menus against a different theme

BUG: 16162344
Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
enuBuilder.java
enuPopupHelper.java
enuPresenter.java
cb923d99e9ec2f7b6b40a7c89c83a6caaa03b016 01-Jul-2014 Chet Haase <chet@google.com> null-check before derefing title in MenuItemImpl

The toString() method in MenuItemImpl returns mTitle.toString(),
which crashes when the title is null (which it can be, since there
is no requirement that a title be non-null, and you can get one
by simply not assigning a title to begin with or by setting it
to null).

Issue #13420311 MenuItemImpl can't handle a null title

Change-Id: I701d1d565f1d254ffdd41ca64c1abaf2906edb79
enuItemImpl.java
560f17098f90b15c8894cce127f2fed85f7aeb6b 05-May-2014 Alan Viverette <alanv@google.com> Add support for popups overlapping anchors

BUG: 14471731
Change-Id: I16e8d76caedfebd0c38b8c0b22cd9619d70877c8
enuPopupHelper.java
1001961f904bac5294aaf73a47c2497aa764bf7f 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus.

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
enuBuilder.java
e43340c80dc66c45edc793ecd0343774aa34d108 18-Mar-2014 Adam Powell <adamp@google.com> android.widget.Toolbar

Add the new Toolbar widget for use in app layouts.

ActionBar can now be used as a point of control for either a
traditional window decor action bar or for a Toolbar that appears
inline in an Activity's layout.

ToolbarActionBar is currently WIP.

Change-Id: I0da093e5645840f4fd032aa34efa0ae5f1825ff2
ctionMenuItemView.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
ctionMenuItem.java
enuBuilder.java
enuItemImpl.java
56110725f2a0b3f09703f2cbe9705d97609ee1e5 10-Jan-2014 Alan Viverette <alanv@google.com> Move drag-to-open handling into ActionMenuItemView

This prevents the menu item's OnClickListener from being overwritten,
allows the client to override item invocation, and prevents showing
multiple popups when items are re-initialized.

BUG: 11969895
BUG: 12489213
Change-Id: I97ca737810073df348171cdba5442f24a5527f89
ctionMenuItemView.java
fa18d182a3f37505940e73ae6cd76c2e939f7f7c 08-Jan-2014 Adam Powell <adamp@google.com> Move ActionMenuView into android.widget and make it public

Expose ActionMenuView as a way for applications to present
ActionBar-style menus in other embedded or repeating contexts.

Change-Id: I54b7ccd9b2116ca68bc72956da9262bca9d5085f
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
enuBuilder.java
c0cc68053e5013c207be6f64ffd2ad9e8c467def 04-Dec-2013 Adam Powell <adamp@google.com> Fix a bug in submenu presenter priority handling

Now that overflow menus and the PhoneWindow-level ListMenuPresenter
can coexist, make sure that ListMenuPresenter handles submenus spawned
by itself. Introduce an internal API for menus to prefer a specific
presenter when performing item actions.

Bug 11979407

Change-Id: Id0b8fcbb8b310cbb3a63a1e5ea7a89de5d53f86f
istMenuPresenter.java
enuBuilder.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
ctionMenuPresenter.java
istMenuPresenter.java
enuPopupHelper.java
307182870ddbfc32ab3b18e697ab85c8e88a4fe5 05-Nov-2013 Adam Powell <adamp@google.com> am a20bfd96: am fe803958: am 1262d0c8: Merge "Fix action menu visibility callbacks for nested popups" into klp-dev

* commit 'a20bfd96bae95bd54b20ebd184655d7211cedcb4':
Fix action menu visibility callbacks for nested popups
b411b32861e7794a59fa7558dbe9d97407eccf23 02-Nov-2013 Adam Powell <adamp@google.com> Fix action menu visibility callbacks for nested popups

When opening a submenu from a popup in ActionMenuPresenter, delegate
the submenu callbacks to the presenter callback registered on the
ActionMenuPresenter. This allows menu visibility callbacks to
propagate properly so that apps that hide their action bars after a
timeout can detect open menus that are deeply nested.

Bug 11429613

Change-Id: I3332886f08d4f9010f0875057c457566301d12ec
ctionMenuPresenter.java
aseMenuPresenter.java
d2d0b5843d3c88d881c67d165bf2539dcda6e8a9 11-Oct-2013 Adam Powell <adamp@google.com> am 7b3cdb0f: am 6f090af3: am ebd1dca5: Merge "Re-enable ActionMenuPresenter view recycling" into klp-dev

* commit '7b3cdb0fb7cd7fab647de09e6a64ce59555ed733':
Re-enable ActionMenuPresenter view recycling
c3ca3ea3a937a20666e4f01fb1a9efb503ec274e 11-Oct-2013 Adam Powell <adamp@google.com> Re-enable ActionMenuPresenter view recycling

Since action bar transitions are turned off again for now, re-enabling
item view recycling fixes an unfortunate regression with submenus.

If a menu view is invalidated while a submenu is open we need to keep
its anchor consistent. With view recycling active we preserve status
quo and the previous anchor view instance for the popup window remains
in place.

In the future this will need to get more sophisticated;
ActionMenuPresenter will need to re-parent an open submenu against the
proper anchor view by menu item id. But that is a change for another
day.

Bug 11174504

Change-Id: I7e8a444f6996ec95417d20e87938f496e9c3a4dd
ctionMenuPresenter.java
e580a2f1a16f125862357af9778e9d73594d4398 04-Oct-2013 Adam Powell <adamp@google.com> am bf7116a9: am 049e663c: am 8c5b15c6: Merge "Fix a bug in action menu measurement" into klp-dev

* commit 'bf7116a9ddeff368b6a33fabfaa82ce974d5ee0d':
Fix a bug in action menu measurement
da9710806bc7874b8c553f4daf9cf14f35ae1b07 04-Oct-2013 Adam Powell <adamp@google.com> Fix a bug in action menu measurement

Thanks to a measurement optimization in KK, the view recycling
behavior of ActionMenuPresenter could get into a state where the
resulting ActionMenuView had changed but no layout was
requested. Explicitly request a layout during menu update. Also fix an
ancient typo.

Bug 11047996

Change-Id: I6289fd2d142ac7d2101fbec6de19b7d3d7fbd6a2
ctionMenuPresenter.java
ctionMenuView.java
enuBuilder.java
66d1cd9da1f5bd3aa3c70a28cbd6bd8801049ace 30-Sep-2013 Adam Powell <adamp@google.com> am 8fb6d97a: Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev

* commit '8fb6d97ad5671b4abc1940d8bc56cf7448e45c35':
Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu
54c94dea8a26e66fa59a31fd9170ca221052d3aa 27-Sep-2013 Adam Powell <adamp@google.com> Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu

Allow calling code to specify left/right/start/end gravity when
showing a popup attached to an anchor. This allows easy alignment of
either the right or left edges of the popup and anchor view.

Bug 10728401

Change-Id: Ie0844a04ea0576fa67b0972f5873aaa4c5b823f6
ctionMenuPresenter.java
enuPopupHelper.java
e4039cc6bce84c1aded1ea7e18a013aa71c40615 24-Sep-2013 Chet Haase <chet@google.com> am 5c69fd7d: am cfdc0369: Merge "Disable ActionBar usage of transitions" into klp-dev

* commit '5c69fd7d36af2d186fa3b654cf8b3e6eeb5596b9':
Disable ActionBar usage of transitions
d8d7c38533d20062166e5e7ef89b80ff9dbd8903 23-Sep-2013 Chet Haase <chet@google.com> Disable ActionBar usage of transitions

Various artifacts across apps were coming from ActionBar's use of
the new transitions framework. Disabling transitions for now to get
things back to a more stable state.

Also, fixed some related bugs in transitions themselves, including
a change in TextChange to account for text selection, which was causing
errors in Keep's SearchView.

Issue #10860557 TextChange animator may old stale value
Issue #10819685 sometimes icons are lighter
Issue #10750525 Share and Settings icons overlap when stopping slideshow
Issue #10839551 Sometimes the search text box is right-aligned in Keep
Issue #10727484 Cursor incorrectly positioned after entering first letter during search action in keep app

Change-Id: Iad7cbf3297e18018308b8148b3519b032e63dace
ctionMenuPresenter.java
f206b5935e702d9b0bf9ce23166017a54ff4880e 14-Sep-2013 Adam Powell <adamp@google.com> am 3cfc5995: am 3157e73f: Merge "Don\'t recycle action button views" into klp-dev

* commit '3cfc5995bfa5d9d4c9203991131d76947c572b58':
Don't recycle action button views
76d915955f04f841161b054e6c249a65c78ba0fd 13-Sep-2013 Adam Powell <adamp@google.com> Don't recycle action button views

Recycling action button views interferes with transition
animations. Suppress menu item view recycling for them.

Change-Id: I69d7561e337be7e4a89b7cf30b6c9439f2d49cc2
ctionMenuPresenter.java
d488b785dfd7aadbb4dac69eeb2537182d814979 12-Sep-2013 Adam Powell <adamp@google.com> am 179ba0c0: am a2906cb4: Merge "Show alternate menu panel on devices with menu key" into klp-dev

* commit '179ba0c04b446406d226cdfe866317d0d2bcecce':
Show alternate menu panel on devices with menu key
a2906cb4d9355b7a08e7fdec1924c2dbc7fda622 12-Sep-2013 Adam Powell <adamp@google.com> Merge "Show alternate menu panel on devices with menu key" into klp-dev
5fcf5b9fd3ff6757090c6bd166b60c18eda0b3ef 11-Sep-2013 Adam Powell <adamp@google.com> Show alternate menu panel on devices with menu key

Provide a softer transition to the overflow-everywhere world for
devices with menu keys. The panel menu will still be used on these
devices in response to a menu key press even in the presence of an
action bar with overflow.

Fix a few lingering bugs around dispatching the open-overflow
transition that caused problems with this along the way.

Change-Id: I9d77c70f6d15c47160ac06292984101d619c44e6
ctionMenuPresenter.java
a395e70109c904c223bb0575e2447fd249701d0d 12-Sep-2013 Adam Powell <adamp@google.com> am 18149fcf: am 6847447d: Merge "Action bar refactoring and transitions" into klp-dev

* commit '18149fcf86eee3335b28b2c2373b585c4e18745a':
Action bar refactoring and transitions
ad79b90f21dcde6f741c47a251882c0a47c5f698 19-Jun-2013 Adam Powell <adamp@google.com> Action bar refactoring and transitions

* Remove the extra occurrence of the Up caret view and reuse the
standard home view.

* Use new transition APIs to animate changes in action bar content.

Change-Id: I7af3bb580ef4bff7d8dec9e21649b856fe73c77b
ctionMenuPresenter.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
ctionMenuItemView.java
conMenuItemView.java
istMenuItemView.java
fbe4a586c29b6e415e8d39d73d19bd7f0215a851 06-Sep-2013 Alan Viverette <alanv@google.com> Add drag-to-open for action bar submenus

BUG: 10649895
Change-Id: I5076e0d09453a75ed20c44eede4b43e8a2f535fd
ctionMenuPresenter.java
6b8c69edd210ad86eb659e06681422bb29ba2123 27-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Update AccessibilityNodeInfo API as per API council request" into klp-dev
cb8ed39b3fb591be60b9fb1799d4ea4530eab758 24-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Update AccessibilityNodeInfo API as per API council request

bug:10461302

Change-Id: I9709a271ab3720e064b98c79c0950d811fe37b73
ctionMenuPresenter.java
istMenuItemView.java
69960142efa8d228adbfcbabdcf618426e31e1f5 23-Aug-2013 Alan Viverette <alanv@google.com> Reconcile drag-to-open and touch event interception

Changes behavior such that dragging on a Spinner that's inside
of a ScrollView will only scroll after a tap delay.

BUG: 10442971
Change-Id: I9fa9c5f0cf99e0cd158f52b6fa7a109ce1b6b8b1
ctionMenuPresenter.java
a2e88ef89611d69b65b1830cc5ffebfb679e9d4d 21-Aug-2013 Alan Viverette <alanv@google.com> Merge "Move forwarding code to ListPopupWindow, add drag-to-open in Spinner" into klp-dev
058ac7cfe5bb7b9ecc411b94622ac3f31a7fa25e 20-Aug-2013 Alan Viverette <alanv@google.com> Use MULTI_LINE and OPENS_POPUP accessibility properties

BUG: 10391326
Change-Id: Ib2deeeef401802b6dde646e14ee5367141469a58
ctionMenuPresenter.java
istMenuItemView.java
ca6a3611cdb28a514834adba35fcce2da6f2e7c2 16-Aug-2013 Alan Viverette <alanv@google.com> Move forwarding code to ListPopupWindow, add drag-to-open in Spinner

BUG: 9437139
Change-Id: I4599cf65a472b2ce74d2301988359d87917a6eec
ctionMenuPresenter.java
enuPopupHelper.java
ouchForwardingListener.java
c05027214f1f4dda67296a072dfc9af9176dc590 16-Aug-2013 Alan Viverette <alanv@google.com> Forward events to ListPopupWindow, highlight touched items

Moves most of the drag-to-open behavior into ListPopupWindow's
particular implementation of ListView. Uses hidden View API for
forwarding events between different windows.

Overflow menu opens on first touch, closes on touch end outside
the overflow button. Clicks that occur during drag-to-open mode
result in alpha animation of the selector drawable.

BUG: 9437139
Change-Id: I70f540555a03450638a27880b3ae3b031ca6e2ed
ctionMenuPresenter.java
enuPopupHelper.java
80e72700858eb58b379f77a0da5fd3a98e1aa07c 29-Jul-2013 Alan Viverette <alanv@google.com> Implement drag to open overflow menu, lift to select

BUG: 9437139
Change-Id: Iaa962453ba1b2c739a04b6b1be4f6de1fb2fa752
ctionMenuPresenter.java
enuPopupHelper.java
ouchForwardingListener.java
2dc27f22c9f2ff5de9f9e7d578391ba2abb9815c 16-Jul-2013 Adam Powell <adamp@google.com> Fix collapsible action views.

Fix a regression caused by a previous overzealous refactoring. (Oops.)
Watch those conditionals, everyone!

Bug 9866559

Change-Id: Ia88a4ee38edef378e70bdc7151c825375a3d482d
enuItemImpl.java
d9ddf52c1281db14d9243ecef6c07bdeed1e6e34 16-Jul-2013 Alan Viverette <alanv@google.com> Revert "Update ListMenuItemView to use a single RelativeLayout"

This reverts commit 8933efd49a0b2c10ddb30b23b57f5676634d0277.

BUG: 9774755
Change-Id: Ib6481e396092da81edd2c69f619f45f61e8fa393
istMenuItemView.java
b4c8ba49ac6ccce8e5c7904741f4adff05e37640 12-Jul-2013 Adam Powell <adamp@google.com> Fix MenuItemImpl#hasCollapsibleActionView for action providers

hasCollapsibleActionView was previously checking only that mActionView
was not null, even if the item had a valid ActionProvider that would
later lazily create an action view when prompted. Account for this and
attempt to create the action view if needed when
hasCollapsibleActionView is called.

Bug 8732876

Change-Id: Idf7b329770f686208882509b82a4cb13c70ef32c
enuItemImpl.java
c39451267bd0c484f7d9a7ae6475533268be6640 10-Jul-2013 Adam Powell <adamp@google.com> Fix ListMenuItemView regression from patch 8933efd49

Passing 'true' as the third parameter of LayoutInflater#inflate does
cause it to add the inflated view to the parent in a single step, but
it also changes the return value to be the root of the resulting
hierarchy after the add rather than the root of the inflated layout.

Return to adding the view to its parent as a separate step.

Bug 9754101

Change-Id: I7ca4c921993594931f5007af69d45e9ff06065df
istMenuItemView.java
673e64dd627d4d6effc17648b2246d3b0af679b7 27-Jun-2013 Alan Viverette <alanv@google.com> Merge "Optimize width measurement and cache result in MenuPopupHelper"
0bce6ab8cd8aadc9784dda2f3f4cc9dd91b796c7 27-Jun-2013 Alan Viverette <alanv@google.com> Optimize width measurement and cache result in MenuPopupHelper

BUG: 9591217
Change-Id: I0cc2fad39f967e92b2c954f6417430a42dce8e43
enuPopupHelper.java
8933efd49a0b2c10ddb30b23b57f5676634d0277 27-Jun-2013 Alan Viverette <alanv@google.com> Update ListMenuItemView to use a single RelativeLayout

BUG: 9591217
Change-Id: If5d301f70ac3806ab14e309affa57c625d897c7d
istMenuItemView.java
dcc55855bc660fc2f45d02a1398be2e4fcf5fcb5 03-May-2013 Adam Powell <adamp@google.com> Fix a NPE in MenuItemImpl when setting null ActionProvider

Change-Id: I00be010b2197d0f41d0e45b3814474d3ad0c3295
enuItemImpl.java
e0e2f4fd3ac8e70e341ae52d6376d8d67bd9edce 06-Apr-2013 Adam Powell <adamp@google.com> Fix accessibility in action bars and add extra customization

Fix a bug where the content description of the big unified Home/Up
button was not getting set properly.

Add the ability to change the home-as-up glyph from ActionBar.

Add the ability to set a custom action description for the home-as-up
button, useful if the above functionality is used.

Bug 8548229

Change-Id: I0635799772c7234b68247dfc105dce7f11acda32
ctionMenuItem.java
eb573418a7a727fb44720514da8ebc1dc37388f7 19-Apr-2011 Mattias Falk <mattias.falk@sonyericsson.com> Re-read shortcut labels if the language has changed

The shortcut label isn't updated to the current language
if the phone's language has changed.

The problem was that the shortcut label is stored in a
static variable which is set once and kept throughout the
life time of the process.

Change-Id: I89c5875fbf28fb82e073166c472ca205d28674fb
enuItemImpl.java
14c4669916ae993b248f00c55daf0f17069903d9 10-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot force a shown item from an ActionMode into the overflow menu.

1. An app showing an action mode with a visible item that decides to move this item
to the overflow menu cannot do so since the action menu is not updated properly.
Specifically, ActionMenuPresenter does not clear the "is action button" property
of a menu item neither requires nor requests an action button, i.e. the item's
"show as action" property changed to be never shown on the action bar.

bug:7319766

Change-Id: I5cfda6269466fafca1f039a3bab6397392ae9f17
ctionMenuPresenter.java
e56ffdc7b31b0937628609cc3bbaa15879023569 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- rename getResolvedLayoutDirection() to getLayoutDirection()

Change-Id: I3afe56c0db0751952f5056c23893cb7455531d29
conMenuItemView.java
0762cec04fa5ce65a2adc6d70ea1396041b1a88d 06-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7112174 ActionMenuView should be aware of layout direction

- do correct layout of action items depending of layout direction

Change-Id: Iff0181ffa2cb69884920edd5c37eb1a8a8196816
ctionMenuView.java
9951b7c4f094d39db70626ed665f848971220c48 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am e5c46fae: am 6d0dd51e: Merge "Return early when checking divider before child zero."

* commit 'e5c46faefb9deda885cff308ec9b1926636ca8bc':
Return early when checking divider before child zero.
d5c81db1e78e98f3e0a1a5cf206865c3056294c4 02-Aug-2012 Adam Powell <adamp@google.com> Fix some ActionBar menu issues around config changes

Bug 6904212

Update allow-text and max item height properties for action bar menu
item views properly.

Fix an ActionMenuItemView measurement bug that could cause items to
measure too small.

Change-Id: Ibac8491f7670969b0ae4584fff5e44ebd1435abd
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
c1eea136eaae62091b44d7b06a3d61ac694e4fd7 31-Jul-2012 Adam Powell <adamp@google.com> Fix bug 6906134

Change-Id: I47dfa1e503e502fe348a350dad960fbb112435e7
ctionMenuItemView.java
c0047d4e111b8cfbffdbebb55f846c7ae935e53e 30-Jul-2012 Adam Powell <adamp@google.com> Enforce a maximum size for action button icons.

Change-Id: Id9b5c1573cd40012229921fa8497cbe5ce340b1e
ctionMenuItemView.java
825992f503439bc87d9d7e698a487f17b5acc243 29-Jul-2012 Jake Wharton <jakewharton@gmail.com> Return early when checking divider before child zero.

Previously the `getChildAt` method would be called with an index of -1 which
would lead to an exception being thrown and caught. This is unnecessary since
we know there will never be a divider before the first child. It also avoids
additional object creation since this method can be invoked quite frequently.

Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
ctionMenuView.java
aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Replace left/right with start/end for Gravity / LayoutParams / Padding

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
ctionMenuItemView.java
conMenuItemView.java
8c1b02e7592dd02f30750c56bf88c65f8acbd3c9 17-Jul-2012 Adam Powell <adamp@google.com> Fix MediaRouteActionProvider button sizing

Bug 6768999

Use proper layout height for MediaRouteButtons generated from
MediaRouteActionProvider.

Update ActionMenuView's LayoutParams handling to correctly propagate
width/height values if the supplied LayoutParams is of a different
type.

Change-Id: I1e1b250d873869ca27f59ffb06ccf2299d57b40d
ctionMenuView.java
8f695c525f5baa623a8b951bd3a1fd2b5efd1ceb 18-Jun-2012 Adam Powell <adamp@google.com> am 706a8699: Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

* commit '706a8699008ce416a7fbd9a4215726fdb00ee803':
Make MediaRouter UI more robust around route count changes
bb20575f85ada8ccdacefc53f0da7e00fdf12a16 18-Jun-2012 Adam Powell <adamp@google.com> am 130b4572: ActionProvider API update

* commit '130b4572d1f3df702e5b296a655d15a41f6d4c66':
ActionProvider API update
39d5c6172503620ac3761148adac5fd7fa20d02d 16-Jun-2012 Adam Powell <adamp@google.com> Make MediaRouter UI more robust around route count changes

Improve the API around ActionProvider visibility overriding. Allow the
application to notify whatever is hosting the ActionProvider that
visibility has changed in a way that is friendly to alternate support
library-style reimplementations of MenuItem.

Allow MediaRouter.Callback implementations to add or remove themselves
or other Callbacks during dispatch of callback events.

Make MediaRouteActionProvider track the visibility of corresponding
menu items more accurately.

Change-Id: Ic7ddb6a87c3637904750d2661e4a9fa323b09ea0
enuItemImpl.java
130b4572d1f3df702e5b296a655d15a41f6d4c66 16-Jun-2012 Adam Powell <adamp@google.com> ActionProvider API update

* Add ActionProvider#overridesItemVisibility and isVisible.
These methods allow an ActionProvider to override the
visibility of a MenuItem that it is bound to. If a MenuItem
has been explicitly hidden by the application, it will not
be visible.

* Change MediaRouteActionProvider to not require a MediaRouter
callback, to avoid extra lifecycle management headaches.

Change-Id: I606fa98b3a6a3e60a953dd024274f9bf9c67acdd
enuItemImpl.java
72329952168fd86b911109602882b92494e9ccc5 07-Jun-2012 Adam Powell <adamp@google.com> am 4c38fe36: Merge "Protect against bogus input for ListViews" into jb-dev

* commit '4c38fe369fee76b8d4fca5a7b0b8d81a96f0219f':
Protect against bogus input for ListViews
28048d011cb0887cd641977ca37e5f2fde04d191 07-Jun-2012 Adam Powell <adamp@google.com> Protect against bogus input for ListViews

Guard against cases where ListView might receive touch events while
detached.

Update ListMenuPresenter to dispatch a data set change when the
backing menu is changed.

Bug 6543282

Change-Id: If2fb9b6aa3cf4a1b7070a7cd0de0edf0fc2f4cca
istMenuPresenter.java
1178569b261a094fe6fb830e91f002e4fcd9fc1a 06-Jun-2012 Adam Powell <adamp@google.com> am f6452d0c: Merge "More fun with MediaRouter" into jb-dev

* commit 'f6452d0cac64b72005af330411b5a895f0038312':
More fun with MediaRouter
690ffb4e1f735148a15f2036d9a3c1962fba188c 05-Jun-2012 Adam Powell <adamp@google.com> More fun with MediaRouter

Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
enuItemImpl.java
8e49098f76042c63b4fa8ede9ef9bdf75b77f509 15-May-2012 Adam Powell <adamp@google.com> am e48d12b7: Merge "Fix ActionProviders that have submenus" into jb-dev

* commit 'e48d12b78011ff5ddbb6838a038ea5384190ec92':
Fix ActionProviders that have submenus
f77f480800a84ceb377e47cc200baf2bae4f5d9a 15-May-2012 Adam Powell <adamp@google.com> Fix ActionProviders that have submenus

Automatically create a submenu for items with ActionProviders that
provide a submenu when the item was not initially configured to have
one.

Bug 6493376

Change-Id: I27218e2ab205e87534f235eb04042b185d99d143
enuBuilder.java
217477e01311b4b77c3ad536cb3cc35e5ce08373 09-May-2012 Adam Powell <adamp@google.com> am ea3f8cc7: Merge "Forgive me monkeys, for I have sinned." into jb-dev

* commit 'ea3f8cc71e0bb89840e727e22ba332bae228ac36':
Forgive me monkeys, for I have sinned.
76889f3482d6391b17f0961f7356c1e8169c8813 09-May-2012 Adam Powell <adamp@google.com> Forgive me monkeys, for I have sinned.

It has been several hours since my last commit.

Fix an obscure bug that could cause call ordering problems while
updating ListAdapter-based MenuPresenters. This would trigger an
inconsistent return value from the adapter's getCount method that
didn't take the expanded menu item into account, resulting in the
infamous ListView "you didn't call notifyDataSetChanged" exception.

Bug 6412318

Change-Id: I6262846d9c2acdb87ff99116ad78ca4a388efa6d
istMenuPresenter.java
enuPopupHelper.java
4ffd4b884b6e9b0a23fd732637db48fee4e5111d 07-May-2012 Adam Powell <adamp@google.com> am 97621027: Merge "Limit item heights in split action bars" into jb-dev

* commit '9762102794b90d40d69a9a31aa8cd1538f8151f8':
Limit item heights in split action bars
367ee326058bbee6fc179b8b1eb2174fe7ba8f45 07-May-2012 Adam Powell <adamp@google.com> Limit item heights in split action bars

Bug 6449422

Overzealous action views should not be able to cause action bars to
take up a huge amount of space.

Fixed text alignment on action buttons

Change-Id: Ic28d6dacdb6933c63b323f5ed6a6cab5d3726938
ctionMenuItemView.java
ctionMenuView.java
2d28f53514d55bfc3fb2eb2ebdd6c85ef3d8f9d9 01-May-2012 Jean-Baptiste Queru <jbq@google.com> am 31ab51a3: am 2066f7d9: Merge "Prevent empty overflow popup when there are no overflow items."

* commit '31ab51a369ab57c82d0271115ba31b3b20ce6e6b':
Prevent empty overflow popup when there are no overflow items.
b8139af3dcae80c0030afd0354dc424a7c72c3d9 19-Apr-2012 Adam Powell <adamp@google.com> Adjust action bar tab policies

Action bar tabs now stack in portrait mode on all screen sizes rather
than display embedded. This only affects apps with a targetSdkVersion
of JB or greater, as older apps may not be prepared for the different
measurement of the bar or have an appropriate stacked bar background
drawable.

Stacked action bar tabs now have a width limit. This prevents
super-wide tabs that can span the whole screen. The cluster of tabs
is centered if it does not span the full width.

Add ActionBarPolicy to give a single point to query for various action
bar measurements and behaviors that vary with configuration.

Change-Id: I01162ca009c14f6f0e712fc906b9db6382c738cd
ctionMenuPresenter.java
a7dec6d9734bdc3a9e39ffd357002e25c6fdc99b 10-Apr-2012 Adam Powell <adamp@google.com> Restrictions for action buttons with text

Restrict action buttons with text to 2 lines max. Action buttons with
text will always consume at least 2 cells in split mode because they
look silly in 1.

Note that this affects text provided by menu items, not TextViews
embedded within app-provided action views.

Fixes bug 6236467

Change-Id: I7bcbf80f448b13a895ddc3bc6a7a555c0f0bac7c
ctionMenuView.java
a647640f85f415bd8fb8cb925e7687658fe9ae37 29-Mar-2012 Jake Wharton <jakewharton@gmail.com> Prevent empty overflow popup when there are no overflow items.

On a device with a hardware menu key, an empty overflow window can be displayed
if there are no items in said overflow menu. This leads to the next user touch
being swallowed in the action of dismissing the invisible window.

Change-Id: I9191e4b2e1ed4888e4bc7261e8b3f095a272a9b5
ctionMenuPresenter.java
c4852a37186260bf688dc94a77a4ebd2a8290a02 19-Mar-2012 Adam Powell <adamp@google.com> Fix a bug where MenuItems would not return consistent results for
item icons initialized from a drawable resource id.

Change-Id: Ieb5245b8fe0e11b2eb788143859da1c0b3657b9f
enuItemImpl.java
f203e0a44ef7578c080d63424820fb5a94a4e92f 07-Mar-2012 Adam Powell <adamp@google.com> Fix some action bar menu layout bugs around config changes

Bug 5712010

Fix cases where the transition between split/standard action bar menu
presentation wasn't happening properly for windows in activities that
handle their own config/orientation changes.

Change-Id: I7168555e09c9ed448afb8619fd6f0e1466695365
ctionMenuPresenter.java
75d022af1f24cf2d8a7551183ea5bbe943d25d21 06-Mar-2012 Adam Powell <adamp@google.com> Action buttons are now 1 view instead of 3.

Change-Id: I42afe0e4bd20c3dbe86e2c43a6bc1d776361dca9
ctionMenuItemView.java
ctionMenuView.java
24340afbab8ad4c191784fda8023407205bc0a75 01-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5534667 - Action bar icons need more space on tablet

Set a wider minimum width for the action button style on -sw600dp.

Fix an annoying bug where recycled ActionMenuItemViews would retain a
lingering pressed state, causing an unrelated button to glow briefly.

The home/up affordance should not be focusable when it is disabled.

Change-Id: Ia68f3d09f5d977f50e4e33c354d8133367187973
ctionMenuItemView.java
aseMenuPresenter.java
678ed0c5a32bac1ea18a5ac99b0b814421ea79b4 28-Oct-2011 Adam Powell <adamp@google.com> Bug 5275928 - Don't try to open an overflow menu under invalid circumstances.

Change-Id: I62ea1e982f0d3c92cb504efbae95bce238b12f72
ctionMenuPresenter.java
8eeb4d1a70faa4d5834de44bfa515742566c6ba3 13-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5394020 - Menus are pretty sluggish to bring up

Clear out some obsolete "optimizations" leftover from the old menu
system internals.

Change-Id: I325530c9fae434de2d95200e648c63149334f444
xpandedMenuView.java
istMenuItemView.java
f2894659e8df625783afcd3fa17462ab23d29145 12-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5449931 - Wrong theme for icon menus

IconMenuPresenter should always use its own theme for the system
inflater.

Change-Id: Iacadce37d62a60cdf6220d82f1178098ed92d51e
conMenuPresenter.java
538e565c06e915b91e7e3a901f872ccdd9bccdd3 11-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5396097 - menu theme consistency

Fix a bug where action bar menus were using the wrong context to
inflate stock views. This was causing them to use the action bar's
themed widget context instead of the current theme's specific action
bar items.

Note that action views in the menu will still be inflated using the
themed widget context. This can produce some weird side effects if
the action views use theme attributes relating to these action bar
item attributes.

Change-Id: Ied3614d1fedb10a0f5366bbe7b90cd5f2f1ff969
ctionMenuPresenter.java
aseMenuPresenter.java
conMenuPresenter.java
275702c2f47ed87ab642462530092d9777f32ecd 24-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5355889 - Search action showing up in the menu dropdown in
spite of search actionview being expanded

Make sure that menu items with an expanded action view don't show up
in list menus presenting the rest of the menu.

Change-Id: I8c7b4e184a9d3ea2457543d0b8b36bc8e7068052
ctionMenuPresenter.java
istMenuPresenter.java
enuBuilder.java
enuPopupHelper.java
823f074a73cfc23c40a7b576c71daa096ee9ed6a 22-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5300621 - Share menu disappears in gallery

ActionProviders (or action views) unfortunately had no way to report
that they had opened a sub-UI that would affect menu visibility
listeners used to hide action bars when not in use. This caused the
Gallery UI to hide its action bar when the share popup was open.

Add hidden API (to be made public later) to ActionProvider that can be
used to inform the menu system that a sub UI has opened or
closed. Account for this in menu visibility callbacks. Fix
ShareActionProvider to use this when its popup windows open and close.

Fix a regression where submenus were not properly reporting visibility
changes.

Change-Id: Ia6f45fb463ad106105c40d01f141c2e5c8b96f78
ctionMenuPresenter.java
conMenuPresenter.java
bc835039994f8fe70e37041a29d21335a2e22479 14-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5307916 - legacy menu theming

Let list_menu_item_layout and legacy dialog themes tie into new list
item theming internals.

Change-Id: Ic9253a2217148df72bf22b725b32512673c3bb80
istMenuPresenter.java
1d07e16c9d9ecaaaf8994ad5691c4063ab31f265 08-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5174277 - Trouble with Menus

Make sure that options menu panel presenters associated with a PhoneWindow
get re-wired properly when a new menu is generated.

Change-Id: Ic06130019aec8b8edc372054c348f147d164fc5f
istMenuPresenter.java
7bc3ca0dc52be52ecad1c0de8c62a6a4bf8141ca 27-Aug-2011 Adam Powell <adamp@google.com> Accessibility fixes for action bars

Fix bug 5220543 - fix accessibility events for action buttons

Fix bug 5224260 - fix accessibility events for home/up

Change-Id: I7d55b4819862e1eda0809da92c52ec2d97f36af0
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
be3c329ebec083e5ff933bab6b6c501519ad2bff 24-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5191728 - Specialized formatting in the split action bar

Visually center a single text menu item in the split action bar even
when an overflow button is present.

Fix a bug in allocating space in the split action bar.

Change-Id: I54eff86bf35197030c9c1656ebd71297e3c8b62b
ctionMenuView.java
e20c279d9a6719a7c0d8c6606c7ba1bd207db8d3 23-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5198868 - Showing previous hidden options menu doesn't work"
04dc06f52a68299c0ad70fa0a9f204d99983ba2b 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5198868 - Showing previous hidden options menu doesn't work

Fix bad assumption in flagging action items.

Change-Id: Ic67b56195bc308e73d1564cbf1b77e41eaa4ecab
enuBuilder.java
70e9f4bd2c044858f3c1c040ffce973351a2383a 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5189070 - Don't try to show overflow popups for nonexistant menus

Change-Id: I9db43211cdece81063fc1d3c3324f1e166f27b0c
ctionMenuPresenter.java
bfcdfaf919cdb67897a6e24afc8f14b2c810596a 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5174755 - Adjust action bar overflow limits for ifRoom items

Fix a bug where action menus were not updating after configuration
changes.

Change-Id: Iaeed7d924a7b8b40849fd8e1826ed1c8f4079c94
ctionMenuPresenter.java
23f4cc0353615107cc9c19fda9cf96ddd43266e2 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5099037 - No delete option when multiple videos are selected

Fix some bugs related to how action item slots are allocated in menus.

Fix some padding/margins in ActivityChooserView.

Change-Id: I12096b0165daca902c5bc8e24c1e8d54a35e9557
ctionMenuPresenter.java
enuBuilder.java
enuItemImpl.java
f35d049b9953fbd1cd24887bac57b5e148c97846 17-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5168889 - action bar not respecting return codes of onCreate/Prepare menu

Change-Id: If28630cb21e74bde7a2474ce060078ea30170b9d
ctionMenuPresenter.java
aseMenuPresenter.java
3bb421d5b85a8a99c408d16e4f80163a53bc0505 17-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5165771 - Gmail: crash on launch from notifier

Change-Id: Iec9c189bd3fa5e62bc8eb520ca2a1dd4db106036
ctionMenuView.java
7b5e9e6c1c7098b6d7b2c6f9ab0c316f0f66109e 16-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5167078 - Show a 'cheat sheet' popup for icon-only action buttons

Action buttons: now less confusing!

Change-Id: I5c96effa64a2cdde22b71523b99ab489869fc245
ctionMenuItemView.java
14b7e2c1688914ba8b6854738981337d7c0653be 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5078498 - Icons jump around on split action bar

Revise measurement and layout code for the lower menu on a split
action bar.

Fix some metrics in the action mode close button and in button bars.

Change-Id: I76215e28ae3b0199162dedd32794b25c9e38a346
ctionMenuPresenter.java
ctionMenuView.java
6b0e97c7c48cf9446c7d4bc1b37d4c37d78433b0 03-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5093394 - Double SearchView!! What does it mean!?

It means we should collapse any expanded action items when we
clear out all items from a MenuBuilder.

Change-Id: I59cacd862a89b3a50c61b02c64b1ea71907af83f
enuBuilder.java
ccdd4ee44f8cfbb45b2989cca833895fcc4c4225 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087980 - MenuItem#expandActionView should work from within
onCreateOptionsMenu

Initialize menu presenters early enough to respond to expanding an
action view within onCreateOptionsMenu.

Have SearchView show the IME as an async post to handle attempts to
show it while the UI is still in initial setup.

Change-Id: I77f3a94ed4397737edb5a7a15bf54993b6723f5e
enuBuilder.java
257466d4e24bd405204cb21a1663eb1cc99f6137 28-Jul-2011 Adam Powell <adamp@google.com> Merge "Bug 5076788 - Optimize the building and invalidation of menus"
89b09da7b3b1e69264d9ec710c66eb2f891b313e 27-Jul-2011 Adam Powell <adamp@google.com> Bug 5076788 - Optimize the building and invalidation of menus

Fix cases that weren't batching menu presenter changes correctly.

Have FragmentManager invalidate the options menu less often.

Change-Id: Ia66fcd09ada8b0a084ad6b08d4340a8fa0c8fc5d
ctionMenuView.java
enuBuilder.java
10da590839e264735de8a4582021aca0dab81037 27-Jul-2011 Amith Yamasani <yamasani@google.com> Handle callbacks to CollapsibleActionViews that are in an actionLayout.

Also, the onActionViewCollapsed needs to be called before detaching
the action view, so that the action view can dismiss the keyboard properly.

Fixes the Gmail search case where the keyboard doesn't disappear on hitting
the "up" affordance after a search.

Change-Id: I3c2f3f90f0edf6473404e6ceae3fa08866cad736
enuItemImpl.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
enuBuilder.java
enuItemImpl.java
ubMenuBuilder.java
b187cd9c54f0100c0fb47c354cdecad29ca7c0ae 20-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5038368 - Rules for collapsing action views.

Make collapsing action views exclusive on small screens with unsplit
action bars.

Change-Id: I11cc220acc7b6acddd25f2500404b47bfb405d5c
ctionMenuPresenter.java
9837d6d02fc0968614efe5260a176e0c406fe93c 14-Jul-2011 Adam Powell <adamp@google.com> Fix bug in submenus opened from icon menus

Change-Id: I8b60ceefbccb5cad78d1b5c55702a2685a5f5382
conMenuPresenter.java
648b36bc3011437aeb1991dd355c83be7e5f0db5 14-Jul-2011 Adam Powell <adamp@google.com> Merge "Preserve spacing for icons in menus"
9151103ff20d28e8db2a2cc0386d57b8dad4b5d5 13-Jul-2011 Adam Powell <adamp@google.com> Preserve spacing for icons in menus

Change-Id: I3269fcffb98a84b6a5c5f9198afd2b2eae7d5f02
ctionMenuPresenter.java
istMenuItemView.java
enuPopupHelper.java
76559a65ad9d644f10beacf8895ceb217fdd0aeb 07-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Polish of the ActivityChooserView and ShareActionProvider.

1. Addressed the UX comments: ActivityChooserView's default selection
popup no longer shows a message, rather hightlights the default
action which now it displays. Alignemnt of the UI.

2. The ShareActionProvider shows a sub-menu if the host item goes
on the overflow menu.

3. Now the heade layout of the activity chooser view is not needed hence
dropped and the item and footer ones are merged.

Change-Id: I0b3de623e4c0a805be9ed73a8541e66b8c00e2d2
enuBuilder.java
enuItemImpl.java
961dd11895ce72e59bca124ef5bea4e4c1183099 12-Jul-2011 Adam Powell <adamp@google.com> Update ActionProvider to support dynamically building submenus.

Stub out ShareActionProvider for building a submenu of activities to
choose from.

Change-Id: Ibd9ada77a455ed1a296c87b6d967073ca0f676c2
enuBuilder.java
enuItemImpl.java
11ed1d6cae9214335c92ac38498a4e6c7d1c8324 12-Jul-2011 Adam Powell <adamp@google.com> Fix bugs around restoring submenu state after activity teardown/restore

Change-Id: I6cb5b3cad39b141dff84b8e0ca62f8f0a76a03b1
ctionMenuPresenter.java
aseMenuPresenter.java
conMenuPresenter.java
istMenuPresenter.java
enuBuilder.java
enuPopupHelper.java
enuPresenter.java
7f8f79a1ff086c04a3ad2a442b1d39a8186e3e50 08-Jul-2011 Adam Powell <adamp@google.com> Add ALL CAPS style to TextView/TextAppearance

Switch out ugly hack in action menu items for the new style.

Change-Id: I68a0ed62a352b14d499e6478b82bbc12dcb5a030
ctionMenuItemView.java
160bb7fa60e8ece654e6ce999b6c16af50ee7357 07-Jul-2011 Adam Powell <adamp@google.com> Action bar layout tweaks

Fix a Spinner issue that reported odd baselines

Fix detection of expandable items for action menus and allocation of cells

Use the right asset for home-as-up in Theme.Holo.Light.SolidActionBar.Inverse

Add TextAppearance.Holo.Widget.ActionBar.Menu as a basis for further
menu item styling

Sync with design for tab/menu text appearance

Change-Id: I32026bbde1cd4e15b6cda30d78d3d48250c84c94
ctionMenuView.java
2c742c2aebf20a0534c822eb8a36da99d9df79fe 07-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5000009 - NPE in Phone UI

Change-Id: I9c5c2c73b340192d754949865b6e4ee4a9a324ff
ctionMenuItemView.java
35aecd5884a5ccfe380903e39f30f468315e8f92 01-Jul-2011 Adam Powell <adamp@google.com> Updates for action menus

Sync with UX designs for action menus in split action bar mode.
Layout is now based on a grid cell scheme.

Tweak action menu item layouts.

Fix some bugs with drawing LinearLayout dividers.

Rename config resources to follow convention.

Action bar menu items now show text in ALL CAPS. This is done in a
locale-dependent manner, but if it produces problems in specific
locales the config resource config_actionMenuItemAllCaps should be set
to false for that locale.

Change-Id: I064c2dd85e012e89551f29153efcfc17f9106333
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
enuItemImpl.java
51ac0e94a83cfccb5105aa14df1077729a5b4ccc 17-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a ShareView and ActionProvider for menus.

1. Adding a widget for sharing contenet with other applications.
The widget orders the share targets based on previous shares.
It displays the share target list as either a popup anchored to
itslef or as a dialog.

2. Added a ShareDataModel that will back widgets or other classes
that are interested in share targets for a given intent ordered
according to share history. This class is backing the ShareView

3. Added ActionProvider mechanism for the MenuItems. The action
provider of a menu creates the action view as well as performs
a default action if the menu item is on the overflow menu and
is triggered but none of the menu callback has handled that.

bug:4590827

Change-Id: Iaa4add2df2538b8c6c7edbeaf2880486d4fd75c5
ctionMenuItem.java
enuItemImpl.java
8c4706252228755ed181d19532b7e0cfec270ba4 01-Jul-2011 Adam Powell <adamp@google.com> Add API to report the presence of a permanent menu key on the device.

Action bar now uses this to determine whether to show an overflow menu.

Change-Id: Ife4f724d02bbc0d9d86d94740c85299f6dacae91
ctionMenuPresenter.java
42b91bbcdaf64b2f19d0a9ce168964b31a5dc139 22-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4818050 - Need a way to get notified when a PopupMenu gets
dismissed/canceled

Add an OnDismissListener to PopupMenu.

Change-Id: I7abe1b9c9bea5e758a9c32631185e50cd7eb1ed0
enuPopupHelper.java
45d061656aab9f13dc1bb0e5d9378dd661a25f8e 22-Jun-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4725323 - 'More' shows the icons which are already available in settings"
51195b56ff6d3d589abefde27f0a99b5a9a04ff8 22-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4725323 - 'More' shows the icons which are already available
in settings

Change-Id: I161787710fbadaa19b93de3e69f3c60db2be73a6
istMenuPresenter.java
ea1ca952c625d51dc71e1cc3d955b239921888c7 21-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4108953 - Old-style menus do not show menu items marked as
showAsAction="always"

Change-Id: I63299143ea780abeed6dcdece6934f0e704b46a2
ctionMenuPresenter.java
enuItemImpl.java
38639b1d75933bfb720db79fce26f09478709614 18-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4689431 - PopupMenus too narrow on phones

Change-Id: I624b46d17c1d964fd6cb04abf96333c7a8474d75
enuPopupHelper.java
f1a4549604639e3d9eafc406426ddc252d427b57 17-Jun-2011 Adam Powell <adamp@google.com> Bug 4726236 - NPE at dispatchRestoreInstanceState

Change-Id: Ib7eba6ead85fa4daa8046bbc2d4d3fcc1d4223c3
istMenuPresenter.java
c0053223bedf33581b0830fb87be32c1f26e5372 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View.getResolvedLayoutDirection()

- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
conMenuItemView.java
81cf3ecadefb8fd6c05771b0b9947babaa9c8eaf 17-May-2011 Adam Powell <adamp@google.com> Action buttons now use themable style.

Obey action view layoutparams.

Change-Id: Ia466008465b57659615fbf9d450ce3fdb3c06379
enuItemImpl.java
1ab418a222e1834c4b1312fde355e41a1947af0d 10-Jun-2011 Adam Powell <adamp@google.com> Refine the behavior of split action bars.

Change-Id: I27212c7554025433ee366f0766971f0092b26d67
ctionMenuPresenter.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
ctionMenuItem.java
ctionMenuPresenter.java
aseMenuPresenter.java
istMenuPresenter.java
enuBuilder.java
enuItemImpl.java
enuPopupHelper.java
enuPresenter.java
ubMenuBuilder.java
c619e74cc62678cef09b5f92e87e762a1f02aab7 01-Jun-2011 Gilles Debunne <debunne@google.com> ActionBar makes room for icons when no title is provided

Change-Id: I5bd09e00b50496032deda40ea22367d727230611
ctionMenuItemView.java
6a03640539405afbdefe72894759281b98aa6e6f 23-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Add support for Gravity BEFORE and AFTER

- update layouts
- add Callback2 for RTL aware Drawable
- add unit tests

Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
conMenuItemView.java
f4232e0097ffb672f5d1559b20c7230081efe34f 23-May-2011 Adam Powell <adamp@google.com> Change action button layout for split action bars

Change-Id: Ie1427ae6b0334bf0a8afd5cae968c286c82a3837
ctionMenuView.java
f746fc9e45c2bc80d8af2eb10d849c5807ebe1c7 21-May-2011 Adam Powell <adamp@google.com> Fix bug 4450805 - item selection dispatching in submenus.

Change-Id: I6c56c9c8c6bd6c719250df4a21bda7d0ef463de4
ubMenuBuilder.java
d1f4207ba577e2ac3f39a719f8ee4bb9f4940dc1 04-May-2011 Adam Powell <adamp@google.com> Fix bug 4355335 - android.app.cts.DialogTest.testContextMenu failing on IRJ28

Change-Id: Icfcd8c2aadd0fb9e49296b8318858317407e1b7f
enuDialogHelper.java
e42b189f369b6b0cb35095bc5386ba82b5ce39a5 03-May-2011 Adam Powell <adamp@google.com> Remove debug logging

Change-Id: If1a8ef5461b98239d8f55f842e1043b6b3d0f070
ctionMenuPresenter.java
640a66eac612b850b5dabd3b93bd94f83ed2d567 29-Apr-2011 Adam Powell <adamp@google.com> Refactoring of action bar internals

Split action bar implementation details. Factor out common components
into AbsActionBar. Layout rules for the lower half of split action
bars.

Change-Id: I6bc39ba6c343055597880a7d4663dd8f30aa4999
ctionMenuPresenter.java
ctionMenuView.java
enuBuilder.java
9b4bee0f14bbd137b0797127aff2df46a6321ec5 28-Apr-2011 Adam Powell <adamp@google.com> Introducing the split action bar.

Apply (or extend) the theme Theme.Holo.SplitActionBarWhenNarrow or
Theme.Holo.Light.SplitActionBarWhenNarrow to enable splitting the
action bar across both the top and bottom of the screen. This places
the action menu along the bottom, leaving more room at the top for
titles, navigation, and custom views and more room at the bottom for
menu items.

TODO: Refine layout of the action menu when placed at the bottom of
the screen. Make action modes split as well.

Change-Id: I92c91f99c533f26aecf6b828ed041386c4f16922
ctionMenuPresenter.java
45c515b0e962ee8ffc901872bcc9f25599ea0e78 22-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Tweak sizing and layouts for action bar on smaller devices. The action
bar's size is now partially dependent on form factor and orientation
to conserve screen space, especially in landscape mode.

Alter the max action menu items for smaller devices. Disallow text on
action menu items with a horizontal width of less than 480dp when an
icon is available.

Remove the "Done" text on the action mode close button. (TODO: get a
properly sized 9-patch resource for this - the current one has an
intrinsic width that is too large.)

When setting an action bar icon as a resource ID, the bar will attempt
to load a mipmapped resource that is the closest available for the
target size.

Change-Id: I2498c640666ade310fdd1d3a2078bd4000b392a2
aseMenuPresenter.java
enuItemImpl.java
a86b350977be53146d568bc0736d0f2b4aef8de5 21-Apr-2011 Adam Powell <adamp@google.com> Fix bug 4329016 - Refresh menus properly while in batch update mode

Change-Id: Ia4a4feffb0a77a99e0b241c9cf1d737577d9154d
enuBuilder.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
ctionMenuItemView.java
ctionMenuPresenter.java
ctionMenuView.java
aseMenuPresenter.java
xpandedMenuView.java
conMenuItemView.java
conMenuPresenter.java
conMenuView.java
istMenuItemView.java
istMenuPresenter.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
enuPopupHelper.java
enuPresenter.java
enuView.java
ubMenuBuilder.java
6bddd8771d05889024778caa78fb1eaae68a0802 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4084399 - with usb keyboard, actionbar menuitems with
icon+text take dpad focus twice in row

Fix action menu item layout focusability so that only the full item is
focusable. Fix up listeners appropriately.

Change-Id: I127c36404894869a08c5f4472491e3e596563c5c
ctionMenuItemView.java
4afd62b18c52a55371ab923d54f93615ad68fd7a 19-Feb-2011 Adam Powell <adamp@google.com> Add an API to listen for window attach/detach events on a View.

Fix bug 3312949 - inconsistent state in MenuPopupHelper

Change-Id: Ie802ada3f8de4cf71c92fcc7c6abce9ba85e7b75
enuPopupHelper.java
ca51e8788a58f2af3525b7214a675f2d0233e5da 15-Feb-2011 Adam Powell <adamp@google.com> Fix some bugs with MenuPopupHelper and ListPopupWindow

Clean up handling of a few conditions in MenuPopupHelper that the
monkeys manage to trigger around the use of ViewTreeObserver. (bug
3443819, bug 3312949)

Fix a bug where a stale handler message could cause a ListPopupWindow
to reopen itself after being dismissed. (bug 3453607)

Change-Id: I488014767ccee785500862a2572beb35901d173b
enuPopupHelper.java
f2d7a5d8312b78f84e6cc63277ec7ec874722015 08-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3426162 - Overflow menu closes on its own

Makes populating action menus smarter, doesn't completely empty and
repopulate. Fixes issues where changing menus can leave popups without
an anchor.

Change-Id: I03cc266f0952123c5704a78cdcfc69b77af1915b
ctionMenuView.java
e2b03a62e5014ea60e24a989544fa549b493a520 25-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3387855 - Menu flashes on left side of screen

Post popup menu click events rather than executing inline so that the
popup can close undisturbed.

Change-Id: I01481bd37d7921c10c6b8b484eab33f0d25447ff
enuPopupHelper.java
1821ff9022f0ea5f5c5d82a96a05f46192d50c26 25-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3178934 - Make MenuBuilder notify its adapters of changes

Change-Id: I28603afbdfdd913aa06f3a07065e27aff1dc524b
enuBuilder.java
c831e3192ccd9b2cf69ec7c973005e578631da3b 24-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3382994 - android.view.WindowManager$BadTokenException" into honeycomb
55767443adaf31c377ff1d7abf2d3fe7f01bfbaa 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3382994 - android.view.WindowManager$BadTokenException

Remove pending callbacks when ActionMenuView is detached.

Change-Id: Ia61e446f60f10dd82476c00b4c11177182e7db60
ctionMenuView.java
abbcc241c0db3d9167b5e6baeac1a07f009a05a5 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3237638 - make it easy to change a "refresh" AB button/icon
into the indeterminate progress icon

This fixes a bug that caused ActionViews to not be updated properly
after a pass through invalidateOptionsMenu/onPrepareOptionsMenu. Apps
can now set/clear action views to display progress spinner widgets or
anything else on demand.

Change-Id: I138eceb504177c6bb5b86d40a68a82973aa841a5
enuItemImpl.java
b3312b88c1f10cd29f9b55b03d5b41fc429ebfb5 22-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3360851 - actionbar overflow menu button doesn't trigger "audible selection"

Change-Id: I768d35f9752d5f6466708fd191781aa26aefd121
ctionMenuView.java
4192e38827b27416410516d4bb0d545c36f4660e 17-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362446 - NPE in legacy menus

Change-Id: Icf9a0bec46c74ace3acbc85eea45d1d769b699d1
enuBuilder.java
36fced9b211255e2137014e21fb3259042d8da85 17-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3050138 - Action bar does not display correctly when many
action items are added

Rules for action bar overflow:

Items are considered for inclusion in the order specified within the
menu. There is a limit of a total count, optionally including the
overflow menu button itself. This is a soft limit; if an item shares a
group ID with an item previously included as an action item, the new
item will stay with its group and become an action item itself even if
it breaks the max item count limit. This is done to limit the
conceptual complexity of the items presented within an action
bar. Only a few unrelated concepts should be presented to the user in
this space, and groups are treated as a single concept.

There is also a hard limit of consumed measurable space. This limit
may be broken by a single item that exceeds the remaining space, but
no further items may be added. If an item that is part of a group
cannot fit within the remaining measured width, the entire group will
be demoted to overflow. This is done to ensure room for navigation and
other affordances in the action bar as well as reduce general UI
clutter.

The space freed by demoting a full group cannot be consumed by future
menu items. Once items begin to overflow, all future items become
overflow items as well. This is to avoid inadvertent reordering that
may break the app's intended design.

Change-Id: I878f6b15619059258c91c01f4fe838feac161d6d
ctionMenuView.java
enuBuilder.java
06bc9721d8f5db053b51e1c536e746833ad46036 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Disable soft keyboard when keyboard attached." into honeycomb
4aed78b5056560f499e5953f659fa90a06ecc38a 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Disable soft keyboard when keyboard attached.

Also hide menu shortcuts everywhere until we can get around to
redesigning the menu UI to be more consistent.

Bug: 3306545
Bug: 3330748
Change-Id: I4d4e19525cdfc93d9aae0dcaa1e6266fb552c5bc
enuBuilder.java
9f125d341521efc8535e32e35a641be50d405c36 15-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3339039 - Preserve proper behavior for action button text when
updated.

Change-Id: If3529616d5a2b69638b2b0c4070d5ebbb418410c
ctionMenuItemView.java
e7d468410b3a783560d5158a5798cef1b4b67702 14-Jan-2011 Adam Powell <adamp@google.com> Rework action bar menus.

Fix bug 3328810 - remove icons from action bar overflow menu. Popup
menus now will not show icons. Give popup menu items a minimum width.
Alter the sizing of popup menus.

Fix bug 3192635 - revise rules for action menu dividers. Dividers now
appear between the overflow button and any other items next to it, and
anywhere they disambiguate touch targets between text and other
content. Action views are on their own and should include their own
dividers if needed.

Remove dividers from around action bar spinners and tabs.

Change-Id: I935b48b473606ac2adde5e2b251bf30ebe2a3da9
ctionMenuItemView.java
ctionMenuView.java
istMenuItemView.java
enuItemImpl.java
f0ad6e6eaf48ac8f4007232ad0a8511a7b5cfc0e 11-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3333015 - Overflow menu item submenus do not open

Submenus of action bar menus will open as new menus.

Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
ctionMenuView.java
enuPopupHelper.java
5e3f284baa271cb0fbf90e504d19fdd2e385382e 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"

Add protection against views disappearing before previously posted
Runnables attempt to show a menu anchored to them.

Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
ctionMenuView.java
enuPopupHelper.java
d16c9884bb0bd06f9d7aa1be649226a5df6591ee 07-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3330223 - onCreateOptionsMenu() unable to getActionView()
immediately after orientation change

Inflate action view layout resource earlier so that calls to
getActionView are valid immediately after menu inflation.

Change-Id: I8023328b1a77670ac42a783f6e4b46aa5c2a798e
ctionMenuView.java
enuItemImpl.java
345a9f4e6d0a1b60664b010385f36456a5fef25d 07-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3212471 - Widget.Holo.ActionButton style and friends now 76% more useful

Change-Id: Ideb37c8a31e37df8fcfc549d12b4b6cafc983ca1
ctionMenuView.java
3f476b34049d062942eafcf48396f593e00bd324 04-Jan-2011 Adam Powell <adamp@google.com> Revisiting ActionBar API and layout.

Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
ctionMenuItem.java
ctionMenuView.java
enuItemImpl.java
1700ae0aef4e6a3f412b758389955abd049060db 20-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3295495 - Wrong menu item selection in PopupMenu

Change-Id: I17ec55f09dbed9797cb702a7252f6c89e861cc6a
enuPopupHelper.java
50f784cf2dc2dea8061153ac3a843f60a9d88781 20-Dec-2010 Adam Powell <adamp@google.com> Measure spinner items for sizing the dropdown view.

Only a limited window of items will be measured around the currently
selected item.

Change-Id: Ie0431948fdd564fa4bbeb82dede9e2abebbaee55
enuPopupHelper.java
aa0b92ce2b51987e9c864164234fe968ab5b9311 14-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3210201 - Popup window wrong size/position when IME hidden

Fixes a case where ViewRoot does not recompute its size properly.
This caused various offsets to get out of sync and the window would
draw improperly.

Change-Id: Id0abb37bbf27b60de2dca4077c21040ec84ef163
enuPopupHelper.java
cf0357639e952a87f0d535c82691919af81f058b 06-Dec-2010 Adam Powell <adamp@google.com> Clean up button bar styles

Change-Id: I65b6600f72b92db024f83b63d3ea91abc1cbb96c
ctionMenuView.java
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
conMenuView.java
8515ee846bd76aee86ec5ddfcc4dd1e626dd999c 30-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3240444 - add OnMenuVisibilityListener for action bar.

Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
ctionMenuView.java
enuPopupHelper.java
ed8b403cc8066bf76cdf98f8d9906ff810defc5b 16-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3198503 - NPE at MenuPopupHelper.dismiss

Make sure dismiss() can be called even when the popup is not currently
showing.

Change-Id: I48077d8b3bfe0df04bceeb056ed54cbd79a6e660
enuPopupHelper.java
0458796f1401732b38660794148f4c5e5602f432 12-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3146938 - Menus spawned by ActionBar should hide when action
bar is hidden

Any popup spawned by the private class MenuPopupHelper will be hidden
if its anchor becomes hidden. ("hidden" == !View#isShown())

Fix a bug where ActionBar subtitle views were not going away when
subtitle text was set to null.

Fix a bug when switching out of ActionBar tabbed nav mode with no
active tabs.

Change-Id: I1f30c067156221f96905ac69ab876418ad2e94f8
enuPopupHelper.java
9ab978713ce86fdaefed2407f4f3c998ab0e3178 27-Oct-2010 Adam Powell <adamp@google.com> Action bar API updates - new display options

Change-Id: I55e56cd7aafa53994990079e88ef85e4eb1a0b3f
ctionMenuView.java
d8404b23739b135060ab9a04317a9f8b990cf8ca 13-Oct-2010 Adam Powell <adamp@google.com> Allow icon+text action buttons

Change-Id: I96d1f3958de3ac13cadbab108b87d6bae96e9473
ctionMenuItemView.java
enuItemImpl.java
f16888f1e849b0bc0b9c17e5f833c4e2cd54c382 12-Oct-2010 Adam Powell <adamp@google.com> Holo fixes

* Fix up ButtonGroup to behave better.
* Fix bad states with holo list selectors.
* Clean up action mode UI components.
* Change action mode UI to use a text button instead of 'X' to dismiss.
* Fixed spinner dropdowns for Holo.Light

Change-Id: Ifc092bd549ffb539d6a3b2ddd95ebd4b114a441f
ctionMenuView.java
be4d68e7b238b8ee879de0481e39c40d3f1683b6 09-Oct-2010 Adam Powell <adamp@google.com> Updated styles and metrics.

* Added preliminary ButtonGroup support for buttons that display as a unit.
* Fixed a bug with MenuBuilder that caused old-style icon menus to fail.
* Added support for explicitly setting line height in text.

Change-Id: I1ba65f09dd9e1bc833d247ebe72052a21e3f99f0
ctionMenuItemView.java
ctionMenuView.java
enuBuilder.java
2fbf4de64f0ec5052201cea9519c44d5b1789a40 01-Oct-2010 Adam Powell <adamp@google.com> Holo theme progress and assets!

* Light and dark dialogs
* Checkboxes and radio buttons
* Toggle buttons

Warning! This is still a work in progress. This does not include final metrics.
Some assets (specifically dialogs) are currently misaligned.
enuBuilder.java
e4679f1ed2ef044468d4a37f6e220c414620685a 28-Sep-2010 Adam Powell <adamp@google.com> Temporary hack to make context menu text visible on holo dialogs.

Real fix for this to come. MenuBuilder needs to not hardcode themes
and dialogs shouldn't either.

Change-Id: I393969acd1ef6956d7299cb2eff46708ce812d1d
enuBuilder.java
0b2d306e7000f4c0c6ad4e00d494bb401d8a9fc2 15-Sep-2010 Adam Powell <adamp@google.com> Style new popup widgets.

Change-Id: I208ed292afd9919071778baa9ea61d7ca9e7743c
enuBuilder.java
enuPopupHelper.java
cf78b3e5101349fdddbde14b3a55140f9562ae66 13-Sep-2010 Adam Powell <adamp@google.com> Add support for custom action views in ActionBar menus

Change-Id: Ic7850bc00fcfe95d805dd6a1b15cb5d413942475
ctionMenuItem.java
ctionMenuView.java
enuItemImpl.java
b3f245c30c022de8a26e016b7c9d5f13747b2868 11-Sep-2010 Adam Powell <adamp@google.com> Allow the theme to affect action bar menus

Change-Id: Ie914881de626415886289e830fb1ff166ce13159
enuBuilder.java
079fd1c0a329b0fbd3761abe2e900a941131efed 09-Sep-2010 Adam Powell <adamp@google.com> Make action buttons more style-based

Change-Id: Ia7ef4da8d8004f1b3809b4883aafc541695d235a
ctionMenuView.java
00df32d4396a65752b7b9a2f8ceb6292ed2384cf 02-Sep-2010 Adam Powell <adamp@google.com> Handle disabled state for action menu items

Change-Id: Id80926aef5f8f2f47703a7b1e3da38e6117edb30
ctionMenuItemView.java
6c6f575423d6718c3ff322224c1520901ce881e1 21-Aug-2010 Adam Powell <adamp@google.com> More ActionBar/config change tweaks. Preserve open overflow menus

Change-Id: Ic8ad2b1e3909fbf84ff4d852ae046a9f9508477c
ctionMenuView.java
enuPopupHelper.java
773b1b97fc0f01efc8cf1e17a1250a9b654b1b85 21-Aug-2010 Adam Powell <adamp@google.com> Make ActionBar menus handle configuration changes gracefully.

Change-Id: I2c9ca846143b313ef9d2a01dff81385e0693518d
ctionMenuView.java
4d9861e7ec8488634d316b20981464de2ab7b6fe 17-Aug-2010 Adam Powell <adamp@google.com> Bug 2923440 - ActionMode buttons show if room by default - different approach.

This enforces the new policy if menu items are created
programmatically instead of inflated from menu xml.

This reverts commit fbb72fdbe58142e0f1f7ffa17f009b0d829b33c3.

Change-Id: I102e93b80a3248634e98e0d7dc3321bf1d8b263b
enuBuilder.java
enuItemImpl.java
f6148c53f93978af678cc0559a4417b608a33ae1 12-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2911311 and bug 2911700

Integrate the action bar overflow menu better with the options menu lifecycle.

Change-Id: I1e3fdba04b01718c3ee3367f92e5dabe7bc84b5c
ctionMenuView.java
3d3da27ab394108fd51771616cca3279baae99d1 12-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2911529

Change-Id: I18d7f5d8a300bbc73ef721c5d4deb200d6a490b8
enuPopupHelper.java
6b336f835d637853800b94689375a03f337139a4 11-Aug-2010 Adam Powell <adamp@google.com> ActionBar overlay mode, height fetching, show/hide

Change-Id: Ie931ed26ec885d891d6733132b517a53d95f8491
ctionMenuView.java
f75eeb28def26798682748aa5dedabebac86bb6a 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908822 - open/closePanel should do the right thing with ActionBars

Change-Id: Ic77f9dee864d17046f69c78a1e6d96a49b5c6180
ctionMenuView.java
4be0d52125b88dc992a4c500edbe95bf55484e0b 04-Aug-2010 Adam Powell <adamp@google.com> Added android.widget.PopupMenu

Change-Id: Id507cf93ebd0484f141a0a44266b883c01aa10db
enuPopupHelper.java
1f9c7afc5a06576e327a4b1c12688202f53d9462 03-Aug-2010 Adam Powell <adamp@google.com> Add support for action buttons without an icon.

Change-Id: I026bb7463e7a73419dbaf79950d579ba05d04ea8
ctionMenuItemView.java
a8a72c38fec3879f5d346840b0d186d5903931b8 01-Aug-2010 Jeff Sharkey <jsharkey@android.com> Populate accessibility field on ActionBar items.

When building an ActionMenuItemView, set the content description based
on the item title. Fixes http://b/2885106

Change-Id: I101bbc6db7080ce08eed1bbb401c45329da2ab53
ctionMenuItemView.java
b366bbae2b5a3009893ef64246e3430cea4b7736 20-Jul-2010 Adam Powell <adamp@google.com> Make sure action bar context modes reserve space for overflow menus on all devices.

Change-Id: I393f041efef3852b7f3ee57c6a4c26ba176b2702
ctionMenuView.java
8028dd32a4a04154050220dd0693583d5b750330 15-Jul-2010 Adam Powell <adamp@google.com> Overflow menu for action bars.

The overflow menu replaces the normal options menu panel for
activities with an action bar. It always appears as the rightmost
action button and is displayed as a dropdown menu. The menu key
summons and dismisses the overflow menu instead of the options panel
where applicable.

Change-Id: I0b4fa7e36f35ab12e2f0c1d12bec79ccab8cc4b1
ctionMenuView.java
conMenuView.java
enuBuilder.java
enuPopupHelper.java
4267534d1c42af847ed0cefd1c88c99f66b36571 10-Jul-2010 Adam Powell <adamp@google.com> Action Bar now supports submenus as popups.

Change-Id: I1691c16081b3474ed6d6e406f91f5f74a2dc8fcb
enuBuilder.java
enuItemImpl.java
enuPopupHelper.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
ctionMenuItem.java
ctionMenuView.java
enuItemImpl.java
7ade1be822ed05a143b059319dccd5e9f623b56d 17-Jun-2010 Adam Powell <adamp@google.com> Action bar button layout changes.

Theme attribute added for spacing between action buttons. Action
buttons are now allowed to fill up to half of the total action bar's
width.

Change-Id: Iabbc67e695684529dfae9681d4d9580cd30839d0
ctionMenuView.java
96675b1df3969f2d313b68f60ed9fa36805db8ce 11-Jun-2010 Adam Powell <adamp@google.com> Merging ActionBar menu with options menu.

Options menu items may now specify if they would like to appear in the
action bar. Menu items defined in xml may set the showAsAction
attribute to one of "never"(default), "ifRoom", or "always". Action
buttons are populated as follows:

* All showAsAction="always" items become action buttons, even if it
would crowd the navigation area of the action bar.

* If there is space remaining, showAsAction="ifRoom" items are added
until no more will fit comfortably.

Action button click events are now handled by the
onOptionsItemSelected method used by the standard options menu.

The construction of options menus now happens earlier in order to
provide data to the action bar. Activities with an action bar can now
expect to have onCreateOptionsMenu called when activity start-up is
complete.

Activity#invalidateOptionsMenu can be used to force a refresh of menu
items where the previous API would use ActionBar#updateActionMenu.

Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
ctionMenuItemView.java
ctionMenuView.java
conMenuView.java
enuBuilder.java
enuItemImpl.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
ctionMenu.java
ctionMenuItem.java
151af19bf409a47424ddaa51e1ac4a0c532c4eb6 04-May-2010 Adam Powell <adamp@google.com> Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()

Change-Id: I841a37349fbc6af33073aaecae903eb8999cc5bd
enuItemImpl.java
6024ca5c90203b6c33acc6adfbf7e4e613549a0a 03-Apr-2010 Adam Powell <adamp@google.com> Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()

Change-Id: I6c16879a8ad8e4651d21f639a620a936bf991f8d
enuDialogHelper.java
22cb2f46fdbb9a904ac394f488278fb47e2d4734 16-Mar-2010 Adam Powell <adamp@google.com> Fix monkey bug 2512055

Don't blow up when there aren't any menu items to layout in IconMenuView.

Change-Id: Ief08f0f8ed89aec4959d4d80cfd066dbe92dc3aa
conMenuView.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
conMenuItemView.java
e0fc838ebc18e327a399902cacae16bdbbc09627 24-Sep-2009 Nicolas Roard <nicolas@android.com> Fix the shortcuts
enuBuilder.java
8d37426c754e9822feaa8c6cc0b7c13e8523e217 15-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixed for back key handling.

My last change was far from perfect. Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
enuDialogHelper.java
c2974809373697147cbe5754835cc871fb93aef1 14-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2116977: buttons are huge and bent

Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
conMenuView.java
809a7f6080312f3e12f1a3a30eacf0e0c7627305 15-May-2009 Romain Guy <romainguy@android.com> New feature to track down #1846038. Adds the ability to export flags encoded in int values so as to make them human readable in HierarchyViewer.
conMenuView.java
870a2b015645ef5086af6a5de31dc482e7193214 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@142470,142470
enuDialogHelper.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
conMenuItemView.java
conMenuView.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ontextMenuBuilder.java
xpandedMenuView.java
conMenuItemView.java
conMenuView.java
istMenuItemView.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
enuView.java
ubMenuBuilder.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ontextMenuBuilder.java
xpandedMenuView.java
conMenuItemView.java
conMenuView.java
istMenuItemView.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
enuView.java
ubMenuBuilder.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
xpandedMenuView.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
xpandedMenuView.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
conMenuItemView.java
istMenuItemView.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
conMenuItemView.java
istMenuItemView.java
enuBuilder.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
enuItemImpl.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
conMenuItemView.java
conMenuView.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ontextMenuBuilder.java
xpandedMenuView.java
conMenuItemView.java
conMenuView.java
istMenuItemView.java
enuBuilder.java
enuDialogHelper.java
enuItemImpl.java
enuView.java
ubMenuBuilder.java