Skip to main content

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
0 votes
0 answers
6 views

Timer Increments By One Whenever User Tries To Reset It Back To Zero In Android

I made a standard stopwatch app in Android Studio using jetpack compose. It gives the user the ability to reset the stopwatch back to zero, however there is a problem. The stopwatch will reset back to ...
Bob Rasner's user avatar
0 votes
0 answers
11 views

How to display text beside marker in Google maps in Jetpack Compose

I am using Google Maps in my jetpack compose project. I want to display text beside the marker. I tried using Marker() it shows a marker but not text. It shows text when I click on the marker but I ...
Pawandeep Singh's user avatar
0 votes
0 answers
10 views

Can xml theme attributes be overridden or ignored in compose dialogs?

When trying to use the material 3 AlertDialog in my native xml/compose Android app the AlertDialog background is not transparent. In my xml app theme I'm using the following custom dialog theme: <...
Sasha's user avatar
  • 1
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 ...
appeldaniel's user avatar
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: ...
AdrienM's user avatar
  • 65
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 ...
Michal Rymarski's user avatar
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 ...
exprnc's user avatar
  • 1
1 vote
2 answers
27 views

Unable to create updated UI with new image in JetPack Compose

I'm trying to create simple Dice Roller JetPack Compose App. I create an Image compose and button compose. Whenever I click on the button, log statement shows button is clicked but I'm unable to ...
Aamir Khan's user avatar
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. ...
CodingBruceLee's user avatar
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 ...
Thai Manh's user avatar
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 ...
Hossam Sadekk's user avatar
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 ...
NullPointerException's user avatar
0 votes
1 answer
22 views

How to change the color of the TextField cursor handle in Compose Material 3?

Specifically, the CompositionLocalProvider approach works for a BasicTextField but not for a TextField: val customTextSelectionColors = TextSelectionColors( handleColor = Red, ...
Peter's user avatar
  • 737
-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 ...
Rasik Mohammed's user avatar
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 (...
Always Learner's user avatar

15 30 50 per page
1
2 3 4 5
879