Questions tagged [android-jetpack-compose-pager]
9 questions
6
votes
2 answers
Horizontal Pager with Paging3 in Jetpack Compose
There are two screens in my app. The first screen shows the list of images on the device by using the Paging3 library in a vertical grid. Now, when the user clicks on an image, I am passing the click position to the second screen where I am using…

Mehul Kanzariya
- 888
- 3
- 27
- 58
5
votes
2 answers
Jetpack Compose - HorizontalPager item spacing/padding for items with max width
Using Jetpack Compose and the accompanist pager, I'm trying to create a HorizontalPager where:
Edges of items to the left and right of current item are shown
There is a max width to the Pager items
As an example, I wrote the following code (for…

JHowzer
- 3,684
- 4
- 30
- 36
4
votes
1 answer
How can I handle with multiple TextField focus in Jetpack Compose Pager?
I have a pager. It has a TextField on each page. I'm doing the transitions with animateScrollToPage(). How can I get the TextField on each page to come with focus?
When I give Modifier.focusRequster() to the TextField and check index =…

sss sss
- 154
- 6
4
votes
0 answers
Compose Horizontal Pager items with same height but minimum of item width
I am new to compose and currently am facing problem when trying to create HorizontalPager. Previously it was displayed so that pager item fills width and then height is same as width:
Surface(
modifier = Modifier
.fillMaxWidth()
…

matip
- 794
- 3
- 7
- 27
1
vote
1 answer
Android NumberPicker widget is not working properly in Jetpack Compose HorizontalPager
NumberPicker (android.widget.NumberPicker) is not working properly while placed in Jetpack Compose HorizontalPager
Middle number disappears after scrolling away 3 pages and then return to a picker page:
It happens hence pager keeps composed only 3…

Merkost
- 1,251
- 9
- 16
0
votes
0 answers
Android Compose, the right page of the HorizontalPager stays on top
I'm trying to create a new library, but I've hit a roadblock with a particular issue, and I want to solve it. Android Compose, the right page of the HorizontalPager stays on top, but I want it to appear below the current page. How can I do?
Image…
0
votes
0 answers
How to pass drag interactions through an overlay composable, but capture tap interactions in Jetpack Compose?
I have a hierarchy of two views laid on top of each other. The bottom one is a HorizontalPager, and the top one is an overlay. The overlay is transparent, but has a logic where it shows information when user taps the overlay.
In (pseudo-ish) code,…

manabreak
- 5,415
- 7
- 39
- 96
0
votes
0 answers
Android Compose : background on Pager
I have a vertical VerticalPager with 2 pages.
I would like to make a background (for my case it is a gradient which begin on top of page 1 and finish at the bottom of page 2.
It is possible in Android Compose ?
Thank you.

Tonio
- 391
- 3
- 5
0
votes
1 answer
Compose - Scroll VerticalPager to the top when outer HorizontalPager is scrolled
I have a VerticalPager inside HorizontalPager.
When I scroll VerticalPager down to the Nth page in the 1st page of the HorizontalPager, then scroll to other pages in HorizontalPager, then come back to the 1st page of the HorizontalPager the Nth page…

SpiralDev
- 7,011
- 5
- 28
- 42