summaryrefslogtreecommitdiff
path: root/core/java/android/view/ActionMode.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-071-2/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Add @UnsupportedAppUsage to test apis that are known to be used by apps.Artur Satayev2019-11-131-0/+3
| | | | | | | | | go/testapi-enforcement Bug: 133832325 Test: m Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6 Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
* Make ActionMode.isUiFocusable a TestApiAbodunrinwa Toki2017-07-011-0/+2
| | | | | | Test: bit CtsViewTestCases:android.view.cts.ActionModeTest Bug: 62070427 Change-Id: I21b24d2a497bdc5234539bcc662ad707bb7f34dc
* Fix FloatingToolbar flickers.Abodunrinwa Toki2015-06-181-0/+10
| | | | | | | | | | | | This is fixed by avoiding calling toolbar.show() in PhoneWindow. FloatingActionMode coordinates whether or not the toolbar should be visible. PhoneWindow differs to it. This CL also adds a new API: ActionMode#onWindowFocusChanged(boolean) Bug: 21617792 Change-Id: Ic49ce1000ce9c782d0f9e17e3d024d462c7b758b
* Fix ActionMode.snooze APIAbodunrinwa Toki2015-06-051-9/+9
| | | | | Bug: 21572677 Change-Id: If9fdb8ace3773b983418b0148082712644fd1fa5
* Update the documentation for ActionMode.Callback2#onGetContentRectClara Bayarri2015-05-211-1/+3
| | | | | | | Received feedback from a team that it was not clear what the rect had to include. Change-Id: I03ca54ee1092e8af3a2078c42104e1ce88490cd1
* Hide floating toolbar when user interacts with screen.Abodunrinwa Toki2015-05-191-0/+19
| | | | | | | | | | | | | | - Adds an ActionMode.snooze(int) API. - Clients call this to hide the floating toolbar on DOWN touch event. - This is called repeatedly as a snooze timeout will re-show the toolbar. - ActionMode.snooze(0) will "wake" the toolbar, reshowing it. - Clients call this to re-show the toolbar on UP touch event. - This CL also adds code to hide the toolbar when the "content rect" is changing. Bug: 20148125 Change-Id: If5a9a15f72c73cad8ca01a4328a58570b3e29f66
* Floating toolbars: Add content rect related methods to APIClara Bayarri2015-03-171-1/+38
| | | | | | | | | | This CL adds the ActionMode.Callback2 abstract class and the rect invalidate method needed to add the content rect API for Floating Toolbars. It also extends the existing ActionModeCallbackWrapper in DecorView to handle the case when ActionMode.Callback is provided instead of Callback2, falling back to a default implementation. Change-Id: Ia918ddfcfdf73d0e4cafd24c4a0573245d497cfe
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-2/+4
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Floating Palettes: Create the ActionMode type and use it in Editor.Clara Bayarri2015-02-031-0/+32
| | | | | | | | | | This CL creates the Type attribute for ActionMode, which will serve as a flag to determine its behavior and representation. - TYPE_PRIMARY is the default and will maintain the current behavior and representation in the ActionBar - TYPE_FLOATING will be the new Type and will be represented as a Floating Palette Editor switches the flag from the default to TYPE_FLOATING, but this has no consequences right now, until the functionality is implemented. Change-Id: Icd6cab01637f6ca3ae2e999b06904e08974d0c81
* JB API cleanup; ActionMode and View docsAdam Powell2012-05-021-0/+13
| | | | | | | | | Bugs 6435315, 6434937 Add ActionMode#getTitleOptionalHint() and extend documentation for View#hasTransientState/setHasTransientState Change-Id: I2049fb79864c33b34e3bbd13df32861e308c99ad
* Add support for optional titles in action modesAdam Powell2012-02-241-0/+26
| | | | | | | | | Optional titles will only be displayed in the CAB if they entirely fit instead of ellipsizing. Fixes bug 5821883 Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
* docs: fix broken linkScott Main2012-02-171-1/+1
| | | | Change-Id: I13e29ec18bb503ea33ee59d187f588c5be8fd109
* docs: update menu guide with CAB and popup menu, plus many other revisionsScott Main2012-02-011-3/+9
| | | | Change-Id: I5faedd5f5b812ca58eb2085b0c036570de861f15
* Fix bugs around overlay action modes.Adam Powell2011-10-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Multiple focusable windows cause undesired behavior around selection modes. TextView isn't sure how to behave when it loses window focus with regard to selection handles and action modes need to be focusable for WebView find on page since it uses an EditText as a custom view. For now: * Use a layered window decor for overlay action mode when there is no action bar requested. This eliminates an extra window and avoids the issue described for full-screen UIs. * Disable WebView's find-on-page mode when the action mode's UI will not be focusable. This only affects WebViews in floating windows. Also remove the "Text Selection" title for WebView's selection mode at UX's request, as it is inconsistent with TextView's selection mode and the string does not fit on phones in portrait even on wide devices. This now uses the same mechanism used in TextView to decide whether to use title text. Change-Id: I80caeecea9b47728cf26bb0a388153ca0bdeafe1
* Fix bug 5031652 - offer a way to associate metadata with an ActionModeAdam Powell2011-07-181-0/+30
| | | | Change-Id: Ic9d453b5c58eea922ec65423801e008d953bb25b
* Add ActionMode#getMenuInflater() for easier menu inflation inAdam Powell2010-08-021-0/+5
| | | | | | ActionMode.Callback implementations Change-Id: If9e7ab0d65598bab537add6c6a452a55c093064f
* Add support for setting action mode titles/subtitles by resource IDAdam Powell2010-07-281-0/+24
| | | | Change-Id: Ia0d5234cc16f325eeb29127fb87e2616d67379ec
* Moved context modes into view, renamed to action modesAdam Powell2010-07-261-0/+151
ContextualMode renamed to ActionMode. Adds a reference to the action bar and reduces confusion around things named "Context". Change-Id: Ia5098b1d0799a0ece0810c34e6696eda039fb005