KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I decided to use a ViewPager in my application and everything is working fine. I Know that I want to use a PagerTitleStrip in my ViewPager , but I've failed to find any info on how to do it... The one and only page (sic!!) I found on this class is http://developer.android.com/reference/android/support/v4/view/PagerTitleStrip.html So it seems I just need to add the PagerTitleStrip within my ViewPager layout, but I don't see anything new on my activity... <android.support.v4.view.ViewPager android:id="@+id/viewPager" android:layout_width="match_parent" android:layout_height="match_parent" > <android.support.v4.view.PagerTitleStrip android:id="@+id/pagerTitleStrip" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" /> </android.support.v4.view.ViewPager> Does anyone know how to use it? Edited: Sorry it works when implementing the getPageTitle method in the ViewPagerAdapter ... but I don't want any text displayed, just a small cursor to show the position of the current View compared to the previous and next ones...
Tags (comma-separated)
Save Edits
Cancel