android-如何删除工具栏和TabLayout之间的分隔线

android-如何删除工具栏和TabLayout之间的分隔线,第1张

概述我有一个布局:<android.support.design.widget.TabLayoutandroid:id="@+idabs"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="@android:color/whit

我有一个布局:

<androID.support.design.Widget.TabLayout        androID:ID="@+ID/tabs"        androID:layout_wIDth="match_parent"        androID:layout_height="wrap_content"        androID:background="@androID:color/white"        androID:elevation="4dp"        app:tabMode="fixed"        app:tabGravity="fill"        app:tabBackground="@color/colorPrimary"        app:tabTextcolor="@androID:color/white"        app:tabSelectedTextcolor="@androID:color/white"/>

工具栏,但工具栏和分隔线之间仍然有一条小线.我尚未设置工具栏样式.如何卸下分隔线?

heres an image of the divider

解决方法:

请更新您的style.xml

 <item name="androID:windowContentTransitions">true</item>    <item name="androID:windowAllowEnterTransitionOverlap">true</item>    <item name="androID:windowAllowReturnTransitionOverlap">true</item>    <item name="androID:windowsharedElementEnterTransition">@androID:Transition/move</item>    <item name="androID:windowsharedElementExitTransition">@androID:Transition/move</item>
总结

以上是内存溢出为你收集整理的android-如何删除工具栏和TabLayout之间的分隔线全部内容,希望文章能够帮你解决android-如何删除工具栏和TabLayout之间的分隔线所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1090823.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存