android-viewpager Questions

2

Solved

Box( modifier = Modifier.size(100.dp), contentAlignment = Alignment.Center ) { val pagerState = rememberPagerState() val items = listOf("A", "B", "C") androidx....
Bathe asked 16/2, 2023 at 6:24

6

Solved

I'd like to disable all the animations for the transitions in my custom ViewPager. This view pager contains four tabs -and each tab loads a Fragment- and what the view pager does is to switch the t...
Passport asked 4/2, 2013 at 10:36

5

Solved

I have a CoordinatorLayout with a Toolbar and a TabLayout inside the AppBarLayout. Additionally, I have a ViewPager inside the CoordinatorLayout but outside the ViewPager. The problem is that the...

4

How can I disable the preloading in a viewpager?. I have a viewpager with 3 pages. So i dont want load the next page and previously page. How can i disable that behavior?
Howlet asked 30/5, 2014 at 16:23

2

I have main fragment with ViewPager2 that contains other fragments. Each child fragment can open another detail fragment (main fragment replaced with details fragment). When I go back to from detai...

4

I have used android view pager to display images and text now what i want is that if a user is not changing the images then it should start to change the images automatically after a few seconds an...
Heinous asked 6/4, 2012 at 10:56

11

Solved

Probably many of you (as me), have problem with creating ViewPager with bottom dots, like this: How do you create such an Android ViewPager?
Allow asked 19/7, 2016 at 12:58

37

Solved

I'm getting user reports from my app in the market, delivering the following exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.Fragme...

16

Is there a way to make a ViewPager that does not scroll horizontally, but vertically?!
Katharina asked 20/11, 2012 at 16:38

16

Solved

I have an Activity with a ViewPager. I also have a Dialog that will retrieve a list with some items that the user will choose. Now, how can I update the Fragment where the Items are supposed to dis...
Upset asked 6/8, 2013 at 18:43

7

Solved

I need to place a ViewPager inside of a fragment, but I have two fragments, Fragment 1 is my MENU, and Fragment 2 I want to use as a ViewPagerIndicator. But a fragment can't have another fragment...

7

What I want to achieve From a FragmentActivity show a dialog when clicking an Action Button in the Action Bar DialogFragment - A Dialog without title TabHost - Tabs at the top of the dialog ViewP...

10

Solved

Okay, so I'm developing an Android app that utilises a ViewPager to display pages. Within each page, I have a set of buttons to use for navigating between pages (in addition to the swiping between...
Pronator asked 1/6, 2012 at 15:3

5

Solved

I created a ViewPager and everything is working fine, however I want to have a previous next button outside of ViewPager which can be used to navigate inside ViewPager. How can I go to next Item on...
Rite asked 18/10, 2011 at 3:3

5

I have a TabLayout and inside that I have ViewPager. I need to dynamically add and remove tab in tablayout(material design). I can able to add the tabs dynamically but while removing the tab, tab i...

4

Solved

I'm trying to achieve a layout that shows a view pager when the device is shown on portrait and show two panes when device is on landscape. So I made two different layout files, one with only a Vi...

4

Solved

I use a ViewPager2 inside another ViewPager2. Because of this, the slide only works for the root ViewPager. How to make both ViewPager work?
Straightjacket asked 25/5, 2020 at 22:1

5

Solved

Using a PagerSlidingTabStrip with a Viewpager inside of a fragment: The main Activity contains a "main fragment" that changes depending on what item you click in navigation drawer. When loading t...

19

Solved

I've got this strange issue, ViewPager's setCurrentItem(position, false) works perfectly fine, then im switching to another activity, and after I'm back to the first activity, the ViewPager always ...
Clarettaclarette asked 11/10, 2013 at 11:12

19

Solved

I have a ViewPager, and I'd like to get the current selected and visible view, not a position. getChildAt(getCurrentItem) returns wrong View This works not all the time. Sometimes returns null, ...
Usurious asked 12/10, 2012 at 8:8

10

Solved

I have an android application that employs a ViewPager with two pages When the activity first displays i would like to present each page in turn to the user so that they know they can swipe between...
Telemann asked 12/7, 2013 at 7:51

2

Solved

I implemented a simple HorizontalPager which works mostly as expected. The app I develop is for one specific device, a 8" Tablet in landscape mode. At the moment it is required to swipe more t...

11

Solved

When I try to scroll list, sometimes this works incorrect - BottomSheet intercepts the scroll event and hides. How to reproduce this: Open Bottom Sheet Change a page of ViewPager Try scroll the ...

2

I'm building a registration page with jetpack compose and I have implemented it in a horizontal pager linked with TabRow to display signup and login page respectively but when I swipe to the other ...
Nosepiece asked 1/12, 2022 at 10:54

4

Solved

How can I disable the preloading in a ViewPager? I have a ViewPager with 3 pages fragment in each page. So I don't want to load the next page and previous page. How can I disable this behaviour? ...

© 2022 - 2024 — McMap. All rights reserved.