Questions tagged [jetpack-compose-accompanist]

Accompanist is a group of libraries that aim to supplement Jetpack Compose with features that are commonly required by developers but not yet available.

https://github.com/google/accompanist

128 questions
0
votes
1 answer

Keeping a screen element fixed while transitioning screens in Jetpack Compose

I'm building some screens in Jetpack Compose with the use of androidx.navigation.compose.NavHost and without fragments (the new way). I want to navigate from one screen to another while keeping an element of the screen fixed. For example this is the…
0
votes
1 answer

How to handle permission denied in jetpack compose

Hey guys I want to handle denied permission in jetpack compose. I found PermissionsRequired method in which helpful in my case till now. I got a problem which I explain in detail later. First I'll explain what I did inside this function. class…
0
votes
1 answer

Runtime Bluetooth permission not showing in jetpack compose

I want to request runtime permission. But it only show one request. Can someone guide me how can I achieve this in jetpack compose. I am using compose 1.1.1 and using accompanist-permissions with 0.23.1 version. I declare permission in my manifest…
0
votes
1 answer

Expand navigation material ModalBottomSheetLayout to max or custom height

I'm trying to implement https://google.github.io/accompanist/navigation-material/ and i want to expand modelsheet to custom height or more than half screen but i don't have any idea how to achieve it Currently ModelBottomSheet Wish to expand like…
0
votes
2 answers

Is there a callback function for launchPermission in the Accompanist library

Is there a callback function after executing permissionState.launchPermissionRequest() in the Accompanist Permissions library? I want to execute some code only after it finishes.
0
votes
1 answer

Accompanist webview loads initially and then goes blank

I am using Accompanist Webview for loading webview in my compose application. For some urls the webview is loading initially and goes blank after loading. Anyone faced the same issue? Please help tried webView.settings.javaScriptEnabled = true and…
0
votes
1 answer

Compose Window Insets to move view up when Keyboard is Open, Kotlin IME Animation not working

I'm having a small problem with my implementation of this tutorial: I'm trying to position a Column to the bottom of the entire screen, and then when a text field is focused, I want the Column to rise above the keyboard. I have achieved the…
0
votes
1 answer

Compose-LazyVerticalGrid-Update list item properties on click

I am having a lazy vertical grid which is rendered with a mutable list of items. i want alter the items properties in clicking in it. Classes used: Screen State @Keep data class ScreenState( val isLoading: Boolean = false, var items:…
0
votes
1 answer

Jetpack Compose - Setting dimensions for Accompanist placeholder

The library I'm using: "com.google.accompanist:accompanist-placeholder-material:0.23.1" I want to display a placeholder in the place of (or over) a component when it's in the loading state. I do the following for a Text: MaterialTheme() { var…
0
votes
1 answer

Android Compose: how to get notification permission

I need to get permission to turn do not disturb mode on or off. Normally, without composing I would use the following code and check the result of the launched activity: val mNotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as…
0
votes
1 answer

How to intercept Toggle interactions from WebView using Jetpack Compose Accompanist

I am using Accompanist library to implement WebView changes in Android Jetpack Compose. https://google.github.io/accompanist/web/ WebView( state = state, modifier = Modifier.weight(1f), …
0
votes
1 answer

Remove edge animation in HorizontalPager

I am using HorizontalPager from the Accompanist package and I would like to disable/remove the edge animation. Is it possible? I am building an infinite scroller with just 5 pages. And it is possible to scroll to the first or to the last page before…
Bobrovsky
  • 13,789
  • 19
  • 80
  • 130
0
votes
1 answer

How to check if a composable is on top of the back stack or not?

I have a navigation graph containing a HomeScreen and a MyBottomSheet. For bottom sheets I am using Accompanist Navigation. Both of the destinations share a common ViewModel which is scoped to that navigation graph. From that ViewModel I am exposing…
0
votes
1 answer

Jetpack Compose with Accompanist Permissions to access local files

I want to use a keystore file that I placed in libs directory. i added the permissions in the AndroidManifest.xl
0
votes
0 answers

Accompanist implementation causes rendering error Compose

Implementing Accompanist flowlayout causes rendering problems : implementation "com.google.accompanist:accompanist-flowlayout:0.24.5-alpha" https://google.github.io/accompanist/flowlayout/ Here are my build gradles : app plugins { id…
1 2 3
8
9