How to disable this highlight on pressing the tab. I have been searching for half an hour and couldn't figure it out. I am using tablayout.
Add the below line to your XML:
app:tabRippleColor="@android:color/transparent"
just set the background color to transparent or to the background color of the tablayout. Add the following code to the parent layout.
xmlns:app="http://schemas.android.com/apk/res-auto"
And add the following to tablayout.
app:tabBackground="?attr/colorPrimary"
android:background="?attr/colorPrimary"
This will solve your problem. Tested in Android M.
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