23 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
23
views
Trying to Upgrade App to ViewPager2 and Title of Each Page is Not Displayed
I am trying to upgrade my app from ViewPager to ViewPager2 and need help. I followed the steps outlined in the official ViewPager2 migration guide (Java) provided by Android.
Currently my app is not ...
0
votes
0
answers
33
views
How to change text title in viewpager to image [duplicate]
I have a viewpager tab in my app that uses text to display the title. I initially followed a tutorial to make it text, but now I want it to be icons. I've already seen answers to this question, but I'...
6
votes
2
answers
796
views
How to use PagerTitleStrip in ViewPager2?
I have a standard implementation of PagerTitleStrip in ViewPager but it cannot work in ViewPager2. If I want to migrate to ViewPager2, how should I implement PagerTitleStrip within ViewPager2? I found ...
0
votes
1
answer
50
views
Add a button to PagerTitleStrip
I have an application that features video and text content in a View Pager (the only functionality is to swipe left and right to change screens with content).
Now I need to add an "About" screen to ...
0
votes
1
answer
452
views
ViewPager with fragments: crash after orientation change (incorrect fragment displayed)
I have a ViewPager with a PagerTitleStrip which paints fragments. Each fragment has a StableArrayAdapter which fill the fragment with information.
After an orientation change, when I click on the ...
0
votes
1
answer
587
views
How to set text style in pager title strip
I am trying to set the style and size of my pager title strip .But I am able to set only the text color and size but I am not able to set the style how to set different style in the pager title strip.
...
0
votes
0
answers
42
views
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 ...
3
votes
1
answer
864
views
Toolbar hides PagerTitleStrip and part of RecyclerView
Screenshot 1 and
Screenshot 2 of my app
The problem is basically this: The PagerTitleStrip and the RecyclerView go below my Toolbar even though I have set layout_behaviour to my ViewPager.
More ...
0
votes
1
answer
142
views
Distribute titles evenly with PagerTitleStrip
This is the XML for my PagerTitleStrip:
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/view_pager"
...
0
votes
2
answers
1k
views
ViewPager and PageTitleStrip
So,I am trying to create Swipe tabs using ViewPager from suppoer.v4 library.
Everything works as meant,BUT the title-bar and tabs are not showing.
I know that the tabs bar is there because like 2-3 ...
3
votes
1
answer
2k
views
The Titles do not appear in PagerTitleStrip at all on sdk 23 or 22
i have tried several things to display the text in the tabs on "scroll tabs" in my activity but it never shows
any ideas what happened?
below is the code:
scrollabletabs.xml:
<android.support....
12
votes
2
answers
2k
views
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).
...
-1
votes
1
answer
137
views
Overlap or Override bottom title-strip with keyboard
<android.support.v4.view.ViewPager
android:id="@+id/vp_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/st_tabs_main"
...
1
vote
0
answers
426
views
FragmentStatePagerAdapter getItem not working
I have a viewpager with PagerTitleStrip.I adaptered my FragmentStatePagerAdapter successfully.
This is a my source:
public class CardsDetailsNewFragment extends MainFragment {
private Card ...
3
votes
2
answers
2k
views
Cannot remove PagerTabStrip tab indicator line - Android
I would like to remove the PagerTabStrip tab indicator, but I can't find a way. I was trying to set setDrawFullUnderline(false) but it is still there. If I set its color to transparent, I get a black ...