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/view/menu/BaseMenuPresenter.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/view/menu/BaseMenuPresenter.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/view/menu/BaseMenuPresenter.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/view/menu/BaseMenuPresenter.java
|
8d02deabac62c4a68a335a7b3141795466362b89 |
|
01-Jun-2011 |
Adam Powell <adamp@google.com> |
Implement bug 4500971 - Collapsable action views Action views may now be flagged as 'collapsable'. This means that the action menu will always show them in the collapsed state by default. When selected, the action view will "take over" the navigation/view side of an action bar until dismissed via the home/up button. This feature allows for more long-term exclusive modes akin to ActionModes but less intrusive. The action menu itself remains unaffected. Collapsable action views are ideal for things such as search or categories of tool palettes. Change-Id: Ibafce5631befbfe67c5d834c2e2617d3d7f6da7a
/frameworks/base/core/java/com/android/internal/view/menu/BaseMenuPresenter.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/view/menu/BaseMenuPresenter.java
|
696cba573e651b0e4f18a4718627c8ccecb3bda0 |
|
29-Mar-2011 |
Adam Powell <adamp@google.com> |
Refactor menu internals. In the old world, MenuBuilder and MenuItemImpl were responsible for generating views for any presentation of a menu. MenuBuilder needed to know any types and resources involved, and the implied caching semantics did not work well for menus presented within AdapterViews. In the new world, the MenuPresenter interface takes over the responsibility of generating views or adapters for menu items. MenuBuilder/MenuItemImpl still provide extra metadata tracking used by these presenters. Mutiple presenters may be active for a single menu at a time. All of this remains internal framework implementation details. BaseMenuPresenter provides a simple base for presenters that treats the host MenuView more like an AdapterView. This allows for less rebuilding of views when items are added/removed. Callbacks have been restructured. Calls that relate to the menu itself are still handled by MenuBuilder.Callback, but calls related to a specific presentation of a menu are handled by MenuPresenter.Callback objects attached to a MenuPresenter. Also add API to programmatically set divider options for LinearLayout and hidden API so that ActionBarView can have finer-grained control over divider placement. Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
/frameworks/base/core/java/com/android/internal/view/menu/BaseMenuPresenter.java
|