hackware1993 / MagicIndicator

A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 强大、可定制、易扩展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角标,更支持在非ViewPager场景下使用(使用hide()、show()切换Fragment或使用setVisibility切换FrameLayout里的View等),http://www.jianshu.com/p/f3022211821c
9.68k stars 1.54k forks source link

requestLayout() improperly called by com.genuine.cloud.core.ui.view.IndicatorTitleView #266

Open LvKang-insist opened 3 years ago

LvKang-insist commented 3 years ago

W/View: requestLayout() improperly called by com.genuine.cloud.core.ui.view.IndicatorTitleView{9311d80 VFED..C.. ......ID 150,0-346,141} during layout: running second layout pass

第一次打开页面就会有这个 log,

LvKang-insist commented 3 years ago

已解决: override fun onSelected(index: Int, totalCount: Int) { setTypeface(Typeface.DEFAULT, Typeface.BOLD) } override fun onDeselected(index: Int, totalCount: Int) { typeface = Typeface.DEFAULT }

是由于设置了字体类型