KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to set the textsize and textcolor from the pagertitlestrip and cannot find a way to do it. <android.support.v4.view.ViewPager android:id="@+id/myPager" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v4.view.PagerTitleStrip android:id="@+id/myStrip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" /> </android.support.v4.view.ViewPager> EDIT main.xml <android.support.v4.view.ViewPager android:id="@+id/myPager" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v4.view.PagerTitleStrip style="@style/PagerTitleStrip" android:id="@+id/myStrip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top" /> </android.support.v4.view.ViewPager> style.xml <style name="PagerTitleStrip"> <item name="android:textAppearance">@style/PagerTitleStripTextAppearance</item> </style> <style name="PagerTitleStripTextAppearance"> <item name="android:textColor">#FFFFFFFF</item> <item name="android:textSize">14sp</item> </style> Pity that i didn't found a way to make it from AttributeSet, get a Resource NotFound or InvalidResource Exception.
Tags (comma-separated)
Save Edits
Cancel