{ "id": "169869", "key": "TIMOB-25333", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2017-09-22T17:58:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SearchBar", "android", "engSchedule", "parity" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "58854", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173620", "key": "TIMOB-27077", "fields": { "summary": "Android: Rewrite Ti.UI.TableView to use RecyclerView", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "58855", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175448", "key": "TIMOB-28088", "fields": { "summary": "Android: Rewrite Ti.UI.ListView to use RecyclerView", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T00:24:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nThe \"SearchBar\" height on Android defaults to Ti.UI.FILL, but iOS defaults to Ti.UI.SIZE. The default on Android should be changed to match iOS' behavior for parity.\r\n\r\nAlso, setting the height explicitly to Ti.UI.SIZE on Android does not work at all and it still does a FILL instead.\r\n\r\n*Test Code:*\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow(\r\n{\r\n\tlayout: \"vertical\",\r\n\tfullscreen: true,\r\n});\r\nwindow.add(Ti.UI.createSearchBar(\r\n{\r\n\tshowCancel: true,\r\n\tbarColor: \"#008800\",\r\n\twidth: Ti.UI.FILL,\r\n//\theight: Ti.UI.SIZE,\r\n}));\r\nwindow.add(Ti.UI.createLabel(\r\n{\r\n\ttext: \"Search Bar Test\",\r\n\theight: Ti.UI.FILL,\r\n}));\r\nwindow.open();\r\n{code}\r\n\r\n*Alternative Solution:*\r\nInstead of fixing the Java \"TiUISearchBar.java\" code's height issue, we could instead replace Titanium's custom search bar implementation to use Android's native \"SearchView\" feature as suggested by [TIMOB-16886]. Titanium's \"Ti.UI.Android.SearchView\" feature does not have this height issue and is native. So, the idea is to keep the \"SearchBarProxy.java\" but have it map to SearchView instead. However, this may be a breaking change and perhaps should only be done in a major rev of Titanium.", "attachment": [ { "id": "63346", "filename": "android-bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-22T18:01:06.000+0000", "size": 26058, "mimeType": "image/png" }, { "id": "63345", "filename": "ios-good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-22T18:01:06.000+0000", "size": 37371, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: SearchBar height should default to Ti.UI.SIZE like iOS instead of FILL", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1209, "state": "closed", "name": "2020 Sprint 22", "startDate": "2020-10-27T02:33:00.000Z", "endDate": "2020-11-07T02:33:00.000Z", "completeDate": "2020-11-06T17:45:42.610Z", "originBoardId": 114 }, { "id": 1210, "state": "closed", "name": "2020 Sprint 23", "startDate": "2020-11-09T17:49:00.000Z", "endDate": "2020-11-20T17:49:00.000Z", "completeDate": "2020-11-20T17:46:00.641Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457450", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed that the following PR resolves this issue...\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12029\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-04T20:19:44.000+0000", "updated": "2020-11-04T20:19:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }