<item name="androID:windowContentOverlay">@null<item/>
要么
<item name="windowContentOverlay">@null<item/>
如果还有其他方法可以从XML声明或TabLayout实例后面的代码中徘徊.
我知道这个解决方案,这对我不起作用.
Getting rid of the gradient at the top of an Activity (Android)
请不要建议主题修复,我知道它是最好的AndroID方式去这里,但它不是我的选择.
这是我的XML声明:
<androID.support.design.Widget.TabLayout xmlns:app="http://schemas.androID.com/apk/res-auto" androID:ID="@+ID/slIDing_tabs" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:layout_gravity="center_horizontal" androID:layout_marginleft="10dp" androID:layout_marginRight="10dp" androID:background="@androID:color/white" app:backgroundTint="@androID:color/transparent" app:tabIndicatorcolor="@androID:color/transparent" app:tabMode="scrollable" app:tabSelectedTextcolor="@color/tab_on_state" app:tabTextcolor="@color/tab_off_state" />解决方法 TabLayout不会投射阴影,而是它所在的容器. 如果在Actionbar中使用TabLayout,则将Actionbar的背景设置为纯色以删除阴影. 我已经在Actionbar上尝试了它,但我想它应该适用于其他模式,如AppbarLayout 总结
以上是内存溢出为你收集整理的在android的TabLayout上设置阴影全部内容,希望文章能够帮你解决在android的TabLayout上设置阴影所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)