-
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
Feat/week compose 06 #12
base: develop-compose
Are you sure you want to change the base?
Conversation
var loginId = mutableStateOf("") | ||
var loginPw = mutableStateOf("") |
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.
recompositionμ μν΄ μ΄λ κ² λ°κΎΈλ건 μ΄λ¨κΉμ?
var loginId = mutableStateOf("") | |
var loginPw = mutableStateOf("") | |
var loginId by remember { mutableStateOf("") } | |
var loginPw by remember { mutableStateOf("") } |
Toast.makeText( | ||
context, | ||
"λ‘κ·ΈμΈ μ±κ³΅", | ||
Toast.LENGTH_SHORT, | ||
).show() |
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.
ν©μΈλλ¬Έμ λ°μ ν λ°λ κ³Όμ κΉμ§ νλλΌ μκ³ λ§μΌμ ¨μ΅λλ€! viewmodel μ ν΅μ λ‘μ§μ 6μ£Όμ°¨λ λ°°μ λ κ²λ€λ‘ λ°κΏλ³΄μκΈΈ μΆμ²λλ €μ!
var signupId = mutableStateOf("") | ||
var signupPw = mutableStateOf("") | ||
var signupName = mutableStateOf("") | ||
var signupPhone = mutableStateOf("") |
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.
리컴ν¬μ§μ λ§ μ£Όμνλ©΄ μ’μκ² κ°μμ!
λλ¨Έμ§λ xmlκ³Ό λμΌν©λλ€!
<uses-library | ||
android:name="org.apache.http.legacy" | ||
android:required="false" /> | ||
|
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.
μ΄κ±΄ μ΄λ€κ±°μ£ ??
request = RequestSignUpDto( | ||
authenticationId = authEntity.id, | ||
password = authEntity.pw, | ||
nickname = authEntity.name ?: "", |
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.
nickname = authEntity.name ?: "", | |
nickname = authEntity.name.orEmpty(), |
μΏνλ¦°μ νμ₯ν¨μλ μ¬μ© κ°λ₯ν΄μ!
@GET("member/info") | ||
fun getUserInfo( | ||
@Header("memberId") memberId : Int | ||
): Call<ResponseUserProfile> |
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.
μλ Responseλ‘ λ°κΎΈμ΄λ³΄μΌμ
value = viewModel.loginId.value, | ||
onValueChange = { viewModel.loginId.value = it }, |
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.
μ΄λ¬λ©΄ 리컴ν¬μ§μ μ μν₯μ λ°μκ±° κ°μμ! by λ₯Ό νμ©ν΄λ³΄μμ (μ λ 리컴ν¬μ§μ μ μμ§..)γ
var signUpId = mutableStateOf("") | ||
var signUpPw = mutableStateOf("") | ||
var signUpName = mutableStateOf("") | ||
var signUpPhone = mutableStateOf("") |
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.
var signUpId = mutableStateOf("") | |
var signUpPw = mutableStateOf("") | |
var signUpName = mutableStateOf("") | |
var signUpPhone = mutableStateOf("") | |
var signUpId by remember { mutableStateOf("") } | |
var signUpPw by remember { mutableStateOf("") } | |
var signUpName by remember { mutableStateOf("") } | |
var signUpPhone by remember { mutableStateOf("") } |
μ΄λ κ² ν΄μΌ 리컴ν¬μ§μ μν₯μ λ°μ§ μμ κ² κ°μμ!
rememberλ μνλ₯Ό μ μ§νμ¬ λ¦¬μ»΄ν¬μ§μ
μ΄ λ°μνλλΌλ μ
λ ₯λ κ°μ΄ μ΄κΈ°νλμ§ μλλ‘ ν΄μ€λ€κ³ νλ€μ!
by rememberλ₯Ό κ°μ΄ μ¬μ©νλ©΄ μνκ΄λ¦¬μ λμ± ν¨μ¨μ μΌ κ² κ°μμ!
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.
NOW-SOPT-ANDROID/chanwoo-bae#17 (comment)
var id by rememberSaveable { mutableStateOf("") }
var password by rememberSaveable { mutableStateOf("") }
var nickName by rememberSaveable { mutableStateOf("") }
var mbti by rememberSaveable { mutableStateOf("") }
rememberSaveable: μ»΄ν¬λνΈμ μλͺ μ£ΌκΈ° λμ μνλ₯Ό μ μ§νλ©°, νλ‘μΈμ€ μ’ λ£ λ° κ΅¬μ± λ³κ²½(μ: νλ©΄ νμ ) μμλ μνλ₯Ό μ μ§ν©λλ€.
μ΄λ°κ²λ μλ€κ³ ν©λλ€!!
πππ΄π΄πΆπ¦π΄
πππ°π³π¬ ππ¦π΄π€π³πͺπ±π΅πͺπ°π―
π·ππ€π³π¦π¦π―π΄π©π°π΅
week06.compose.mp4
π¬ππ° ππ¦π·πͺπ¦πΈπ¦π³π΄