18

优雅地修改 TabLayout 指示线 Indicator 的宽度

 4 years ago
source link: https://juejin.im/post/5cc99ab9e51d456e5977b213
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.
在工作中,经常会碰到把标签栏指示线的宽度,做的和文字宽度一样,甚至比文字宽度还要短的设计。使用 TabLayout 我们可以快速实现一个 Material Design 风格的标签栏,但 TabLayout 的指示线 Indicator 默认是占满一格 Tab

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK