-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tgyuu/#89 #97
Conversation
@@ -5,6 +5,7 @@ | |||
<string name="back_button_description">Back Icon</string> | |||
<string name="sign_in">๋ก๊ทธ์ธ</string> | |||
<string name="sign_in_email">์ด๋ฉ์ผ</string> | |||
<string name="wapp_icon_description">WAPP ICON</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๊ทผ์ฑ ์ต๊ฐ ์ฑ ใทใทใทใทใทใทใทใทใทใท
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ
@@ -162,7 +161,7 @@ internal fun EventEditScreen( | |||
modifier = Modifier.padding(top = 16.dp), | |||
) | |||
|
|||
EventRegistrationContent( | |||
com.wap.wapp.feature.management.event.registration.EventRegistrationContent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด๋น path๋ import๋ก ๋นผ๋๊ฒ ๋ซ์ง ์์๊น์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์ ํด๋๊ฒ ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ด์ ํ๊ท์ !
์ค๋ ํ๋ฃจ๋ ํธ์์ดํฐ์ด์ ๋๋ท
coroutineScope.launch { | ||
scrollState.scrollTo(0) | ||
} | ||
onNextButtonClicked() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค์ ํ๋ฉด์ผ๋ก ์ ํํ ๋ ์คํฌ๋กค์ ์๋ก ์ฌ๋ฆฐ๋ค์, ์ ํ ํ์๋ ์ด์ ๊ฐ ๋ฐ๋ก ์๋์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ผ์ ๋ฑ๋ก ๋ฐ ์์ ์ ๊ฒฝ์ฐ์๋ ๋ด๋ถ์ LazyColumn
์ด ์์ด์,
๊ฐ์ฅ ์ธ๊ณฝ์ Column
์ ์คํฌ๋กคํ๊ฒ ๋ง๋ค์ด ๋์์ด์.
(์ฆ, ํ๋์ Scrollable์ ์ด์ฉํด์ ๋ ํ์ด์ง๋ฅผ ๋ค ์ปค๋ฒ ๊ฐ๋ฅํ๊ฒ ํ์ด์.)
๊ทธ๋ ๊ธฐ ๋๋ฌธ์ ๋ค์ ํ์ด์ง๋ฅผ ๋์ด๊ฐ๋ ์คํฌ๋กค ํฌ์ปค์ฑ์ด ๊ทธ ์๋ฆฌ์ ๋จธ๋ฌด๋๋ฐ,
ํ์ด์ง๋ฅผ ๋์ด๊ฐ๋ฉด ๊ฐ์ฅ ์์ชฝ์ ๋ณด๋๊ฒ ์ด์์ ์ด๋ผ์ scrollTo
๋ฅผ ๋ฃ์ด๋จ์ด์.
(์ค๋ฌธ ๋ฑ๋ก ๋ฐ ์์ ์ ์ฒซ ํ์ด์ง ์ผ์ ์ ์ ํํ๋ ๋ถ๋ถ์์ LazyColumn์ด ์ฌ์ฉ๋์ด์ ๊ทธ๋ ๊ฒ๋ ๋ชปํ์ด์.
๊ณต๋ถํ๋ฉด ํ ์๋ ์์ ๊ฒ ๊ฐ์๋ฐ ์ข ์ด๋ ค์์ ์ง๊ธ๋ ๊ณต๋ถํ๋ ์ค์ด์์!)
์ค๋ฌธ ๋ฑ๋ก ์ชฝ๋ NestedScrollConnection ๊ณต๋ถ๊ฐ ๋๋๋ฉด ๊ฐ๊ฐ์ ํ์ด์ง์ ์คํฌ๋กค ๋ฌ๋ ค์๋ ๊ฒ์ ์๊ฑฐํ๊ณ ,
๊ฐ์ฅ ์ธ๊ณฝ์ Column
์๋ง ์คํฌ๋กค์ ๋ฌ๊ณ ์ ๋ ๊ฒ ๋ค์ ํ์ด์ง์ ๋์ด๊ฐ๋ฉด ScrollTo(0)
์ ํด์ ์๋จ์ ๋ณด๊ฒ ํ ์๊ฐ์ด์์!
modifier = Modifier.fillMaxSize(), | ||
verticalArrangement = Arrangement.spacedBy(16.dp), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ธฐ์กด Arrangement.SpaceBetween๊ณผ ์์ฑํ์ Arrangement.spacedBy(16.dp)๋ ์ฐจ์ด๊ฐ ํฐ๋ฐ,
Event์์ UI ํต์ผ ๋๋ฌธ์ ์์ ํ์ ๊ฑด๊ฐ์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SpaceBetween
์ ์ฌ์ฉํ์ ์ด์ ๊ฐ,
ํ๋จ์ ๋ฒํผ์ ๋๊ธฐ ์ํด์ ์ฌ์ฉํ์ ๊ฒ ๊ฐ๋๋ฐ ๋ง๋์?
์ด๋ ๊ฒ ViewGroup ๋๋์ Column
Composable์ ํ๋ ๋ ๋๋ ๋ฐฉ๋ฒ ๋ณด๋ค,
๋ด๋ถ์
Spacer(modifier = Modifier.weight(1f))
์ ๋๋ ๋ฐฉ๋ฒ์ ํตํด์ ๋ค์์ผ๋ก ๊ฐ๋ ๋ฒํผ์ ํ๋จ์ ๊ณ ์ ์์ผฐ์ด์...!
Indent๋ ํ๋ ์ค๊ณ ๋ ์ง๊ด์ ์ธ ๊ฒ ๊ฐ์์์..!
์ถ๊ฐ์ ์ธ ์ค๋ช ์ #97 (comment) ์จ๋จ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฒํผ์ ์๋์ ๋ฐฐ์นํ๋ ๋ชฉ์ ์ด๋ผ๋ฉด, SpaceBetween๊ณผ ํ๊ท๋๊ป์ ์๊ฐํ์ ๋ฐฉ๋ฒ์ผ๋ก๋ ๋์ฒด๊ฐ ๊ฐ๋ฅํ ๊บผ ๊ฐ์์ !
ํ์ง๋ง, SpaceBetween์ ์ปดํฌ๋ํธ๋ฅผ ์ค๊ฐ์ ๋ฐฐ์นํจ์๋ ๋ชฉ์ ์ด ์์ด์ ,,!
ํ ๋ธ๋ฆฟ๊ณผ ๊ฐ์ ๊ฒฝ์ฐ๋ก ํ๋ฉด์ด ์ธ๋ก๊ฐ ๊ธด ๊ฒฝ์ฐ
SpaceBetween์ ์ค๊ฐ์ ๋ฐฐ์น๋์ง๋ง,
Spacer์ ๊ฒฝ์ฐ์๋ ๊ทธ๋๋ก ์ํ ํจ๋ฉ์ด 16dp๋ก ๊ณ ์ ๋์ด์
A ์ปดํฌ๋ํธ
(16dp)
B ์ปดํฌ๋ํธ
Spacer(0dp ~ ํ๋ฉด์ด ์ปค์ง๋ฉด ์ปค์ง ์๋ก ์ฐจ์งํ๋ dp๊ฐ ์ฆ๊ฐ)
๋ฒํผ
์ด๋ ๊ฒ ๊ตฌ์ฑ๋์ง ์์๊น์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A ์ปดํฌ๋ํธ
(16dp)
B ์ปดํฌ๋ํธ
Spacer(0dp ~ ํ๋ฉด์ด ์ปค์ง๋ฉด ์ปค์ง ์๋ก ์ฐจ์งํ๋ dp๊ฐ ์ฆ๊ฐ)
๋ฒํผ
์งํธ๋์ด ๋ง์ํ์ ๊ฒ ์ ๊ฐ ์ํ๋ ๊ตฌํ์ด ๋ง์์.
ํ ๋ธ๋ฆฟ์ด๋ ์๋ ๊ธฐ๊ธฐ์์๋ ๋ค ํธํ๋๋๋ก Spacer์ Weight๋ฅผ ๋จ ๊ฒ์ด ๋ง์์.
ํผ๊ทธ๋ง์๋ ๊ทธ๋ ๊ฒ ๋์ด ์๊ณ ์!
์์ง SpaceBetween
์ ์ฌ์ฉํด์ ์ปดํฌ๋ํธ๋ฅผ ์ค๊ฐ์ ๋ฐฐ์นํ๋ ๊ฒ์ด ๋ชฉ์ ์ด๋ค. ๊ฐ ์ฝ๊ฐ์ ์ดํด๊ฐ ์๋๋๋ฐ ์ถ๊ฐ์ ์ธ ์ค๋ช
๊ฐ๋ฅํ ๊น์?
์๋๋ฉด ์ ๊ฐ ๋์น๊ณ ์๋ ๋ถ๋ถ์ด ์๋์ง๋ ๊ถ๊ธํด์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ง ๊ทธ๋๋ก ๋ ์ง์ ์๊ฐ์ ์ค๊ฐ์ ๋ฐฐ์นํ๋ ค๊ณ ํ์ด์ !
์บฌ์บฌ ์ ๊ฐ ํผ๊ทธ๋ง๋ฅผ ์ ๋๋ก ์๋ดค๋ค์.
์ํ์๋ ๊ตฌํ์ด ๋ง๋ค๋ฉด ๊ทธ๋๋ก ๊ฐ์ ์๋ค ~!
Card( | ||
colors = CardDefaults.cardColors( | ||
containerColor = WappTheme.colors.black25, | ||
), | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.clickable { onEventSelected(event) }, | ||
border = BorderStroke( | ||
color = if (event.eventId == selectedEvent.eventId) { | ||
WappTheme.colors.yellow34 | ||
} else { | ||
WappTheme.colors.black25 | ||
}, | ||
width = 1.dp, | ||
), | ||
) { | ||
Column( | ||
verticalArrangement = Arrangement.spacedBy(8.dp), | ||
modifier = Modifier.padding(16.dp), | ||
) { | ||
Text( | ||
text = event.title, | ||
style = WappTheme.typography.titleBold, | ||
color = WappTheme.colors.white, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด์ ํผ์์์ ์ ๊ฐ ํด๋น ๋ถ๋ถ์ ๋ฐ๋ก EventCard๋ก ๋บ๋๋ฐ,
๋ฐ๋ก ๋ค์ ๋ฃ์ผ์ ์ด์ ๊ฐ ๊ถ๊ธํด์ ,, !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๊ฐ ์ด์ ์ ์์ฑํ ์ฝ๋์์๋ weight๊ฐ ๋ค์ด๊ฐ์๋๋ฐ,
ํด๋น ์ฝ๋๋ weight๊ฐ ๋น ์ ธ์์ด์,
์ด๋ฒคํธ์ ์๊ฐ ๋ง์์ง๋ฉด ๋ฒํผ์ ๊ฐ๋ฆฌ๋ ์ผ์ด ๋ฐ์ํ์ง ์์๊น์ ? (์ด์ ์ฝ๋์์๋ ๋ฒํผ์ ๊ฐ๋ ค์, ์ ๊ฐ weight๋ฅผ ๋ฃ์์ด์)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด์ ํผ์์์ ์ ๊ฐ ํด๋น ๋ถ๋ถ์ ๋ฐ๋ก EventCard๋ก ๋บ๋๋ฐ,
๋ฐ๋ก ๋ค์ ๋ฃ์ผ์ ์ด์ ๊ฐ ๊ถ๊ธํด์ ,, !!
์ด ๋ถ๋ถ์ ์ถฉ๋ ํด๊ฒฐํ๋ค๊ฐ ์๊ธด ์ด์์ ๋๋ค!
๋ค์ ์์ ํด๋๊ฒ ์ต๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๊ฐ ์ด์ ์ ์์ฑํ ์ฝ๋์์๋ weight๊ฐ ๋ค์ด๊ฐ์๋๋ฐ,
ํด๋น ์ฝ๋๋ weight๊ฐ ๋น ์ ธ์์ด์,
์ด๋ฒคํธ์ ์๊ฐ ๋ง์์ง๋ฉด ๋ฒํผ์ ๊ฐ๋ฆฌ๋ ์ผ์ด ๋ฐ์ํ์ง ์์๊น์ ? (์ด์ ์ฝ> ๋์์๋ ๋ฒํผ์ ๊ฐ๋ ค์, ์ ๊ฐ weight๋ฅผ ๋ฃ์์ด์)
์ง๊ธ์ LazyColumn
๋ด๋ถ์ ๊ฐ์ฅ ํ๋จ์ item
์ด๋ผ๋ ์ค์ฝํ์ ๋ฒํผ์ด ๋ฐ๋ก ๋ค์ด๊ฐ์์ด์,
๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ๊ฐ ๋ฒํผ์ ๊ฐ๋ฆฌ๋ ์ผ์ ๋ฐ์ํ์ง ์์์. ํญ์ ๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ ์๋์ชฝ์ ๋ฒํผ์ด ์์นํ๊ฒ ๋ฉ๋๋ค...!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ธฐ์กด Colum์ด๋ ๋ค๋ฅด๊ตฐ์ ,, ์ข์ ์ง์ ๋ฐฐ์๊ฐ๋๋ค
๊ทธ๋ผ ๋ง์ฝ์ EventList๊ฐ ์ปค์ง๋ฉด, ์ด๋ป๊ฒ ๋๋์ ??
weight๊ณผ ๋ง์ฐฌ๊ฐ์ง๋ก ํฌ๊ธฐ๊ฐ ์๋์ผ๋ก ๋๋จธ์ง ๋ถ๋ถ์ ์ฐจ์งํ๊ฒ ๋๊ณ ,
๊ทธ ์์์๋ ์ค์ฒฉ์คํฌ๋กค์ด ๋๋๋ก ๋ณ๊ฒฝ๋๋์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทธ๋ฅ ๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ๋ก ์น๋ฉด ๋ ๋ค๋ฅธ ViewHolder๋ฅผ ์ฌ์ฉํด์ View๋ฅผ ๋ฐฐ์นํ๋ค๊ณ ์๊ฐํ์๋ฉด ๋ผ์.
ํญ์ ํ๋จ์ ๋ฐฐ์น๋์ด์.
๊ทธ๋์ EventList
๊ฐ ๋ง์ ๊ฒฝ์ฐ ์คํฌ๋กค์ ํด์ผ์ง๋ง ๋ฒํผ์ ๋ณผ ์ ์์ด์.
๋ค๋ฅธ ์ชฝ UI๋ ๋ค์ ํ์ด์ง๋ก ๋์ด๊ฐ๋ ํน์ ์๋ฃ ๋ฒํผ์ด ์คํฌ๋กค์ ํด์ผ์ง ๋ณผ ์ ์์ด์.
๊ทธ๊ฒ ๋ ์์ฐ์ค๋ฌ์ด ๊ฒ ๊ฐ๊ธฐ๋ ํ๊ณ ์.
์ด๋ ๊ฒ ๊ตฌํํ์ ๋์ ๋จ์ ์ EventList
๊ฐ ํด ๋๊ฐ ์๋ ์์ ๋ ๋ฒํผ์ด ํ๋จ์ ์ ๋ถ๋ ๋ค๋ ์ ์ด์์.
๊ทธ๋์ PR์ ์ด ๋ถ๋ถ์ ์ธ๊ธํ์ด์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์ ์ฒด๋ฅผ ๋ชฉ๋ก์ผ๋ก ๋ง๋๋, ํ๊ท๋์ด ๋ง์ํ์ ๋ฐฉ๋ฒ๋๋ก ๋ ๊ฒ ๊ฐ๋ค์ !!
๊ทผ๋ฐ ์ ๋ ๋ฒํผ์ด ์๋๋ถ๋ถ์ ์๋ถ๋ ๊ฒ๋ ์๋๋ฐ,
๋ชฉ๋ก์ด ์ปค์ก์ ๋ ๋ฒํผ์ด ๋ฐ๋ก ์๋ณด์ด๋๊ฒ ์ ์ผ ํฐ ๊ฒ ๊ฐ์์.
์ฒ์ ์ฌ์ฉํ๋ ์ฌ์ฉ์๋ผ๋ฉด, ๋ฒํผ์ด ์คํฌ๋กคํด์ผ ๋ณด์ด๋ ๊ฑธ ์๊ธฐ ์ฝ์ง ์์ ๊ฒ ๊ฐ์์์ใ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฒ์ ์ฌ์ฉํ๋ ์ฌ์ฉ์๋ผ๋ฉด, ๋ฒํผ์ด ์คํฌ๋กคํด์ผ ๋ณด์ด๋ ๊ฑธ ์๊ธฐ ์ฝ์ง ์์ ๊ฒ ๊ฐ์์์ใ
์ด ๋ง์ ๋์ํฉ๋๋ค!
์๋๋๋ก ๋๋ ค๋๊ฒ ์ต๋๋ค!!!
@@ -44,88 +46,86 @@ internal fun SurveyQuestionContent( | |||
val scrollState = rememberScrollState() | |||
|
|||
Column( | |||
verticalArrangement = Arrangement.spacedBy(32.dp), | |||
modifier = Modifier.verticalScroll(scrollState), | |||
verticalArrangement = Arrangement.spacedBy(10.dp), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค๋ฅธ Deadline, Event๋ 16dp์ธ๋ฐ, ํด๋น ํ๋ฉด๋ง 10dp๋ก ์ค์ ํ ์ด์ ๊ฐ ์์๊น์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทธ๋ฆฌ๊ณ ๊ธฐ์กด 32dp์ ์ฐจ์ด๊ฐ ๊ผฌ ใ ใ ใ ใ ใ ใ ใ ใ ํฌ๋ค์ ์บฌ์บฌ์บฌ์บฌ์บฌ์บฌ,,,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค๋ฅธ Deadline, Event๋ 16dp์ธ๋ฐ, ํด๋น ํ๋ฉด๋ง 10dp๋ก ์ค์ ํ ์ด์ ๊ฐ ์์๊น> > ์ ??
์ด ๋ถ๋ถ๋ ์ค์์ธ ๊ฒ ๊ฐ์ต๋๋ค..
์์ ํด๋๊ฒ ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทธ๋ฆฌ๊ณ ๊ธฐ์กด 32dp์ ์ฐจ์ด๊ฐ ๊ผฌ ใ ใ ใ ใ ใ ใ ใ ใ ํฌ๋ค์ ์บฌ์บฌ์บฌ์บฌ์บฌ์บฌ,,,
Figma์ ๊ทธ๋ ค์ง UI๋๋ก ๋ง์ง์ ์ ํ์ต๋๋ค...!
๊ธฐ์กด์๋ ๊ฐ์ฅ ์ธ๊ณฝ์ Column
์์ ์ฌ์ด 32.dp
๋ก ์ฃผ๊ณ ๋ด๋ถ์ ๋ ๋ค๋ฅธ ๊ฐ๊ฒฉ์ ๊ฐ์ง Column
์ ์ด์ฉํด์ ๊ฐ๊ฒฉ์ ์กฐ์ ํ๋ค๋ฉด,
๋ถํ์ํ Column
์ ์๊ฑฐํ๊ณ ์ถ๊ฐ์ ์ผ๋ก ํ์ํ ๋ง์ง์ Modifier.padding()
์ผ๋ก ํด๊ฒฐํ์์ต๋๋ค...!
) { | ||
WappTitle( | ||
title = stringResource(R.string.survey_question_title), | ||
content = stringResource(R.string.survey_question_content), | ||
modifier = Modifier.padding(top = 10.dp, bottom = 30.dp), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด์น๊ตฌ๋ ๋ง์ฐฌ๊ฐ์ง๋ก์ !
๋ค๋ฅธ ์ปดํฌ์ ๋ธ ํจ์๋ top 10, bottom 24์ธ๋ฐ, ๋ค๋ฅด๊ฒ ์ค์ ๋์ด ์์ด์ !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์ ํ๊ฒ ์๋๋ท!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๊ฒ ๋ค์ ๋ณด๋๊น,
ํผ๊ทธ๋ง ๋ง์ง์ด 10dp๋ก ์ค์ ๋์ด ์์์ด์.
ํน์ ์ด๊ฑฐ ํผ๊ทธ๋ง์ UI๋ฐฐ์น๊ฐ ์๋ชป๋์ด ์๋ ๊ฒ์ผ๊น์?
verticalArrangement = Arrangement.spacedBy(10.dp),
์ ๋ํ ์ฝ๋ฉํธ์์๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์คํธ์ ์ ๊ฐ ํผ๊ทธ๋ง๋ฅผ ์ ๋๋ก ๋ชป๋ณธ๊ฑฐ๊ตฐ์ ,, !
๊ทธ๋๋ก ๊ฐ์ ์๋ค ~~
type = questionType, | ||
) | ||
|
||
Spacer(modifier = Modifier.weight(1f)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacer์ ์ญํ ์ด ์ด๋ป๊ฒ ๋ ๊น์ ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spacer
๋ ๋ง ๊ทธ๋๋ก ๋น๊ณต๊ฐ์ ์ฑ์์ฃผ๋ ์ญํ ์
๋๋ค.
๊ธฐ์กด์์๋ ๋ฒํผ์ ํ๋จ์ ๋ฐฐ์นํ๊ธฐ ์ํด์
Column {
Column(Modifier.weight(1f)) {
/*..*/
}
Button() {
}
}
์ ์ด์ฉํด์ ๋ด๋ถ Column
์์ฒด๋ฅผ ๊ฝ์ฑ์ฐ๋ ๋ฐฉ๋ฒ์ ์ป๋๋ผ๋ฉด,
Spacer
๋ฅผ ์ด์ฉํ๋ฉด ์ธ๋ถ Column์ ์๊ฑฐํ๊ณ ,
Column {
// ํ์ํ Composalbe๋ค
Spacer(modifier = Modifier.weight(1f)) // ๋จ์ ๊ณต๊ฐ์ ๊ฝ ์ฑ์
Button() { } // ํ๋จ์ ๋ฒํผ์ ๋ฐฐ์น
}
๋ก ๋ฐ๊ฟ ์ ์์ด์!
Box
๋ฅผ ์ด์ฉํด์๋ ์ฑ์ธ ์ ์์ง๋ง,
Box
๋ xml๋ก ์น๋ฉด FrameLayout
๋๋์ด๊ณ ,
Spacer
๋ xml์์ View
๋๋์ด๋ผ๊ณ ๋ณด๋ฉด ๋ ๊ฒ ๊ฐ์์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ข์ ํ ์์๊ฐ๋๋ค์~~
fun setSurveyDateDeadline(date: LocalDate) { _surveyDateDeadline.value = date } | ||
fun setSurveyDateDeadline(date: LocalDate) { | ||
_surveyDateDeadline.value = date | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋๋ฌด ViewModel์ด ๊ธธ์ด์ ธ์, ๋ค ํ์ค๋ก ๊ตฌ์ฑํ๋๋ฐ, ๊ทธ๋ฌ๋ฉด ์๋๋ ๊ฑธ๊น์ ,,, ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋จ ๊ทธ๊ฒ์ ์์ ์ ๋๋ค.
์ด๊ฑฐ ์๋ง๋ ์ ๋
ธํธ๋ถ์์ Ctrl+L
๋๋ฌ์ ์๋์ผ๋ก ๋ฐ๋ ๊ฒ ๊ฐ์์!
private fun clearSurveyQuestionState() { | ||
_surveyQuestion.value = EMPTY | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฌ๊ธฐ๋์ฉ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค์ ์์ ํด๋์๊น์?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค์ ์์ ํ์๋๋ค!
์ ๋ฐ์ ์ผ๋ก ์ ๋ ๋ด๋ถ ์์ง ๊ฐ๊ฒฉ์ 32dp๋ก ํ๋๋ฐ, |
LazyColumn( | ||
verticalArrangement = Arrangement.spacedBy(16.dp), | ||
modifier = Modifier.fillMaxSize(), | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ๊ท๋ ์ด๋ ๊ฒ ๊ตฌ์ฑํ๋ฉด,
์ด๋ฒคํธ ๋ชฉ๋ก์ ํฌ๊ธฐ์ ๋ฐ๋ผ์, ํ๋ฉด์ ๋์ด๋ฅผ ๋ค ๋ชป์ฑ์ธ ์๋ ์์ง ์์๊น์ ??
์ด๋ฒคํธ๊ฐ ํ๋์ธ ๊ฒฝ์ฐ์ ๋งจ ๋ฐ์ ๋ฒํผ์ด ์ค๊ฐ์ ์ค๋ ๊ฒฝ์ฐ๋ ์์๊น์ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฐ๋ก ์ง์ ํด์ฃผ์ ๋ถ๋ถ์ด
์ ๊ฐ PR์ ์จ๋์๋ ๋ถ๋ถ์ธ๋ฐ์,
์ด๊ฑธ ํด๊ฒฐํ๊ธฐ ์ํด์๋ ์ค์ฒฉ ์คํฌ๋กคํ๋ ๋ฐฉ๋ฒ์ ๊ณต๋ถํด์ผ ํ๋๋ฐ, ์ง๊ธ ์ด์ฌํ ํ๊ณ ์๋ ์ค์ ๋๋ค...!
์์งํ ์คํ ์ค๋ฒ ํ๋ก์ฐ ์ฝ๋๋ณด๊ณ ๋ฐ๋ก ์ ์ฉํ ์ ์๋๋ฐ,
์๋ฆฌ๋ฅผ ๋ชจ๋ฅธ ์ฑ ์ ์ฉํ๋ ๊ฒ ๋ง์์ ์๋ค์ด์ ์ดํดํ๋ ค๊ณ ํ๊ณ ์์ต๋๋ค.
์ถํ์ ์์ ํ ๊ฒ์!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฒซ๋ฒ์งธ ํ๋ฉด์ ์ค์ฒฉ ์คํฌ๋กค์ ํด์ผ ํ ์ด์ ๊ฐ ์์๊น์ ??
์ค๊ฐ์ ๋ ์ด์ง ์ปฌ๋ผ์ ์คํฌ๋กค์ด ํ์ํ๊ฒ ์ง๋ง,
๋๋จธ์ง ๋ ๊ฐ์ ์ปดํฌ๋ํธ Title, Button์ด ํ๋ฉด์์ ํฌ๊ฒ ์ฐจ์งํ๋ ๋ถ๋ถ์ ์๋๋ผ๊ณ ์๊ฐํด์
๊ทธ๋์ ์ ๋ ์ ์ฒด ํ๋ฉด์ fillMaxSize + SpaceAround (๋งจ์ ํ์ดํ, ๋งจ ์๋ ๋ฒํผ ๋ฐฐ์น ์ํจ) + List(๋จ๋ ์ผ๋ก weight)์ผ๋ก ๊ตฌํํ์ด์ !
ํด๋น ๋ฐฉ๋ฒ๋ ๊ณ ๋ คํด๋ณด์๋ฉด ์ข์ ๊ฒ ๊ฐ์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทธ๋ ๊ฒ ๊ตฌํํ๋ฉด ๋งค์ฐ ํธ๋ฆฌํ๊ธด ํด์!
๋ค๋ฅธ UI์ชฝ๋ ์คํฌ๋กค ํด์ผ์ง๋ง ๋ฒํผ์ด ๋์ค๊ฒ ๋์ด์์ด์
ํด๋น ํ๋ฉด๋ ์คํฌ๋กค์ด ๋ชจ๋ ๋ ๋ค์ ๋ฒํผ์ด ๋์ค๋๋ก ํต์ผ์ํค๋ ค๊ณ ๊ทธ๋ ๊ฒ ํ์ด์.
๊ทธ๋ ๊ฒ ๊ตฌํํ๋ ๊ฒ์ด ๊ฐ๋ฐ์ ์ผ๋ก ๋ ํธ๋ฆฌํ๊ธด ํฉ๋๋ค.
์ด ํ์ด์ง๋ ๊ทธ๋ ๊ฒ ๊ตฌํํ๊ณ ์ถํ์ ๊ณต๋ถ๊ฐ ์๋ฃ๋๋ฉด ๋ค์ ๋ฆฌํฉํ ๋ง ํ ๊น์?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์ ์ฒด๋ฅผ ๋ชฉ๋ก์ผ๋ก ๋ง๋๋, ํ๊ท๋์ด ๋ง์ํ์ ๋ฐฉ๋ฒ๋๋ก ๋ ๊ฒ ๊ฐ๋ค์ !!
๊ทผ๋ฐ ์ ๋ ๋ฒํผ์ด ์๋๋ถ๋ถ์ ์๋ถ๋ ๊ฒ๋ ์๋๋ฐ, ๋ชฉ๋ก์ด ์ปค์ก์ ๋ ๋ฒํผ์ด ๋ฐ๋ก ์๋ณด์ด๋๊ฒ ์ ์ผ ํฐ ๊ฒ ๊ฐ์์.
์ฒ์ ์ฌ์ฉํ๋ ์ฌ์ฉ์๋ผ๋ฉด, ๋ฒํผ์ด ์คํฌ๋กคํด์ผ ๋ณด์ด๋ ๊ฑธ ์๊ธฐ ์ฝ์ง ์์ ๊ฒ ๊ฐ์์์ใ
ํด๋น ์๊ฒฌ๊ณผ ๋ง์ฐฌ๊ฐ์ง๋ก,, ์ ๋ ์ด์ ๋ฐฉ์์ ํํ ๋์ง๊ฒ ์ต๋๋ค ์บฌ์บฌ์บฌ์บฌ (ํ๊ท๋ ๋ฌดํ์ผ๋ก ์ผ ๋ง๋ค์ด๋ฒ๋ฆฌ๊ธฐ)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ทผ๋ฐ ์๊ฐํด๋ณด๋ ์ ๋ ์ด๊ฒ ๋ง๋ ๊ฒ ๊ฐ๋ค์!
๋ค์ ์์ ํด๋๊ฒ ์ต๋๋ค!
ํ๊ท์!! ์ด๊ฒ ์ ์์ ๋ถ๋ถ์ด๋ผ ๊ฝค ์ง์ค์ ์ผ๋ก ๋ฅํ๊ฒ ๋ฆฌ๋ทฐ ๋จ๊ธธ์ ๋ฐ์ ์๋ ์ ์ดํด๋ถํ๋๋ ค์ ใ ใ |
๊ด์ฐฎ์ต๋๋ค. ์ ๋ถ์ฐฐ์ ๋๋ค ใ ใ ใ
์ ๋ ์ต๋ํ ํผ๊ทธ๋ง UI์ ๋ง์ง์ ๋ณด๊ณ ์ค์ ํ์ด์. ํน์ 32๋ก ๋ฐ๋ก ์ค์ ํ์ ์ด์ ๊ฐ ์๋์ง ๊ถ๊ธํด์! |
ํผ๊ทธ๋ง ์๋ณธ ์ ์๋ชป์ ๋๋ค ใ ํผ๊ทธ๋ง ๋๋ก ๊ฐ์ ์๋ค !! |
1. ๐ ๊ด๋ จ๋ ์ด์ ๋ฐ ์๊ฐ
closed #89
2. ๐ฅ๋ณ๊ฒฝ๋ ์
- ์์ ๊ธฐ๊ธฐ์์๋ ํธํ๋ ์ ์๋๋ก Scrollable๋ก ๋ณ๊ฒฝํ์์ต๋๋ค.
- ๋ถํ์ํ Composable๋ค ๋ค ์์ ๋ฒ๋ ธ์ต๋๋ค.
- ์ผ์ ๊ด๋ จ ๋ถ๋ถ Management ๋ชจ๋์์ Management-Event ๋ชจ๋๋ก ๋ถ๋ฆฌํ์ต๋๋ค.
3. ๐ธ ์คํฌ๋ฆฐ์ท(์ ํ)
ํฐ ํ๋ฉด
์์ ํ๋ฉด
์ค์ฒฉ ์คํฌ๋กค์ด ํ์ํ ์ค๋ฌธ ๋ฑ๋ก ์ฒซ ๋ฒ์งธ ํ์ด์ง ๋นผ๊ณ ๋ ๋ค ๋ง์์ ๋ญ๋๋ค.
๋ณด์๋ฉด ํฐ ํ๋ฉด์์ ์ค๋ฌธ ๋ฑ๋ก ์ฒซ ํ์ด์ง ๋ค์ ํ๋ฉด์ผ๋ก ๊ฐ๋ ๋ฒํผ์ด ํ๋จ์ ๋ฑ ๋ถ์ด์์ง ์์์.
์ด ๋ถ๋ถ๋ง ์ค์ฒฉ์คํฌ๋กค์ด๋ผ์ ๊ทธ๋ฐ๊ฑด๋ฐ, (๊ด๋ฆฌ ์ฒซ ํ์ด์ง๋ LazyColumn์ ๋์ด๊ฐ ์ ํด์ ธ์์ด์ ์๊ด์์ด์)
์ถํ์ ๋ฆฌํฉํ ๋ง ํ๊ฒ ์ต๋๋ค. ๊ธํ๊ฑด ์๋๋ผ์.
4. ๐ก์๊ฒ๋ ํน์ ๊ถ๊ธํ ์ฌํญ๋ค
์คํฌ๋กค ๋๊ฒ ํ๋ ๋ฐฉ๋ฒ
์ ๊ฐ์ด
verticalScroll()
์๋ค๊ฐscrollState
๋ฅผ ๋ฃ์ด์ฃผ๋ฉด ๋๋ค.์ด ๋,
scrollable
ํ๊ฒ ๋ง๋ Composalbe ๋ด๋ถ์ Composable์Modifier.fillMaxSize()
๊ฐ ๋จน์ง ์๋๋ค.์ด๋ด ๊ฒฝ์ฐ ์๋ ์ฝ๋์ ๊ฐ์ด,
height(IntrinsicSize.Max)
๋ฅผ ์ถ๊ฐํด์ฃผ๋ฉดfillMaxSize()
๊ฐ ๊ฐ๋ฅํด์ง๋ค.์ด ํด๊ฒฐ ๋ฐฉ๋ฒ์ ๊ฐ๋จํ์ง๋ง, ๋ทฐ ๋ด๋ถ์ ๋ชจ๋ ์ธก์ ์ด ๋ ๋ฒ ์ํ๋๋ฏ๋ก ์ฑ๋ฅ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์๋ค.
๋ ํผ๋ฐ์ค
ํน์ ์ปดํฌ์ฆ์์ ๊ถ์ฅํ์ง ์๋ ๋ฐฉ์์ด์ง๋ง,
์ ๊ฐ์ด
BoxWithConstraints
๋ฅผ ์ฌ์ฉํ๋ค.๊ทธ๋ฆฌ๊ณ ๋ด๋ถ์
heightIn(min = maxHeight)
๋ฅผ ๋๋ค.์ฌ์ค ์ธก์ ์ ๋๋ฒํ๋ ๊ฑฐ๋ ์ ์ฝ์ ์ฌ์ฉํ๋ ๊ฑฐ๋ ๋ ๋ค ์ปดํฌ์ฆ์์ ๊ถ์ฅํ๋ ์ฌํญ์ ์๋๋๊น ๊ฑฐ๊ธฐ์ ๊ฑฐ๊ธฐ์ผ์ง๋..?