में TabIndicater का रंग बदलने के मैं इस प्रकार एक android.support.v4.view.PagerTabStrip
एक्सएमएल में परिभाषित किया गया है:कैसे 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>
मैं TabIndicater
रंग कैसे बदल सकता हूँ? इसे setTabIndicatorColor(int color) द्वारा प्रोग्रामेटिकल बदल दिया जा सकता है लेकिन मुझे इसे xml में करने का कोई तरीका ढूंढना होगा।
क्या मुझे कुछ याद आया? के लिए शैली/पेजर क्या है? आपने इसका बिल्कुल उपयोग नहीं किया। – nevermind