Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

androidX compatibility ?? #15

Closed
khaledmamartech opened this issue Jun 13, 2021 · 5 comments
Closed

androidX compatibility ?? #15

khaledmamartech opened this issue Jun 13, 2021 · 5 comments

Comments

@khaledmamartech
Copy link

khaledmamartech commented Jun 13, 2021

The SwipeDecorator.Builder() method takes Recyclerview and ViewHolder as arguments but they are not compatible with android x versions.
Any idea to do???

@xabaras
Copy link
Owner

xabaras commented Jun 15, 2021

Just working on it, hope to release a new version soon

@Albedici
Copy link

For me replacing
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;

with
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;

worked fine

@LeeYH99
Copy link

LeeYH99 commented Jul 23, 2021

For me replacing
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;

with
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView;

worked fine

Hi, may I know whr to change this? I tried in the TouchHelper class but it still doesn't work.

@Klewerro
Copy link

Hi, may I know whr to change this? I tried in the TouchHelper class but it still doesn't work.

I've just copied and pasted library code in my project, and IDE made all imports automatically (and translate code to Kotlin in my case) in AndroidX based project ;)

@xabaras
Copy link
Owner

xabaras commented Jul 28, 2021

Thank you all for your contribution.
Version 1.3 (#17) solves the issue.

@xabaras xabaras closed this as completed Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants