Questions tagged [pagertabstrip]

PagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager.

PagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager in android. It is intended to be used as a child view of a ViewPager widget in the layout.

To use it, we need to add it as a child of a ViewPager in the layout file and set its android:layout_gravity to TOP or BOTTOM to pin it to the top or bottom of the ViewPager. The title from each page is supplied by the method getPageTitle(int) in the adapter supplied to the ViewPager.

For a non-interactive indicator, see .

47 questions
20
votes
2 answers

Difference between PagerTabStrip and TabLayout

I am working on an app where I want to add tabs so that can be added using PagerTabStrip and TabLayout with ViewPager. It looks same to me with no difference but I guess there is some difference between them so they are two classes for this. So what…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
14
votes
1 answer

Text in PagerTabStrip not displayed upon 1st view

I have the following simple setup: swipeable.xml
injecteer
  • 20,038
  • 4
  • 45
  • 89
12
votes
2 answers

PagerTitleStrip do not show titles on first display page, the titles are only drawn after swiping to another page

Issue: After updating to appcompat-v7:23.0.0, both PagerTabStrip and PagerTitleStrip do not show titles on first display page (fig1), the titles are only drawn after swiping to another page (fig2). Library used : appcompat-v7 Version used:…
9
votes
1 answer

How to use PagerTabStrip with ViewPager2

I want to use ViewPager2 because it is supposed to replace ViewPager and I hope to get rid of some problems I've had with ViewPager. I want to do this:
6
votes
0 answers

How to customize PagerTabStrip

Here is the screen that I would make : I'm not sure how to do it and if it's possible ! Indeed I would use a ViewPager & PagerTabStrip like xml below
tspckr
  • 301
  • 1
  • 5
  • 16
4
votes
2 answers

PagerTabStrip not showing in ViewPager in app targeting Android 6.X (N)

I have an existing app that makes use of ViewPager and PagerTabStrip and this has been working for a long time with various releases of the Android SDK and the com.android.support:appcompat-v7 library. I've just bumped up the compile and target SDK…
3
votes
3 answers

How can i develop the PagerSlidingTabStrip with images in android?

I am using the PagerSlidingTabStrip in myapp .In this titles are setting fine but images are not setting tabstrip .I searched alot in google but didn't get the correct result.But this is very important for me. Please see screenshot below Advance…
Ashok
  • 637
  • 2
  • 11
  • 24
3
votes
2 answers

Android : ScrollView + ViewPager doesn't work properly

In my android application, I want to implement PagerSlidingTab and ViewPager inside ScrollView. The layout file is shown below. I am facing a weird problem in that. It shows only tab strip on top and no content is displayed for ViewPager Fragment…
2
votes
0 answers

Stacking Position of a PagertabStrip

I have designed an App with a PagerTabStrip menu. One of the Fragments is where the Pictures are selected. The picture can be moved all around the screen. The problem is that when I move the ImageView containing the picture, it goes below the…
giuseppe
  • 105
  • 9
2
votes
1 answer

XLPagerTabStrip: Title label doesn't show on pager tab

I'd like to create pager tab like InstagramExample of XLPagerTabStrip and I follow all layout and coding to get the same. After adding everything I cannot see the title label on pager tab but I can swipe views as much as I add in array. Could anyone…
zavrina
  • 305
  • 3
  • 14
2
votes
0 answers

Tabstrip like Flipboard app

I'm trying to make a tabstrip, linked to a ViewPager, that has the same look and feel as in the Flipboard app. I tried different libs, and even decompiled their app, but I can't find how they did this. So far, I managed to have a regular Material…
2
votes
0 answers

Tabs Inside Tab using PagerSlidingTabStrip

I have implemented the first row of tab. Inside that tab i have another set of Tabs. Specifically two more tabs. Please refer to these images. The Picture above is the dog tab is selected. The picture above is I want to select the Cat tab. But…
2
votes
1 answer

PagerTabStrip not display the title, the time when you slide will be displayed

I am a Chinese person, use Google translate to ask questions, there are some questions to ask you. PagerTabStrip title does not appear in the beginning to enter the page, and when I slide when it is displayed, and how at the outset that it's title…
kai hello
  • 135
  • 1
  • 2
  • 13
2
votes
1 answer

TabLayout versus pagerTabStrip for convenience and functionality

When using a ViewPager, is there any advantage to using TabLayout instead of PagerTabStrip or vice versa? Or are they equivalent? Is one more convenient than the other? Does one offer greater functionality? Again all questions are asked, and thus…
2
votes
1 answer

PagerTabStrip adds two strips in Fullscreen instead of one strip

I'm trying to implement PagerTabStrip in my Android Studio project. I am using a Fullscreen Activity, but two Tab strips are added, the second one empty, as shown in this photo: If I use a regular activity, only one Tab Strip is added, which is what…
1
2 3 4