summaryrefslogtreecommitdiff
path: root/core/java/android/widget/ArrayAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Migrate frameworks/base javadocs references to androidxAlan Viverette2022-02-091-1/+1
| | | | | | | | | | | Does not remove Support Library artifacts from docs classpath (ApiDocs.bp) because they are still used in development/samples, which is not as easy to migrate as javadoc. Bug: 158779503 Test: make docs Exempt-From-Owner-Approval: Mass find/replace for androidx migration Change-Id: Icf7f53ec36a0e970413352e2ebf40ce9d60ed17e
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+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: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Removes reference to deprecated code sample, ↵David Castro2019-11-201-3/+0
| | | | | | | | https://github.com/googlesamples/android-CustomChoiceList. BUG:140947822 Change-Id: I77b9e3a5b466afea51467418f25ffe7f1b921c7d
* docs: Fix broken link.Nick Cook2019-07-181-1/+1
| | | | | | | Test: make ds-docs Bug: 79729313 Change-Id: I3f7b90457e9127380f2b8cbaf0f958823ba5488e
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+4
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Document existing immutable behavior of ArrayAdapterChet Haase2017-08-091-2/+10
| | | | | | | | | | | | | | Various methods on ArrayAdapter throw exceptions if run on an adapter created with one of the varargs constructors. This is because those contructors create an Arrays.ArrayList, which does not allow modification. It is not worth changing the existing behavior, but it is worth making the behavior clearer in the docs. Bug: 63802412 ArrayAdapter crashes when calling clear() directly after constructor Test: docs-only fix. Verified with unit test that the docs apply correctly to the newly-documented methods. Built the docs target successfully. Change-Id: I75ae233879cc7db10853f93d78625a00675594b2
* Added BaseAdapter.setAutofillOptions()Felipe Leme2017-06-211-0/+7
| | | | | | | | | | | Also changed ArrayAdapter to use it, when set. Fixes: 37518906 Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.BaseAdapterTest Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.ArrayAdapterTest Test: m update-api Change-Id: I5e883555b0fb9d084b57b9239595bf0632fc41af
* docs: Update ArrayAdapter JavaDoc commentsJoe Fernandez2017-04-241-13/+32
| | | | | | | | | | | | | update the introduction to: - streamline wording by focusing on practical uses in introduction - include crosslinks to relevant guides & examples - a note about RecyclerView given it is mentioned in this context - favor a p element with a note class applied - incorporate reword via joe’s input on connecting topics Test: Docs change only. Tested with doc build run. Change-Id: I66511db5a978bff4e46d3d6080b00c2b7e6dfa64
* Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter.Felipe Leme2017-04-181-1/+36
| | | | | | | | Fixes: 37330022 Test: CtsAutoFillServiceTestCases pass Test: manual verification using app from bug 37327881 Change-Id: I66260131c7ef0d5b3c2b20514f29efd5eb10057e
* Implicitly cast views obtained via View.findView methodsAlan Viverette2017-02-271-1/+1
| | | | | | | | | | Removes all explicit casts from android.widget classes. Also @removes methods on ListView that were overriding @hidden methods and should never have been exposed as public API. Bug: 24137209 Test: make Change-Id: I89f0e51258560987b3942251fd249210f825ac2a
* Revert "Implicitly cast views obtained via View.findView methods"Alan Viverette2017-02-031-1/+1
| | | | | | | | This reverts commit 06c2fffdaa81544522de751846754f781a9970a9. Reason for revert: Java 8 doesn't support this magic. Change-Id: Iaa41f4e4d0072b9a97cff9cd3788403d4ab79d13
* Implicitly cast views obtained via View.findView methodsAlan Viverette2017-01-271-1/+1
| | | | | | | | | | Removes all explicit casts from android.widget classes. Also @removes methods on ListView that were overriding @hidden methods and should never have been exposed as public API. Bug: 24137209 Test: make Change-Id: I6ccfc6f001b355c4880f2b54e1a5474df78d6228
* List all methods that change data in the docsYigit Boyar2016-08-191-4/+4
| | | | | Bug: 27442518 Change-Id: I671e05d55b263eead42370cfefc305a7daf248d7
* Clean up ArrayAdapter lint warnings and annotationsAlan Viverette2016-04-011-73/+77
| | | | | | Refactoring only, no code changes. Change-Id: Ia384a6597c9af84d23aed481f84d67ae817b4ac7
* Fix drop down layout inflation in ThemedSpinnerAdapter classesAlan Viverette2015-06-031-11/+8
| | | | | Bug: 21209640 Change-Id: I32aed1b70977fae25f43714eb3ef6edca53e51e9
* API review feedback for ThemedSpinnerAdapter, SpinnerAlan Viverette2015-06-021-2/+1
| | | | | | | | | | | | Moves themed interface out of Spinner and extends SpinnerAdapter, updates Spinner constructor to take a Theme rather than a Context. Does NOT change BaseAdapter to implement ThemedSpinnerAdapter, because the BaseAdapter class does not have any notion of layout inflation and that would break the contract implied by ThemedSpinnerAdapter. Bug: 21571899 Change-Id: Id7e8d630458857ce6c93a6a8b8f920e169ee1152
* Add resource type annotations to some APIsTor Norbye2015-03-131-4/+7
| | | | Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-7/+10
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Add popup theme for Spinner, use for actionBarPopupTheme defaultAlan Viverette2015-01-141-20/+51
| | | | | | | | Also adds methods for setting the context used to inflate drop-down views in several adapters. Bug: 17625714 Change-Id: Id267afa4901c1d46ceb3bc3b10fc642cea1799fe
* Clarify javadoc and parameter namesRomain Guy2013-01-091-9/+9
| | | | | | Bug #7978741 Change-Id: If713e2e58524ace008797abc142f50b83bfa3c61
* Fix synchronization issue in ArrayAdapterRomain Guy2011-08-151-12/+12
| | | | | | External bug #19235 Change-Id: I57d28a48ee1e4216e042e7f9d4b198b713f05b93
* Race condition patched in Email autocompletion.Gilles Debunne2011-01-191-37/+42
| | | | | | | | | | | | | | | | | | | | | | | Bug 3347962 Root cause of this problem: if the adapter's content gets updated by a backgroung thread, the PopupDataSetObserver will call showDropDown which will popup the list. Added a flag to make this call show the popup iif it is already visible. This relayout is needed to clear the mDataChanged flag set when the content was modified and which otherwise prevents touch events on the result list. ArrayAdapter didn't use its lock to protect access to mObject. ------------------------------------------------- However, the study of the this race conditions revealed an other bug: Updated adapter's content is not displayed in filtered AutoCompleteTextView Bug 3369097 Change-Id: Icd90d452f98231866f4d8a1f6994c1492febecb9
* New two-pane mode for PreferenceActivity.Dianne Hackborn2010-08-031-3/+3
| | | | | | | | This introduces a whole new way to use PreferenceActivity, as a container for PreferenceFragments that the user can switch between from a list of headers. Change-Id: I1c79b7c78b86790dc460a1414a999aba5de80628
* Added an addAll to the ArrayAdapterChristian Mehlmauer2010-06-121-2/+41
| | | | | | | | | | | It behaves the same as ArrayList.addAll, since the Object containing the Objects in the Adapter is a List. Now you can add multiple Objects at once, instead of looping over a Collection and add all items one by one. Unittests will be submitted to the cts project Change-Id: I16f3286a8ca4cda7eb9f1a99c2aab1cc45b2550f
* Fix ArrayAdapter, which was fixed in cupcake_dcm and kept fixed until donut, ↵Daisuke Miyakawa2009-07-091-1/+6
| | | | | | but is broken in eclair. Original internal Change: 147459-p9
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-0/+13
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+455
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-455/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-3/+3
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+455