Open sunkeding opened 6 years ago
tabLayout.getTabAt(2).setCustomView(View),View布局是TextView+右上角的TextView,但是设置 app:xTabDividerWidthWidthText="true"这个属性就不管用啦,指示器长度会比文字短一些,请问如何用自定义布局的时候也能保持线的长度跟文字长度一样
xTabDividerWidthWidthTeTxt 这个属性目前不适用于自定义Tab
tabLayout.getTabAt(2).setCustomView(View),View布局是TextView+右上角的TextView,但是设置 app:xTabDividerWidthWidthText="true"这个属性就不管用啦,指示器长度会比文字短一些,请问如何用自定义布局的时候也能保持线的长度跟文字长度一样