Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27094] Android: ListView's SearchBar/SearchView wrongly overlaps rows as of 8.0.1

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-08-05T16:34:18.000+0000
Affected Version/sRelease 8.0.1
Fix Version/sRelease 8.1.0
ComponentsAndroid
LabelsSearchBar, android, engSchedule, listView, regression, searchview
ReporterBeau Gibson
AssigneeJoshua Quick
Created2019-05-12T23:41:13.000+0000
Updated2020-03-02T19:25:45.000+0000

Description

Android searchView is broken in 8.0.1.RC Adding an Android.searchView to a listView is positioning it underneath the first item in the list and so can not be accessed at all. (see screenshots). !8.0.1.v20190423123234.jpg|thumbnail! Shows the expected behaviour !8.0.1.v20190426162041.jpg|thumbnail! Shows the exact same app with a different sdk selected and the search view is hidden under the first row. 8.0.1.v20190423123234 works correctly, 8.0.1.v20190426162041 does not.

Attachments

FileDateSize
1558342471856.JPEG2019-05-21T05:04:06.000+000017577
8.0.1.v20190423123234.jpg2019-05-12T23:39:45.000+000063593
8.0.1.v20190426162041.jpg2019-05-12T23:39:45.000+000057879
Screenshot_20190517-162140.jpg2019-05-17T06:26:15.000+000049877
Screenshot_20190517-162349.jpg2019-05-17T06:26:03.000+000053449

Comments

  1. Beau Gibson 2019-05-17

       (function(){
       
       		var win = Ti.UI.createWindow({backgroundColor: 'white'});
       		var listView = Ti.UI.createListView({
       			searchView : Ti.UI.createSearchBar()
       		});
       		var sections = [];
       
       		var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});
       		var fruitDataSet = [
       			{properties: { title: 'Apple'}},
       			{properties: { title: 'Banana'}},
       		];
       		fruitSection.setItems(fruitDataSet);
       		sections.push(fruitSection);
       
       		listView.sections = sections;
       		win.add(listView);
       		win.open();
       })();
       
    Works as expected in 8.0.1.v20190423123234. Any builds after (both 8.0.1 and 8.0.2 - including 8.0.2.v20190516075049) will display the search bar under the first item in the list
  2. Beau Gibson 2019-05-17

    Expected: !Screenshot_20190517-162349.jpg|thumbnail! Actual: !Screenshot_20190517-162140.jpg|thumbnail!
  3. Beau Gibson 2019-06-28

    Is this going to get addressed? It's still broken in all 8.x.x builds after 8.0.1.v20190423123234 This makes any android apps using search views unusable!
  4. Joshua Quick 2019-08-01

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/11104 PR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11105
  5. Abir Mukherjee 2019-08-01

    [~beaurepair] we are currently putting in a fix, and plan to have it in the next release. Thanks for filing this ticket.
  6. Keerthi Mahalingam 2019-08-01

    FR Passed. Waiting on Jenkins to merge
  7. Keerthi Mahalingam 2019-08-01

    PR Merged
  8. Keerthi Mahalingam 2019-08-01

    Verified the fix on sdk 8.2.0.v20190801113937 and 8.1.0.v20190801142345.no overlapping. works as expected.
       Operating System
         Name                        = Mac OS X
         Version                     = 10.14.5
         Architecture                = 64bit
         # CPUs                      = 12
         Memory                      = 17179869184
       Node.js
         Node.js Version             = 10.16.0
         npm Version                 = 6.9.0
       Titanium CLI
         CLI Version                 = 5.2.1
       Titanium SDK
         SDK Version                 = 8.2.0.v20190801113937 and 8.1.0.v20190801142345
       Device -samsung s5 android 6
       Emulator-pixel android 9
       
  9. Abir Mukherjee 2019-08-01

    [~beaurepair], we believe we may have a fix. Can you please try 8.1.0.v20190801142345 or later? It's now merged to 8.1.X branch so you can just do: appc ti sdk install -b 8_1_X -d
  10. Beau Gibson 2019-08-02

    @amukherjee works fine in 8.1.0.v20190801142345
  11. Keerthi Mahalingam 2019-08-05

    Verified as fixed.Closing

JSON Source