{ "id": "67445", "key": "TIMOB-4388", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-25T20:27:43.000+0000", "created": "2011-06-06T11:04:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "tbs-1.8.0" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-07-08T00:05: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": "Can you expose the getPressure value on android devices:\r\nhttp://developer.android.com/reference/android/view/MotionEvent.html#getPressure%28int%29\r\n", "attachment": [], "flagged": false, "summary": "Implement getPressure in Android view", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "android", "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "381347", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7906\r\n\r\nMapping `pressure` to `force` so it can be used the same way on iOS too.\r\n\r\ngetSize(): http://developer.android.com/reference/android/view/MotionEvent.html#getSize%28%29\r\n\r\nsize/pressure might not always return the proper value. On a HTC A9 the pressure returns the actual touch area\r\n\r\n*Example*\r\n\r\nController: \r\n\r\n{code:java}\r\nfunction ts(e) {\r\n $.txt.text = \"Force: \" + e.force;\r\n $.txt_s.text = \"Size: \" + e.size;\r\n}\r\n\r\nfunction tm(e) {\r\n $.txt.text = \"Force: \" + e.force;\r\n $.txt_s.text = \"Size: \" + e.size;\r\n}\r\n\r\nfunction te(e) {\r\n $.txt.text = \"Force: \" + e.force;\r\n $.txt_s.text = \"Size: \" + e.size;\r\n}\r\n\r\n\r\n$.v.addEventListener(\"touchstart\", ts);\r\n$.v.addEventListener(\"touchend\", te);\r\n$.v.addEventListener(\"touchmove\", tm);\r\n$.index.open();\r\n{code}\r\n\r\nXML:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\r\n{code}\r\n\r\nTSS:\r\n\r\n{code:css}\r\n\".container\" : {\r\n backgroundColor: \"white\",\r\n layout: \"vertical\"\r\n}\r\n\"Label\" : {\r\n width: Ti.UI.SIZE,\r\n height: Ti.UI.SIZE,\r\n color: \"#000\"\r\n}\r\n\"#v\" : {\r\n width: 200,\r\n height: 200,\r\n backgroundColor: \"red\"\r\n}\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T12:16:44.000+0000", "updated": "2016-04-02T12:16:44.000+0000" }, { "id": "381364", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~michael] Please add a test case here as well. And just to be sure: You add those properties to the Events like iOS does? Parity is very important here.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T17:40:55.000+0000", "updated": "2016-04-02T17:40:55.000+0000" }, { "id": "390099", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201607070843\r\nTi SDK : 5.4.0.v20160705213725\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.5\r\nAppc NPM : 4.2.8-1\r\nAppc CLI : 5.4.0-28\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-08T00:05:40.000+0000", "updated": "2016-07-08T00:05:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }