History log of /frameworks/base/core/java/android/widget/SearchView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c8fd00a046b6228095f8bb440be5d6ce1c260f6e 15-Apr-2016 Aurimas Liutikas <aurimas@google.com> Increase SearchView touch targets to meet GAR3.

- Allow SearchView to expand to 48dp height if possible.
- Make the search clear button have 48dp height if possible.
- Expand the search TextView touch target height to 48dp is possible.

Framework version of patch ag/912646

Bug: 19479861
Change-Id: Ibaaef2afa20b8c05eaac8f028df4f616f2f96eb1
/frameworks/base/core/java/android/widget/SearchView.java
7849a3d785b5fc2a990424e90a6872e19e819f26 27-Feb-2016 Aurimas Liutikas <aurimas@google.com> Fix crash when restoring SearchView.

I forgot to include Parcelable.Creator when I added SearchView
iconified state saving.

Bug: 27357167
Change-Id: Ia96490aa9c12c4042f50ba4b1aeb7422b37a1d4c
/frameworks/base/core/java/android/widget/SearchView.java
13fdea05b39c836f232ab57c5eec64d1bc36cb57 11-Feb-2016 Aurimas Liutikas <aurimas@google.com> Start saving iconified state of SearchView.

Bug: 27113484
Change-Id: Ifbde47c9af7c5460390e278a5af674f0c8654c2a
/frameworks/base/core/java/android/widget/SearchView.java
b635fdaf22795817f9417c475e82bfb0191dd5bd 04-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Remove some sized based resource (match support lib removal).

Bug: 25394588
Change-Id: I5b5b446667fc6ec028ec259da236967d3b2d22d2
/frameworks/base/core/java/android/widget/SearchView.java
777ef95ebf18c61ff09e7567a06058d351c530ca 26-Nov-2015 Yohei Yukawa <yukawa@google.com> Use Context.getSystemService(Class<T>) for InputMethodManager.

This is a mechanical replacement of Context.getSystemService(String)
with Context.getSystemService(Class<T>) when retrieving
InputMethodManager. Note those are bundled code. Hence we don't need
to make sure Build.VERSION.SDK_INT >= 23.

Change-Id: Icc64942ad8f11e44bf84f8d4fe476b2fdd1257f3
/frameworks/base/core/java/android/widget/SearchView.java
53b165ea5406b6032ddc57cdf897f22a319c96f7 25-Aug-2015 Alan Viverette <alanv@google.com> Hide SearchView icon when no drawable set

Bug: 23511899
Change-Id: Ic2a4622f905779fc713482c60706c727274f9be5
/frameworks/base/core/java/android/widget/SearchView.java
b4004dfc84b7c51519645020ea9431b051f5db62 30-Apr-2015 Alan Viverette <alanv@google.com> ActionBar SearchView's default hint shouldn't override SearchableInfo

Moves the queryHint to defaultQueryHint, specifies the override order
as queryHint > SearchableInfo > defaultQueryHint.

Cleans up annotations and comments for several related methods.

Bug: 20614122
Change-Id: Ib58ec309e6814cd512df147d789ec0cd546018af
/frameworks/base/core/java/android/widget/SearchView.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/widget/SearchView.java
a7bb6fbeab933326d58aa806d8194b7b13239d34 04-Feb-2015 Dianne Hackborn <hackbod@google.com> First quick implementation of auto assist data.

Introduce new AssistData class that contains all data
the framework automatically generates for assist. Currently
populated with a very simple tree structure representing
the app's view hierarchy.

Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override. This method is also used
to populate the class name in AssistData.

Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
/frameworks/base/core/java/android/widget/SearchView.java
a54956a0bc611b1e9b3914edc7a604b59688f6b7 08-Jan-2015 Alan Viverette <alanv@google.com> Fix accessibility delegation

Ensures that delegate code is run last. Previously, calling the super
method from an accessibility delegate set on a widget would only run
code in the widget's parent. Next, the delegate code would run. Finally,
the widget's code would run. As a result, the widget code would override
any data supplied by the delegate.

By moving all overridden code to internal methods, we ensure that the
call chain for super includes the widget's parent code followed by the
widget's code. The delegate code will always run last.

BUG: 17641433
Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/widget/SearchView.java
cb8ed3705cd8f50d43ff4a0c5d91d545f28add7a 19-Nov-2014 Alan Viverette <alanv@google.com> Remove underline and search icon from ActionBar search view

BUG: 17396265
Change-Id: I751bc79538f1ea412192172035920e59351270f1
/frameworks/base/core/java/android/widget/SearchView.java
362f984df3b3ef555cce128acc7c693209c6841c 11-Sep-2014 Alan Viverette <alanv@google.com> Make SearchView styles public, remove public Holo styles added in L

We shouldn't adding styles for a deprecated theme. Also this cleans up
the removed public resources for easier deletion later.

BUG: 17455273
Change-Id: I2c5caf354aab91463702f25c38f0dd29c153ba44
/frameworks/base/core/java/android/widget/SearchView.java
ea4ecd6241dbe3a336b39619fd2f281ddfaae1d4 04-Sep-2014 Adam Powell <adamp@google.com> Fix a regression in SearchView focusability

A bit of code was removed that re-read the View style attributes
during SearchView construction to extract the focusable attribute, but
with a different default value if it was entirely missing. Restore it,
and lump re-reading the focusable attribute in with SearchView's
styleable filter array instead of using the giant View one for a
second time during inflation.

Bug 17292230

Change-Id: Ic5a2dd2d55893b0b290f1f7a3b6de09b37329245
/frameworks/base/core/java/android/widget/SearchView.java
5dddb70b4eb37acd2d7a7abe6604153b6089eea9 03-Jul-2014 Alan Viverette <alanv@google.com> Add style for SearchView

BUG: 6420978
Change-Id: I31d9f7e66c2404388ccbe6d2e43a005deb0b7c25
/frameworks/base/core/java/android/widget/SearchView.java
2182f2aaf4bdecac3f936d061e0da9c718718e12 25-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> SearchView improvement for IME

- fix IME not closing when not having a SearchableInfo

Change-Id: I3e6e168be1e26138fe0ceb967bbd12fa35db0903
/frameworks/base/core/java/android/widget/SearchView.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
/frameworks/base/core/java/android/widget/SearchView.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/widget/SearchView.java
99d0ce9a759d2072878ce95f0433d80aa0a86928 10-Dec-2012 Adam Powell <adamp@google.com> Clear SearchView query field when collapsed as an action view

Bug 7679852

Change-Id: Ice1b6902670f133219569e1b1d409a152ebc7b16
/frameworks/base/core/java/android/widget/SearchView.java
343e11345ed496003f605e1b3bba5850d3e6cf0e 29-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- remove onPaddingChanged(int) and fold it into onRtlPropertiesChanged(int)

Change-Id: I1d7f02d2b4538c6c991bd4285501bbc73e6aa5c3
/frameworks/base/core/java/android/widget/SearchView.java
e56ffdc7b31b0937628609cc3bbaa15879023569 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- rename getResolvedLayoutDirection() to getLayoutDirection()

Change-Id: I3afe56c0db0751952f5056c23893cb7455531d29
/frameworks/base/core/java/android/widget/SearchView.java
4457e85a7090ad51726d50a4daf981d917cceedd 19-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- canResolveXxx() should be hidden
- resetResolvedXxx() should be hidden
- resolveDrawables(), resolveLayoutDirection(), resolvePadding(), resolveTextAlignment(), resolveTextDirection() should be hidden
- onResolvedXxx() should be merged into one callback
- fix also an issue with setting the layout direction of the drawable in ImageView
- fix also an issue with checking if TextAlignment can be resolved

Change-Id: I1402269ddf8632525f5550f80e5610e1a7b4034d
/frameworks/base/core/java/android/widget/SearchView.java
b788556bfde48c1f94c46bda4f4b8d576d5cfb81 04-Sep-2012 Jean-Baptiste Queru <jbq@google.com> am ad17717e: am d3b74b91: am b307ceb4: Merge "SearchWidget: passing APP_DATA to voice intent"

* commit 'ad17717e52576a05dffd1b99c06c46a80c149722':
SearchWidget: passing APP_DATA to voice intent
1bcfe84179417cda57176fe8661a4a749cb843b6 03-Sep-2012 Jorge Ruesga <j.ruesga.criado@gmail.com> SearchWidget: passing APP_DATA to voice intent

SearchView uses SearchManager.APP_DATA to pass data between the origin activity
and the search activity. This works for text searches (keyboard), but it's not
implemented by voice recognition searches. The method createVoiceAppSearchIntent
initializes a empty bundle that is filled with the QUERY parameter.
This patch adds the SearchManager.APP_DATA parameter if is present, let the
search activity access to the data passed by the origin activity

Patch 2: Fix code style

Change-Id: I52dce34e1efd07a30ad74d52bfc60fbae1c4310b
/frameworks/base/core/java/android/widget/SearchView.java
3a69bea30257f32a21bb6c32aafa52982d16a401 26-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Make SearchView RTL aware

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I7e7b51dccdd3b111e0594509334579b0502d24c8
/frameworks/base/core/java/android/widget/SearchView.java
13a3a87fa7264df29a1f698ce80ada2de3561962 07-Jul-2012 Romain Guy <romainguy@android.com> am dc99555d: Merge "Pass SearchView suggestion cursor exception to Log."

* commit 'dc99555d61d50820b398096bb774ee56b2500476':
Pass SearchView suggestion cursor exception to Log.
73af45169476663ead1adcf1717dddd9ad4658fd 07-Jul-2012 Jake Wharton <jakewharton@gmail.com> Pass SearchView suggestion cursor exception to Log.

When an error in fetching a column occurs in your suggestions cursor
adapter this will ensure the stacktrace is logged to provide more
context about what failed.

Change-Id: Iafe4918caebb9b0fb712b758b2d3ace329fd2512
/frameworks/base/core/java/android/widget/SearchView.java
9ce1116ee844c7b03ca9c09956992b9a85b7a247 04-Jun-2012 Satoshi Kataoka <satok@google.com> Do not run the spell checker in SearchView

Bug: 6603925
Change-Id: I75972185fb4d802f2a90649002e722ca4b676c42
/frameworks/base/core/java/android/widget/SearchView.java
2427192e58b2ff31c3238b6c04440a15f4e7bf20 25-May-2012 Gilles Debunne <debunne@google.com> Fix for IOOB in SearchView

Bug 6476578

The latest bug report show a query.length() of 33 while
mQueryTextView.length() is 0 on line 514.

I can see 2 reasons which can explain this discrepancy:
- the mQueryTextView has a filter, which alters the text.
- some asynchronous event (IME?) changes the text in the mean time.

I would favor the second one, which seems to break a lot of single
thread assumptions in the code and generates other IOOB exceptions.

Note that depending on what they are used for, it may be more consistent
to use mQueryTextView.getText() instead of query in the following
assignment.

Change-Id: Ie8a5486b11a80543f8f90980454933c5a74c073e
/frameworks/base/core/java/android/widget/SearchView.java
3d3e7a5816b5c78687bbfa4ef32abb8f1a5b83e1 04-May-2012 Amith Yamasani <yamasani@google.com> Javadoc improvements in SearchView per API review.

Bug: 6442174

Added attr refs to 2 methods.

Change-Id: I9b5f93e8e921a7260fdc25c8134e655f09a1ffb7
/frameworks/base/core/java/android/widget/SearchView.java
eca59d39c3e92815002dd50aaf176100a02e5a47 26-Apr-2012 Amith Yamasani <yamasani@google.com> Add some missing getters for XML/Java API consistency.

Bug: 6103517
Change-Id: I46dca62d4d6465a4d0b0d2eafd9013ab4a90fb3c
/frameworks/base/core/java/android/widget/SearchView.java
8a78fd4d9572dff95432fcc4ba0e87563415b728 17-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes.

AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source
Java class. This is problematic since leads to leaking private classes which would allow an
accessibility service to load classes from other packages. This is strongly undesirable since
not trusted code can be loaded, and hence executed, in the accessibility service. To address
that the class name is set to the most concrete framework class extended by the info/event
source.

bug:5878943

Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
/frameworks/base/core/java/android/widget/SearchView.java
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 20-Dec-2011 Joe Fernandez <joefernandez@google.com> docs: Add developer guide cross-references, Project ACRE, round 4

Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
/frameworks/base/core/java/android/widget/SearchView.java
cf72ab4ddebae48e34dd2d32b7da8bf5a5d7cfa0 04-Nov-2011 Amith Yamasani <yamasani@google.com> Don't show the submit button when it isn't enabled.

There was a particular scenario where it was being shown even if it's disabled.

Bug: 5412759
Change-Id: I34edd385062bed48bccef35e8240932d4cc96fd1
/frameworks/base/core/java/android/widget/SearchView.java
d69c203cd48c1d0d3be92fb0396656ee8adc1185 04-Nov-2011 Amith Yamasani <yamasani@google.com> Merge "Close suggestions cursor when SearchView is detached." into ics-mr1
8790764e4c20737e57dafdfb3bb1c8cdb84169c5 03-Nov-2011 Amith Yamasani <yamasani@google.com> Close suggestions cursor when SearchView is detached.

Make sure that delayed filter requests don't go through after
the view was detached.

Bug: 5484819
Change-Id: I4d5ff5ea9b52109ecce7f84fa4d91dfcb6225037
/frameworks/base/core/java/android/widget/SearchView.java
434c73ffd85369e220261bda3ac5dbe911304a4c 01-Nov-2011 Amith Yamasani <yamasani@google.com> Don't expand the SearchView if already expanded.

Change-Id: I0699f9f8fea0b62b4cf6d45e920bd2f515944005
/frameworks/base/core/java/android/widget/SearchView.java
535698c57dbbd0d0eef79223293526748a07dfec 06-Oct-2011 Luca Zanolin <zano@google.com> Remove the mic from the keyboard in SearchView

Bug: 5357750
Change-Id: I20c87a25e95222772c6b5154d09dd681b966fd9a
/frameworks/base/core/java/android/widget/SearchView.java
53f56c4f51ae11d5b3afde8ce221b3fe9aea3cf1 25-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5358705 - Request no full-screen mode of the IME when a
SearchView is expanded in an action bar

This is a case where we always know there will be room on screen for
the user to meaningfully use the UI in the absence of full-screen
extract mode. Save the old state and restore it when we go in and out
of expanded action bar mode.

Change-Id: I4ae2c5df4f581c6824e6a1f7ff8d97fd86d8e260
/frameworks/base/core/java/android/widget/SearchView.java
a465b2d4c34a24e42e5356b3632cc9c071fc9739 19-Aug-2011 Amith Yamasani <yamasani@google.com> Fix an unintentional change in method signature and avoid an API change.

Change onDetachedFromWindow() override to a protected method, like superclass.

Change-Id: If626c5187290516d525cab5a76f5c5cabe2d87f0
/frameworks/base/core/java/android/widget/SearchView.java
a95e488bdcef3737287227419cfe214bef0556aa 17-Aug-2011 Amith Yamasani <yamasani@google.com> Don't force measurement when SearchView is in iconified mode.

Bug: 5178204

Update the focused state drawables when focus changes. Blue
underlines were not showing up consistently.

Bug: 5174426

Also use the correct style for the search icon so that it matches
other actionbar actions.

Change-Id: I8beed4cf435b074280a5dd79f7a4da4a39152b71
/frameworks/base/core/java/android/widget/SearchView.java
167d69ac41d8a1446ab216e3821ecbcccd8291bb 13-Aug-2011 Amith Yamasani <yamasani@google.com> Voice search icon replaced by X on typing.

Also, adjust width measurements to work for 32dip icons in actionbar.

Bug: 5160466
Change-Id: I7197d710de16f92af8ea797ac504a3a73ee090d9
/frameworks/base/core/java/android/widget/SearchView.java
5607a3827172ff40196380d846128e892bedc118 09-Aug-2011 Amith Yamasani <yamasani@google.com> Added methods to change text entry mode in SearchView.

Bug: 5143618

Handle imeOptions and inputType attributes in SearchableInfo.
Methods to directly modify those attributes on SearchView.

Change-Id: I340617767f930ecb1b1ad5ab2696bc613982a20b
/frameworks/base/core/java/android/widget/SearchView.java
b47c4fd206ce5d057996d49228342d17ecca027e 04-Aug-2011 Amith Yamasani <yamasani@google.com> Don't call onQueryTextChanged more often than necessary.

Also update the hint text if iconifiedByDefault changes.

Bug: 5097238
Change-Id: I876b3f3e74c30230f68d6bc88a95e182e4cc652b
/frameworks/base/core/java/android/widget/SearchView.java
44df62c441ba0b2b0fe29591949099179c2fc64b 29-Jul-2011 Amith Yamasani <yamasani@google.com> Merge "Don't submit a query if it's whitespace only."
ccdd4ee44f8cfbb45b2989cca833895fcc4c4225 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087980 - MenuItem#expandActionView should work from within
onCreateOptionsMenu

Initialize menu presenters early enough to respond to expanding an
action view within onCreateOptionsMenu.

Have SearchView show the IME as an async post to handle attempts to
show it while the UI is still in initial setup.

Change-Id: I77f3a94ed4397737edb5a7a15bf54993b6723f5e
/frameworks/base/core/java/android/widget/SearchView.java
6a7421ba94b1fca0a20ddf146054ebd771ee471e 27-Jul-2011 Amith Yamasani <yamasani@google.com> Don't submit a query if it's whitespace only.

Just to maintain backward compatibility. It's not documented that a space
is not a valid query, but it does make sense to expect that.
Bug: 5079755

Also avoid showing an x by an empty query, by having the SearchDialog simulate an ActionBar.

Change-Id: I3a9332286a439b659e179a249587c491ef29e5c1
/frameworks/base/core/java/android/widget/SearchView.java
84935dc2c00bcc7f6a05370f8fbbd0232a6eb40b 27-Jul-2011 Amith Yamasani <yamasani@google.com> Merge "Make sure that suggestions are queried on focus or tapping."
10da590839e264735de8a4582021aca0dab81037 27-Jul-2011 Amith Yamasani <yamasani@google.com> Handle callbacks to CollapsibleActionViews that are in an actionLayout.

Also, the onActionViewCollapsed needs to be called before detaching
the action view, so that the action view can dismiss the keyboard properly.

Fixes the Gmail search case where the keyboard doesn't disappear on hitting
the "up" affordance after a search.

Change-Id: I3c2f3f90f0edf6473404e6ceae3fa08866cad736
/frameworks/base/core/java/android/widget/SearchView.java
f28d1875741d1845df45808e143f3a850e66f893 26-Jul-2011 Amith Yamasani <yamasani@google.com> Make sure that suggestions are queried on focus or tapping.

Bug: 3110831
Change-Id: Ic74a7eac1c5aa7d07c8a2e3f1ad19e026c990153
/frameworks/base/core/java/android/widget/SearchView.java
763bc076527b183204b8ef82711f9b404bed53db 22-Jul-2011 Amith Yamasani <yamasani@google.com> Implement CollapsibleActionView on SearchView.

Automatically handle expanding and collapsing in an ActionBar using
the new callback for Collapsible ActionViews.

Also clear the query text when collapsing.
Make sure that the 'x' doesn't show when in expanded mode with no text.

Change-Id: I7cba009c7cc9a1c264ec11c76315353cbde55c6c
/frameworks/base/core/java/android/widget/SearchView.java
b4569fb17fada4fdc43e4f4dbfbc79bb097a1f74 09-Jul-2011 Amith Yamasani <yamasani@google.com> SearchView behavioral and visual changes

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
/frameworks/base/core/java/android/widget/SearchView.java
246529891ee289e8393ad4a486db785ef455c778 24-Jun-2011 Amith Yamasani <yamasani@google.com> SearchView improvements per design.

- X is visible only if there is text, or we need a way to close a
search field that is iconified by default.
- Search dialog (legacy) has a back button to the left.
- Hitting X on a non-focused search view will bring it into focus
and show the keyboard if necessary.

Change-Id: I5a30bb08adcf84639a922a9e13be1d1562f714e6
/frameworks/base/core/java/android/widget/SearchView.java
068d73cf51305a9dfc15c96f17a18676637d3e02 28-May-2011 Amith Yamasani <yamasani@google.com> Keep track of USER_QUERY to pass to the intent.

Fixes bug: 3144023

Change-Id: Ib1f04119c7c0b5aa8ceaf7b15ccec70c76b2dff1
/frameworks/base/core/java/android/widget/SearchView.java
462012db70fb73431bb25909d73e45fea9fc5911 14-Mar-2011 Scott Main <smain@google.com> am abdf0d53: docs: update search dev guide with SearcView widget

* commit 'abdf0d533c292709e51cee2c1213d5e44baca963':
docs: update search dev guide with SearcView widget
abdf0d533c292709e51cee2c1213d5e44baca963 08-Feb-2011 Scott Main <smain@google.com> docs: update search dev guide with SearcView widget

Change-Id: Ieb0ccdb78760a3c90df2381e647463f7532b0efc
/frameworks/base/core/java/android/widget/SearchView.java
79f7430bf93a9b5dc2b4e0f418f320affdfbf77b 08-Mar-2011 Amith Yamasani <yamasani@google.com> Searchview layout cleanup. Some more tweaks required for Market.

Bug: 3321263

Submit area should be visible when the field has focus, irrespective of text content.
Make sure that the fields get highlighted when focused.
Also fix an issue with hint not being applied from the SearchableInfo.
Bug: 3470348

Change-Id: If399d9551f89312c19485e249043f5823a862499
/frameworks/base/core/java/android/widget/SearchView.java
940ef38c7c46565a8f8fdd6bb8e0183646d0abdc 03-Mar-2011 Amith Yamasani <yamasani@google.com> Pass AppData to the app from SearchDialog queries.

Bug: 3494468

During migration of SearchDialog to use SearchView, the appdata was not
passed along. This fixes the loss.

Change-Id: Ia754086d2bb95294e1d29650a72e4fdddec9c899
/frameworks/base/core/java/android/widget/SearchView.java
1b64c3b5fe33f39b8e94af325be6f8b092fd2332 15-Feb-2011 Amith Yamasani <yamasani@google.com> Don't change keyboard state in setIconifiedByDefault.

Bug: 3225887
Bug: 3453253 (possibly)

Since some apps call setIconifiedByDefault(false) at the initialization step,
it isn't a good idea to open/close the keyboard during this call. Apps
can call setIconified(false) instead to invoke the keyboard.

Change-Id: I9d5d08b74055a3e99053d647df0cd4c7953bae80
/frameworks/base/core/java/android/widget/SearchView.java
cccdbe9acb5cd721988b6b01a419c568fe5300b6 07-Feb-2011 Scott Main <smain@google.com> docs: SearchView is iconified by default

Change-Id: Iabe0fdc0b28847f0c401e3692932a73b7d595c88
/frameworks/base/core/java/android/widget/SearchView.java
7f8aef6d5bd26cfc7f96d059ab66abdb320ebd27 25-Jan-2011 Amith Yamasani <yamasani@google.com> Heed the focusability flag in SearchView and set the default to true.

Bug: 3385804

Also, allow navigation through keyboard.

Change-Id: I444f142518172b35f33c2a5129179ac996d80dc7
/frameworks/base/core/java/android/widget/SearchView.java
01f21354654a315ea2a2a1668bbda50645123d4a 21-Jan-2011 Adam Powell <adamp@google.com> SearchView API Review - bug 3370353 and bug 3370338

Renaming as per API council review

Change-Id: Id889be5a708fdc295ee50bb1b05014b2ff72122c
/frameworks/base/core/java/android/widget/SearchView.java
9b2e302ab8dff554fdb4a7f9d005496a655f8f03 14-Jan-2011 Amith Yamasani <yamasani@google.com> Fix position and size of searchfield and buttons.

So that they don't jump around.
Fine tune the padding.

Bug: 3336764
Change-Id: Idb96b2a337cd5e5dbd4a5287ab3b9190b4719b84
/frameworks/base/core/java/android/widget/SearchView.java
c0171d5e8ed1aaeaa658aa0d603860f7ada6807a 13-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3242262 - Add queryHint attribute for SearchView

Change-Id: I211b65139622c2a2cba03bd1323e2543b09bb111
/frameworks/base/core/java/android/widget/SearchView.java
4e6319b73c85082e18d1c532b86336ddd1f8cfaa 13-Dec-2010 Jeff Brown <jeffbrown@google.com> Add initial support for TAB navigation.

Bug: 3286652
Change-Id: I813a0318b3b8d9c9bc791ea6a2427be11c08de00
/frameworks/base/core/java/android/widget/SearchView.java
73e00df15e07933af06eac50901e50e07f9865bb 17-Dec-2010 Amith Yamasani <yamasani@google.com> Fix SearchView collapse on text input.

Bug: 3291919
Change-Id: I2e510c3f8c4fa520dd100e722896f725ef70b79e
/frameworks/base/core/java/android/widget/SearchView.java
4aedb39a49bda340f871c8fac2239de4fe549b03 16-Dec-2010 Amith Yamasani <yamasani@google.com> New SearchView assets and close-button behavior change.

Hide the close button in SearchView when there's no text in it and it's not iconified by default.

Bug: 3275206

Adds Holo.Light theme and fixes the query refinement icon.
/frameworks/base/core/java/android/widget/SearchView.java
acd8d2d2e7b36c9fb34c2981623d19247fa63860 07-Dec-2010 Amith Yamasani <yamasani@google.com> Prevent SearchView dropdown from showing up when SearchView is hidden.

Bug: 3257833
/frameworks/base/core/java/android/widget/SearchView.java
483854820945ae8b4e4512b696cce7da92deed20 03-Dec-2010 Amith Yamasani <yamasani@google.com> Added to SearchView : getQuery() and setOnSearchClickListener()

Bug: 3083393
Bug: 3172295
/frameworks/base/core/java/android/widget/SearchView.java
968ec938399033d280b1648123104ac567f2a093 02-Dec-2010 Amith Yamasani <yamasani@google.com> Use SearchView in SearchDialog for legacy apps using the old model.

Bug: 3140925

Removed all the code from SearchDialog that is already in SearchView
and moved more stuff into SearchView.

SearchDialog layout changed to be more like a Holo.Light themed action mode.
Search field is right justified and limited to 500dip.

Zero query dropdown added to SearchView (causing some problems with Gmail,
but that may be an existing issue that's only now showing up due to this change)

Holo.Light search views assets still need to be updated, as the contrast is too low.
/frameworks/base/core/java/android/widget/SearchView.java
87c5025fb8a21348ead7cd7e6fa08aa5dc0f501e 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving cursor to the end of the search query when set explicitly.

This situation is encountered in Contacts when the activity
intercepts unsolicited input from the keyboard, takes that
character entered by the user and switches the whole app
to "search mode". At this time it puts the character
entered by the user in the search field. The user should be
able to continue typing.

Change-Id: Ief40f12bb8f31bced6114d61a0fd95472f21b1be
/frameworks/base/core/java/android/widget/SearchView.java
b1818e83f4a81bc4e4e30b99bb48830415be731b 20-Oct-2010 Amith Yamasani <yamasani@google.com> Update dropdown colors and list readability for SearchView.

Dismiss IME on launching suggestion.
/frameworks/base/core/java/android/widget/SearchView.java
5931b1f415fdb30f429fb39238c63f7533335998 19-Oct-2010 Amith Yamasani <yamasani@google.com> Fix layout issues, add a maxWidth attribute to SearchView.

Bug: 3067611
Bug: 3067595
/frameworks/base/core/java/android/widget/SearchView.java
ebcf5a3a50b84320528af5c2a57db99f76c08af5 13-Oct-2010 Amith Yamasani <yamasani@google.com> Add voice button and a bunch of minor fixes for focus and visibility of ime, submit button and drop down.

Bug: 3077768 suggestion drawer not dismissed
Bug: 3067611 submit button incorrectly displayed in some cases
/frameworks/base/core/java/android/widget/SearchView.java
0594476ffa39481063cf7f1546ccfce509f02c65 08-Oct-2010 Amith Yamasani <yamasani@google.com> SearchView: Add some more listeners, IME dismiss improvements and focus control.

Addresses following bugs:
3067611 : Submit button incorrectly displayed
3064371 : Callback to report suggestion click
3008580 : Setting initial focus

The SearchView will take initial focus now, reverting an earlier change. If
you don't want it to take initial focus, then you must requestFocus on a
different view on launching the activity, since the initial focus is desirable
in other cases. This is normal behavior for all EditText widgets and SearchView
shouldn't have a different behavior.
/frameworks/base/core/java/android/widget/SearchView.java
6a81b8271d2edc1a87a3f50e8146f095be998629 28-Sep-2010 repo sync <mxw@google.com> focus issues

1. Don't bring up the keyboard if we're iconified by default
2. Also override onRequestFocusInDescendants to return false. This makes it so that we don't focus on the search edit text which is in the actionbar.

Change-Id: I345e9cd77f686f13762a20454a76ff1f7c4a5556
/frameworks/base/core/java/android/widget/SearchView.java
e678f46ec45076203f6260f8a26f56d838c6b6ff 16-Sep-2010 Amith Yamasani <yamasani@google.com> Query refinement feature in SearchView.

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.
/frameworks/base/core/java/android/widget/SearchView.java
9322775014432ed6c87c864e98fe482f879ff233 14-Sep-2010 Amith Yamasani <yamasani@google.com> Add a missing setOnCloseListener and a new setIconfied method.

Keep track of the currently iconified state as well, if the app
wants to know.
/frameworks/base/core/java/android/widget/SearchView.java
733cbd58cbc3cf438a7ac0a2902b8aeab941a6b9 03-Sep-2010 Amith Yamasani <yamasani@google.com> SearchView API

Implements the basic requirements for in-app search. More work to be done.
/frameworks/base/core/java/android/widget/SearchView.java