summaryrefslogtreecommitdiff
path: root/core/java/android/widget/SuggestionsAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Implicitly cast views obtained via View.findView methodsAlan Viverette2017-02-271-6/+6
| | | | | | | | | | 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-6/+6
| | | | | | | | 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-6/+6
| | | | | | | | | | 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
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-3/+3
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-1/+1
| | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Add popup theme for Spinner, use for actionBarPopupTheme defaultAlan Viverette2015-01-141-7/+32
| | | | | | | | Also adds methods for setting the context used to inflate drop-down views in several adapters. Bug: 17625714 Change-Id: Id267afa4901c1d46ceb3bc3b10fc642cea1799fe
* Add style for SearchViewAlan Viverette2014-07-021-13/+20
| | | | | BUG: 6420978 Change-Id: I31d9f7e66c2404388ccbe6d2e43a005deb0b7c25
* Clean up drawable theming APIsAlan Viverette2014-06-021-1/+1
| | | | | | | | | | Removes APIs for themed creation of a drawable from a stream, since that doesn't involve any inflation. Also cleans up tinting methods left over from previous clean up. BUG: 15089957 Change-Id: I2af7aa9a6d351ae61b33ee1216c674fae1bffe11 Signed-off-by: Alan Viverette <alanv@google.com>
* Implement APIs for obtaining, caching themed DrawablesAlan Viverette2014-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When Drawables are inflated during preload (or otherwise without a theme) they cache their themeable attributes in their constant state as an array keyed on attribute index. Drawables inflated with a theme will simply resolve theme attributes as part of normal inflation, and they will not cache any themeable attributes. Drawables obtained from Resources are pulled from theme-specific cache when possible. If an unthemed Drawable exists in the preload cache, a new constant state will be obtained for the Drawable and the theme will be applied by resolving the cached themeable attributes and overwriting their respective constant state properties. If no cached version exists, a new Drawable is inflated against the desired theme. Constant states from themed drawables may be cached if the applied theme is "pure" and was loaded from a style resource without any subsequent modifications. This CL does not handle applying themes to several Drawable types, but it fully supports BitmapDrawable, GradientDrawable, NinePatchDrawable, ColorDrawable, and TouchFeedbackDrawable. BUG: 12611005 Change-Id: I4e794fbb62f7a371715f4ebdf946ee5f9a5ad1c9
* Add APIs for obtaining themed Drawable from Theme, ContextAlan Viverette2014-02-031-2/+2
| | | | | BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
* Close suggestions cursor when SearchView is detached.Amith Yamasani2011-11-031-4/+4
| | | | | | | | Make sure that delayed filter requests don't go through after the view was detached. Bug: 5484819 Change-Id: I4d5ff5ea9b52109ecce7f84fa4d91dfcb6225037
* SearchView behavioral and visual changesAmith Yamasani2011-07-181-18/+19
| | | | | | | | | | Align text suggestions and search string. Close button only clears the field. Back button clears focus, hides dropdown and keyboard. Tweaked SearchDialog's use of SearchView to follow above patterns. Fixed other little bugs. Change-Id: I9d34c2ebe2b1b2ca887220894c19a26809db85f6
* Ensure that the column is valid before querying.Amith Yamasani2011-01-191-12/+12
| | | | | Bug: 3303147 Change-Id: Ieec93317c5a2e924d3ee3108b61577b636943160
* Query refinement feature in SearchView.Amith Yamasani2010-09-161-57/+54
| | | | | | New method : setQueryRefinementEnabled() which will either enable all suggestions to have the little query refinement icon in the right or just the ones that have a bit set in the new SUGGEST_FLAGS column of the suggestion provider cursor.
* SearchView APIAmith Yamasani2010-09-101-0/+705
Implements the basic requirements for in-app search. More work to be done.