From 3f2a76f1198bffd2f52934a2b356b582bafca9f7 Mon Sep 17 00:00:00 2001 From: Hyunkuk Date: Thu, 21 Sep 2023 21:36:38 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20:=20=ED=99=94=EC=82=B4=ED=91=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/ongoing/components/HomeGoalField.kt | 14 +++++++++++++- presenter/src/main/res/drawable/ic_arrow.xml | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 presenter/src/main/res/drawable/ic_arrow.xml diff --git a/presenter/src/main/java/com/mashup/twotoo/presenter/home/ongoing/components/HomeGoalField.kt b/presenter/src/main/java/com/mashup/twotoo/presenter/home/ongoing/components/HomeGoalField.kt index 2fab160c..658d5eb8 100644 --- a/presenter/src/main/java/com/mashup/twotoo/presenter/home/ongoing/components/HomeGoalField.kt +++ b/presenter/src/main/java/com/mashup/twotoo/presenter/home/ongoing/components/HomeGoalField.kt @@ -6,6 +6,7 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.interaction.collectIsPressedAsState import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.shape.RoundedCornerShape @@ -22,6 +23,8 @@ import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.constraintlayout.compose.ConstraintLayout +import com.mashup.twotoo.presenter.R +import com.mashup.twotoo.presenter.designsystem.component.TwoTooImageView import com.mashup.twotoo.presenter.designsystem.theme.TwoTooTheme import com.mashup.twotoo.presenter.designsystem.theme.TwotooPink import com.mashup.twotoo.presenter.home.model.HomeGoalFieldUiModel @@ -47,7 +50,7 @@ fun HomeGoalField( onClickHomeGoalField() }, ) { - val (goalText, dDayText) = createRefs() + val (goalText, dDayText, arrow) = createRefs() AutoResizeText( modifier = Modifier.constrainAs(goalText) { top.linkTo(parent.top, margin = 16.dp) @@ -77,6 +80,15 @@ fun HomeGoalField( style = TwoTooTheme.typography.bodyNormal16, ) + TwoTooImageView( + modifier = Modifier.size(28.dp).constrainAs(arrow) { + top.linkTo(parent.top) + bottom.linkTo(parent.bottom) + end.linkTo(parent.end, 8.dp) + }, + model = R.drawable.ic_arrow, + previewPlaceholder = R.drawable.ic_arrow, + ) } } } diff --git a/presenter/src/main/res/drawable/ic_arrow.xml b/presenter/src/main/res/drawable/ic_arrow.xml new file mode 100644 index 00000000..1dbb46ed --- /dev/null +++ b/presenter/src/main/res/drawable/ic_arrow.xml @@ -0,0 +1,18 @@ + + + +