{ "id": "63793", "key": "TIMOB-3161", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:04.000+0000", "created": "2011-04-15T03:38:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "enterprise", "feature", "release-1.7.0", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:01:04.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": "{html}
The built in Cancel button, visible when you add a search bar to\nan app, doesn't support multiple densities right now. So when you\nview it on a high density display, it is much smaller than it\nshould be.
\nAdd multiple images for the various densities.
\nLooking at the source, it is located here:
\n\nandroid/modules/ui/src/ti/modules/titanium/ui/widget/searchbar/cancel.png
\n
\nTaken from our documentation:
\n\nvar search = Titanium.UI.createSearchBar({\n barColor:'#000', \n showCancel:true,\n height:\"43dp\",\n top:0,\n});
\n
\nThis ticket requires #3163 to be fixed to implement\ncorrectly.
In the sample code above, i changed height:43 to height:\"43dp\",\nsince if you use anyDensity=\"true\" and go on a high density device,\nthe searchbar at \"43\" is going to look shorter than at \"43dp\".
Tested with Titanium SDK version: 1.7.0 (03/22/11 09:36 42d2187)\non
\nEmulator WVGA800 2.1
\nNexus S 2.3.2