Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question