使用ItemTouchHelper實現RecyclerView的拖動排序以及滑動刪除。

jopen 9年前發布 | 78K 次閱讀 Android開發 移動開發 RecyclerView

介紹:

使用ItemTouchHelper實現RecyclerView的拖動排序以及滑動刪除。

運行效果:

使用說明:

 

這個項目演示了如何使用新的ItemTouchHelper來實現RecyclerView的拖動和滑動刪除,與之相關的博文是:

Drag and swipe with RecyclerView

其中co.paulburke.android.itemtouchhelperdemo.helper類可以輕易的用到其它項目。

 

項目主頁:http://www.baiduhome.net/lib/view/home/1435287807716

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!