How to indicate when we click on a tabLayout tab does not show the selection color?

0

Hi, I'm doing an Android application where I have a tabLayout with 3 tab which 2 contains fragments and one throws me an activity. The point is that when I click on the tab that launches the activity I do not want the indicator color to be shown below the tab, but in the other two if.

    
asked by Eric Retamero 18.10.2016 в 10:08
source

1 answer

1

Try the following:

tuTabLayout.setSelectedTabIndicatorHeight(0);

Or in its properties only add a transparent color app:tabIndicatorColor="@android:color/transparent"

Example

<android.support.design.widget.TabLayout
        android:id="@+id/mis_tabs"
        ...
        ...
        app:tabIndicatorColor="@android:color/transparent"
        ... />

or

Adding any of the following properties:

app:tabIndicatorHeight="0dp"



 android:tabStripEnabled="false" android:alpha="0"
    
answered by 18.10.2016 в 16:20