{ "id": "124866", "key": "TIMOB-16240", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-01T21:50:25.000+0000", "created": "2014-01-16T10:36:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "exalture", "merge-3.5.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2015-02-13T01:09:25.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": "For Buttons, ActionBar Menu Icons, Map pins, etc (excluding ImageView) depending on the location of the source image, the images are sometimes smaller than expected.\r\n\r\nSee the following comment for the full details, sample code to tests, assets and screenshots. \r\n\r\nhttps://github.com/dbankier/TiShadow/issues/180#issuecomment-32426567\r\n\r\n(Please Note: even though the issue is raised in the TiShadow repository the comment _only_ refers to direct usage of Titanium without TiShadow.)", "attachment": [], "flagged": false, "summary": "Android: Images smaller than expected for Buttons, Menu Icons, Map Pins", "creator": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android, 3.2.x", "closedSprints": [ { "id": 258, "state": "closed", "name": "2014 Sprint 24 SDK", "startDate": "2014-11-24T22:28:25.425Z", "endDate": "2014-12-06T01:00:00.000Z", "completeDate": "2014-12-08T17:21:15.171Z", "originBoardId": 114 }, { "id": 251, "state": "closed", "name": "2014 Sprint 23 SDK", "startDate": "2014-11-10T22:56:44.608Z", "endDate": "2014-11-22T01:00:00.000Z", "completeDate": "2014-11-22T05:03:36.553Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "288613", "author": { "name": "nitrag", "key": "nitrag", "displayName": "Ryan Gartin", "active": true, "timeZone": "America/New_York" }, "body": "Seeing it in the ActionBar and in TableViewRow::rightImage as well. ", "updateAuthor": { "name": "nitrag", "key": "nitrag", "displayName": "Ryan Gartin", "active": true, "timeZone": "America/New_York" }, "created": "2014-01-17T14:50:45.000+0000", "updated": "2014-01-17T14:52:46.000+0000" }, { "id": "290963", "author": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can also confirm this issue.\r\n\r\nIt can be easily reproduced using a base64 image at the expected size. For instance, on my FullHD device, a 48dp icon should be 144px. Using this image in a ImageView shows an image correctly sized. Half-sized in the action bar.\r\n\r\n{code}\r\nvar blob = Ti.Utils.base64decode(\"SOME BASE64 ENCODED IMAGE DATA\");\r\n\r\nTi.UI.createImageView({ image: blob }); // Correct size\r\n\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.tempDirectory, \"image.png\");\r\nvar res = file.write(img);\r\nvar location = file.resolve();\r\n\r\n...\r\n\r\n// Image will be too small (half-sized)\r\nmenu.add({\r\n title : \"Cart\",\r\n icon : location,\r\n showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS\r\n});\r\n\r\n{code}", "updateAuthor": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T21:09:31.000+0000", "updated": "2014-02-03T21:09:31.000+0000" }, { "id": "326016", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Scale the image based on device density if it is not loaded from resource\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6177", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-09-28T11:09:14.000+0000", "updated": "2014-09-28T11:09:14.000+0000" }, { "id": "331267", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-11-08T01:23:38.000+0000", "updated": "2014-11-08T01:23:38.000+0000" }, { "id": "334053", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue is marked fix version 3.5.0, but the fix does not work on the latest CI build from 3_5_X branch. However, the issue is fixed in the master branch for appropriately scaled images on button and action bar.\r\nRe-opening as it is not fixed in 3_5_X branch.\r\n\r\nVerified on:\r\nSDK: 3.5.0.v20141125154115, 3.6.0.v20141125154117(master)\r\nStudio: 3.4.1.201410281743\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nDevice: Nexus 5 (4.4.4), Nexus 4 (4.4.4)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-28T08:14:39.000+0000", "updated": "2014-11-28T08:14:39.000+0000" }, { "id": "334055", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "There is also no reason to not port this to 3_4_X - I already did that in my fork and it works fine.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-11-28T09:09:46.000+0000", "updated": "2014-11-28T09:09:46.000+0000" }, { "id": "334199", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed, but needs backport.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-01T21:50:25.000+0000", "updated": "2014-12-01T21:50:25.000+0000" }, { "id": "343193", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.2\r\nAppcelerator Studio, build: 4.0.0.201502051633\r\nTitanium SDK build: 4.0.0.v20150212161920\r\nTitanium CLI, build: 3.6.0-dev\r\nAlloy: 1.6.0-alpha\r\nAndroid Build tools 21.1.2\r\nNexus 6 (5.0.1), Galaxy S3(4.4.2)\r\n\r\nBuilt to both devices, the images are appropriately scaled.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-02-13T01:09:20.000+0000", "updated": "2015-02-13T01:09:20.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }