我需要更改 Android 应用程序 ViewPager 中 PagerTabStrip 的字体颜色。这是相同的 xml 布局。我有什么办法可以做到这一点吗?
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/head"
android:id="@+id/myfivepanelpager">
<android.support.v4.view.PagerTabStrip
android:id="@+id/pgstrip"
android:layout_width="fill_parent"
android:background="@color/strip"
android:layout_height="@dimen/pagerstripht"
android:layout_gravity="top"
/>
</android.support.v4.view.ViewPager>
在你的代码中:
<android.support.v4.view.PagerTabStrip
android:id="@+id/pgstrip"
android:layout_width="fill_parent"
android:background="@color/strip"
android:layout_height="@dimen/pagerstripht"
android:layout_gravity="top"
/>
我认为添加 android:textColor="#000" 会改变文本颜色。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)