I
I
IvanOne2017-04-17 10:47:44
Android
IvanOne, 2017-04-17 10:47:44

How to change background color when tab is pressed?

Good afternoon! The application has tabs (TabHost, TabWidget), I set the background color via xml, but in the application, when I click on the tab, a float effect appears and in this effect the color is pink, I just can’t figure out which attribute is responsible for this color, and how it can be redefined?
xml tabs

<TabHost
        android:id="@+id/ptabs"
        android:textColor="@color/white"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/colorPrimary"
                />

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
z0rgoyok, 2017-04-17
@z0rgoyok

look in colors.xml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question