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
0
votes
0 answers
bottomsheet by accompanist navigation has different behavior
So, i have 2 bottomsheet composable named DetailCharacter and Synopsis. But this 2 composable behave differently, when i touch outside of the bottomsheet area, the synopsis close the bottomsheet and also popup the route from backstack, but …

lelestacia
- 201
- 2
- 9
0
votes
1 answer
Jetpack Compose - Animating navigation without animating scaffolding topBar and bottomBar
While trying to work with Accompanist's navigation animation tools, I was pretty content with how the animations turned out, but I wanted the top and bottom bars of the screens to not animate along with the content in the middle. Here's the app in…

erdaifuu
- 1
- 1
0
votes
1 answer
Android Compose How do I set the system bars (both status and navigation bars) to same as my TopAppBar container color
As the title indicates, I want to set the system-bars (status and navigation bars) to have the same color as my TopAppBar container color, which has a default color of MaterialTheme.colorScheme.surface.
I have attempted the above in the following…

Nazir
- 155
- 1
- 2
- 7
0
votes
1 answer
HorizontalPager Images are not in equal size in jetpack compose
I want to make same Image size in all pages of HorizontalPager. I am manually added size in Image and it looks perfect. I want to remove the specific size, so is it possible to do in jetpack compose?
HorizontalPager(
count = 5,
state =…

Kotlin Learner
- 3,995
- 6
- 47
- 127
0
votes
0 answers
Google Accompanist Permissions SYSTEM_ALERT_WINDOW not working
I am using Google Accompainst library in my android jetpack compose project to request permissions.
I am trying to request SYSTEM_ALERT_WINDOW permission, but it is not working.
permissionState.status is always Denied(shouldShowRationale=false)
My…

Chandra Shekhar
- 3,550
- 2
- 14
- 22
0
votes
2 answers
How to add multiple items to Accompanist HorizontalPager?
When I create
HorizontalPager(count = 3) {
page -> ComposableName()
}
It just shows same composable multiple times, i can't add few pages and if I try to
HorizontalPager(count = 3) {
Image()
Image()
Image()
}
elements are just stacked…

Osanosa
- 21
- 4
0
votes
0 answers
Kotlin Jetpack Compose Unidirectional flow for Location Service
It's not really a problem but a question, the question is about the flow of getting the location of users, in all respect for MVVM design
I have 4 files
Location Repository
Location Repository Implementation
Location View Model
Location…

RINDAMAN
- 33
- 3
0
votes
0 answers
Android Jetpack Accompanist Permission request does not work
I have try to learn Android jetpack compose.
I am trying to use NotificationServiceListener with accompanist permission library, but it does not work correctly.
I have added the element on AndroidManifest.xml, And the name of Listener…

KiYugadgeter
- 3,796
- 7
- 34
- 74
0
votes
0 answers
Android Compose how to test group of Boxes?
I practice writing ui tests. Now for practice, I decided to write tests for HorizontalPagerIndicator (accompanist).
As you can see inside the HorizontalPagerIndicator is drawn n boxes…

testivanivan
- 967
- 13
- 36
0
votes
0 answers
Jetpack compose navigation transition transformOritin from touch position
I would like to set the TransformOrigin of a scaleIn transition to the position of the button clicked to execute the naviation.
I am using ComposeDestinations by raamcosta
@OptIn(ExperimentalAnimationApi::class)
object DetailTransitions :…

mama
- 2,046
- 1
- 7
- 24
0
votes
0 answers
Android compose Accompanist pass argument during navigation
original compose code looks like this:
composable(
"profile?userId={userId}",
arguments = listOf(navArgument("userId") { defaultValue = "user1234" })
) { backStackEntry ->
Profile(navController,…

a new name
- 3
- 2
0
votes
2 answers
How to expand box to fill max size and change its zindex when clicked in Jetpack compose with animation
The screen replicates a video call screen.Please see the image.
.
There are 2 boxes - green and black.
Green box - Remote camera view.
Black box is local camera view .
What I need is when clicked local camera view (black box) , it should expand…

Harish Padmanabh
- 307
- 4
- 17
0
votes
1 answer
Accompanist HorizontalViewPager delay in transition when swiping
I am using HorizontalViewPager from the Accompanist library, and one thing I've noticed is a delay in page transitions when swiping.
For some reason the page only really changes the text when you have swiped more than halfway through the next page.…

thebluepandabear
- 263
- 2
- 7
- 29
0
votes
0 answers
Android. Compose accompanist: how to reacting to page changes with infinite pager?
I'm using com.google.accompanist:accompanist-pager to implement infinite scroll of pages. I implemented everything as described in HorizontalPagerLoopingSample.
Everything works well, however, I need to track the change of the page, that is, on each…

testivanivan
- 967
- 13
- 36
0
votes
0 answers
Compose Accompanist Pager: Color for itemSpacing
I have migrated an app using androidx.viewpager.widget.ViewPager to Jetpack Compose with HorizontalPager from Accompanist. Viewpager had a method setPageMarginDrawable that allowed me to have a simple vertical divider between pages. I was able to…

mtotschnig
- 1,238
- 10
- 30