Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
0 replies
20 views

I have been following the pattern in the tutorial (https://developer.android.com/courses/pathways/android-basics-compose-unit-6-pathway-2) to integrate a Room database into my app. So I have a ...
Langtec's user avatar
  • 115
0 votes
0 answers
31 views

I'm learning to build a simple audio recorder app in Jetpack Compose using the native MediaRecorder. When testing it in the Android emulator, it sometimes produces a low-frequency sound throughout the ...
elias's user avatar
  • 23
1 vote
2 answers
95 views

I want the text field on my chat screen to be focused by default (the cursor should be visible) when the user opens the screen. However, I do not want the keyboard to open automatically. The keyboard ...
Aditya_Giri's user avatar
Best practices
0 votes
0 replies
34 views

I am currently developing a video streaming app for AndroidTV. To reduce the amount of data the client loads, it's a business requirement that we are able to lazy-load Swimlanes (LazyRows) once they ...
Da_Shizzle's user avatar
1 vote
1 answer
90 views

I'm currently experiencing an issue with cards in my lazy list in the app I'm developing: when the lazy list reloads the items (because I trigger some MutableStateFlow change and so the items in my ...
pochopsp's user avatar
  • 1,190
0 votes
0 answers
60 views

Im seeing a lot of the following in the LogCat for any App i'm running that has some sort of animation on it. setRequestedFrameRate frameRate=NaN, this=android.view.View setRequestedFrameRate ...
Andy Donnelly's user avatar
Best practices
0 votes
3 replies
96 views

I’m trying to build a layout in Jetpack Compose where I have a Column nested inside another Column, and I want the inner one to be scrollable. The key requirement is that the scrollable container ...
Stanisław Olszak's user avatar
2 votes
0 answers
65 views

Is there a device-agnostic way to draw a 1 px path that follows the physical rounded edge of an Android display? As part of a larger problem, I'm trying to draw a 1 px line that hugs the physical ...
Tyler Harris's user avatar
3 votes
0 answers
105 views

why are all the lines (not just the last line of the paragraph) aligned to the left on a real device, while on a virtual device they are aligned to the width of the screen except for the last one (as ...
Apeva's user avatar
  • 66
0 votes
1 answer
90 views

I’m building a chat screen in Jetpack Compose similar to WhatsApp, with a LazyColumn for messages and a message input field anchored at the bottom. I’m facing two related issues with the message input:...
kuu huu's user avatar
1 vote
1 answer
175 views

Hello everyone, I am experiencing a persistent crash in my Jetpack Compose project while using Coil (AsyncImage) inside a LazyColumn. The data is being observed from a remote service via Flow. The ...
Canturk Karabulut's user avatar
2 votes
1 answer
149 views

Is this behaviour a bug with the experimental material3 features on Android 16? When the app is portrait mode everything works correctly on Android 15 and 16. When the app is in landscape mode Android ...
Andrew's user avatar
  • 10.6k
Advice
0 votes
0 replies
56 views

I already know that you can use AndroidView in compose to achieve this goal, but what I'm thinking is how to wrap the interface so that the calling object of the interface is composable. Like this: ...
user24538401's user avatar
0 votes
0 answers
34 views

I've got a Windows Desktop Application in Jetpack Compose and sometimes when I manage to break my code and refresh the preview, the preview engine immediately shows an error, as it should. However, ...
t3chb0t's user avatar
  • 19.4k
Tooling
0 votes
2 replies
89 views

Currently, i am using windowManager.addView() to add accessibility overlay to display. How do i use attachAccessibilityOverlayToWindow(int accessibilityWindowId, android.view.SurfaceControl sc) to add ...
Sarangem's user avatar
1 vote
1 answer
122 views

I am trying to implement a custom Jetpack Compose Dialog that contains two elements with their own anchored DropdownMenu: A Header Row with a downward icon that should trigger a menu when clicked. ...
Wisal Muhammad's user avatar
Advice
0 votes
1 replies
100 views

I am writing unit tests for my Android MVVM app. The repository fetches users from an API and stores them in a Room database. If the API fails, it loads cached users from the database. I wrote the ...
Mits Patel's user avatar
Best practices
0 votes
0 replies
83 views

I got the following Android UI-code: OutlinedTextField(value = mainVM.srcAmount.doubleValue.toString(), onValueChange = { // Implicit generated argument 'it' is a String. mainVM.setAmount(...
mewi's user avatar
  • 1
0 votes
2 answers
92 views

My initial goal was to use gradiant to transition smoothly my picture into the background. Using gradiant, I have a one pixel lign that breaks the natural transition to the rest of the card. The line ...
AdrienM's user avatar
  • 105
Advice
0 votes
0 replies
46 views

This is the element I'm trying to recreate There's it's wider version As far as I get it, this element consists of something like: Column { FlowRow{Chat1, Chat2, Chat3} ...
Евгений Алексеев's user avatar
0 votes
1 answer
74 views

I'm using Androidx Navigation as a router in my app, whereas I have a bunch of different routes, and one has some arguments of the shape: route?$sectionArg={$sectionArg}&itemId={$itemId}. For ...
Akronix's user avatar
  • 2,235
3 votes
1 answer
113 views

I am currently facing a performance issue while testing my Android TV application. When I configure a 2x2 grid layout and play local videos (approximately 1 GB each) from the device storage, the ...
Chahat Gupta's user avatar
Advice
0 votes
1 replies
93 views

I am building a Compose Multiplatform (CMP) application and need to leverage some iOS-specific native components (like MapKit or a custom SwiftUI chart) that are already built in SwiftUI. While CMP ...
Nevron Mon's user avatar
4 votes
1 answer
113 views

I want to draw a chart but I'm not able to right-align the Y axis labels: @Composable fun Chart( min: Double = 0.0, max: Double = 3823.0, ) { val textMeasurer = rememberTextMeasurer() ...
Turvy's user avatar
  • 1,114
3 votes
1 answer
119 views

When I click on a text field, the keyboard appears. The problem is that it sticks directly to the text field, with no visible space between the two. I am using Jetpack Compose and would like there to ...
Moloch's user avatar
  • 33
-1 votes
1 answer
53 views

While developing my Android app with the MVI architecture, I encountered a problem. I have screens that consistently use the same intents. For example, the UserScreen and Search Screen have their own ...
m1zetz's user avatar
  • 3
0 votes
0 answers
59 views

i have build a Android TV app using jetpack Compose, now i have some problem with the ModalNavigationDrawer my own is to wide when the drawer is expand this my code class TVHomeActivity : ...
Avista Kautsar's user avatar
1 vote
1 answer
126 views

I am making a small program to control some remote devices and I want to take data from a time picker and show it in a text field. However, Android Studio marks my TextField with this error: None of ...
Dario Lobos's user avatar
1 vote
1 answer
117 views

I have a custom PlayerComponent based ExoPlayer. It makes the whole application not responsive when it is playing. I thought that the issue is about too frequent position state updates, but when I ...
theoutstandingme's user avatar
0 votes
0 answers
50 views

I’m using the Material 3 TimeInput Xomposable in Jetpack Compose. TimeInput( state = state, colors = TimePickerDefaults.colors( selectorColor = OrlenTheme.colors....
falsetto's user avatar
  • 789
0 votes
0 answers
90 views

I am having some issues with the font weight settings in a Kotlin/Jetpack Compose setup. In my app (simple photo editing), I want to be able to add a text to an image. To position the text, I use a ...
Michel's user avatar
  • 133
0 votes
1 answer
118 views

I am building a screen using Jetpack Compose with Scaffold, Surface, and ConstraintLayout. The screen has a BasicTextField in the center and a Continue button fixed at the bottom. When I tap on the ...
Ayush Dokania's user avatar
-2 votes
1 answer
93 views

I am using Jetpack Compose with navigation graph and dagger hilt. Let's say I have two screens: home screen and settings screens. I open the app, I go to home > settings. If I close the app (...
Kumar's user avatar
  • 1,743
1 vote
0 answers
96 views

I am trying to implement a custom swipe-to-delete card in Jetpack Compose without using any library. Inside a parent Box, I have two composables layered on top of each other: The bottom one is a red ...
Halil Akyıldız's user avatar
0 votes
0 answers
82 views

I have a LazyColumn with multiple stickyHeaders. When navigating the list using keyboard, I encounter a layout issue. Expected behavior When an item receives focus, the list should scroll so that the ...
krm's user avatar
  • 11
0 votes
0 answers
62 views

i'm actually creating an app to control a raspberry pi robot, but for the communication i must use the mqtt protocol, i'm using the davidepianca98 library for that but i don't know where to put the ...
user32265359's user avatar
Best practices
0 votes
0 replies
21 views

I've been working on an android app that needs to handle multiple switches inside one single screen. Basically my question is about scalability and recomposition counts. I leave the code here: Current ...
Fredest's user avatar
  • 39
1 vote
0 answers
42 views

I have a multi-module Android project with modules like: app (application module) data (Android library module) domain (pure Kotlin module) I’m using product flavors (dev, staging, prod) to define ...
Aditya Prashar's user avatar
1 vote
2 answers
160 views

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 ...
Rajeev Kumar's user avatar
  • 5,007
1 vote
1 answer
72 views

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:...
Code7G's user avatar
  • 87
0 votes
0 answers
65 views

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 ...
user6157571's user avatar
2 votes
1 answer
130 views

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 ...
Rajeev Kumar's user avatar
  • 5,007
3 votes
1 answer
165 views

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 ...
SmellydogCoding's user avatar
2 votes
1 answer
126 views

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 ...
mrRazmarin's user avatar
1 vote
0 answers
69 views

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 ...
Godhandcrusher's user avatar
4 votes
1 answer
234 views

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 ...
Nithin.P Molethu's user avatar
Advice
0 votes
1 replies
105 views

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 ...
Josef M's user avatar
  • 436
0 votes
0 answers
108 views

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 ...
axolotlKing0722's user avatar
4 votes
0 answers
120 views

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: ...
Danfb__'s user avatar
  • 481
0 votes
0 answers
235 views

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 ...
m4ykey's user avatar
  • 61

1
2 3 4 5
286