I just migrated to AndroidX, and noticed there's a new class called androidx.core.util.Pair
.
I was wondering, going forward, should I use android.util.Pair
or androidx.core.util.Pair
?
Yes, it is better to use androidx.core.util.Pair
, from the docs:
(September 21, 2018)
This is the stable release of Support Library 28.0.0 and is suitable for use in production. This will be the last feature release under the
android.support
packaging, and developers are encouraged to migrate to AndroidX.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With