Comments (3)
指示器的indicatorStyle
不是INDICATOR_STYLE_BACKGROUND
,
那么指示器的绘制时期就会在item
绘制完之后绘制. 效果就是:item
的背景不会遮挡指示器.
反之指示器的绘制时期就会在item
绘制之前绘制. 效果就是:item
的背景会遮挡指示器.
from dsltablayout.
指示器的
indicatorStyle
不是INDICATOR_STYLE_BACKGROUND
,那么指示器的绘制时期就会在
item
绘制完之后绘制. 效果就是:item
的背景不会遮挡指示器.反之指示器的绘制时期就会在
item
绘制之前绘制. 效果就是:item
的背景会遮挡指示器.
谢谢,已经可以了,但是如果是每个tab有自己的背景,指示器背景也是跟tab背景一样长宽的(只是颜色不一样),切换tab是可以让指示器不被遮挡,但是文字相应的也被指示器挡住了......这个问题是无解的吧
from dsltablayout.
可以看看突出效果
from dsltablayout.
Related Issues (20)
- 打包可以把源码打上来吗? 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
- 发现个问题。
- 代码 HOT 1
- 果断放弃 HOT 2
- 加油吧,老铁 HOT 1
- 怎么设置item的间距 HOT 1
- 请问怎么直接设置tab item垂直居中呢,我现在还得外面包一层,有点麻烦,能否框架提供这么个属性 HOT 1
- 如何修改某个Item的文本? HOT 1
- 请问能自定义TextView的Scale动画么 HOT 4
- demo写的读起来费死老劲了 HOT 2
- 动态配置数据,默认全不选中无效。还是选中上次选择的下标 HOT 2
- badge四个角的cornerRadius设置
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.