How to change the color of the TextField cursor handle in Compose Material 3?
Specifically, the CompositionLocalProvider approach works for a BasicTextField but not for a TextField:
How to remove unexpected shadow on ElevatedCard in Jetpack Compose?
I have an ElevatedCard
in my app and it looks really good:
How to avoid Jetpack Compose recomposition?
I have a small composable function with just one parameter:
Why are every composables recomposed?
Could you explain why both TextField are being recomposed when I enter text in one ?
two columns? Card in compose
The DishCard function works correctly. How can I display the items in two columns?
why is my jetpack code showing errors and i m unable to implement elevation in card
Card( modifier = Modifier .width(200.dp) .height(390.dp) .padding(12.dp), shape = RoundedCornerShape(corner = CornerSize(15.dp)), null), ) { } I have tried using different parameters but i can’t resolve the issue not able to add colors it is showing error android-jetpack-compose New contributor Yashwanth B.S is a new contributor to this site. Take care in asking for clarification, […]
How to draw over “.weight” Element?
My Composeable is nearly to my liking, the last part would be to add an Icon on the top right of the Screen.
Here comes the issue, I’m using .weight(0.5f)
two times to ensure, that my data has an automated maximum length and are visually shown with the same width regardless of how long the Text is.
I also need the Text to be aware of the Icon, so that the Text does not overflow (write over) the Icon or disappears behind the icon.
Is there a way to apply LayoutParams.FLAG_SECURE to Compose Screen Level to prevent screenshots?
I have a single activity compose app and want to prevent screenshots in just a single screen. However, applying LayoutParams.FLAG_SECURE
to the activity window will prevent screenshots from all screens within this activity.
Jetpack Compose Fullscreen Dialog goes behind bottom system nav and adds a gray bar
I’m trying to create a full screen dialog in Jetpack Compose, but the bottom goes behind the bottom system nav and adds a gray bar as well. I’ve tried different iterations of padding, insets, contentPadding and can’t get it to go away. Some iterations will have the top go behind the top system bar as well.
Are Compose UI and Swift UI’s Preview really difficult?
I’ve mainly developed with Flutter and React Native, which both have hot reload features, so separate UI previews weren’t necessary.