我正在尝试删除TabLayout选项卡上的材质波纹效果.
我想知道是否可以这样做?
有什么想法吗?
我已经尝试将stateListAnimator设置为null但它仍然无效
<android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:stateListAnimator="@null"/>
解决方法
尝试更改背景,例如,使用android的透明色.
<android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_below="@id/toolbar" android:layout_height="70dip" app:tabBackground = "@android:color/transparent" app:tabMode="fixed" />
原文地址:https://www.jb51.cc/android/317192.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。