RecyclerView separate the swipe left event from sub value Android

39 Views Asked by At

I am developing an Android app. I am using RecyclerView to display a list.

Here is my list item one card:

enter image description here

I have implemented the left swipe on the card and showing two more options as shown below image.

enter image description here

Now the challenge I am facing is I want to implement left swipe on a header(i.e Maths(ICSC)) and wanted to show two different options for a header(i.e Maths(ICSC)) as shown in below image.

enter image description here

I tried ItemTouchHelper but it is diable the swipe effect of the card.

How should I achieve this? Am I missing something?

0

There are 0 best solutions below