Category "android-jetpack-compose"

Phone number visual transformation in Jetpack compose

How can I implement phone number visual transformation in jetpack compose? I have read this article for the card number. And I want to format my phone number li

Hidden bottom item in LazyColumn - Jetpack Compose

I am trying to create a list of items with a hidden button at the bottom. By default the button is not visible on the screen. If a user scrolls to the bottom of

Sticky headers like android contacts in Jetpack Compose

I didn't find any way to have a stickyHeader on the same line as an item in a LazyColumn: So I used a Box to put the letter with its background on top of the L

How to change text field cursor position in jetpack compose

I have list of text suggestions chip view above textfield, when user clicking chip I am appending the text into textfield. after that I want to move the cursor

Use Jetpack Compose vertically scrollable component in ConstraintLayout

I have a player layer with subtitle layer like this: Parent of player layer is and XML ConstraintLayout that have a ComposeView child. This ComposeView is my s

Scroll issue with LazyColumn inside BottomSheetDialogFragment

I use LazyColumn inside BottomSheetDialogFragment, but if to scroll LazyColumn list UP then Bottom Sheet Dialog scrolls instead of LazyColumn list. Seems like B

Jetpack Compose + Hilt: java.lang.RuntimeException: Cannot create an instance of class ViewModel

I started trying jetpack Compose recently and used hilt & hilt-navigation-compose for my app. It works fine with the first ViewModel. However, when I try th

How to achieve the layering effect of one Composable on top of another when showing a dialog using Jetpack Compose

I'm hoping to understand how I can achieve this behavior using Jetpack Compose in Android when displaying a dialog on top of the current Composable view. Desire

Create drawable programatticly in jetpack compose

I want to use rectangle with rounded corner for placeholder in coil in jetpack compose. I need use different colors for placeholder depends on my algorithm. The

How to use `ImageRequest.Builder.target` in the new coil version in jetpack compose?

My Gradle // Coil implementation "io.coil-kt:coil-compose:1.4.0" Problem Description Previously I used the coil together with Google's accompanist, but when I

Jetpack compose : BottomSheet state change callback

How can i achieve callback/listener mechanism on JetPack Compose BottomSheet state changes? Something similar to: @Override public void onStateChanged(@