Skip to main content

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
0 votes
0 answers
27 views

How to create LazyColumn with both draggable and non-draggable titles and dividers?

I found an example of simple lazy lists with draggable items and tried to modify it to suit my needs. I need to be able to list the indices of the elements on which dragging doesn't work and, if there ...
Данил Бессонов's user avatar
0 votes
2 answers
37 views

TextField data is not getting clear

When the user enters a password value and cancels the dialog, the dialog is pre-filled with the previous password, but the email is successfully cleared. However, the password is not cleared. If I ...
Shivam's user avatar
  • 182
0 votes
0 answers
11 views

How to know if item is highlighted by TalkBack frame?

I'm working on accessibility issues in my app, written in Kotlin using Jetpack Compose. I have a bug that I think I can solve if I could know when a UI component is highlighted with a TalkBack frame - ...
dodgeRam's user avatar
0 votes
0 answers
32 views

Android. How to show button above keyboard on bottom sheet dialog?

I'm using BottomSheetDialogFragment with composable content: override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?, ): ...
testivanivan's user avatar
  • 1,318
1 vote
1 answer
37 views

Compose: Using SnapshotStateMap to avoid recomposition of every item in a map

I have an app that reads properties from a file. The file can be changed outside of my application, it can be deleted or fully replaced. My goal is to read the .properties file and show a preferences ...
kristyna's user avatar
  • 1,624
0 votes
2 answers
28 views

How to pass data between composable screens in android compose app?

I want to pass data between 1st composable screen to 4th composable screen. How we can pass data from 1st screen to 4th screen without passing to 2nd and 3rd through navgraph?
user7029573's user avatar
0 votes
0 answers
15 views

Android animatedVectorResource causes Resources$NotFoundException

I'm trying to use AnimatedImageVector.animatedVectorResource to display an animation in Compose, but every mentioned call causes an exception: android.content.res.Resources$NotFoundException: Resource ...
mipolansk's user avatar
0 votes
0 answers
30 views

How do I control my own programmed kotlin wear os stopwatch app with the bluetooth headset buttons skip forward and skip backward?

I programmed a wear OS app in Kotlin (and Jetpack Compose). The app is a stopwatch app and therefore has a start function and a stop function. Previously, these functions were triggered using a touch ...
Mr. WTG's user avatar
1 vote
0 answers
22 views

Vico Charts in Jeptack Compose

type here. LaunchedEffect(Unit) { withContext(Dispatchers.Default) { while (isActive) { modelProducer....
Yusufjon Akhmedov's user avatar
0 votes
1 answer
38 views

Trigger recomposition with state objects

I'm having trouble understanding why recomposition does or does not occur. I have an object which describes a vehicle and there are two dropdowns in a dialog which allow selecting a make and a model ...
moonlightcheese's user avatar
0 votes
0 answers
44 views

R8 Minification Fails After Upgrading to Jetpack Compose BOM 2024.06.00 with SDK 34 Migration

I recently upgraded my project from Compose BOM 2023.06.01 to 2024.06.00 after migrating to SDK 34. While the debug build works fine, the release build fails during the R8 minification step with ...
Shubham Bhattacharyya's user avatar
1 vote
0 answers
18 views

How to apply AnimatedVisibility and animateItemPlacement together?

I am using androidx.compose:compose-bom:2024.06.00. The items of a LazyColumn are animated at the launch of the screen: @Composable fun SampleList(samples: List<Sample>) { val state = ...
JJD's user avatar
  • 51.3k
0 votes
1 answer
44 views

kotlin - How to scroll a scrollable column inside a Jetpack Compose ModalBottomSheet?

I am using Kotlin v1.7.20 and androidx.compose.material3 implementation v1.3.0-beta04. I need to fit a content into a bottom sheet. This content is so long, and its height exceeds the device's height ...
groaking's user avatar
0 votes
1 answer
45 views

How to attach slider to the bottom of bar in Compose?

I want to make a spotify clone app, I am trying to build a similar bottom bar like the image, but i were unable to make slider fill max width (without padding from left, right, bottom). @...
Fatima Jamal's user avatar
0 votes
0 answers
14 views

Pointing the camera at the coordinates

I will point the camera to the coordinates according to the existing API. but only the marker can go to the coordinates but not the camera. Please help I include my code snippet // Membuat objek ...
Chaidar Aria's user avatar

15 30 50 per page