Remove hardcode color of sliding tab

Now use the color from textColorPrimary based on
current theme.

Bug: 32592245
Test: Visual
Change-Id: If6bbfe3b39ba30d96fc1f7d810472dc87006c3ea
This commit is contained in:
jackqdyulei
2016-11-01 20:01:11 -07:00
parent 301fe80fa7
commit 4f5e4931f1
3 changed files with 5 additions and 6 deletions

View File

@@ -17,6 +17,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="false" <item android:state_selected="false"
android:color="#b3ffffff"/> android:color="?android:attr/textColorSecondary"/>
<item android:color="@android:color/white"/> <item android:color="?android:attr/textColorPrimary"/>
</selector> </selector>

View File

@@ -16,10 +16,8 @@
<com.android.settings.widget.SlidingTabLayout <com.android.settings.widget.SlidingTabLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs" android:id="@+id/sliding_tabs"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dashboard_header_margin_start" android:layout_marginStart="@dimen/dashboard_header_margin_start"
android:layout_marginEnd="@dimen/dashboard_header_margin_end" android:layout_marginEnd="@dimen/dashboard_header_margin_end"/>
android:background="?android:attr/colorPrimary"/>

View File

@@ -27,4 +27,5 @@
android:maxLines="1" android:maxLines="1"
android:padding="@dimen/pager_tabs_title_padding" android:padding="@dimen/pager_tabs_title_padding"
android:textColor="@color/sliding_tab_title_text_color" android:textColor="@color/sliding_tab_title_text_color"
android:textAllCaps="true"/> android:textAllCaps="true"
android:theme="?android:attr/actionBarTheme"/>