Open AwinHe opened 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之后,所有的字体颜色就一样了。
遇到了同样的问题
为什么最开始加载的时候字体是加粗加黑的,切换一下有个明显的变化?