Skip to content

Lee hyungjun/step.03#11

Open
LEE-HYUNGJUN wants to merge 2 commits into
Step.03-Solution-Databinding-binding-button-click-eventfrom
LEE-HYUNGJUN/Step.03
Open

Lee hyungjun/step.03#11
LEE-HYUNGJUN wants to merge 2 commits into
Step.03-Solution-Databinding-binding-button-click-eventfrom
LEE-HYUNGJUN/Step.03

Conversation

@LEE-HYUNGJUN
Copy link
Copy Markdown

์–‘๋ฐฉํ–ฅ ๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ ์˜ˆ์ œ๋ฅผ ์‹ค์Šต.

์‹ค์Šต ํ•˜๋ฉด์„œ ๊ณ ๋ฏผํ–ˆ๋˜ ๊ฒƒ์€ EditText์—์„œ ์‹ค์‹œ๊ฐ„์œผ๋กœ ์ž…๋ ฅํ•˜๋Š” ๊ฒƒ์ด TextView์— ๋ฐ”๋กœ ์ž…๋ ฅ๋˜๋Š” ๊ฒƒ๋„
์–‘๋ฐฉํ–ฅ ๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜์—ฌ ์ ‘๊ทผ ๋ฐฉ์‹์„ ์–ด๋–ค์‹์œผ๋กœ ํ•ด์•ผ ํ• ์ง€ ์กฐ๊ธˆ ์˜ค๋ž˜๊ฑธ๋ ธ์Šต๋‹ˆ๋‹คใ…œ

jinsu4755 and others added 2 commits December 31, 2020 14:16
์–‘๋ฐฉํ–ฅ ๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ ์˜ˆ์ œ๋ฅผ ์‹ค์Šต.  layout์˜ EditText์— text ์ถ”๊ฐ€.  MainActivity์—์„œ ์ƒˆ๋กœ์šด ํ•จ์ˆ˜๋ฅผ ์ถ”๊ฐ€ -> ๊ธฐ์กด์˜ ๋ฒ„ํŠผ ํด๋ฆญ ๋ฆฌ์Šค๋„ˆ๊ฐ€ ํ•„์š” ์—†์–ด์ง 

Related to #3
@LEE-HYUNGJUN LEE-HYUNGJUN added the ํ˜•์ค€ ๋‹ด๋‹น์ž: ํ˜•์ค€ label Jan 1, 2021
@LEE-HYUNGJUN LEE-HYUNGJUN requested a review from jinsu4755 January 1, 2021 04:25
@LEE-HYUNGJUN LEE-HYUNGJUN self-assigned this Jan 1, 2021
Copy link
Copy Markdown
Member

@jinsu4755 jinsu4755 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋”ฐ๋ด‰~ ์•„๋งˆ ์ด์ •๋„ ํ–ˆ์œผ๋ฉด ์–ด๋А์ •๋„์˜ ๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ ์‚ฌ์šฉ๋ฒ•์€ ์‚ฌ์‹ค ์‹ค์Šตํ•ด๋ณด์•˜์ง€๋งŒ

๋ฐ์ดํ„ฐ ๋ฐ”์ธ๋”ฉ ๊ฒฐํ•ฉ์‹์€ ์ „ํ˜€ ์‚ฌ์šฉํ•˜์ง€ ์•Š์€ ์ผ€์ด์Šค๊ฐ€ ๋ ํ…๋ฐ ์ด ๋ถ€๋ถ„์€ ์‹ค์Šต์œผ๋กœ ๋‹ค๋ฃจ์ž๋‹ˆ ๋„ˆ๋ฌด ์‹œ๊ฐ„์ด ์˜ค๋ž˜๊ฑฐ๋ฆด๋“ฏ ํ•ด์„œ ๊ณต์‹๋ฌธ์„œ๋ฅผ ์ฝ์–ด๋ณด๋„๋ก ํ•˜์ž! ์ˆ˜๊ณ ํ–ˆ์–ด~~


private lateinit var binding: ActivityMainBinding
val editText = ObservableField<String>()
var editText = ObservableField<String>()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜ค์šฐ ์ด ObservableField๋Š” ๋‚ด๋ถ€ ๊ฐ’์ด ์•Œ์•„์„œ ๋ณ€๊ฒฝ๋˜๋Š” ์นœ๊ตฌ์ด๊ธฐ ๋•Œ๋ฌธ์— ํ•ด๋‹น ์ธ์Šคํ„ด์Šค๋ฅผ var๋กœ ๋ณ€๊ฒฝ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•ด์ค„ ํ•„์š”๊ฐ€ ์—†์–ด!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ํ˜•์ค€ ๋‹ด๋‹น์ž: ํ˜•์ค€

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants