I am trying to remove the Material Ripple Effect on my TabLayout's Tabs.
I am wondering if it is possible to do this?
Any ideas please?
I have tried setting the stateListAnimator to null but it still does not work
<android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:stateListAnimator="@null"/>
You create tabs via newTab() . From there you can change the tab's label or icon via TabLayout. Tab. setText(int) and TabLayout.
app:tabBackground does not work in my case.
This is my solution:
tabLayout.setTabRippleColor(null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With