14,330 questions
-1
votes
0
answers
19
views
How i remove Drawer Routes From BackStack in jetpack compose?
In my app i have both Bottom bar and a navigation drawer.
The screens related to bottom bar are(Home, Search, Library, Premium, Create),
Navigation drawer are (news, history, settings).
My problem is ...
1
vote
1
answer
51
views
Unresolved reference 'AnchoredDraggableDefaults when generating Release Build
I am using anchoredDraggable in my project to implement Swipe Control in Compose. I am using Compose BOM 2024.09.00 in my project.
When I start a debug build, the project builds well and launches the ...
0
votes
1
answer
29
views
Android Play Asset Delivery (install-time) issues in native Kotlin Jetpack Compose app
Can somoene please explain to me, how to properly setup Play Asset Delivery for my android jetpack compose kotlin native app?
I have tried many setups, and tested many things. Here is my current setup:...
0
votes
0
answers
41
views
how to align Text and IconButton composables in a grid
Using Jetpack Compose on Android, I am trying to layout a lot of IconButton in a grid with Text headers on the columns and rows. I'm using Modifier.weight. As you can see from this example, Text and ...
1
vote
1
answer
68
views
Swipe moves to the last anchor even when finger not released from swipe control while dragging
I am trying to implement swipe control in my app, using the Compose BOM 2024.09.00.
Currently when swiping right, as soon as the threshold is reached - i.e. half of the swiping is done - the swipe ...
3
votes
1
answer
85
views
Accessing a lambda's parameter leads to "Assignment type mismatch: actual type is 'Unit', but 'String' was expected"
I'm trying to pass a click handler to a child function that sends a string back to the parent and updates a mutable value based on the string. I'm getting an error on the function:
Assignment type ...
2
votes
1
answer
89
views
I can't launch the app because of the TextField element [closed]
I'm trying to work in practice with the TextField markup element, but at the moment I'm facing such a problem that when using the onValueChange parameter, I get an error. Here is the full function ...
0
votes
0
answers
92
views
Admob App open ad close button stuck showing loading indicator instead [closed]
In my Android app i used the Admob's App open ads. And it My App opens the App open ads show but user can’t close it because it does not show the close icon instead it shows the laoding indicator.
1
vote
0
answers
67
views
Screen transition effect, which shows underlying screen
I am trying to replicate a screen transition effect in Compose, similar to the one used in Poweramp's UI (swiping from the edge to reveal the previous screen which simultaneously scales in the ...
4
votes
1
answer
140
views
AdMob App Open Ad: Close button stuck in loading state/spinner and cannot be dismissed
I am experiencing a critical issue with AdMob App Open Ads where the ad displays, but the user cannot dismiss it. Instead of the "Close" or "X" button appearing after the ...
Advice
0
votes
1
replies
82
views
How to create similar comments section found in youtube, reddit etc in jetpack compose?
I am trying to create the visual and functional comment section in jetpack compose similar to youtube or reddit, see the images below. I have tried a few approaches but cant really replicate the way ...
0
votes
0
answers
76
views
Compose crashes with "class [...] cannot be cast to class [...]" when switching between two types that inherit from the same class
This bug requires some setup but I tried to reduce it as much as possible.
The app
I'm working on a compose desktop app that has different "modes". Each mode has its own UI and business ...
3
votes
0
answers
83
views
How to announce page context ("Page X of Y") in HorizontalPager in Jetpack Compose with a11y?
I am building a custom selector component in Jetpack Compose. It consists of a HorizontalPager where each page contains a LazyVerticalGrid of selectable items (acting like Radio Buttons).
The problem: ...
0
votes
0
answers
82
views
Room 2.8.4 KSP error: Cannot find required type element LimitOffsetPagingSource
I'm experiencing an error while compiling my Android project after switching a DAO return type from List to PagingSource.
The DAO query looks like this:
@Query("SELECT * FROM track_table WHERE ...
3
votes
1
answer
109
views
How to handle close (X) button action in PiP mode?
I'm developing an Android application using Jetpack Compose. I have a screen with a video player that supports Picture-in-Picture (PiP) mode. Entering PiP works correctly and the video continues ...