All Questions
Tagged with android-jetpack-compose android
10,165
questions
0
votes
0
answers
17
views
How to run a function when navController.popBackStack() is called in Jetpack Compose?
I have a list of "clients" which are presented using a lazy column on a screen. I am able to enter each client (navigate to another screen) and edit the information of this client, but when ...
1
vote
1
answer
8
views
SharedTransition lookaheadRoot has not been initialized
Using SharedTransitions in Jetpack compose, I got the following error :
FATAL EXCEPTION: main (Ask Gemini)
Process: com.example.bacasable, PID: 10130
kotlin.UninitializedPropertyAccessException: ...
0
votes
0
answers
14
views
Why isn't my data updating in child composables?
Im collecting data from my db in my viewmodel. I know its being updated in BottomSheetEditContent, but i don't know how to make it show its's value (the one collected from viewmodel) in child ...
0
votes
0
answers
30
views
How to add a click listener to an Image created with DrawScope drawImage?
I'm trying to make an interactive map (scheme) with clickable markers. To handle gestures I use ZoomableImage from implementation("de.mr-pine.utils:zoomables:1.4.0"). To draw markers I use ...
0
votes
0
answers
22
views
How to make a Drag and Drop with LazyColumn in Jetpack compose?
I'm making a feature called DragAndDrop with LazyColumn.
To implement this feature, I referred to an article by Suraj Sau.
The article is great but it's slightly different from what i want to make.
...
0
votes
1
answer
31
views
How i can re-execute StateFlow in ViewModel Android? I have use case where i needs to do refresh of data
I am trying re-execute StateFlow in ViewModel (refresh something, new API request...), but it not work. This is my simple example about counter:
Viewmodel
class CounterViewModel(
private val ...
0
votes
0
answers
18
views
Unresolved reference when adding module dependency in Gradle for Compose Multiplatform project
I'm having trouble resolving a module dependency in my Compose Multiplatform project. I have a module named designSystem under the path composeApp:core:designSystem, and I'm trying to include it in my ...
0
votes
1
answer
31
views
Composable inheritance... how to add padding to inherited content?
I want to do some kind of Composable Inheritance. I need a parent composable with a Scaffold, and the children must have the inner content to the scaffold. How can I apply the innerPadding to the ...
-1
votes
0
answers
9
views
Mongo DB Driver for Android Native Jetpack Compose. I do not want to use Mongo DB Realm or Atlas App [closed]
Mongo DB Driver for Android Native Jetpack Compose. I do not want to use Mongo DB Realm or Atlas App.
Expecting to get a library or mongo db driver. just like pymongo for python. I do not want to use ...
1
vote
0
answers
28
views
How to keep the button over the other elements even if it is disabled in Jetpack Compose?
I have a screen where I display a list of items:
Scaffold(
content = {
//List of items
},
floatingActionButton = {
Button(
onClick = {
if (...
0
votes
2
answers
37
views
TextField data is not getting clear
When the user enters a password value and cancels the dialog, the dialog is pre-filled with the previous password, but the email is successfully cleared. However, the password is not cleared. If I ...
0
votes
0
answers
11
views
How to know if item is highlighted by TalkBack frame?
I'm working on accessibility issues in my app, written in Kotlin using Jetpack Compose. I have a bug that I think I can solve if I could know when a UI component is highlighted with a TalkBack frame - ...
0
votes
0
answers
30
views
Android. How to show button above keyboard on bottom sheet dialog?
I'm using BottomSheetDialogFragment with composable content:
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?,
): ...
1
vote
1
answer
37
views
Compose: Using SnapshotStateMap to avoid recomposition of every item in a map
I have an app that reads properties from a file. The file can be changed outside of my application, it can be deleted or fully replaced. My goal is to read the .properties file and show a preferences ...
0
votes
0
answers
15
views
Android animatedVectorResource causes Resources$NotFoundException
I'm trying to use AnimatedImageVector.animatedVectorResource to display an animation in Compose, but every mentioned call causes an exception:
android.content.res.Resources$NotFoundException: Resource ...