{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/228","repository_url":"https://api.github.com/repos/mikepenz/FastAdapter","labels_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/228/comments","events_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/228/events","html_url":"https://github.com/mikepenz/FastAdapter/issues/228","id":179978045,"number":228,"title":"Drag handle","user":{"login":"MFlisar","id":2437726,"avatar_url":"https://avatars.githubusercontent.com/u/2437726?v=3","gravatar_id":"","url":"https://api.github.com/users/MFlisar","html_url":"https://github.com/MFlisar","followers_url":"https://api.github.com/users/MFlisar/followers","following_url":"https://api.github.com/users/MFlisar/following{/other_user}","gists_url":"https://api.github.com/users/MFlisar/gists{/gist_id}","starred_url":"https://api.github.com/users/MFlisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFlisar/subscriptions","organizations_url":"https://api.github.com/users/MFlisar/orgs","repos_url":"https://api.github.com/users/MFlisar/repos","events_url":"https://api.github.com/users/MFlisar/events{/privacy}","received_events_url":"https://api.github.com/users/MFlisar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/FastAdapter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-29T08:00:51Z","updated_at":"2016-09-29T08:28:12Z","closed_at":null,"body":"I've adjusted the `IDraggable` interface a little bit to support a drag handle view directly without any user setup. I would look like following:\r\n\r\n\tpublic interface IDraggable<T, VH extends RecyclerView.ViewHolder, Item extends IItem> {\r\n\t\t/**\r\n\t\t * @return true if draggable\r\n\t\t */\r\n\t\tboolean isDraggable();\r\n\r\n\t\t/**\r\n\t\t * use this method to set if item is draggable\r\n\t\t *\r\n\t\t * @param draggable true if draggable\r\n\t\t * @return this\r\n\t\t */\r\n\t\tT withIsDraggable(boolean draggable);\r\n\r\n\t\t/**\r\n\t\t * use this method to set the ItemTouchHelper reference in the item\r\n\t\t * this is necessary, so that the item can manually start the dragging\r\n\t\t * i.e when a drag icon within the item is touched\r\n\t\t *\r\n\t\t * @param itemTouchHelper the ItemTouchHelper\r\n\t\t * @return this\r\n\t\t */\r\n\t\tT withTouchHelper(ItemTouchHelper itemTouchHelper);\r\n\r\n\t\t/**\r\n\t\t * this returns the ItemTouchHelper\r\n\t\t *\r\n\t\t * @return the ItemTouchHelper if item has one or null\r\n\t\t */\r\n\t\tItemTouchHelper getTouchHelper();\r\n\r\n\t\t/**\r\n\t\t * this method returns the drag view inside the item\r\n\t\t * use this with (@withTouchHelper) to start dragging when this view is touched\r\n\t\t *\r\n\t\t * @param viewHolder the ViewHolder\r\n\t\t * @return the view that should start the dragging or null\r\n\t\t */\r\n\t\tView getDragView(VH viewHolder);\r\n\t}\r\n\r\nBecause of the 3 extra methods needed, I wanted to ask you if you think that's ok... Alternative, I could offer an extra interface (`ICustomDraggable`???) that extends ` IDraggable`...\r\n\r\nAny thoughts? I've implemented a dragging mode like the one described here: https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-6a6f0c422efd#.azde47cow"},"comment":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/comments/250403280","html_url":"https://github.com/mikepenz/FastAdapter/issues/228#issuecomment-250403280","issue_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/228","id":250403280,"user":{"login":"MFlisar","id":2437726,"avatar_url":"https://avatars.githubusercontent.com/u/2437726?v=3","gravatar_id":"","url":"https://api.github.com/users/MFlisar","html_url":"https://github.com/MFlisar","followers_url":"https://api.github.com/users/MFlisar/followers","following_url":"https://api.github.com/users/MFlisar/following{/other_user}","gists_url":"https://api.github.com/users/MFlisar/gists{/gist_id}","starred_url":"https://api.github.com/users/MFlisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFlisar/subscriptions","organizations_url":"https://api.github.com/users/MFlisar/orgs","repos_url":"https://api.github.com/users/MFlisar/repos","events_url":"https://api.github.com/users/MFlisar/events{/privacy}","received_events_url":"https://api.github.com/users/MFlisar/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T08:28:12Z","updated_at":"2016-09-29T08:28:12Z","body":"Already done ;-)"}}
{"actor":{"display_login":"MFlisar"}}