{ "id": "61584", "key": "TIMOB-952", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:46.000+0000", "created": "2011-04-15T02:40:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:46.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}

Fail case: http://gist.github.com/403933 -\nthe click event only fires if you click into the text field. If you\nclick on an uninhabited portion of the view, you don't get it.

{html}", "attachment": [], "flagged": false, "summary": "View click event listeners not being invoked on \"empty\" view space", "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": "124430", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This occurs because of the special background handling and\nTiBackgroundDrawable. In other words, it fails on simple\nbackgrounds.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:01.000+0000", "updated": "2011-04-15T02:40:01.000+0000" }, { "id": "124431", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Adding this simple usecase, as discussed with Don.

\n

http://gist.github.com/585768

\n

Just swap the last two lines to see that the view1 (red) event\nlistener never fires.

\n

His explanation was thus:

\n

\"the problem is that when a complex background is added\nsetClickable() in Android is called with true. For a simple\nbackground it's not. As a temporary working around give it corners\nor a background image and your click will work.\"

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:01.000+0000", "updated": "2011-04-15T02:40:01.000+0000" }, { "id": "124432", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Just to note, you can add a label to the simple view, and this\nwill allow the view1 event listener to fire, but only when\nyou click the text of the label. For any other area of the simple\nbackground, the complex view positioned beneath or over it will\nfire instead. Here is an example:

\n

http://gist.github.com/585819

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:02.000+0000", "updated": "2011-04-15T02:40:02.000+0000" }, { "id": "124433", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

hehe - sorry, Don!
\nI have just noticed that whenever I post an update, it\nautomatically defaults the \"who's responsible\" option back to\nMarshall.
\nAssigning back to you...

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:02.000+0000", "updated": "2011-04-15T02:40:02.000+0000" }, { "id": "124434", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

btw, as a temporary workaround, you can set borderRadius:0 and\nthe click events work correctly

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:02.000+0000", "updated": "2011-04-15T02:40:02.000+0000" }, { "id": "124435", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

See #1625 as well

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:02.000+0000", "updated": "2011-04-15T02:40:02.000+0000" }, { "id": "124436", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [7b6449b75f82462bd18c1c4776ef67f014e18829])\n[#952\nstate:fixed-in-qa][#1625 state:fixed-in-qa] refactored click\nhandling and removed special cases that weren't needed. Note if a\nview doesn't handle a click Android search up through all\ncomponents under the touch/click point to find one that will. If\nyou want to stop other views from getting a click (e.g. full screen\nloading view) just set an no-op click handler on the topmost view\n\nhttp://github.com/appcelerator/titanium_mobile/commit/7b6449b75f824...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:02.000+0000", "updated": "2011-04-15T02:40:02.000+0000" }, { "id": "124437", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.5935b3 g1 (1.6) simulator 2.2, iOS 4.1

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