14,343 questions
0
votes
0
answers
14
views
Animating Svg path in the desktop compose app flickers without actually rendering anything. Why?
I am trying to create a path animation of Svg in the desktop compose app.
fun SvgDocument.drawCompletedFills(buildPaths: List<BuildPath>, drawScope: DrawScope, canvas: Canvas, targetLength: ...
0
votes
1
answer
28
views
Latest version of Compose Maps dependency throws "IllegalArgumentException: source must not be null"
When using com.google.maps.android:maps-compose in version 6.12.2 I get the following error building the project:
org.jetbrains.kotlin.util.FileAnalysisException: While analysing <redacted>/...
Advice
0
votes
1
replies
18
views
Android Jetpack Compose UI testing: equivalent of espresso clearFocus()?
It is common to test inline errors by filling out a textfield and then clearing focus, as the validation happens after the user is done with it. In espresso that can look like:
onView(allOf(...
-2
votes
0
answers
44
views
Get current location (longitude, latitude) once directly without using Google APIs? [duplicate]
I'm using Kotlin and Compose, and I can't figure how to get the current location once via only GPS. I don't want to use Fused Location Provider. The location doesn't have to be precise and it's not ...
-2
votes
1
answer
62
views
How to prevent Dropdown view from being pushed [closed]
problem gifAs you can see in the gif, when I drop down, the view below is pushed out.
I want the dropdown to be above the view below without being pushed out. How can I do this?
In particular, I'd ...
-2
votes
0
answers
86
views
How to create horizontally scrolling category chips in Jetpack Compose like this UI? [closed]
I am trying to build a horizontally scrolling list of category chips in Jetpack Compose, similar to this design:
I want the categories to:
scroll horizontally
look like rounded chips
highlight the ...
0
votes
2
answers
64
views
How to load SVG content images(not url) using Coil on Android
For example, the SVG content obtained from the web is:
<svg t="1717950268208" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3....
-1
votes
0
answers
38
views
Android Studio, Kotlin, Jetpack Compose, displaying the card when the checkbox is checked
I have a problem with displaying the card when the checkbox is checked. I would like a given card in one activity to be displayed only when the user selects a given checkbox in another activity. But ...
Advice
0
votes
1
replies
71
views
Jetpack Compose: Investigate UI crash with unknown origin (Fatal Exception: java.lang.IllegalStateException: Required value was null.)
I see that users are getting the following error in my app. The problem is that the stacktrace doesn't lead to the point of origin in my app. Although I highly suspect it is a certain custom text ...
0
votes
0
answers
26
views
Zombie deeplink Intent reopens from systems overview
Steps to reproduce:
notification --[intent]--> ...Annoucement Details with Pin Validation --[back]--> home screen
--[SYSTEM nav bar back]--> exit app --[system bar overview reopen]--> {!!!...
2
votes
2
answers
104
views
Only first DAO Flow of Room database returns values
I want to retrieve a specific column from my Android ROOM Database but it kept returning an empty list.
Here is the code on my DAO interface:
@Query("SELECT * FROM expense_table ORDER BY category ...
2
votes
1
answer
97
views
Glowing Effect from Image Colors in Jetpack Compose
I have a question: is it possible in Jetpack Compose to create a glowing effect similar to what YouTube uses when playing a video? I mean a dynamic effect based on the image colors. If not, how can I ...
0
votes
0
answers
25
views
Jetpack Compose (KMP) WindowInsets.navigationBars returns 0.dp on first composition and updates later — why does padding recompute twice?
I’m building a Kotlin Multiplatform (KMP) project using Compose Multiplatform for Android and iOS. On Android, I’m trying to calculate bottom padding for a bottom sheet using WindowInsets....
4
votes
2
answers
148
views
How to call a composable function after a certain time in Jetpack Compose?
When my application starts, I launch an animation. Now I would like to switch to another component (navbar) after 30 seconds. In my research, I saw that the delay function from the Kotlin Coroutines ...
0
votes
0
answers
104
views
How do I implement custom scene navigation animations in Compose Navigation 3?
I'm using the TwoPaneSceneStrategy as available on Google's Nav3 Recipes repo to display the content in a NavDisplay. This is the Scene that actually displays the content:
class TwoPaneScene<T : ...
-1
votes
0
answers
82
views
Android Compose: Balloon content width and arrow positioning issues in skydoves/Balloon library
Problem Description
I'm using the com.skydoves.balloon.compose library in my Android Compose project to display tooltip views. I'm facing two issues:
Width Issue: The content inside balloonContent is ...
0
votes
0
answers
76
views
How to securely store values in iOS Keychain in a Kotlin Multiplatform (KMP) app? toNSData() not recognized
I’m building a Kotlin Multiplatform app (KMP) and want to store sensitive values like auth tokens securely on iOS using Keychain (instead of NSUserDefaults). I found this code on Medium, but it does ...
4
votes
1
answer
60
views
How to disable Jetpack Compose preview functions for code search in Android Studio
I’m using Android Studio with Jetpack Compose, and I often use the “Find in Files” feature (Cmd + Shift + F / Ctrl + Shift + F / clicking in a function/class to see the usages) to search for code ...
2
votes
1
answer
81
views
New list in Compose doesn't refresh the UI
I'm working with Compose and the ViewModel and a list. I don't understand why my UI isn't recomposing when I click on the button, although I am generating a new list.
data class Dice(var value: Int = ...
0
votes
0
answers
63
views
Virtual Phone in Android Studio in loop showing Starting Up…
At the moment, I am trying to get a virtual phone (Pixel 7) running in Android Studio. I already tried the following things, to optimize/ enable the bootup:
deactivated VBS
activated ...
0
votes
0
answers
33
views
Why is a dropdownmenu bigger than its content? [duplicate]
Why is the DropdownMenu Container bigger then its child? Is there a minimum size or padding that we don't have control over? Or is it a theming problem? I dont want it to be this big. I want the ...
1
vote
0
answers
47
views
DialogFragment z-order reversed after app backgrounding with Compose Navigation
Problem
I'm using Jetpack Compose Navigation with dialog destinations. When I show a DialogFragment on top of a Compose Navigation Dialog, the order is correct. But after backgrounding the app and ...
0
votes
1
answer
84
views
Should I always initialize a viewmodel at the start? [closed]
Should I always initialize a viewmodel in the Activity, before onCreate() even, if it is needed later in the flow?
I do not know and am concerned if initialization of all the viewmodels right at the ...
3
votes
1
answer
116
views
How to scroll to the last entry in a LazyColumn so it is displayed at the top and not at the bottom?
I'm building a chat interface in Jetpack Compose using a LazyColumn.
When a user sends a new message I want their latest message to appear at the top, and older messages should scroll up automatically....
3
votes
1
answer
178
views
How can I make a child Image overflow beyond its parent Row bounds in Jetpack Compose (similar to SwiftUI behavior)?
I’m building a dynamic Jetpack Compose UI where layouts are driven by JSON configuration.
Each container can be either vertical (Column) or horizontal (Row), and components like text, icons, and ...