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
1 answer
How to keep bottom sheet in backstack when navigating forward?
I am using Accompanist Bottom Sheet Destinations in my project. The setup is exactly the same as shown in docs.
@Composable
fun MyApp() {
val bottomSheetNavigator = rememberBottomSheetNavigator()
val navController =…

Arpit Shukla
- 9,612
- 1
- 14
- 40
1
vote
3 answers
Applying bottom padding to navigation bar
I'm using the BottomNavigation from Accompanist and I want to have it drawn behind the navigation bar. I get the navigation bar insets from WindowInsets.navigationBars.getBottom but this value is way too high and creates a large gap (see image). How…

Francesc
- 25,014
- 10
- 66
- 84
1
vote
0 answers
HorizontalPager the next page touches the first one
I'm trying to use HorizontalPager (Android compose) but I have a problem.
As we can see, the next page touches the first one,
I took here a random image with a black background to see better.
do you know how i can solve this…

Ali
- 41
- 1
- 4
1
vote
1 answer
How can i animated scroll to page when using HorizontalPager without see middle screen(s)?
Since I have multiple screens on the same page, I want to switch animatedly, but I don't want the pages in between to appear.
Let's say i have three screen:
@Composable
fun FirstRedScreen(
pagerState: PagerState
){
val coroutineScope =…

commandiron
- 1,019
- 1
- 9
- 25
1
vote
1 answer
Webview not properly sized Jetpack compose (Autosizing Webview Composable)
I need to use WebView in place of Text composable (to display complex text and maths). Size of the WebView will depend on amount of content(text). But currently it only works when a fixed size modifier is applied. Without fixed size; WebView…

Shreyash.K
- 487
- 4
- 14
1
vote
1 answer
Crash of app on open app when using compose 1.2.0-alpha02 and AnimatedNavHost
my app crash on startup when I use animation with navigation via AnimatednavHost of accompanist with new alpha version of compose.
compose version:.2.0-alpha02
accompanist version :0.20.3
crash:
E/AndroidRuntime: FATAL EXCEPTION: main
Process:…

Javad Jafari
- 75
- 1
- 5
1
vote
1 answer
Jetpack compose navigation closes app instead of returning to previous screen
I have implemented the accompanist navigation animation library in my project and have stumbled into two issues. The first issue is that the animations aren't being applied when navigating from one screen to another. The second issue is that the…

Max Michel
- 575
- 5
- 20
1
vote
1 answer
launchPermissionRequest() in jetpack accompanist does nothing
In my app I have to ask for permission to write to external storage in order to save bitmap for ability to share it. Now looking at the code below, whenever I call it, alert dialog appears, but no permission request appears from Android itself. All…

Captain Jacky
- 888
- 1
- 12
- 26
0
votes
0 answers
Accompanist TestHarness doesn't change the LocalConfiguraiton screenWidthDp when size parameter is provided
So I am trying to add a UI UnitTest in our app. And tried using the TestHarness from Accompanist to test our app in small and large screen device.
I provided the parameter size and in their documentation it would modify the LocalDensity and didn't…

SquareBox
- 823
- 1
- 10
- 22
0
votes
0 answers
Custom layout - Jetpack compose - Cloud layout design like Apple store app
Hi i am struggling to build a custom layout for a list of images which is placed and sized like in cloud. .
The first element in the list have to be placed in the center and the other set elements is placed around the first item. Rest of the…

Harish Padmanabh
- 307
- 4
- 17
0
votes
0 answers
ExoPlayer issue using AndroidView in LazyColumn Compose
I am trying to have a videoplayer (using ExoPlayer occupying half of the screen's height) at the top of the LazyColumn and list of items below the video player using compose. The list of items redirects to a details screen. I am using navigation…

srinu
- 1
- 2
0
votes
2 answers
Drawing content over safearea in material3 with jetpack compose does not work
I am using the latest BOM version of jetpack compose: implementation platform('androidx.compose:compose-bom:2023.06.01') align with materail3. I need my content to ignore safe area. I have already tried the solution of using accompanist library for…

BraveEvidence
- 53
- 11
- 45
- 119
0
votes
0 answers
How to request USB permissions in Jetpack Compose with Accompanist?
I am migrating a Android app to Jetpack Compose. Following this connectivity USB tutorial I requested USB permissions on the usb device that I am trying to connect.
Now with Jetpack Compose I think accompanist is the recommended approach to handle…

Exprove
- 1,301
- 2
- 18
- 32
0
votes
0 answers
Make bottomBar in compose android scaffold as transparent
In Android Jetpack compose,
I have a root level ModalBottomSheetLayout.
In its content, I have a Scaffold. Scaffold content has a list of data shown.
In bottomBar I am showing a logo with some top & bottom padding inside a Column. I want that this…

Ujjwal Kumar Maharana
- 219
- 1
- 5
0
votes
1 answer
Animating (or setting to fully transparent) StatusBar in Jetpack Compose
I've encountered a problem with transitioning between screens in Jetpack Compose. By default when we navigate in Compose it applies CrossFade animation. The problem is that my second screen has totally different color, so i want StatusBar and…

Pavel Maiseichyk
- 3
- 2