{ "id": "62285", "key": "TIMOB-1653", "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": "11361", "description": "Mobile 1.8.0 M08", "name": "Sprint 2011-29", "archived": true, "released": true, "releaseDate": "2011-07-25" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-19T17:03:30.000+0000", "created": "2011-04-15T02:58:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "klist" ], "versions": [ { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [ { "id": "14481", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84500", "key": "TIDOC-164", "fields": { "summary": "APIDoc: UI.TableView and TableViewRow- document supported events per platform", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-02-08T17:55:31.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}
It's not currently possible to add an event listener for a 'long\r\npress' event on Android (pressing and holding the finger on a\r\nwidget for a second or two), which is very frequently used for\r\nthings like context menus on Android.
\r\nIn StatusNet Mobile's accounts list we're trying to use a\r\nlong-click to trigger a context menu for controls such as deletion\r\nto provide a more native-feeling interface (on iPhone we use the\r\nTableView's native editing mode, which is iOS-specific).
\r\nSince the native event isn't available, for now we're trying to\r\nemulate it by listening for touchstart, touchend etc. This seems to\r\ninterfere with the natural behavior of the tableview rows; here's\r\nthe entry in our bug tracker for this:
\r\nhttp://status.net/open-source/issues/2571
\r\nOn the Android side, SimpleGestureListener has an onLongPress\r\nstub method which could be overridden to fire a 'longpress' event;\r\nit looks like long press support might need to be activated on the\r\nGestureDetector by calling setIsLongpressEnabled (I'm uncertain\r\nwhat the default value is, but if it's on scroll events don't work,\r\nso perhaps it should only be set when a listener is present):
\r\n\r\nhttp://developer.android.com/reference/android/view/GestureDetector...
\r\n\r\nhttp://developer.android.com/reference/android/view/GestureDetector...
What's the status of this?