Hello,
Welcome to our Microsoft Q&A platform!
Before android 10, we use the second one: android. Support. V7. Widget. RecyclerView
, and since Android10 version, what we use is the first one: androidx.recyclerview.widget.RecyclerView
.
Visual Studio 2019's Intellisense gives me the first one, but most of the stuff I have found online use the second.
Your visual studio should have used the latest one in default.If you try to set Target Framework to Android 9.0(Pie)
, there should some error tips in your output window.
We recommend using the latest version(androidx.recyclerview.widget.RecyclerView
), because it works with Android low as well as Android10 and higher.
And if we use the android.support.v7.widget.RecyclerView
, we can migrate to androidx by AndroidX Migrator
, for more details about this, we can check: https://learn.microsoft.com/en-us/xamarin/android/platform/androidx#migration-tooling
where can I find info about the first one?
RecyclerView
from the first(androidx.recyclerview.widget.RecyclerView
) is used the same way as before, except for a different namespace.
For more about AndroidX , you can check document : https://developer.android.com/jetpack/androidx
Best Regards,
Jessie Zhang
---
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.