{ "id": "175703", "key": "TIMOB-28228", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-01-27T18:23:27.000+0000", "created": "2020-11-06T01:51:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TableView", "android", "parity" ], "versions": [], "issuelinks": [ { "id": "58856", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "91378", "key": "TIMOB-8998", "fields": { "summary": "Android: UI.TableView and TableViewRow - add editing and moving modes and editable and moveable properties", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-04-27T16:45:12.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": "*Summary:*\r\nOn iOS, a TableView's rows can be moved via drag-and-drop by setting the {{TableView}} object's \"editing\" and \"moveable\" properties to {{true}}. We should add the same on Android for parity.\r\n_(Note that \"moveable\" property is ignored unless \"editing\" is set {{true}}.)_\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-property-moveable\r\n\r\n*Note:*\r\niOS also allows you to configure each row's \"moveable\" property as well. If undefined, then the row defaults to using the {{TableView}}'s \"moveable\" property value.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableViewRow-property-moveable\r\n", "attachment": [], "flagged": false, "summary": "Android: Add TableView \"moveable\" support", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "457987", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12298", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-07T22:24:05.000+0000", "updated": "2021-01-07T22:24:05.000+0000" }, { "id": "458619", "author": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "body": "Would this work same as on iOS? For me nothing happens if I set TableView's `moving` property to true and rows are still not moveable. Not sure what I'm missing. Is there any example for Android somewhere? I can't find it in KitchenSink.", "updateAuthor": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "created": "2021-04-26T07:05:19.000+0000", "updated": "2021-04-26T07:05:19.000+0000" }, { "id": "458622", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~appsol], you have to \"long press\" the row on Android before you can start dragging it. That's the built-in native behavior. The phone will typically vibrate when long pressed and the row will show a drop-shadow elevation. There is sample code in the above github link.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-26T16:40:12.000+0000", "updated": "2021-04-26T16:40:12.000+0000" }, { "id": "458624", "author": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "body": "@Joshua Quick Ah the problem turned out to be the spelling :) Everywhere the property name is *_\"moveable\" _*but in the above Github example its *_\"movable\"_* Changing the property name to \"movable\" on Android worked.", "updateAuthor": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "created": "2021-04-27T05:04:14.000+0000", "updated": "2021-04-27T05:04:14.000+0000" }, { "id": "458626", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~appsol], you're right. The spelling between Android and iOS for this property is inconsistent. And Android's spelling does not match the api docs.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-27T16:45:12.000+0000", "updated": "2021-04-27T16:45:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }