Android kotlin 实现仿蜜源ViewPager和指示器对应上面TabLayout功能

一、实现效果

二、引入依赖

appbuild.gradle在添加以下代码
1、TabLayoutimplementation 'com.google.android.material:material:1.1.0'
2、implementation 'com.github.li-xiaojun:StateLayout:1.3.4' //allprojects {…增加:maven { url ‘https://jitpack.io’ }…}
3、implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0

猜你喜欢

转载自blog.csdn.net/qq_35091074/article/details/131226340