问题描述
我有一个带有 TabLayout
的 ViewPager
,其中包含 5 个标签。当我选择第一个标签然后切换到最后一个标签时,这两个标签之间的其他标签很快就会显示出来。我怎样才能消除这种滞后?
这是我的活动 xml 文件:
<androidx.viewpager.widget.ViewPager
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:id="@+id/tabsViewPager"/>
<com.google.android.material.tabs.TabLayout
android:id="@+id/hoMetabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
app:tabTextAppearance="@style/CustomTabTextStyle"
app:tabIndicatorColor="@null"
app:tabGravity="fill"
app:tabMode="fixed"/>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)