swipe-controller-demo icon indicating copy to clipboard operation
swipe-controller-demo copied to clipboard

not working for androidx

Open muhittinkuluozturk opened this issue 5 years ago • 2 comments

Hi,

I have updated from android.support.v7 to androidx. but I lost to swipe movement. not working.

muhittinkuluozturk avatar Dec 03 '19 08:12 muhittinkuluozturk

I do not know if you have already solved it but check if it has the following imports and if necessary replace them, that should solve the problem, the rest stays the same:

import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.view.MotionEvent; import android.view.View; import androidx.annotation.NonNull; import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; import static androidx.recyclerview.widget.ItemTouchHelper.ACTION_STATE_SWIPE; import static androidx.recyclerview.widget.ItemTouchHelper.LEFT; import static androidx.recyclerview.widget.ItemTouchHelper.RIGHT;

johnathan23 avatar Dec 20 '19 14:12 johnathan23

I migrated the demo project to androidX, can confirm that it works.

stelma avatar Aug 17 '20 20:08 stelma