简体   繁体   English

如何使用ItemTouchHelper.Callback将项目拖放到水平recyclerview的边界上?

[英]How to drag and drop items over bounds of the horizontal recyclerview with ItemTouchHelper.Callback?

I want to drag items over my horizontal recyclerview(not only within bounds of the recyclerview) and when drop an item it goes to new position with animation. 我想将项目拖到我的水平recyclerview上(不仅在recyclerview的范围内),当放下一个项目时,它会随着动画移动到新位置。 How to achieve this using ItemTouchHelper.Callback? 如何使用ItemTouchHelper.Callback实现此目的?

I think you might avoid using ItemTouchHelper to achieve your goal. 我认为您可能避免使用ItemTouchHelper来实现您的目标。 See my code on GitHub for more information. 有关更多信息,请参见我在GitHub上的代码

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android - 使用 ItemTouchHelper.Callback 拖动 RecyclerView - Android - RecyclerView drag using ItemTouchHelper.Callback Android:Recyclerview 与 ItemTouchHelper.Callback 在列表中的较低项目上闪烁 - Android: Recyclerview with ItemTouchHelper.Callback flickering on lower items in list RecyclerView ItemTouchHelper.Callback:拖动交换条件 - RecyclerView ItemTouchHelper.Callback: Dragging swap condition Android 10中RecyclerView项拖拽切换方法难以触发(ItemTouchHelper.callback onMove) - In Android 10, the RecyclerView item drag-and-swap method is difficult to trigger (ItemTouchHelper.callback onMove) 使用ItemTouchHelper.Callback实现“反弹” RecyclerView动画 - Implementing “Bounce Back” RecyclerView Animation with ItemTouchHelper.Callback 使用ItemTouchHelper.Callback在RecyclerView中创建向左滑动菜单 - Using ItemTouchHelper.Callback for creating a swipe left menu in a RecyclerView 使用 itemtouchhelper、recyclerview 和 Firestore 拖放项目,例如 Google Tasks - Drag & drop items with itemtouchhelper, recyclerview and Firestore like Google Tasks 拖动时如何在使用 ItemTouchHelper 时取消 RecyclerView 中项目的拖动? - How to cancel dragging of items in RecyclerView when using ItemTouchHelper, as you drag? 用于水平 RecyclerView 的 ItemTouchHelper - ItemTouchHelper for Horizontal RecyclerView RecyclerView拖放 - 使用ItemTouchHelper - 如何在拖动时更快地设置滚动速度? - RecyclerView drag-drop - using ItemTouchHelper - How to set scrolling speed faster while dragging?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM