這個(gè)是豌豆莢 APP上的樣式,他們TabLayout的白色下標(biāo)線(xiàn)很短
這個(gè)是Demo上 默認(rèn)的效果,白色下標(biāo)線(xiàn)跟當(dāng)前 tab item 的寬度一樣
所以問(wèn)題就是如何能控制這個(gè)下標(biāo)線(xiàn)的樣式,讓它像豌豆莢上那樣的效果?
我找到一個(gè)第三方的組件 SmartTabLayout
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
Wandoujia is not implemented using TabLayout. I used uiautomatorviewer (view viewing tool, in the sdk/tools directory) to see it. It was written by myself
Looking up the TabLayout API, I found that I couldn’t find a way to set the width of the lower mark. There is only a way to set the height of the small mark. So Wandoujia APP may not be using TabLayout, but may be a custom control layout. setSelectedTabIndicatorHeight