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
0
answers
16
views
How come, adding a Column to this layout make the app crash
After many hours of debugging and code-simplification, my app looks like the following:
just a bunch of unpopulated cards that you can navigate around using direction arrows, the problem is that if ...
0
votes
1
answer
21
views
Why do lambdas called after re-composition?
I use MVI architecture in my app.
I have a Navigation composable, which handles the navigation related stuff.
I noticed that, when the screen changes (backStackEntry) changed, all of the lambdas are ...
1
vote
0
answers
33
views
Lazy Column with Scrollable Gradient background in Jetpack Compose
I'm working on a Jetpack Compose app having a Scaffold layout. My layout includes a title, a tab bar, and a LazyColumn. I want to create a gradient background that scrolls with the LazyColumn content ...
0
votes
0
answers
15
views
Custom marker with text in Google Maps in Jetpack Compose
In my Jetpack Compose project I want to use markers in Google Maps.
I want marker to have text below, like this image
How can I do this?
GoogleMap(
googleMapOptionsFactory = {
...
0
votes
0
answers
10
views
Is there a way we can use same navController in two different navHost in android jetpack for type safe navigation
I am using a bottom navigation in android jetpack
@Composable
fun BottomNavigationBar() {
val navController = rememberNavController()
var navigationSelectedItem by remember { mutableStateOf(...
1
vote
1
answer
35
views
First draggable item is not on top of other items in a Row while it's dragged on Jetpack Compose
I have a collection of five items, all of which are draggable. I want to achieve behavior in which the dragged item will overlap all the others. I tried changing the zIndex parameter but it didn't ...
0
votes
1
answer
26
views
How to test that recomposition hasn't happened?
I had a bug where recomposition was pointlessly happening on list items in my lazyColumn when only 1 item was modified. The issue is fixed now, but in spirit of TDD I want to create an Android test ...
1
vote
3
answers
51
views
Why is my size variable not updating correctly in Jetpack Compose?
I'm learning Jetpack Compose and created a simple example to understand state management. I have a button that updates a width variable, and I want to calculate a size based on the width and height ...
0
votes
2
answers
43
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 ...
-1
votes
1
answer
30
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 ...
0
votes
0
answers
11
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:
<...
1
vote
0
answers
21
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
9
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
18
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 ...
2
votes
2
answers
39
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 ...