21
Android--›最万能的TabLayout(不仅仅是TabLayout)
source link: https://juejin.im/post/5de490375188256ec5224fbc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Android--›最万能的TabLayout(不仅仅是TabLayout) - 掘金
2019年12月02日阅读 3674
Android--›最万能的TabLayout(不仅仅是TabLayout)
DslTabLayout
Android界最万能的TabLayout
(不仅仅是TabLayout
)
千呼万唤的角标
功能, 终于使出来了. 赶紧体验吧!
- 支持任意类型的
child
视图. - 支持任意类型
Drawable
的指示器
. - 支持智能开启
横向滚动
. - 支持
高凸模式
, 允许某个child
高出一节显示. - 支持
滑动选择模式
, 滑动的时候智能选择上一个
或下一个
. - 支持
角标
配置.
直接当做横向的LinearLayout
使用方式即可, 无特殊要求.
一个DSLTabLayout
可实现以下3中效果
无需选择, xml配置
即可, 还不赶紧收下?
带滚动效果和角标 |
---|
普通和高凸效果 |
---|
带边框,分割线和滑动选择效果 |
---|
使用JitPack
的方式, 引入库.
根目录中的 build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
复制代码
APP目录中的 build.gradle
dependencies {
implementation 'com.github.angcyo:DslTabLayout:1.2.0'
}
复制代码
群内有各(pian)种(ni)各(jin)样(qun)
的大佬,等你来撩.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK