From 86970e72545b03197fd06850b858bbabe2c81ef5 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Fri, 19 Apr 2024 14:56:13 +0900 Subject: [PATCH] =?UTF-8?q?mod:=20#6=20=ED=99=88=20=ED=99=94=EB=A9=B4=20ui?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sopt/now/compose/UserItem.kt | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/com/sopt/now/compose/UserItem.kt b/app/src/main/java/com/sopt/now/compose/UserItem.kt index 7a0ad71..22bab66 100644 --- a/app/src/main/java/com/sopt/now/compose/UserItem.kt +++ b/app/src/main/java/com/sopt/now/compose/UserItem.kt @@ -2,6 +2,7 @@ package com.sopt.now.compose import androidx.compose.foundation.Image import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height @@ -31,28 +32,33 @@ fun UserItem( modifier = Modifier .fillMaxWidth() .padding(vertical = 10.dp), - verticalAlignment = Alignment.CenterVertically + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.SpaceBetween ) { - Image( - painter = painterResource(id = painter), - contentDescription = contentDescription, - Modifier - .width(imageSize) - .height(imageSize) - .background(color = Color(0xFF209672)) - ) + Row ( + verticalAlignment = Alignment.CenterVertically + ) { + Image( + painter = painterResource(id = painter), + contentDescription = contentDescription, + Modifier + .width(imageSize) + .height(imageSize) + .background(color = Color(0xFF209672)) + ) - Text( - text = nickname, - fontSize = fontSize, - fontWeight = FontWeight.Bold, - modifier = Modifier.padding(start = 30.dp) - ) + Text( + text = nickname, + fontSize = fontSize, + fontWeight = FontWeight.Bold, + modifier = Modifier.padding(start = 20.dp) + ) + } Text( text = mbti, - fontSize = fontSize, - modifier = Modifier.padding(start = 160.dp)) + fontSize = fontSize + ) } } \ No newline at end of file