Questions tagged [itemtouchhelper]

Use this tag for questions related to the Android widgets ItemTouchHelper utility class.

ItemTouchHelper is a utility class part of Android support widgets to add swipe to dismiss and drag & drop support to RecyclerView.

191 questions
1
vote
0 answers

Property animation on views behind RecyclerView using ItemTouchHelper.SimpleCallback

I am trying to implement an animation on the views which is basically behind my RecyclerView. I am using ItemTouchHelper.SimpleCallback class to get the motion events on RecyclerView and overriding the callback method onChildDraw() to propagate the…
1
vote
1 answer

Android - RecyclerView drag using ItemTouchHelper.Callback

I'm currently working on an small Android module and I'm facing a problem which maybe someone can solve. I need to create a calendar and allow the user to select a date range by 1) clicking on a start date (this will create a 2 days range by…
1
vote
1 answer

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. How to achieve this using ItemTouchHelper.Callback?
DeniSHow
  • 1,394
  • 1
  • 18
  • 30
1
vote
1 answer

Latest RecyclerView nesting in NestedScrollView with ItemTouchHelper

With the latest update to RecyclerView, it can now wrap_content within a NestedScrollView. However, there is some behavior that doesn't sit well with me, and I'm looking for answers. Problems 1: The wrapping does not account for empty spaces. This…
1
vote
1 answer

Swipe left/right RecyclerView's row partially

I have created a RecyclerView ItemTouchHelper like this - public class MyItemTouchHelper extends android.support.v7.widget.helper.ItemTouchHelper.SimpleCallback { private final Paint p; Context mContext; @Override public float…
Darpan
  • 5,623
  • 3
  • 48
  • 80
0
votes
0 answers

onSwipe of item in vertical recyclerView show views, onClick of view swipeBack item to original position, at a time only one row should be swiped

I am using android recyclerView, now on the swipe of item in recycler view I want to show two views, one for delete and one for mute, Now on click of view, the views(delete/mute) should go back and content should be in previous form, at a time only…
0
votes
1 answer

Android Recycleview dragging items within a nested recyclerview for the second time is not working properly

I attempted to integrate the dragging feature for both the primary item and the extended list within that list. It functioned OK, however when I closed and reopened an item, the item (in extended list) stopped moving with the cursor. Check out this…
0
votes
0 answers

Why ItemTouchHelper.startSwipe not working?

Is there a working example of using ItemTouchHelper.startSwipe ? I found documentation with example…
Maxim
  • 176
  • 1
  • 3
  • 10
0
votes
0 answers

Moving Same Item Twice in RecyclerView With ItemTouchHelper

First time messing with this TouchHelper, apologies. I just want to be able to move the same item twice without navigating to another activity to refresh the recyclerview. I assume I just don't know which 'notify' to use for the adapter. After…
0
votes
0 answers

Swipe To Delete From Firebase with recyclerview

My aim was for user to swipe in recyclerview and delete element from recyclerview and firestore.For this, I used itemtouchhelper and created a callback object in the fragment. The problem is that I get the…
0
votes
1 answer

Itemtouch helper kotlin : when i swipe left my button needs 3 cliks

here is my problem that I have been trying to solve for a week now. When I perform a swipe to the left to reveal my buttons, when the view locks at maxleft, the click is only triggered after the third attempt. However, when I use "is currently…
0
votes
0 answers

Android and kotlin: notify recyclerview adapter when item is removed by popup menu on item

I have a recyclerview, and each item in the list has a popup menu allowing the user to duplicate or delete the item. My recyclerview also includes an itemTouch helper to rearrange the item order. My problem is the following: when an item is…
0
votes
1 answer

SimpleCallback for dragging view is not working, when i try to move top to bottom and bottom to top dragging item with ItemTouchHelper

my RecyclerView scrolls not working top to bottom and bottom to top when i try to dragging. You can see the below code i'm using xml like this `
0
votes
0 answers

Why Casting a ViewHolder to a Adapter that extend to ListAdapter (a sub-class of RecyclerView.Adapter) does not work?

This a follow-up question from this thread How to get the IDs of the components of the recycler view adapter class and call it outside the recycler view adapter class? I implemented an item touch helper on an adapter that I tried using on an adapter…
0
votes
0 answers

How to get the IDs of the components of the recycler view adapter class and call it outside the recycler view adapter class?

I want to implement an android swipe layout that updates the visibility of buttons when swiped with an item touch helper. I was able to get the id of, it but is not working when changing visibility when swiped Subroutine.class private void…