History log of /frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fe6d57c366ba78295d3320cb73512f02876eed61 24-Oct-2014 Yigit Boyar <yboyar@google.com> Move all actionbar related methods to DecorToolbar

Bug: 17999561

Change-Id: I36af443cf245aedd64a079726c1a2e6f6068f221
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
bd266fef814922448a048107e9d13a2a22a5d957 23-Oct-2014 Alan Viverette <alanv@google.com> Lighten action bar on light theme, use secondary color for subtitle

Also cleans up some code in ActionBarView.

BUG: 17987639
Change-Id: I7dcdf18748d6da5792900ab9a78775a0511f982a
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
30f5dc935b30a72982cc2ee04c8c2a17ba95e885 19-Sep-2014 Yigit Boyar <yboyar@google.com> Allow fallback to Toolbar's default Navigation Icon

Bug: 17554486
Change-Id: Id9f2197820df42d81351540be5baa852f49bdf0a
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e91f7c0219d0f47d9c44a4933b571b0a482ec058 11-Sep-2014 Yigit Boyar <yboyar@google.com> Add support for default content description in DecorToolbar

Bug: 16888338
Change-Id: I0f3f8fcd39cfd29d239801392dd712869749aecf
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c9102d743f5ad2e4ce97ca347da15410ff6413ba 05-Jun-2014 Adam Powell <adamp@google.com> Fix list navigation callbacks for ActionBarView

Fix a regression from a previous refactoring where the call ordering
between setNavigationMode and setListNavigationCallbacks could result
in the item selection listener being ignored.

Bug 15395053

Change-Id: I5330f2c684a21448c64c6b62eec10b96405758f7
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e002c2fb39f9df1db38a7412832882ae622660d4 04-Jun-2014 Adam Powell <adamp@google.com> Implement action bar tab mode for Toolbar-based decor action bars

Coordinate between the stacked row, etc. Also fix a silly bug in
Toolbar child views with Gravity.BOTTOM.

Bug 15332084

Change-Id: Ie91b7d5255c63d9befcc65d7939c1523e018809f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e021e6ed8931a0a8296af182fc9b0c76b64fb0c4 24-May-2014 Adam Powell <adamp@google.com> Toolbar factoring and ActionBar functionality integration

Toolbars now can act in the role of ActionBar with the exception of
navigation modes. Expandable action views are now supported as well as
populating menu items from a host window.

Change-Id: If477db9c7ad9f95723f28cf73cbf03a07ce9d6ad
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2229ca031a326491feea5832e5337e9f8a602dca 13-Nov-2013 Adam Powell <adamp@google.com> Fix an action bar accessibility regression

A previous fix introduced a problem with building content descriptions
for accessibility of the home/up button in one code path while setting
display options flags. Correct the issue and also refresh content
descriptions immediately when setting related attributes one at a
time.

Bug 11542264

Change-Id: I40d07036d1026e8e40c77c47ac377c82edd827b4
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f37a5139db360095fc0ce9080efd4c375751b296 02-Nov-2013 Adam Powell <adamp@google.com> Fix incorrect content description on action bar home/up

Some stray code from a previous change caused an erroneous content
description to be set on the wrong view in the action bar. Correct
this and sync with the right behavior.

Bug 10969992

Change-Id: I4deaa3528b4bc222e25354679fa93f8316fa2d70
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b7a7fc9d233bad507ce893882352618b13647058 21-Sep-2013 Chet Haase <chet@google.com> Make fading transitions work better

Previously, a Fade transition would only affect a view if its
parent hierarchy was not also affected between the start/end states.
This caused problems for views which were removed from their parents
between scenes when their parents' visibility also changed between those
scenes. The effect would be that the transition would fade the parent...
but the child would no longer be in that parent, so the user would just see the
child view blink out.

This fix ensure that views are faded appropriately by fading them
regardless the parent hierarchy; if a view is removed from its
parent, fade it out.

Additionally, if that view has not been removed from its parent, but
its parent is no longer parented *and* scene being
transitioned from is based on a layout resource file (and thus
the views are considered temporary after transitioning), then it is
removed from its parent to be faded out in the overlay.

Also, renamed TextChange to ChangeText to be more consistent with
other transition class names.

Change-Id: I4e0e7dfc9e9d95c7a4ca586534b6d204c4f3bae0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c46d33393fcc3a497d036973cb887cdaf986eef2 17-Sep-2013 Adam Powell <adamp@google.com> Action bar transitions - handle expanding/collapsing action views

Make sure we beginDelayedTransition when we expand and collapse action
views, specifically before any callbacks go out that might alter the
hierarchy.

Change-Id: Iffc286cccd9be83ad03aeede605870ac12cc6bab
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
04fe6ebb9f919f196ec06a19bebc09b8e943f95b 31-May-2013 Adam Powell <adamp@google.com> Fix a bug resolving the correct icon/logo in action bars

Remove some abstraction-breaking magic in ActionBarView and replace it
with proper resolution of the icon/logo when creating a window. The
old implementation relied on the ActionBarView's context being an
Activity.

Bug 9171554

Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8452a7f2f6cb5a67535ac3a0af3c46b3c16996ec 01-May-2013 Casey Burkhardt <caseyburkhardt@google.com> Rebuilds ActionBar accessibility description as needed

Previously, ActionBarView only updated the contentDescription for the navigate
up/home affordance when it is enabled or disabled. This causes that description
to be rebuilt and applied whenever the title or subtitle of the view is changed.
This also inadvertantly removes whitespace in ActionBarView.

Bug: 8757286
Change-Id: I1ea02cad20e0d5c0c57d071727cc647c4dd52d44
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2eeb419e55e0467e04ca054a2de04b725604da27 18-Apr-2013 Adam Powell <adamp@google.com> Fix ActionBar#setHomeActionContentDescription(0)

This call should be analogous to calling
setHomeActionContentDescription(null) and not throw an exception.

Bug 8657256

Change-Id: Ifa9c7b999f4bf1a31fba43f869e234b1f1861512
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8c16aa9fa225c277c3ead605b16dc697709bda27 04-Apr-2013 Adam Powell <adamp@google.com> Uphold common ordering expectations around action bar Home/Up dispatch

Some apps aren't particularly happy if a stray key event is dispatched
to a newly created window before its menu is prepared, causing the
action bar's Home/Up event to be dispatched. Ignore these clicks on
the Home/Up button before the menu goes through its initial prepare
step.

Note that it is still possible (and valid!) for Home/Up to be
dispatched even if the app chose to return false from
onCreateOptionsMenu or similar.

Bug 7085070

Change-Id: If4b7d5f8c5a08ce8a094f1919347604d78ddedfb
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6684e92ae83fab00108bf2964e703d1037c0b882 26-Mar-2013 Adam Powell <adamp@google.com> Fix some visibility state transition issues with ActionBarView

Restore state as expected for titles and expanded action views.

Bug 8246128

Bug 8479205

Change-Id: Icad59685c5eab241f19ecd94479dc5e7a9f678b6
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
1fb69f0f354cf6743e1f30b55e9ca2f9252cf99e 06-Feb-2013 Adam Powell <adamp@google.com> am 0714e37c: am a7e028a9: am cef582ab: am 07cf971e: Fix re-enabled state of up after action view collapse

# Via Android Git Automerger (3) and Adam Powell (1)
* commit '0714e37cb7acafbc93f2fac40dbb200cd2a96514':
Fix re-enabled state of up after action view collapse
07cf971e58aecab76f2b5b575cfe62120005c6e4 06-Feb-2013 Adam Powell <adamp@google.com> Fix re-enabled state of up after action view collapse

A certain call ordering to the action bar could cause the record of
the pre-action view expanded home button enabled state to be
incorrect. Store this in all cases, not just when the action view is
initially expanded. (Except for when we actually disable it for the
expanded view.)

If an action view is already expanded when we get a call to change the
enabled state of the home/up button, don't modify the state of the up
container or other accessibility info, but record the new state if
requested.

Bug 8142097

Change-Id: I070c151aa9f2046d2114ee541d964bf68c6f0def
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
9c684aab21b095a936e5753fbba378c0a27aa254 05-Feb-2013 Adam Powell <adamp@google.com> am 638af2fb: am 6a33c403: am 569f138e: am 67389e0a: Merge "Fix regression in expanded action view up" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit '638af2fbb6ecb6ca0e58b06d5b2c6ecabbc7f812':
Fix regression in expanded action view up
62f33030b9fb6be893e20b563e3ba1800e3e63e8 04-Feb-2013 Adam Powell <adamp@google.com> Fix regression in expanded action view up

A bug was introduced when these views were restructured. Make sure that the
Up button for expanded action views functions/focuses correctly.

Bug 8124825

Change-Id: I0a886e62fca21dbb9a173db87642bb79ce9245e7
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
7195c8f25b6bfc7564701683d3e2e1ed1bdcfcc6 24-Jan-2013 Adam Powell <adamp@google.com> am a41f9cfb: am 53d49f17: am 17f05497: am c2469500: Merge "Touch action bar title text: you will go to space today!" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit 'a41f9cfbbd1d137bf1baab49e0d453a40a0ecd33':
Touch action bar title text: you will go to space today!
27cba3895282ac1da1f1d43d37d53f8113527569 23-Jan-2013 Adam Powell <adamp@google.com> Touch action bar title text: you will go to space today!

Title/subtitle text in an action bar is now a full alias for home/up.

Add some prototype ActionBar functionality around titles for future
API consideration.

Bug 7966136

Change-Id: I14377121dcb976d0a5f1e1862f35c3d267eb5458
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e886d3d33b3630dc6013688cee4364bc532f7815 11-Jan-2013 Adam Powell <adamp@google.com> am 79cc4a2a: am d1779207: am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev

* commit '79cc4a2ab0130acca83de5945a43adf9925beac1':
Make action bar title a valid touch target for up when relevant
4dca8636f8c674a7770031c71bc785ef05f22ff9 09-Jan-2013 Adam Powell <adamp@google.com> Make action bar title a valid touch target for up when relevant

arubin bug 7966136

Change-Id: Iea5b85852cc1664f1390a6f8b6179d63b50857e4
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
29c04ef841fe22785e2fd3348c653bd8a5240aae 11-Dec-2012 Adam Powell <adamp@google.com> Set an ID for the action bar's Spinner

This ensures state is preserved properly.

Change-Id: I4bdccaf9b8a30a0a38466a5615cebbb596d80fb4
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
bb4b601673a4f910d3e467bc5ce39538438859ce 27-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"

This reverts commit 6bf6eb7d5f9207d6a3e1d6b61f17a8654d06fbdb.
and also fbc21e126f329b7b7c161858c1390ccb023be07e

I have also removed all unnecessary calls to resolveLayoutDirection(int). This is possible as
we are resolving layout params on every child of a ViewGroup as of commit
fcc3348f61b2992f0b84e8e8dcb3535fc715298f

Change-Id: I262a375b03fcc3c9261cbe2edebb6ec42ec2e186
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6bf6eb7d5f9207d6a3e1d6b61f17a8654d06fbdb 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)

Part 2

- fix remaining UI widgets by asking layout params resolution when needed

Change-Id: I97c41639da645d77eeda85feec3bbcc7fc1260b9
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2918ab6c3258639148b8a5c78a34483af195246e 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7326778 Rename LayoutParams.onResolveLayoutDirection(int)

- rename to LayoutParams.resolveLayoutDirection(int)
- upate 17.txt too

Change-Id: I54fe28dc47cfdb65ef0b5b0244dabbe1d675c781
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
4aeb961de2a2bbf0d897a8436b6421ecfbc4d712 01-Oct-2012 Casey Burkhardt <caseyburkhardt@google.com> Sets accessibility importance for the home/up button.
Bug: 7196985
Change-Id: I4d27470eccb8933f751db892218a8032a80df3da
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6322af54cfb74be22386e4b7d17350cebf2da58f 09-Aug-2012 Adam Powell <adamp@google.com> Fix indeterminate ProgressBars with weird sizes and padding; optimize
ActionBar measurement

Fix a bug where preserved aspect ratios in ProgressBar indeterminate
drawables were causing drawable bounds to be calculated incorrectly
when the ProgressBar had padding specified.

Measure the ActionBar menu view's height with EXACT measure mode,
preventing an extra measure pass to match child heights for some
cases.

Change-Id: I8c4678662a015b57ba2686d5b5c5fc27d4ef8d36
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
fd75eef161e93a39c87699b6c938b8298ee8f78b 02-Aug-2012 Adam Powell <adamp@google.com> Animate the action bar's Up chevron as it shows and hides.

Change-Id: I2cf0283cc644a62ad83cb5641b8f56cc8229b86f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
570470a332a824a66c74a1d6bd8ce0253ccb5050 07-Aug-2012 Adam Powell <adamp@google.com> Make ActionBar fail more cleanly when invalid heights are set

Also add "none" flag value for null displayOptions in xml

Change-Id: Ided3433638f02ba2a18ce08db265d7a8ac4f216c
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
34c829e46c875a59eba95fd65a27e2fe5688083e 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix ActionBar HomeView up button layout params

Change-Id: I9cbf2ce695cce14c16efa270fafa062f46c985ce
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
cf1ba0298c48ae56608ed556dc715eb69c54f9b9 26-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Make ActionBar aware of layout direction

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

Change-Id: Iea8a512311ee99548f39bbbe342f21eabaffbe09
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6231ab8bbb2862a7ddb767876fb7a49c1565b616 22-Jun-2012 Adam Powell <adamp@google.com> Allow sloppy touch targeting on Action Bar home/up

Bug 6521608

When there are no custom views or other actionable views next to the
action bar's home/up affordance, expand the touch target by a generous
slop value. This helps frustrating cases where a user accidentally
hits just to the right of Up and nothing happens.

Change-Id: I09ef604ce70ad380aab62a373b04c4b02007c644
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
4213804541a8b05cd0587b138a2fd9a3b7fd9350 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
traversing the it. Enabling structural and directional
navigation over all elements on the screen. This enables
blind users that know the application layout to efficiently
locate desired elements as opposed to try touch exploring the
region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
to let accessibility services keep track of it since they
have access to the screen content, and another to let the view
hierarchy keep track of it. While the first approach would
require almost no work on our part it poses several challenges
which make it a sub-optimal choice. Having the accessibility focus
in the accessibility service would require that service to scrape
the window content every time it changes to sync the view tree
state and the accessibility focus location. Pretty much the service
will have to keep an off screen model of the screen content. This
could be quite challenging to get right and would incur performance
cost for the multiple IPCs to repeatedly fetch the screen content.
Further, keeping virtual accessibility focus (i.e. in the service)
would require sync of the input and accessibility focus. This could
be challenging to implement right as well. Also, having an unlimited
number of accessibility services we cannot guarantee that they will
have a proper implementation, if any, to allow users to perform structural
navigation of the screen content. Assuming two accessibility
services implement structural navigation via accessibility focus,
there is not guarantee that they will behave similarly by default,
i.e. provide some standard way to navigate the screen content.
Also feedback from experienced accessibility researchers, specifically
T.V Raman, provides evidence that having virtual accessibility focus
creates many issues and it is very hard to get right.
Therefore, keeping accessibility focus in the system will avoid
keeping an off-screen model in accessibility services, it will always
be in sync with the state of the view hierarchy and the input focus.
Also this will allow having a default behavior for traversing the
screen via this accessibility focus that is consistent in all
accessibility services. We provide accessibility services with APIs to
override this behavior but all of them will perform screen traversal
in a consistent way by default.

Behavior: If accessibility is enabled the accessibility focus is the leading one
and the input follows it. Putting accessibility focus on a view moves
the input focus there. Clearing the accessibility focus of a view, clears
the input focus of this view. If accessibility focus is on a view that
cannot take input focus, then no other view should have input focus.
In accessibility mode we initially give accessibility focus to the topmost
view and no view has input focus. This ensures consistent behavior accross
all apps. Note that accessibility focus can move hierarchically in the
view tree and having it at the root is better than putting it where the
input focus would be - at the first input focusable which could be at
an arbitrary depth in the view tree. By default not all views are reported
for accessibility, only the important ones. A view may be explicitly labeled
as important or not for accessibility, or the system determines which one
is such - default. Important views for accessibility are all views that are
not dumb layout managers used only to arrange their chidren. Since the same
content arrangement can be obtained via different combintation of layout
managers, such managers cannot be used to reliably determine the application
structure. For example, a user should see a list as a list view with several
list items and each list item as a text view and a button as opposed to seeing
all the layout managers used to arrange the list item's content.
By default only important for accessibility views are regared for accessibility
purposes. View not regarded for accessibility neither fire accessibility events,
nor are reported being on the screen. An accessibility service may request the
system to regard all views. If the target SDK of an accessibility services is
less than JellyBean, then all views are regarded for accessibility.
Note that an accessibility service that requires all view to be ragarded for
accessibility may put accessibility focus on any view. Hence, it may implement
any navigational paradigm if desired. Especially considering the fact that
the system is detecting some standard gestures and delegates their processing
to an accessibility service. The default implementation of an accessibility
services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f821819a88cb414c7f55db9a87e8cbfb7e20e7b6 22-Feb-2012 Adam Powell <adamp@google.com> Fix bug 5971117 - Action bar does not update icon used for collapsible
action views

Change-Id: Ib25cd40b046ab4b7dc382476345f95727fde3955
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
45b075dd5cef54ed3412115ee199df1db1c90528 10-Jan-2012 Adam Powell <adamp@google.com> Fix a bug where window progress bars had the wrong default visibility
on windows with action bars.

Change-Id: I5509d9a7c5f029b0471bd63e781f4756f5a319bc
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
a8743f152aac4a8ef97c79bdad5232614453ce2a 12-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5425280 - Two ActionBar icons show up

Change-Id: Ic82f8ce648f9314a0800eeff326df7d8dfe5027b
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
97e1836e1b07d91f18de9669c46b0c941b643a72 21-Oct-2011 Adam Powell <adamp@google.com> Bug 5275928 - Invasion of the monkeys

Fix a monkey bug where runnables set to open popup windows were being
left around.

Change-Id: I29f2c7763ab667c784b96b60ef0d7e04d358c4d9
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
915ce0d917fecd14e9b8b0caa4b01e72f3e0db11 29-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5386180 - Wire up action bar home/up for dialogs

Action bars in dialogs are largely an undocumented "feature" but they
do work - with the exception of this since it previously relied on the
host being an Activity. Make it work.

Change-Id: I52ae24c3bfdd9766e4c0f035183e7f148a4e0162
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
a05aba9c506cd12a753c53e060c289095c3477e9 23-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5341139 - bottom bar stays if app wants to handle orientation
change

Let action bars move between split/unsplit mode on configuration
changes if set to split when narrow.

Change-Id: I13f5115a65247cb1878ee823493ca8e2b6ba4cf6
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b8440110465cf2c0071e3b838cdb02d5a21fd2a9 13-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5296851 - Silly monkeys.

Change-Id: Idae81d426051c2e1b00a1d1b62b505effd0a2a68
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
425689eea2f4f208f29b944b4973981bdbeda9f5 09-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5279075 - Handle action bar config changes when action mode is active

Change-Id: I83d40d2d555b01a9e678231c4f3c5278fab959d7
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
07a047fdd632e10d29a513bf7f175e1edbbb65ab 31-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5220390 - action bar title metrics

Adjust action bar title layout metrics to match UX specs.

Refresh new metrics properly after a config change.

Change-Id: If19fad837ca2919193d4a3a8eb01c1caff68ca67
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
9a5cc2810bbbcb0eab4579aa4131039820d92101 29-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5124021 - Menu visibility incorrect when restoring ListView
selection mode

Fix visibility of menus when action modes are initiailized early.

Fix ListView problems persisting check states.

Change-Id: Idc21036dc39259e72f0e6831a0ccb4695f8858ef
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
aa8e509ba2d22b9ba105faad3349db8d5218ee32 25-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5091886 - action bar measurement

Change the measurement order of elements in the action bar. Custom
views are now deemed more important and may truncate title/subtitle.

Change-Id: I150862f8e48b36bcbd892f49d78c2962c5001ab1
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b1e2f25b7e6d20caa233113b892ec46685f08bb6 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5143392 - Add padding to left of action bar app icon to
prevent icon from moving when drilling into hierarchy

Fix up the layout of home/up/titles in the action bar such that showing/hiding
the "up" indicator never changes the position of the icon, logo, or title.

Change-Id: Ic2117babe3a54619a4b787d5374295955a58fb34
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
82f24e82e125d9dfbed072d0d9329b90e6d9cb12 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5186341 - Double Action bar when displayOptions is 0

What does it mean??

Change-Id: I7978b8fb6877da6178f8db89ec085f1402acf743
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
7a2424d0412584798f6de60217f7c873bc1cef5b 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5183775 - Action bar custom layouts with default gravity misbehave

Change-Id: I314822ed9617d2c1de55e1f3238f1ca8899393f3
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
aad47fd78a86dd1279fa555716e252685837ac50 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5179524 - ActionBar custom view inflation doesn't catch layout_gravity

Change-Id: Ice5fd9da268cff64fc14acca384b249c252db5c9
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
9e58df5d40e345a3b5ade8bebae6bc61421ca06a 16-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5049406 - ActionBar UP with no home icon, tap highlight looks broken

Measure the action bar title layout to consume the full height of the bar.

Change-Id: Iaf0521c5c80b5bd7ceb7f756e50248f6a27fc1fc
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f2b096194483c614b0f427b13412b614ccc40070 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5095223 - ICS action bar incorrectly resizing app icons

Remove experimental auto-mipmapping of icons.

Change-Id: I326ca396331a050985200b2ecf0d892474262916
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b0e217eacb11b6225d6156cf930a9599d2ba6b41 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5159073 - actionbar titles don't seem to be drawing anymore

Change-Id: I2e617438134f1ff9f192d861655b69e4790593fe
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
71f34174e977bac7283696d45c17baaa4f1f1503 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5156213 - Fix title visibility states wrt expanded action views.

Change-Id: I20b5c5ad8112bec17e4cb5d6e568f47005a4e731
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f5645cbafe7eed33452d888f16726bee8a0cd9fe 11-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5122319 - When action bar tabs run out of space they should
collapse in to a spinner.

When tabs are not given the option of dropping to their own row,
collapse them into a spinner when they would measure too large to be
visible all at once.

Fix bug 5095167 - zombie tabs return when they shouldn't when activity
handles its own orientation changes

Change-Id: I074419d99a22aa5dd1cbc00a66e600ec5cb0b54a
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
29764eab44e195ac6c2641add74b2c44c008e5c4 04-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5121406 - ActionBar.setLogo

Make the resource ID version of setLogo work.

Change-Id: I0a710b714c9fd10bc3063a8ec95e59391ba4d4e0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
45c0b1954d7dfa6e2590ed76b915a98ae971414c 29-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize
if activity handles orientation change

Make sure that bar content height and sizing/layout parameters are
properly updated after a configuration change.

Change-Id: I886df5cd9a655ba1bd34fab2b48e8b5be67fcc32
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
894bf54c0f50dbbaeb737842a89516a3029e233a 22-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5027071 - Action menu parent consistency

Make sure that action menus can tolerate moving around in the bar.

Change-Id: I2dfb4ea7e647a6c4e84ec78865af6fd858e3f59f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b80d332e7421e0b8cff12569c2f1b450d769e782 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5037642 - Refine back button behavior for action bar modes.

Action modes for the action bar used to aggressively hijack the back
button before the view hierarchy got a chance to respond to it. Loosen
this. New ordering is: view hierarchy => window feature-level modes
(action bar modes e.g. CAB/search) => Activity/window callback
behavior.

Change-Id: Iac1b22997713be968a94f77f9fa6cebaf6f923f0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
28fa07e15f7a7ee83be9e5555bbfdd25711b3517 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5021359 - show app icon for collapsible action views.

Also fix a bug with initial enabled state of the app-home button.

Change-Id: I7eac4932deeced3ac209ad899922ac90f40c87e6
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c29f4e52c3377924df26910cce3ff26278d1f484 14-Jul-2011 Adam Powell <adamp@google.com> Nicer API for disabling/enabling the home/up button in action bars.

Have an explicit call for enabling the home/up button. Auto-enable it
if the app targets < ICS to preserve Honeycomb behavior. Auto-enable
it if the app shows home as up.

This prevents unwanted touch/focus feedback on the home button when
the app hasn't wired it up to do anything useful.

Change-Id: Icfe95ab5a11b3998bca08b0fbbfe1bf6c3c89b5d
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
11ed1d6cae9214335c92ac38498a4e6c7d1c8324 12-Jul-2011 Adam Powell <adamp@google.com> Fix bugs around restoring submenu state after activity teardown/restore

Change-Id: I6cb5b3cad39b141dff84b8e0ca62f8f0a76a03b1
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f6ce6a9bacbb220c6ea7b552c481237f23e64ae7 29-Jun-2011 Adam Powell <adamp@google.com> Fix some issues with the action bar and action modes.

Fix bug 4976004 - bad title measurement for split action modes

Fix bug 4902960 - action modes leaving a hidden action bar in a bad state

Sync with design for the behavior of various permutations of action
bar configuration + modes.

Change-Id: Id75f6b5911b761fabc5fef2cc2600ce197cf9a92
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6556c074ee84d0e56aca9ae267e330db73dfb236 25-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4903822 - vertical gravity bugs in action bar custom views

Change-Id: I20a319bf8fd5b5acf823a2651639f94d6efac5e4
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c8b0b005cb616deb9646f2c2b995890fa9530f94 23-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4771354 - Phone landscape action bar subtitle slightly cut off
on the bottom

Let action bar title sizes adapt for restricted space in landscape.

Fix home spacing for tablets to eliminate redundant layout.

Change-Id: If38a43d87ca1aebf96b5d7adfdb1cf36c41ec07e
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
0d5d1b7e8cc06b4c62a863314debbb8b24554f1f 23-Jun-2011 Adam Powell <adamp@google.com> Tweak action bar metrics.

Free up some more pixels in the action bar and better define how icons
within it resize.

Change-Id: I0768180e595ee7b23190a26607e8989fa1bac38f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
15a16a835ef07d484e0ae11666cef9231c2f8184 20-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4729242 - Crash while launching browser app.

Change-Id: Id049bcc53943b0cbe17e9f345af67adc2b10bdef
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
54c7d7e61cd975d73b7eb0a5a0c75d21b6a7a12b 18-Jun-2011 Adam Powell <adamp@google.com> Allow the action bar title to take on the role of "up" in the absence
of a standard "home" icon.

Change-Id: Ie1a9adca674500a29da36956455667bbb55a616f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e0adac0e72312048c3d874b24bc35d8c43253306 14-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4551701 - com.android.browser: java.lang.IllegalStateException

Fix a bug with split action bars and orientation changes.

Change-Id: If067803281c6ac23b51da5bf075fdf1be28afdc2
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
cc2e5bea7da9339a9c03a9616f22348978e8909c 10-Jun-2011 Adam Powell <adamp@google.com> Fix some measurement/sizing with split action bars

Change-Id: I5fded370d214eb0a50d06fd6a14446227d3b30ac
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
1ab418a222e1834c4b1312fde355e41a1947af0d 10-Jun-2011 Adam Powell <adamp@google.com> Refine the behavior of split action bars.

Change-Id: I27212c7554025433ee366f0766971f0092b26d67
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c3076425bba5c129408338be4e138f8be16855a6 02-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4520517 - IllegalStateException entering tab mode

Change-Id: I0ebf3aea98060e27e9687f48dff05f7310046ce5
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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/widget/ActionBarView.java
39a8dc4aaf6b8ff63b3168a8f7e3b8153d3891d8 28-May-2011 Adam Powell <adamp@google.com> Fix bug 4499292 - ActionBar tabs don't show the first time

Fix an order of operations issue with actionbar tab initialization.

Change-Id: Ie1b1c76614eafc68e0069985b93683b44699b958
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
3526556135e433504742c2ae4fcaada3525a6464 28-May-2011 Adam Powell <adamp@google.com> Fix bug 4399686 - missing menu after returning from fullscreen video
playback in browser

Change-Id: I992c6b1b4db738f937646e0dcac1c83fa5ab4e35
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
d21aa12e8eb9d46ee92bf408b4b48386c6bf062d 27-May-2011 Adam Powell <adamp@google.com> Action bar tab layout tweaks.

Let tabs consume the full action bar when the menu is empty and other
elements are disabled when the tab bar would normally split onto a
second row..

Fix bug 4489724 - bug in ActionBarImpl#cleanupTabs.

Change-Id: I28a235d339137add0b106c6e733a6767fa547810
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f8ac6b7394cfd37f01471bb35475ff2930eee140 24-May-2011 Adam Powell <adamp@google.com> Action bar tab layout

Sync with UX on action bar tab layout behavior.

Make action bar tabs behave better with configuration changes.

LinearLayout now supports largest child measurement in unspecified
mode.

Change-Id: Id520641715a61c07e64124a0c5a70912996c98a0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
5d4034a37e5ac3832b91388024f6eddf343cf3f6 17-May-2011 Adam Powell <adamp@google.com> resolved conflicts for merge of 2b6ace58 to master

Change-Id: Icaff26a56c3e467317ca16d71e61fe8c5e60dfda
1b4a1628f3c6deb5f3ce9027c4e5aaf98dab4d75 17-May-2011 Adam Powell <adamp@google.com> Prevent cases of bogus action bar measurement.

Change-Id: I92d3bc41aa82835e1aa23f208ab61e943266f186
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b51cc1dd63808da505cd8beb7300f57dc98ff1d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Merge "Only delay pressed feedback for Views inside a scrolling parent"
e0a799a2ac1ca78e30fbac9e4e12a063425c08d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Only delay pressed feedback for Views inside a scrolling parent

Add a method on ViewGroup to determine whether it supports scrolling.
This allows us to show the pressed feedback immediately in many cases,
improving responsiveness of buttons, etc.

This patch also lengthens the timeout in order to reduce flashes
when the user is scrolling.

Change-Id: Ieb91ae7a1f8e8f7e87448f2a730381a53947996f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f3cd1d957c0d709a4704722b6397c934c1a770b8 27-Apr-2011 Adam Powell <adamp@google.com> Bug 4269063 - Populate contentdescription in action bar

home/up and action menu

Change-Id: Ia09d78d9d37848621e025b9af93a92cfd3bb8dc7
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
0d8ec1d739e15c232c58a5a5de605685830c287e 03-May-2011 Adam Powell <adamp@google.com> Fix bug 4345702 - update action bar tab views when the Tab object is
updated

Also fix a bug with visibility of split action bar views.

Change-Id: Iadd63d5e9b6cb9debab0f7a777e424e4c4807a13
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
dae7824c4b78d02159c6ad0896f246942d7b3d8c 26-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Drop tabs to a second row at < w480dp

Make 9-patches for the cab's "done" button thinner

Add a "disable home" display option to the action bar to turn off
focus and touch feedback when tapping home would do nothing

Change-Id: Ib2eedf311655f02055357321e2e9ad5b9037fed1
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
d0f650c6c3a123c856bb0adb138ae7cd0deed3d1 23-Apr-2011 Adam Powell <adamp@google.com> Fix mipmap selection for action bar icons

Change-Id: I6d34dabb5289284fd5821695ad14d8bdeb97e50d
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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/widget/ActionBarView.java
1969b8799085322f9ef6e75b78c2c9a5d5944801 22-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4142917 - Add support for specifying a custom home icon in action bar

Add ActionBar methods for setting icon and logo.

Change-Id: I6151689138c734b7212c3469b8ba8f28f0fd5ec4
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
c18c38f36eb04707a7995d69db17e1f0915c6d94 15-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4088936 - Tabs in the action bar don't seem to have a fading edge

Change-Id: I23c736ad458c721dfa86563f66b42dd5d6ca708e
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2b0952b197470a457f4f436911f1d07f553d15da 09-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4065021 - Adjust spacing of the "home" action bar item to be
consistent with the "up" indicator

Make sure that the "home" affordance in the action bar always occupies
the same amount of space regardless of whether or not the "up"
indicator is visible. This means centering the application icon/logo
in the remaining space after the "up" indicator has been added.

Change-Id: I3c81cfe8255546d4dd676af913895713baba4f13
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8fca37ce308e45f58220752ef9776c55ef44491d 05-Mar-2011 Adam Powell <adamp@google.com> Fix bug 3501766 - Make the action bar "up" visual more prominent

Change-Id: Id4b104dd6ca1df662479ab54f045e119585f990f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2a7ea67a03f3e53f59129fdea98c42c1ea02097f 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3381275 - Too much padding on the left of a custom nav bar

Hide the title layout if it's empty to omit any included padding.

Change-Id: I01d287c8e214ed3648a47f5ca00b50f78d1659ad
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
1264c33163146d6088675d197551a63b3f9d360b 20-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362375 - API REVIEW: remove unused public 'up' id

Fix bug 3362453 - API REVIEW: android.app.ActionBar

Change-Id: I4e0233cd9355a47682bfe7b4a7fda39801586f1a
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
654e4e41615b4d10cf09ccf1b89ac7b14057a604 04-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared
container

Change-Id: I8edb99739be43c7ee82eb4dc4b82a9be17f92d0c
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
45f1e08c348ccb129bcc25e438c05421f7123f41 10-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3259354 - Handle ActionBar backgrounds better for interacting
with action modes.

Tweak ActionBar/mode transition animation to look better with a
variety of action bar styles.

Fix bug 3273773 - ActionBar disappearing while displaying
popupwindow. Some SurfaceFlinger optimizations require a relayout to
recalculate the bounds of overlaid views.

Fix bug 3266010 - Cancel animations properly when switching between
modes.

Change-Id: Ic431176b11115a2211bd0a46d09c8998aefe58d6
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
3f7f7ac30af6ea572aca44df91363cff7fcd9fef 06-Dec-2010 Adam Powell <adamp@google.com> Add dividers to action bar navigation. Lighter dividers for holo themes.

Change-Id: I879dbd815a891fe5db20678b674a9cee63a5e1ae
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
b33be1c672f459d94b151b3b2e3859a7655a7fa3 18-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3208911 - apps not getting default ActionBar style values

Change-Id: Ie2855d6ebbaf49d187dc8bd63fda7f1b397325b5
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
1c60300129e431ccf1cf258291eac5acdb3a2fe4 18-Nov-2010 Ed Heyl <edheyl@google.com> Revert "Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up"""

This reverts commit 8b8914b50d36734305d582485fa839b7d04b8872.

Change-Id: Ib3ee99257ed10af5f729f3d29af37b5b48a8e139
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8b8914b50d36734305d582485fa839b7d04b8872 18-Nov-2010 android-build SharedAccount <android-build@google.com> Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up""

This reverts commit 432e5f9f167e622d03fee0e10215b6e2234c1a3c.

Conflicts:

core/res/res/values/public.xml

Change-Id: I7212626479da7aef80b9bcb4c2144435364dafae
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
432e5f9f167e622d03fee0e10215b6e2234c1a3c 18-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3167081 - Action Bar redesign to support "up"

Integrate new assets for action bar "up" and menu. Restructure action
bar layout to support the new design. First pass at metrics.

Change-Id: Iefc502bf398905208129ef41072bdf4a0225bfe0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
8d12e201626239291fe2c4b31f97f2a14f01dea9 16-Nov-2010 Adam Powell <adamp@google.com> Fix a couple interactions between action bar and options menus

Fix bug 3129937 - Activity.openOptionsMenu not calling onPrepareOptionsMenu

Fix bug 3070720 - actionbar android.R.id.home isn't dispatched to fragments

Change-Id: I4a154941595583cdec7d1dffbeac9c8340781fa0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6af97e1c20df4d7010fafd7059c95d9b4113e4a6 12-Nov-2010 Adam Powell <adamp@google.com> Revised assets for progress bars and indeterminate progress spinners.

Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
f786805acc4e188e22c9a569f44506c40636e883 04-Nov-2010 Jeff Sharkey <jsharkey@android.com> Respect padding when positioning custom view.

Fixes http://b/3164071

Change-Id: I74700fecf7e9f4785e8e944b2660724b3d270b0d
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
0c24a5514c1ff143a223720a090b19a86a75945f 04-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3156280 - Fix several issues with tab navigation in action bars.

Add the ability to restrict a FragmentTransaction's ability to be
added to the back stack. (It doesn't make sense for tabs or other
scenarios to allow this.)

Change-Id: I8fa2edb5f35c365e2483010ad13eb9993f5e6570
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
ad199ecc441649f0ad816f7b139ab5ddffad98dd 01-Nov-2010 Ben Komalo <benkomalo@google.com> Fix issue where home layout click listener was being attached
before it was initialized.

Change-Id: I25641ca7c2db18d423dcafebc9bdf42d608a7a31
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
81b8944131946e451b31665652de8cc71d81ea07 03-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3093591 - add richer control over default tab selection in ActionBar

Added overloads to ActionBar#addTab with control over whether the added tab
will become selected or not. Old versions implemented in terms of the new.

Change-Id: I810c64652bb7e755b81151ce8a2c765266d78a66
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
9ab978713ce86fdaefed2407f4f3c998ab0e3178 27-Oct-2010 Adam Powell <adamp@google.com> Action bar API updates - new display options

Change-Id: I55e56cd7aafa53994990079e88ef85e4eb1a0b3f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
89edde3efad66063ff6108475976352c0c4e5fdb 14-Oct-2010 Adam Powell <adamp@google.com> Holo styling and metrics; holo spinners

Change-Id: Ib6d80e5e1a79b7a4ff208df8dbc097e7b9228d13
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
ca259f4081404a8b4524b2fe80ab036182141ab7 08-Sep-2010 Adam Powell <adamp@google.com> Added resources and styles for ActionBar tabs

Change-Id: I7ba5502146dec2d71b3e9ff57d90e7b5bd2bc2a0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
2b6230e0de4bac2829ac27b19e95ba75c3da82b4 08-Sep-2010 Adam Powell <adamp@google.com> Reworking the ActionBar tab API

Change-Id: Ifbcdc61b4a24633cc1a329c73923b95b03e9ecf0
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6c6f575423d6718c3ff322224c1520901ce881e1 21-Aug-2010 Adam Powell <adamp@google.com> More ActionBar/config change tweaks. Preserve open overflow menus

Change-Id: Ic8ad2b1e3909fbf84ff4d852ae046a9f9508477c
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
9146ac706265cd8cce66907e617bc8572152eb97 17-Aug-2010 Adam Powell <adamp@google.com> Prevent starting an action mode from within an actionbar/mode UI.

Don't let a View start an ActionMode if it would be obscured or destroyed
by the ActionMode UI.

Change-Id: Ifdb28f1d6704ede550a89903d3823a09b103fcd5
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
266b1008cfc570d95d10ce650343765fa6bac7e7 17-Aug-2010 Adam Powell <adamp@google.com> Fix some ActionBar bugs.

* Fix a bug where the options panel would not open on non-xlarge
screens to show overflow menu items.

* Fix a bug where ActionBarView would try to add a custom nav view
twice.

* Fix a bug where ActionBarView would expand too far in wrap_content mode

Change-Id: I433ea56524aad885d813ae8743fe2fcefa9649fa
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e2194445b078932733a2d1a02fc084ea2f3c7360 13-Aug-2010 Adam Powell <adamp@google.com> Clean up some Action Bar style handling.

Action Bar now obeys the titleTextStyle/subtitleTextStyle attributes
and has a better way of handling custom sizes. Any attached Action
Mode bar will keep in sync with the Action Bar's height.

Change-Id: I7d16319f5609d4d6c80a3043dcb60303e6e903db
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
6b336f835d637853800b94689375a03f337139a4 11-Aug-2010 Adam Powell <adamp@google.com> ActionBar overlay mode, height fetching, show/hide

Change-Id: Ie931ed26ec885d891d6733132b517a53d95f8491
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
178097727fab0f41810b1ffd4baf84ff8ed32c42 21-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2859423 - action bar: need a way to choose item in spinner

Change-Id: Idf9c222e5d8f27b4339a6df7d14f3f10dcb4be2c
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.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
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
e92ea3474de7998a016b48bab4e9a4bbafd5b549 14-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2835056 - ActionBar doesn't update title properly when set in onCreate

Change-Id: I593315db8df0190c2702a87ebef293e5f798823d
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
661c908e4e26c99adc2cab7558a02129eaee059d 02-Jul-2010 Adam Powell <adamp@google.com> ActionBar tab mode using fragments; needs styles.

Change-Id: I8f931dae447e7b64de827d3c17766e5f8ad794e2
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
a7db03705f53c59e63e63c2e67e2db78f8226dcc 01-Jul-2010 Adam Powell <adamp@google.com> Define measuring behavior for action bar/context mode custom views

Change-Id: Idbe25c81a16005f153d5b425fb366eef4bea290f
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
0e94b5151d817e600a888448a662208b29b5ef46 30-Jun-2010 Adam Powell <adamp@google.com> Add subtitles for action bars and context modes.

Fix an issue where context mode content was cleared before animating out.

Change-Id: Ie7a065e65bc18e3da32de07543d0f71d2a2d648c
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
/frameworks/base/core/java/com/android/internal/widget/ActionBarView.java