Skip to main content

All Questions

0 votes
0 answers
15 views

How to suspend coroutine in a composable function until a specific value appears in a SnapshotStateList

How to properly wait for a specific value to be added to a SnapshotStateList defined in a ViewModel from a Composable function. My current implementation executes immediately without waiting for the ...
Takana's user avatar
  • 33
1 vote
1 answer
26 views

How to update a value of a UiState on a StateFlow?

Having this on my viewmodel: val uiState: StateFlow<BusStopsDBScreenUiState> = busDataRepository.getBusStops() .map<List<BusStop>, BusStopsDBScreenUiState> { busStops -> ...
NullPointerException's user avatar
0 votes
1 answer
39 views

Why is the shadow not showing on my NavigationBar in Jetpack Compose?

I’m using Jetpack Compose and trying to implement a NavigationBar with a shadow, but the shadow isn’t displaying as expected. Here’s the code I have so far: @Composable fun MainScreen() { val ...
AmirSina01's user avatar
0 votes
0 answers
24 views

Jetpack Compose Navigation navigate build backstack when navigating

I have the following nested graph: @Serializable private data object Onboarding @Serializable private data object OnboardingScreen1 @Serializable private data object OnboardingScreen2 @Serializable ...
Niklas's user avatar
  • 25.2k
-1 votes
0 answers
18 views

Content is not allowed in prolog in running Gradle in Jetpack compose

What is the solution to "Content is not allowed in prolog", in Kotlin Jetpack Compose when running your code. What can I do to solve that? The error is failing to allowed the gradle(sync) to ...
Phinehas Nehemiah's user avatar
0 votes
1 answer
35 views

Modal bottom sheet - How do I set the height of the modal

How do I set the height of the modal? On a larger screen the modal appears whole, on a smaller screen it takes up about 80% of the screen. I tried LocalConfiguration.current.screenWidthDp but it didn'...
JOJ's user avatar
  • 37
0 votes
0 answers
26 views

I want to use a SpeedoMeter widget with compose UI for my android project but i can't figure out how to add it

I am using the following repository as a reference: https://github.com/anastr/Speedometer/tree/master I have a native Android project and have added the dependencies mentioned in the repository to my ...
loloLemon's user avatar
0 votes
0 answers
28 views

Build Failed Android Studio Kotlin Jetpack compose

I've been trying to run my app for days with no success here's the error output BUILD FAILED in 8m 32s 48 actionable tasks: 2 executed, 46 up-to-date Configuration cache entry reused Exception is: ...
Ernest Muhumuza 's user avatar
0 votes
0 answers
84 views

Fragment not recreated onBackpressed after integrating Jetpack Compose in kotlin android project

In my Android project that uses fragments. Everything was working as expected until I integrated Jetpack Compose into the project. After adding Compose, I'm facing an issue where my fragments are not ...
elliot's user avatar
  • 51
-2 votes
0 answers
42 views

Custome shape bottom navigation bar

How do i make this shape in Jetpack Compose? The middle seems like a floating button but I want to treat it as part of the bottom navigation since it is also a navigation (the main one to be exact) ...
No_Name's user avatar
  • 160
1 vote
0 answers
32 views

How to use a custom Activity with AndroidView in Jetpack Compose?

I am building a Jetpack Compose application and need to extend an Activity (e.g., BrightcovePlayer) to handle specific logic and states. My goal is to integrate this custom Activity into a Jetpack ...
Zurriaga's user avatar
0 votes
0 answers
25 views

Dialing and emergency number on android using kotlin and jetpack compose

I need to dial an emergency number from my app and from what I understand by reading the docs, I need to implement emergencyDial in IRadio.hal and implement emergencyDialResponse in IRadioResponse.hal ...
Mervin Hemaraju's user avatar
1 vote
0 answers
21 views

How to integrate BrightcovePlayer into a Jetpack Compose application?

I am developing a fully Jetpack Compose application, and I need to add functionality to play videos using BrightcovePlayer. The issue is that BrightcovePlayer extends Activity, and I can't directly ...
Zurriaga's user avatar
3 votes
1 answer
61 views

Android Compose MutableStateFlow: Adding to Set does not invoke recomposition

There are many similar questions about this, but usages have been changing; this is the only question I've found that talks specifically about MutableSets, MutableStateFlows, and collectAsState(). The ...
SMBiggs's user avatar
  • 11.6k
0 votes
0 answers
31 views

StickyHeader with pagination in Jetpack Compose

I tried adding a stickyHeader as suggested in this answer. However, the performance is not close to the production-ready code because of the loop as my list is a bit bigger. Here is my attempt: ...
Safeer's user avatar
  • 1,467

15 30 50 per page
1
2 3 4 5
421