Accompanist is a group of libraries that aim to supplement Jetpack Compose with features that are commonly required by developers but not yet available.
Questions tagged [jetpack-compose-accompanist]
128 questions
1
vote
0 answers
AnimatedNavHost uses different animations for startDestination
So I use this library com.google.accompanist:accompanist-navigation-animation for Animated Navigation in Compose.
For all screens I set the following animations when I navigate between them, and it works fine with NavController.navigate(route, ...)…

user924
- 8,146
- 7
- 57
- 139
1
vote
3 answers
Accompanist WebView not filling its max size at launch and not scrolling
I'm using the accompanist webview for compose, and when loading the url I need, at launch, the webpage adjusts its size to fit in less than half screen. The website that I need to load works well on Google chrome and in other browsers.
Edit: Here's…

Lydian12
- 33
- 3
1
vote
0 answers
Extra space after last item of horizontal pager in jetpack compose
I have created a horizontal pager and I have tried multiple things but unable to eliminate extra space after last item. Spacing before first item is correct but a lot after last item.
I want last space also to be uniform just like…

Rajat Chauhan
- 11
- 1
1
vote
1 answer
Jetpack Navigation Compose Animation incorrect pop animation
I use the library from the Accompanist Jetpack Navigation Computer Animation, when I press the back button, the animation I prescribed is not performed, but some other strange one.
Video with animation
AnimatedNavHost(navController = navController,
…

Максим Двинов
- 23
- 4
1
vote
1 answer
How can I obtain from which Main Route I came from when using Nested Navigation in Jetpack Compose (NavHost)
I'm using the AnimatedNavHost component in my Jetpack Compose app to manage navigation between different composable routes. I have added multiple navigation blocks to the AnimatedNavHost, and I want to obtain the route (it came from) of a specific…

Ojav
- 678
- 6
- 22
1
vote
2 answers
How do I position ViewPager Indicator CenterHorizontally in JetPack Compose
I'm practicing ViewPager in JetPack compose which is experimental right now.
I was able to successfully make a basic view pager, but when trying to add an indicator, I get an error:
Cannot access 'ColumnScopeInstance': it is internal in…

Edwin
- 565
- 11
- 26
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
1
vote
1 answer
Android. Compose, accompanist pager, how to start pager from specific position with infinite pager?
I'm using com.google.accompanist:accompanist-pager to implement infinite scroll of pages. I implemented everything as described in HorizontalPagerLoopingSample.
I need show my pager starting from third page. But when I set initialPage = 2…

testivanivan
- 967
- 13
- 36
1
vote
0 answers
HorizontalPager with lazy column in a lazy column
I'm trying to make a UI similar to the YouTube channel UI. I've got two lazy columns (I don't know if it's the correct way or not) in a column, in which the first lazy column consists of data regarding the second lazy column and a sticky header.…

Saketh
- 31
- 1
- 5
1
vote
2 answers
How to react to to user scrolling on Accompanist Pager?
The Accompanist Pager documentation suggests reacting to page changes as follows :
val pagerState = rememberPagerState()
LaunchedEffect(pagerState) {
// Collect from the pager state a snapshotFlow reading the currentPage
snapshotFlow {…

J. Doe
- 85
- 12
1
vote
0 answers
revokedPermissions always indicates all permissions revoked in the beginning
In my code, I am checking whether all permissions are revoked with the Accompanist library's MultiplePermissionsState.revokedPermissions method, and, for some reason, it always indicates that all permissions are revoked in the beginning but then…

Raj Narayanan
- 2,443
- 4
- 24
- 43
1
vote
1 answer
Accompanist SwipeRefresh Inside LazyColumn
I'm trying to place a SwipeRefresh layout inside a LazyColumn and scope it to include the 2 item calls and one items call, below a item {LazyRow(inside LazyColumn)} and below another item{}.
So what I'm trying to implement is:
LazyColumn(
…

StylishGentleman
- 31
- 3
1
vote
0 answers
Nested Navigation inside Compose BottomSheet
for my App, I want to use a ModalBottomSheetLayout which is able to have a nested Navigation inside the BottomSheet.
For e.g. the User clicks a Button on the Homescreen and the BottomSheet opens. Inside the BottomSheet is a list of Elements. If one…

Tomasz Sieber
- 11
- 1
1
vote
0 answers
Jetpack Compose navigation animation overlap
I am using accompanist navigation animation library.
framework versions:
compose version = '1.1.1'
accompanist version = '0.23.1'
The problem when we going back:
My current animations:
enterTransition = {
…

Serhii Pokrovskyi
- 332
- 2
- 14
1
vote
1 answer
Showing permissions rationale in dialog using accompanist permissions
I am struggling with figure out how to close a dialog launched to explain denied permissions.
Using accompanist to ask for permissions:
val lifecycleOwner = LocalLifecycleOwner.current
DisposableEffect(key1 = lifecycleOwner, effect = {
val…

lostintranslation
- 23,756
- 50
- 159
- 262