AndroidKun / XTabLayout

Added support to modify text size and indicator width based on the original TabLayout.
666 stars 109 forks source link

用自定义布局遇到的问题 #20

Open sunkeding opened 6 years ago

sunkeding commented 6 years ago

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

AndroidKun commented 6 years ago

xTabDividerWidthWidthTeTxt 这个属性目前不适用于自定义Tab