Questions tagged [android-jetpack-compose]
Jetpack Compose is Android’s modern toolkit for building native declarative UI made by Google. If you're targeting desktop with Compose for Desktop, use both this and [compose-desktop] tags.
android-jetpack-compose
13,188
questions
0
votes
1
answer
95
views
Composable recomposing even with strong-skipping mode enabled
I have tested this using Kotlin 2.0.0, 2.0.10-RC and 1.9.20 just to be sure thisn't some weird Kotlin compiler issue. However, I am currently struggling to understand how lambdas affect the ability to ...
2
votes
2
answers
89
views
Android compose: offset at a fraction of parent size
I want to place some composables at specific positions on top of an image. However, the image will be responsive (it will resize), so I can't use Modifier.offset(some_fixed_offset.dp).
Modifier.offset(...
0
votes
0
answers
23
views
How to remove unexpected shadow on ElevatedCard in Jetpack Compose?
I have an ElevatedCard in my app and it looks really good:
and its code is here:
ElevatedCard(
content = {
Text(
fontSize = 20.sp,
text = "All cars",
...
1
vote
0
answers
24
views
How Do You Pass A Function Into Foreground Services In Android Studio
I'm trying to create an application in Android Studio that consists of a timer that runs in the background. To achieve this I'm passing the timer functionality into a foreground service class. However,...
1
vote
1
answer
59
views
There is a delay when saving data into a Room Database
I'm trying to create a stop watch application. Everything works fine at first. The stop watch goes up from the milliseconds, to the seconds, to the minutes just fine. There are two timers, one of the ...
0
votes
0
answers
31
views
"Dagger Hilt: @Binds methods' parameter type must be assignable to the return type error"
I'm working on a Dagger Hilt setup in my Android project and encountered an error when using @Binds methods.
The error message is:
error: @Binds methods' parameter type must be assignable to the ...
0
votes
0
answers
23
views
Dialog in Compose with undesired gap when displayed inside a Transparent Activity
I have a transparent Activity in my code that has the following theme:
<style name="Theme.MyApp.Transparent" parent="Theme.MaterialComponents.Light.NoActionBar">
<item ...
0
votes
0
answers
25
views
Bouncing content inside the BottomSheetScaffold
I want to make navigation in BottomSheetScaffold that involves constant content change and I wanted the bottom shield to smoothly handle resizing for this in the root composable, I use Modifier....
0
votes
0
answers
17
views
Compose Multiplatform - TLS sessions are not supported on Native platform on iOs
I'm using Compose Multiplatform and trying to API call. The process is done without any warning on Android but on iOS i facing this error: "TLS sessions are not supported on Native platform"....
0
votes
1
answer
38
views
Why is my @Composable function in Jetpack Compose called after onResume instead of onCreate?
I'm learning how to develop an Android app using Jetpack Compose, and I'm currently working through understanding the activity lifecycle. I noticed an unexpected behavior: my @Composable function is ...
0
votes
0
answers
11
views
Navigation takes me to an empty page
I want my app to navigate to SearchResults when I first open it so I put the logic to change the uiState in the ViewModel init block. Then I used an if statement to check the ViewModel and navigate to ...
0
votes
2
answers
23
views
How to Achieve a Glassmorphic Background in Jetpack Compose Android?
play music
I'm trying to create a glassmorphic background effect in Jetpack Compose for my Android app. Specifically, I want a background that has a frosted glass effect with a blurred background ...
0
votes
1
answer
44
views
Is there a way to set text overlay bounds so text would not go out of video and also split into multiple lines automatically (Compose)?
I am using Media3 Transformer and Exoplayer to make a TextureOverlay of texts so I can export a video with added static text on it. But I could only fix text size using RelativeSizeSpan and change ...
1
vote
2
answers
37
views
Ripple effect shows a circle on clicked expanding card
After the Compose Material3 1.3.0 ripple API change the ripple effect looks a bit weird on an expanding clickable card, but it doesn't look like it will be fixed soon:
var expanded by remember { ...
-1
votes
0
answers
42
views
DataStore compose multiplatform
I try to use A DataStore instance in compose multiplatform, for desktop
I share this here because i didn't find anywhere else.
If you try to use DataStore in kotlin multiplatform you surely end there ...