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 compatability #217

Open
Huulivoide opened this issue Aug 29, 2018 · 1 comment
Open

AndroidX compatability #217

Huulivoide opened this issue Aug 29, 2018 · 1 comment

Comments

@Huulivoide
Copy link

Starting from API level 28, the old support libraries wont be updated anymore and instead one is expected to use the new AndroidX packages. To ensure old binary deps don't break, a new tool Jetify is used to mange the old support library references in them to the new scheme.

Sadly this does not work on RecyclerViewPager.

Problem:
android.support.v7.widget.ViewHolderDelegate gets transformed into androidx.appcompat.widget.ViewHolderDelegate, which is a wrong package. RecyclerView stuff is now located in androidx.recyclerview.widget package.

Solution:

  • Migrate to AndroidX "support" libraries.
  • Rename android.support.v7.widget.ViewHolderDelegate to androidx.recyclerview.widget.ViewHolderDelegate
@darekxan
Copy link

#218

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

2 participants