14,281 questions
1
vote
2
answers
36
views
Typesafe Navigation crashes with IllegalStateException: You must call setGraph() before calling getGraph()
This is my first Android app. Currently I'm working on the navigation part. Now the issue is, whenever I click the IconButton to navigate to the Add Notes Screen the app crashes with this exception:
...
0
votes
0
answers
23
views
Jetpack Compose TV: Card click not working after returning from long press + fragment navigation
I'm working on an Android TV app using Jetpack Compose inside Fragments.
Here's my setup:
I have Fragment A that contains a TvLazyColumn with multiple custom Card Composables (which wrap a Material3 ...
0
votes
0
answers
36
views
How to make tween animation duration dynamic in compose?
I'm trying to create a form to change the animation duration. I've connected the DropdownMenu's click listener to animTime, and I've verified that animTime does change 3000 -> 300, but the actual ...
1
vote
1
answer
27
views
What makes items in a LazyList be the same `contentType`?
In Jetpack Compose, the LazyListScope.items function is defined as
/**
* Adds a [count] of items.
*
* @param count the items count
* @param key a factory of stable and unique ...
0
votes
1
answer
34
views
Jetpack Compose: Build UI dynamically based on runtime data
I'm working on an Android app using Jetpack Compose where users can customize their own screen layouts to create a native-feeling UI. The layout structure is completely dynamic — at runtime, based on ...
0
votes
1
answer
39
views
Top app bar has extra space for some reason?
I'm new to jetpack and trying to add a top app bar to my app. It works but if you like at the image I have shared there is a bunch of space on the top of the the appear. I made the app bar background ...
0
votes
0
answers
24
views
How to prevent downswipe inside a lazycolumn in a modal bottom sheet using jetpack compose?
I have created a normal modal bottom sheet. Inside the modal bottom sheet, I have a lazycolumn with items.
I have run into the problem that when a user scrolls to the top of the items of the ...
-1
votes
0
answers
38
views
Razorpay takes full screen in android integration
I have integrated razorpay payment gateway in android studio followed by documentation but don't know why when razorpay screen opens it takes entire screen and some content hides behind the navbar and ...
-1
votes
2
answers
53
views
How to observe map change in jetpack compose?
I wanna do some network request and show the list results in jetpack compose. I pass the request params to list widget. But the list widget cannot recompose after the map changed, even added a key.
...
0
votes
0
answers
13
views
How to access RevenueCat PurchaseParams.Builder?
I can't figure out how to use the PurchaseParams.Builder()
The docs use it this way:
Purchases.sharedInstance.purchaseWith(
PurchaseParams.Builder(this, aPackage).build(),
onError = { error, ...
-1
votes
0
answers
67
views
Recompose is not happening if state is changed
I need your help in the following problem.
When I navigate to a SignUpScreen and try to make a signup and force an error (by try to signup with already used email/password combination) I would like to ...
0
votes
0
answers
36
views
Getting "E No adapter attached; skipping layout" on jetpack compose horizontal pager while ui testing
I have a jetpack compose intro screen in my fragment.
super.onViewCreated(view, savedInstanceState)
composeView.setContent {
IntroScreen(
onButtonClick = {
...
0
votes
0
answers
41
views
Android Compose Game: Multi-touch bugs after adding Firebase
A compose game with multi-touch was working fine, then I added Firebase Crashlytics. Now multitouch bugs, won´t recognize second pointer event or only detects at the middle of the screen. Tried gradle ...
2
votes
1
answer
115
views
How to save the scroll state whilst fetching data partially
I was making simple LazyVerticalGrid containing fetched images from public api. At first i was following guide where pagination was used but this api doesnt have pages so i decided to fetch 20 images ...
0
votes
1
answer
43
views
Why Jetpack Compose preview and emulator show different result?
Preview:
Virtual device:
Code:
@Composable
fun ChatView(
recentChat: RecentChat,
onClick: () -> Unit
) {
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp),
...