xuqk / kdtablayout Goto Github PK
View Code? Open in Web Editor NEW参考自MagicIndicator撸的自用版本,Kotlin编写,适配ViewPager2。
License: MIT License
参考自MagicIndicator撸的自用版本,Kotlin编写,适配ViewPager2。
License: MIT License
如题
可以修改Tab文本的字体吗,自己下载的ttf字体
tab.setCurrentItem(1,false) 设置初始化默认选择指定得tab,发现tab变化了,但是对应的viewpager2数据并未跟随变化,还是默认的第一个页面数据
1.1.2版遇到指示器 默认在最左边,紧贴着的,不在第一个tab的正下方
@XuQK do you have an example of changing the font to a custom font? Thanks
语法糖太多,懒得学,还不如学swift.
希望加个设置布局垂直显示的功能,现在只能横向显示吧
val helper = FragmentContainerHelper()
val commonNavigator = CommonNavigator(appCompatActivity)
mi_home.navigator = commonNavigator
helper.attachMagicIndicator(mi_home)
空大牛逼!!!!!!!!!!!!!
tab的个数与内容是从服务端拉取的,拉去之前有个默认空的tab+viewpager,获取到服务端的数据再重新initTab,这时候点击tab切换时tab会闪烁,滑动切换没问题
现在初始化时title必须有值才行,可以优化一下,初始化时title集合可以传空集合,在获取到具体数据后在更新具体的值吗
既然用上了 Kotlin 那怎么能少 dsl 形式呢,现在的创建方式感觉太过繁琐了,可以的话建议设计更加简洁的 api,就像 https://github.com/afollestad/recyclical
有没有java使用ViewPager2的版本??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.