升级 AndroidX 之后 常用的依赖

1、CardView
implementation ‘androidx.cardview:cardview:1.0.0’

2、TabLayout
implementation ‘com.google.android.material:material:1.0.0’

3、RecycleView
implementation ‘androidx.recyclerview:recyclerview:1.0.0’

4、Snackbar
implementation ‘com.google.android.material.snackbar.Snackbar:1.0.0-rc01’

5、swiperefreshlayout
implementation ‘androidx.swiperefreshlayout:swiperefreshlayout:1.0.0’

6、viewpager
implementation ‘androidx.viewpager:viewpager:1.0.0’

7、design ui 库
implementation ‘com.google.android.material:material:1.0.0-rc01’

8、coordinatorlayout
implementation ‘androidx.coordinatorlayout:coordinatorlayout:1.0.0’

9、constraintlayout 约束布局
implementation ‘androidx.constraintlayout:constraintlayout:1.1.2’

10、NavigationView 侧滑
implementation ‘com.google.android.material.navigation.NavigationView:1.0.0′

11、drawerlayout 抽屉布局
implementation’androidx.drawerlayout:drawerlayout:1.0.0′

12、gridlayout 网格布局
implementation’androidx.gridlayout:gridlayout:1.0.0′

13、recyclerview-selection RecycleView 高亮显示方案
implementation’androidx.recyclerview:recyclerview-selection:1.0.0’

14、附赠 国内可打开的 官方对照连接
AndroidX 依赖对比 google官方

15、viewPager 2 这个是2与viewPager不同哦
implementation ‘androidx.viewpager2:viewpager2:1.0.0’
————————————————