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
0
votes
1 answer

Change color of drawable in PagerTabStrip

I'm using PagerTabStrip with a ViewPager to go between the different views of my app and it works well. I use drawables as the PageTitles with this method: https://stackoverflow.com/a/12837635/7459644 This also works really well, I do however want…
Felix Eder
  • 325
  • 3
  • 16
0
votes
0 answers

Recycleviewer Adapter NotifyDataSetChanged not work?

I'm using PagerSlidingTabStrip for create tabs and in each tab i have Recyclerview to poupulate related tab items . for example we have 3 tabs with names of Toyota , Benz and Ford and A tab tho show All of items, so in Toyota tab we have vehicles of…
0
votes
1 answer

Calling webservice in onpage selected of PagerTabStrip not smoothly scrolled, trying to load for every category

I have used viewpager with pagertabstrip I have called webservice in onpageselected but while moving to category every category trying to load so the scrolling was not moving smoothly.Is there any way to achieve only load webservice when category…
0
votes
1 answer

Showing pagerSlidingTabStrip on the layout without viewPagerAdapter on Android 5.0+

I would like to develop an android app's UI looks like the Uber's but booking rooms. I want to implement the function about showing the option's description, from users who are clicking the PagerSlidingTabStrip items which shown on the bottom. The…
Chris.C
  • 297
  • 3
  • 17
0
votes
0 answers

PagerTabSlider: content of slider shows after sliding and pageTitleStrip never shows the text just blue line

I was following this link for creating viewPager with Pager title strip but on running app it never shows the content in tab, on changing to pager tab strip it is showing the content but only after sliding. What I am doing wrong? Here is…
0
votes
1 answer

How to change the PagerTabStrip tab text color

can anyone tell me how to have different color for different tab or atleast different color for current tab and unselected tab. I tried to change the tab text color programmatically but it changes all the tab text color. I could change the opacity…
Jeffrey Rajan
  • 4,391
  • 4
  • 27
  • 37
0
votes
0 answers

How to use custom layout for PagerTabStrip with viewpager?

I have used viewPager with PagerTabStrip, which is working fine. But i want to use custom layout for each Tab. For now, it takes Tab string data from tabtiles[] array which is passed through the getPageTitles() callback. So, instead of passing a…
Ritt
  • 3,181
  • 3
  • 22
  • 51
0
votes
0 answers

Add icon in PagerTabStrip

I tried to add images along with text in PagerTabStrip but getting error and app is forceclosing. I'm using the instructions as showing in here for PagerTabStrip with ViewPager. In this post, its shown how to add images but its not working and the…
Sammy
  • 181
  • 3
  • 18
0
votes
0 answers

Add custom images and text

Adapter: here I want images public class MyFragmentPagerAdapter extends FragmentPagerAdapter{ final int PAGE_COUNT = 5; Context mContext; /** Constructor of the class */ public MyFragmentPagerAdapter(FragmentManager fm) { …
Somnath Pal
  • 1,570
  • 4
  • 23
  • 42
0
votes
2 answers

Add button on Sliding Tab Layout

I want to add a custom button on my Tab Layout. This expand button will expand my current tab view. I already have implemented all the functionalities given in google's sliding tab.
0
votes
4 answers

SlidingTabLayout and Actionbar title

I'm using a SlidingTabLayout (from the Google sources) in my app to navigate between different fragments. I can swipe between contents just fine, but the problem I'm facing is the title of the Action bar that is acting weird. Suppose that I have two…
Herve B
  • 195
  • 1
  • 15
0
votes
1 answer

Set PagerTabstrip to bottom of screen

Generally PagerTabStrip appears at the top of screen just below appbar, Now I want PagerStrip to be at bottom , how can I set it to bottom of screen? Help me…
Raaz Dhakal
  • 109
  • 1
  • 8
0
votes
0 answers

Android PagerTabStrip Set Color and starting tab

I would like to change the text color of the active tab to white. Right now I'm using a selector and the inactive tabs are grey, but the active one is not white. The XML Selector:
Black Kite
  • 13
  • 3
0
votes
1 answer

Refresh titles of a PagerTabStrip immediately?

I have a PagerTabStrip with two tabs, all is working fine. But when the user performs a certain task in the app, I need to make it refresh the titles of the tabs (at least one of them) immediately without waiting for it to call getPageTitle(). How…
Magnus
  • 17,157
  • 19
  • 104
  • 189
0
votes
1 answer

Add viewbadger in to pagerTabStrip in Android L

addTab is deprecated in API 21, so I have to change my tab layout to PagerTabStrip, but I can't find a way to add in custom XML layout in to pagerTabStrip tabs... As I understand, viewBadger need to inflate a custom XML. Hope my question is answered…
Daniel tan
  • 13
  • 3