{ "id": "64181", "key": "TIMOB-3549", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-08-16T01:25:27.000+0000", "created": "2011-04-15T03:46:32.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "inconsistency", "parity", "rplist" ], "versions": [ { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-16T01:25:27.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}

Problem

\r\n

On Android, the leftImage resizes the row to fit the dimensions\r\nof the image. But on iOS, the leftImage will resize to fit the row\r\n(so if the row is 20 pixels tall, the image will resize to be 20\r\npixels tall).

\r\n

Solution

\r\n

It would be great if the two platforms behaved the same with\r\nthis property.

\r\n

I personally think resizing is better behavior, because it seems\r\nlike a more likely use case to me. I recognize that's highly\r\nsubjective, though, and that there are implications to having\r\nresized images inside a table view row on Android.

\r\n

Sample Code

\r\n

The following, dropped in an app.js, shows the problem:

\r\n
\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.add(Ti.UI.createTableView({\r\n    data: [\r\n        { leftImage: 'appicon.png', title: 'One' },\r\n        { leftImage: 'appicon.png', title: 'Two' },\r\n        { leftImage: 'appicon.png', title: 'Three' }\r\n    ]\r\n}));\r\nwin.open();\r\n
\r\n

Tested On

\r\n

Titanium SDK version: 1.6.2 (03/30/11 17:25 0243d42...)
\r\nRESIZES IMAGE on iPhone Simulator 4.2
\r\nRESIZES ROW on Android Samsung Epic 4G 2.2

\r\n

Associated Helpdesk Ticket

\r\n

http://support.appcelerator.com/tickets/TXA-23345-536

{html}", "attachment": [], "flagged": false, "summary": "Android: Table View leftImage Sizing Inconsistency with iOS", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "130751", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

Hit enter too soon... Tagged as an inconsistency (testing the\nwaters with that) -- it's not really a defect, and it's not a\nfeature. Just something different between the platform\nimplementations.

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:46:32.000+0000", "updated": "2011-04-15T03:46:32.000+0000" }, { "id": "194871", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator and a Samsung Galaxy S2, this issue still exists. Instead of using 'appicon.png', change it to 'default.png', the result is a lot more obvious.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-15T11:59:48.000+0000", "updated": "2012-05-15T11:59:48.000+0000" }, { "id": "426753", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-16T01:25:27.000+0000", "updated": "2017-08-16T01:25:27.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }