Skip to content

Commit

Permalink
Merge pull request #263 from 014967/feature/#issue259
Browse files Browse the repository at this point in the history
메인 화면 title에 화살표 이미지 추가
  • Loading branch information
014967 authored Oct 9, 2023
2 parents 346a541 + 3f2a76f commit c99281d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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,
)
}
}
}
Expand Down
18 changes: 18 additions & 0 deletions presenter/src/main/res/drawable/ic_arrow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="28dp"
android:height="28dp"
android:viewportWidth="28"
android:viewportHeight="28">
<path
android:pathData="M18,14L11,7"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="#F3A989"
android:strokeLineCap="round"/>
<path
android:pathData="M11,21L18,14"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="#F3A989"
android:strokeLineCap="round"/>
</vector>

0 comments on commit c99281d

Please sign in to comment.