Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28390] Android: Change Ti.UI.SearchBar to use native SearchView

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-03-23T16:55:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.0
ComponentsAndroid
LabelsSearchBar, android, breaking-change, material-design, searchview
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-03-12T23:54:34.000+0000
Updated2021-03-23T16:55:20.000+0000

Description

*Summary:* Android's [Ti.UI.SearchBar](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.SearchBar) uses a custom implementation that does not look good using Titanium 10.0.0's material theme. We should change it to use the native [SearchView](https://developer.android.com/reference/androidx/appcompat/widget/SearchView) instead. This is a breaking-change. *Note:* The [Ti.UI.Android.SearchView](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android.SearchView) already uses Google's native [SearchView](https://developer.android.com/reference/androidx/appcompat/widget/SearchView) class and looks fine using the material theme. We basically want to implement the same for SearchBar.

Attachments

FileDateSize
ListViewSearchTest.js2021-03-13T00:16:28.000+0000627
SearchBarEventTest.js2021-03-13T00:06:06.000+00001457
TableViewSearchTest.js2021-03-13T00:06:31.000+0000644

Comments

  1. Joshua Quick 2021-03-13

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12565
  2. Satyam Sekhri 2021-03-17

    FR Passed. Waiting for Jenkins build.
  3. Christopher Williams 2021-03-23

    merged to master and 10_0_X for 10.0.0 target.

JSON Source