AndroidKun / XTabLayout

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

为什么最开始加载的时候字体是加粗加黑的 #18

Open AwinHe opened 6 years ago

AwinHe commented 6 years ago

为什么最开始加载的时候字体是加粗加黑的,切换一下有个明显的变化?

STGing commented 6 years ago

同求,碰到同样的问题!

STGing commented 6 years ago

问题描述:使用 XTablayout切换Fragment,没有使用ViewPager。

设置的代码: <com.androidkun.xtablayout.XTabLayout android:id="@+id/xtab_all_order" android:layout_width="match_parent" android:layout_height="@dimen/y80" android:background="@color/white" app:xTabIndicatorColor="@color/goods_red" app:xTabIndicatorHeight="@dimen/y4" app:xTabIndicatorWidth="@dimen/x80" app:xTabTextColor="@color/black" app:xTabTextSize="15sp">

页面中,设置了默认选中第一个Tab。

问题描述: 在进入页面之后,第一个默认选中的Tab字体粗体变黑,和其他字体颜色不一样。点击其他Tab之后,所有的字体颜色就一样了。

L1063484547 commented 4 years ago

遇到了同样的问题