Comments (4)
在首次布局未完成时, 就有可能获取到-1.
请等待布局结束之后, 再获取.
from dsltablayout.
这个很奇怪,用户都看到UI了。去点击按钮没反应(我是判定index<0直接终止逻辑的)。不对,根据用户反馈的视频看,一直点击都没反应,切换一下tab就好了,也就是说默认index一直是-1。
from dsltablayout.
有个属性可以设置默认的index, 获取手动调用一次setCurrentItem
from dsltablayout.
ok
from dsltablayout.
Related Issues (20)
- icatordemo
- Illegal char <:> at index 50 HOT 7
- 多层嵌套问题? HOT 8
- 初始状态 HOT 3
- 上滑的时候tab_indicator出现了消失的情况 HOT 1
- 关于激活缩放渐变特殊情况下的问题(咨询) HOT 5
- observeIndexChange 重复点击时不触发 HOT 1
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0. HOT 1
- Tab 文本加粗样式在部分机型不生效问题 HOT 7
- 怎么让文字不居中变大? HOT 4
- 我用代码add方式添加的item 怎么用代码方式设置高凸高度呢 HOT 1
- jenkins 打包无法下载依赖 HOT 1
- 动态修改某一项item HOT 4
- 不知道为啥,更新版本后一直拉不下来 HOT 1
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. HOT 4
- 远程引入viewpager绑定库后,TabLayout样式出现问题 HOT 1
- 支持tab双击事件 HOT 1
- 垂直方向动态添加子view后,indicator线不会显示出来。xml里面添加则无此问题 HOT 1
- 关于Item是否等宽 问题 HOT 1
- 中文问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsltablayout.