Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16886] Android: SearchView now works for all versions so remove SearchBar

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, searchbar, searchview
ReporterMark Mokryn
AssigneeUnknown
Created2014-04-23T09:51:16.000+0000
Updated2018-02-28T20:03:11.000+0000

Description

Accepted PR https://github.com/appcelerator/titanium_mobile/pull/5631 added SearchView functionality for all Android versions, so for simplicity we can remote SearchBar for Android, which is now an unnecessary hack.

Comments

  1. Ritu Agrawal 2014-04-24

    SearchBar is supported on both iOS and Android platforms so it is still useful to have the same code base across multiple platforms. We also cannot break existing applications by removing SearchBar.
  2. Mark Mokryn 2014-04-24

    Hi Ritu, the Titanium SearchBar for Android does not model a standard Android UI element. With 3.3.0 we have ActionBar for all versions, and the Android design guidelines ask that apps use the ActionBar for search functionality - and we have this. If someone wants to do something different, they can put the SearchView elsewhere in the window, or use a TextField for searching. Frankly I think it's overhead to keep supporting SearchBar where it's not needed, especially as the porting to SearchView (or TextField) is a breeze. Just my 2 cents :)
  3. Ritu Agrawal 2014-04-28

    Moving this deprecation request to engineering for further evaluation.
  4. Ingo Muschenetz 2014-11-11

    Would it be worthwhile to map the SearchBar to the new SearchView?
  5. Mark Mokryn 2014-11-16

    [~ingo] absolutely, yes. Also note that SearchView in AppCompat for Lollipop offers new features that should be reviewed in any case: http://android-developers.blogspot.co.il/2014/10/appcompat-v21-material-design-for-pre.html , the section on SearchView

JSON Source