在Android标签页上,涟漪效果默认为白色。我想在tablayout
上添加涟漪效果,但我的标签页背景已经是白色的了,导致涟漪效果无法显示。
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="end"
android:layout_weight="1"
android:background="@color/white"
app:layout_collapseMode="pin"
app:tabMode="fixed"
app:tabIndicatorColor="@color/colorPrimary"
app:tabBackground="?attr/selectableItemBackground"
app:tabSelectedTextColor="@color/colorPrimary"
app:tabTextColor="#222"
/>
有没有办法改变tabLayout水波纹效果的颜色,以便在白色背景下也能看到?