android-viewpager Questions

6

I am using ViewPager for sliding effect in my app. I have pager.setPageMargin() to make next and previous views visibility, unfortunately my next view is over lapping with current view. Below is...
Actinomorphic asked 16/9, 2015 at 10:50

8

Solved

So I have a fascinating problem. Despite the fact that I'm not manually or programmatically scrolling my view, my WebView is being automatically scrolled to after the data inside it loads. I've go...

5

I have a horizontal RecyclerView inside a Complex hierarchy that looks like this - <ViewPager id="+@id/first"> <ViewPager id="+@id/second"> this viewpager is taking away the scroll ev...

1

The app uses android viewpager2 (androidx.viewpager2:viewpager2:1.0.0-beta04) to show slides. Each slide have video on its top half and text on its bottom half. Each slide is built using same fragm...
Alameda asked 29/9, 2019 at 4:55

1

I am trying to display data from IconFinder API. It seems to be ItemKeyedDataSource for me and I used Paging3 to display the data as it's mentioned in the official docs. Here is code, please check ...

1

Solved

i want to scroll the view pager horizontally on button click in jetpack compose.Anyone have any idea about this ? Here i am using Accompanist library.

21

I need to create an interface like Google Newsstand which is a sort of ViewPager (horizontal scroll) over a collapsing header (vertical scroll). One of my requirements is to use the new Design Supp...

1

Solved

While clicking on the tab with HorizontalPager in android Jetpack Compse, it jumps to the last tab I add the code to see the problem visible This is my code -> data class TabPage(val title: Stri...

10

When using the FragmentStatePageAdapter I get the fragments like this: @Override public Fragment getItem(int position) { return new SuperCoolFragment(); } However, later on my code I need to...
Archival asked 12/9, 2012 at 9:22

4

Solved

I,m using slidingTabLayout with 4 tabs and a viewpager and 4 fragment class for every tab. i need to reload one of my fragments (first tab) in my project when user click some button, and for this...
Haloid asked 18/1, 2016 at 18:7

8

Solved

I have a tab + ViewPager layout and in one of these tabs I have a list view. When I replace that list fragment upon the onclick I can still see the old fragment under the new fragment. See: Code...
Divisionism asked 20/5, 2013 at 5:32

7

Solved

I want to implement Pinch Zoom on Imageview, with in View Pager similar to Default Android Gallery. I have found multiple source over GitHub, But the zoom and sliding just work for only first image...
Antietam asked 6/1, 2014 at 5:52

4

Solved

I want to schedule an action to change automatically my ViewPager pages. I've tried: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... swip...
Discursion asked 18/6, 2013 at 11:30

5

Solved

I have an activity with a viewpager that has 3 tabs and 3 fragments, inside each tab is a fragment. I know that the fragment manager stores the initial instances of the fragments so that if I swipe...
Rudimentary asked 27/5, 2014 at 13:53

4

I'm having a lot of trouble getting Fragments to work with Tabs/Swiping. I have one activity and two Fragments, one which has a ListView. What I want is when I swipe from fragment 1 to the fragment...

7

Solved

So my app is in RTL, and with that, the tabs are now ordered from right to left..! ..But when I swipe to slide between the tabs, it contradicts the common sense, so I want to reverse it..! see the...

6

I'm using TabLayout and viewPager with an option to swipe the viewPager to the left or right in order to navigate between pages. My problem is, that my application is RTL based (right-to-left) and...
Blakeney asked 7/9, 2015 at 17:26

3

Solved

I'm using the Viewpager to switch between 3 fragments, everything is working fine, except the refreshing of the second tab (or fragment). In this tab, I have a picture, some static Textviews, some ...
Exertion asked 20/10, 2012 at 9:35

4

Solved

I have viewPager with several views. the default behavior of viewPager is that the first item is displayed first, then swiping right to left displays the second view right to the current view etc. ...
Domesticate asked 21/11, 2012 at 9:7

3

I am making a file selection page with viewpager2 with FragmentStateAdapter. In one of the pages I show all mounted storage devices on which I would like to tap to view the contents but I want the ...

5

Solved

I have a TabLayout is set up with viewpager. The viewpager is set up with adapter. There are 11 fragments were added to adapter and each fragment has a recyclerview. When I run the app swiping betw...

2

I have a ViewPager2 in one of my fragments (let's call it fragment A). the viewpager uses a FragmentStateAdapter to create a number of fragments as the children (let's call these fragments children...

3

Solved

I have an activity that have 3 fragment inside. I need restart a first fragment in my activity with click on Button. ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager()); a...

1

Solved

I'm using the experimental viewpager for Jetpack compose which is built upon LazyColumn/Row. What I'm trying to do is to set some threshold of how much I need to move my finger before it starts to ...
Ardellaardelle asked 8/10, 2021 at 10:16

10

This question is for the new ViewPager2 class. There is a similar question for the old ViewPager, but the solution requires extending ViewPager. However, ViewPager2 is final so cannot be extended....

© 2022 - 2024 — McMap. All rights reserved.