Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Columna vertical Espacio entre no tener en cuenta

No puedo entender por qué en esta tarjeta, en la columna, el espacio entre la alineación vertical no se tiene en cuenta. Espero que el título esté en la parte superior y el botón "Ver detalles" en la parte inferior de la columna.

 fun UserCard(image:Int, text:String, actionButtonLabel:String){ Card( elevation = 4.dp, modifier = Modifier .padding(12.dp) .fillMaxWidth() .wrapContentHeight() ) { Row( horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier .padding(8.dp) .border(width = 1.dp, color = Color.Blue) .padding(12.dp) ) { Image( painter = painterResource(id = image), contentDescription = "", contentScale = ContentScale.Crop, modifier = Modifier .size(120.dp) .clip(CircleShape) ) Column( modifier= Modifier.fillMaxHeight(), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.SpaceBetween, // <-- seems not to be taking into account ) { Title(text) Button(onClick = { }) { Text(text = actionButtonLabel) } } } } }

ejemplo de llamada de UserCard

 UserCard( image= R.drawable.iron, text = "Live after death", actionButtonLabel = "View details" )

botón tp estar en el botón de la tarjeta

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede aplicar medidas intrínsecas al contenedor Row y el modificador fillMaxHeight() a Column .
Su problema es la altura de la columna.

 Row( horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier.height(IntrinsicSize.Min) //.. ){ /* Image */ Column( modifier = Modifier .fillMaxHeight(), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.SpaceBetween){ //... } }

ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!