Category "android-jetpack-compose"

compose NavHost Start the white Screen

My app starts with navigation globally, but I found that when I set the following code, the app will remain blank after startup unless I manually touch the scre

Jetpack Compose recomposition animation

Is there any easy way to animate Composables appearing/hiding? I tried to implement this using AnimatedVisibility and AnimatedContent, but in my particular case

Layout inspector not showing composables tree

When I use Layout Inspector in a running compose app on a device, I do not obtain the composables tree but the view system tree. How to see the composables tree

Jetpack Compose Change Slider Thumb Size

Is there any way to change slider thumb size? I think for now we can only manipulate colors var sliderPosition by remember { mutableStateOf(0f) } Text(text = sl

Android Compose: draw transparent circle on image

I have an image and I want to draw dark rectangle over it with a transparent circle, so the result will be something like this: I have ended up with this code:

How to make Dialog re-measure when a child size changes dynamically?

I implemented a simple dialog with Jetpack Compose on Android. I am trying to show a caution message when isRehearsal is true. The variable isRehearsal is toggl

Jetpack Compose navigation: login screen and different screen with bottom navigation

My goal is to to have a LoginScreen from which I can navigate to an InternalScreen. The InternalScreen should have/be a bottom navigation bar that can navigate

Compose's "AndroidView"'s factory method doesn't recall when "remember" value change

I've an AndroidView on my UI and I'm creating a custom view class using factory scope. And I've remember value above my android view which is changing by user a

How can I add a stickyHeader to LazyVerticalGrid like LazyColumn in jetpack compose?

I want to achieve a UI effect like this: <GridView> <Title of Grid content in a single row /> <Grid content arranged in the form of n * 3

How to change Jectpack Compose BasicTextField's text color?

I'm trying to make a search bar using BasicTextField. The default text color is black and I couldn't find any option to change the text color. Also I need to ch

How to display .svg Image URL in JetPack Compose? [duplicate]

I have svg image Url, I want to display the image in Jetpack Compose.

super.Composable function crashes at text input

App crashes when trying to type in TextField that is in superclass (video: https://imgur.com/a/6RNc2mU) Exception: E/AndroidRuntime: FATAL EXCEPTION: main Proce

Jetpack Compose Slider in LazyColumn changing while scroll

I have a list that includes Slider the problem is when I scroll the slider detecting the tap event and change it, see attached gif The excepted behavior is whe

Layout not moving up when keyboard is open in Jetpack Compose

I have a layout in Jetpack Compose where I have a couple of composables (text view and input) that I need to stay at the top of the screen, and then another com

How to call keypress event programmatically for TextField using jetpack compose, android?

When user type in TextField it will call onValueChange{} callback. but when we set the value in TextField the onValueChange{} callback will not call. I found ht

Sharing viewModel within Jetpack Compose Navigation

Can anyone suggest how to share a ViewModel within different sections of a Jetpack Compose Navigation? According to the documentation, viewModels should normall

Passing uri between compose screens causes: SecurityException: Permission Denial

I receive a uri in screen "A" by: val launcher = rememberLauncherForActivityResult(ActivityResultContracts.StartActivityForResult()) { activityResult ->

Backend Internal error: Exception during psi2ir in Jetpack compose

I am getting this error during compilation or code generation, I have set the Jetpack Compose dependencies and working on it, I have made some compose component

OnKeyEvent without focus in Jetpack Compose

I am creating an app that makes use of a physical button on the device. This button will have a different functionality depending on the screen that is active.

How request permissions with Jetpack Compose?

How should be implemented requesting permission from Jetpack Compose View? I'm trying implement application accessing Camera with Jetpack Compose. I tried examp