Mam android.support.v4.view.PagerTabStrip
zdefiniowane w xml następująco:Jak zmienić kolor TabIndicater w PagerTabStrip
<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<!--
This title strip will display the currently visible page title, as well as the page
titles for adjacent pages.
-->
<android.support.v4.view.PagerTabStrip android:id="@+id/pager_title_strip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:background="#33b5e5"
android:textColor="#fff"
android:paddingTop="4dp"
android:paddingBottom="4dp" />
</android.support.v4.view.ViewPager>
Jak mogę zmienić kolor TabIndicater
? Można go zmienić programowo przez setTabIndicatorColor(int color), ale muszę znaleźć sposób, aby to zrobić w xml.
Czy coś przeoczyłem? Do czego służy styl/pagera? W ogóle go nie używałeś. – nevermind