Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Android - change selected/unselected tab text color

$
0
0

I am having some issues changing the text color in tabs in Android. Here is my XML:

<android.support.design.widget.TabLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/sliding_tabs"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/colorPrimary"
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:tabIndicatorColor="@color/accent"
    app:tabIndicatorHeight="4sp"
    app:tabGravity="fill"
    app:tabMode="fixed"
    app:tabTextColor="@color/tabSelected"
    app:tabSelectedTextColor="@color/tabUnselected" />

The tab indicator color/height is able to be changed, but the tab text color and selected text colors do not change, they just remain white.


Viewing all articles
Browse latest Browse all 89864

Trending Articles