{ "id": "62665", "key": "TIMOB-2033", "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": "11235", "name": "Release 1.6.0 M02", "archived": true, "released": true, "releaseDate": "2010-12-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:52.000+0000", "created": "2011-04-15T03:08:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:52.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}

Failcase: create a new app, put this as its app.js:

\n
\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#fff',\n    fullscreen: true,\n    exitOnClose: true,\n    url: 'win.js'\n});\n\nvar slider = Ti.UI.createSlider( {\n    left: 40, right: 40,\n    thumbImage: \"images/KS_nav_ui.png\", min: 1, max:100\n});\nwin.add(slider);\nwin.open();\n
\n

In your Resources/android folder, create a folder images/medium.\nMove (not copy) the KS_nav_ui.png from Resources to\nResources/android/images/medium.

\n

Run the app, and you'll see there is no thumb graphic visible on\nthe slider.

{html}", "attachment": [ { "id": "18089", "filename": "slidersammy.zip", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:39.000+0000", "size": 143882, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Slider not checking app resources to fetch its drawables", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "127312", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [e1560fca323b87072aa4ddfd19a261421b1196a7])\n[#2033 state:fixed-in-qa] Call loadDrawable\nvariant that accepts TiContext as first arg so as to get access to\nactivity resources \nhttp://github.com/appcelerator/titanium_mobile/commit/e1560fca323b8...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:40.000+0000", "updated": "2011-04-15T03:08:40.000+0000" }, { "id": "127313", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [b7f4e4073728e82daae654bf27039099f77b841a])\n[#2033 state:fixed-in-qa] Call loadDrawable\nvariant that accepts TiContext as first arg so as to get access to\nactivity resources \nhttp://github.com/appcelerator/titanium_mobile/commit/b7f4e4073728e...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:40.000+0000", "updated": "2011-04-15T03:08:40.000+0000" }, { "id": "127314", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [2e1eebdceb7bca721cac541fdb78d1672e05b9fb])\n[#2033 state:fixed-in-qa] To avoid the bug that\ncreated this ticket, hide the versions of loadDrawable that don't\naccept TiContext as first arg, as they are now used only internally\nto the TiFileHelper module \nhttp://github.com/appcelerator/titanium_mobile/commit/2e1eebdceb7bc...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:40.000+0000", "updated": "2011-04-15T03:08:40.000+0000" }, { "id": "127315", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

hey Bill, I wonder if I am doing something wrong as following\nyour steps? I am not seeing a slider on the device or in the\nsimulator. I had to comment out \"url: 'win.js'\" not sure if that\nwould affect the test? Mobile sdk 1.5.0.02c264

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:40.000+0000", "updated": "2011-04-15T03:08:40.000+0000" }, { "id": "127316", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Yeah, this works fine for me. I've attached my project for\ntesting if you wish to use it.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:41.000+0000", "updated": "2011-04-15T03:08:41.000+0000" }, { "id": "127317", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

thanks Bill I guess I was being a gigantic maroon
\n[INFO] Titanium SDK version: 1.6.0 (01/10/11\n08:25 3452f06) droid 1 (2.2.1) sim 2.1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:41.000+0000", "updated": "2011-04-15T03:08:41.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }