Relative Content

Tag Archive for android-jetpack-compose

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.