-
Notifications
You must be signed in to change notification settings - Fork 0
7주차 과제 PR입니다. #4
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
base: main
Are you sure you want to change the base?
Conversation
skdud0629
left a 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.
수고하셨어요! 👍
| private val onItemLongClick: (Int) -> Unit | ||
| ) : RecyclerView.Adapter<NameAdapter.ViewHolder>() { | ||
|
|
||
| class ViewHolder(view: View) : RecyclerView.ViewHolder(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.
| class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { | |
| inner class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { |
|
|
||
| private fun setupAddButton() { | ||
| val nameEditText = findViewById<EditText>(R.id.editText) | ||
| findViewById<Button>(R.id.addButton).setOnClickListener { |
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.
EditText는 변수로 따로 선언해주시고 Button은 따로 선언 안해주셨네용
기능적으로 문제 있는 거는 아니지만 좀 더 가독성 있는 코드를 작성하기 위해..
|
|
||
| AlertDialog.Builder(this) | ||
| .setTitle("수정") | ||
| .setView(editText) |
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.
edittext가 들어간 커스텀 다이얼로그를 만들어보는 거는 어떨까용??
7주차 과제 PR입니다.