summaryrefslogtreecommitdiff
path: root/core/java/android/view/MenuItem.java
Commit message (Collapse)AuthorAgeFilesLines
* Nullability annotations for view and widgetAlan Viverette2022-02-031-45/+43
| | | | | | | | | | I inferred nullability annotations in Jetpack based on the guaranteed behavior of the platform, so now I'm propagating those inferences back to the platform as annotations. Test: nullability presubmit checks Fixes: 206801689 Change-Id: I78a1997faeecdafc51d303b0fc766369938b9101
* Added BlendMode equivalent APIs to replace deprecated PorterDuffNader Jawad2019-04-151-9/+4
| | | | | | | | | | | | | variants Updated various framework Views to have equivalent BlendMode APIs to replace the deprecated PorterDuff equivalents. Updated InspectableProperty annotations to refer to the same xml attributes as the original tintmode APIs Bug: 126726419 Test: Added CTS tests to verify new BlendMode APIs Change-Id: Id9ab36d3d4d29f351250723e9d13d49bc6062c83
* Added framework APIs to leverage new BlendMode APINader Jawad2019-03-261-1/+50
| | | | | | | | | | | | | | | Updated various framework APIs to leverage the new BlendMode API that parallels the corresponding porterduff mode equivalent. Added new Drawable#onApplyBlendMode API that provides a backward compatible solution for Drawable implementations that leverage the new BlendMode API as well as fall back on the traditional setTintMode(PorterDuff.Mode) API for instances where it is not implemented Bug:126726419 Test: Re-ran CTS graphics test cases Change-Id: I119a7f57dce0a095c0a73cf83dc50b82beff5e32
* FloatingToolbar updatesAbodunrinwa Toki2017-10-161-8/+13
| | | | | | | | | | | | - Replace SHOW_AS_OVERFLOW_ALWAYS with SHOW_AS_ACTION_NEVER - MenuItem ordering - Allow textAssist items in overflow to show text with images - MenuItem label text now standard case (not allcaps) Bug: 62447250 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I07fa06f433a34adfad20b371417c95ce76422456
* Force Autofill in FloatingToolbar overflow menuSiyamed Sinir2017-06-081-1/+16
| | | | | | | Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest bit CtsWidgetTestCases:android.widget.cts.EditTextTest Bug: 62271937 Change-Id: Ib3447281f3bd1abc811a25fc55ad55e34e155bbb
* Add support for tinting icon menusKirill Grouchnikov2017-03-221-1/+55
| | | | | | Test: CTS tests in separate CL (same topic) Bug: 31545315 Change-Id: I8877c77dab9b7b229b4246012b9380beadeb4790
* Extend MenuItem to allow modifier keys for shortcutPeeyush Agarwal2017-02-071-8/+118
| | | | | | | | | | | | | | | | | | Before this, CTRL was the default modifier for MenuItem shortcuts. Now, It's possible to specify the modifier in XML or via MenuItem methods. The modifier list includes META, CTRL, ALT, SHIFT, SYM and FUNCTION. WIP on support library implementation Bug: 32165848 Test: Run the tests using following commands: > cts-tradefed run cts-dev -m CtsViewTestCases -t > android.view.cts.MenuTest#testPerformShortcut > cts-tradefed run cts-dev -m CtsViewTestCases -t > android.view.cts.MenuInflaterTest#testInflateShortcutModifiersFromXml Change-Id: I7db4607d4657451934761914efe4c250de109653
* Rename View.setTooltip/getTooltip to setTooltipText/getTooltipTextVladislav Kaznacheev2017-01-191-3/+3
| | | | | | Bug: 34454987 Test: android.view.cts.TooltipTest Change-Id: I7203d5c61804b79584ba8449643c6c0f27a90747
* Add content description and tooltip to menu itemVladislav Kaznacheev2017-01-051-0/+36
| | | | | | Bug: 34076597 Test: manual Change-Id: Ide32463252457721286c929ab2f8f7bae241835d
* API council review feedback for ActionMenuViewChris Banes2015-06-101-24/+0
| | | | | | | | | | Reverts "MenuItem, navigation and overflow icon tinting" CL, and adds getter and setter for the overflow icon to ActionMenuView and Toolbar. BUG: 21571899 Change-Id: I591f43650356443fa3256e4d74e28b6ddd8c2b33
* MenuItem, navigation and overflow icon tintingChris Banes2015-02-271-0/+24
| | | | | | | | | | | | | | | - iconTint and iconTintMode attrs for MenuItem, with associated setters. - navigationTint and navigationTintMode attrs for Toolbar with associated setters. - overlflowTint and overflowTintMode attrs for Toolbar with associated setters. BUG: 18126050 BUG: 19148351 BUG: 19305408 Change-Id: Ibd1fae7cdbc7a7c42809e52541fae5d8beb18e92
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-3/+6
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Update MenuItem#setShortcut docsMichael Wright2014-08-171-6/+6
| | | | Change-Id: I6b73992b0c8d590e8c9884bec377c7c0c1e35720
* docs: add developer guide cross-references, Project ACRE, Round 2Joe Fernandez2011-10-141-0/+6
| | | | Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
* Adding a ShareView and ActionProvider for menus.Svetoslav Ganov2011-07-011-1/+34
| | | | | | | | | | | | | | | | | | | | 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
* Implement bug 4500971 - Collapsable action viewsAdam Powell2011-06-011-0/+104
| | | | | | | | | | | | | | | 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
* Revisiting ActionBar API and layout.Adam Powell2011-01-051-0/+12
| | | | | | | | | | | | | | 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
* Fix bug 3176330 - Improve documentation around MenuItem.setShowAsActionAdam Powell2010-11-151-0/+5
| | | | Change-Id: Ibc8babd3668d0d8e1ed50ac330aac06a4f57dc1e
* Allow icon+text action buttonsAdam Powell2010-10-131-0/+6
| | | | Change-Id: I96d1f3958de3ac13cadbab108b87d6bae96e9473
* Add support for custom action views in ActionBar menusAdam Powell2010-09-121-0/+23
| | | | Change-Id: Ic7850bc00fcfe95d805dd6a1b15cb5d413942475
* Fix docs for MenuItem#setShowAsActionAdam Powell2010-07-191-0/+2
| | | | Change-Id: Id68273dde9c0ce904bca7b40aa2e9558880c55c2
* Added context modes to ActionBar API.Adam Powell2010-06-291-0/+24
| | | | Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+384
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-384/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+16
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+368