-
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
#19,47 / 소원권 ui & 로직 #62
Conversation
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.
고생했어요~
import sopt.uni.databinding.ActivityWishBinding | ||
import sopt.uni.util.binding.BindingActivity | ||
|
||
class WishActivity : BindingActivity<ActivityWishBinding>(R.layout.activity_wish) { | ||
|
||
private lateinit var multiviewAdapter: WishMultiviewAdapter |
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.
어뎁터 객체를 생성했으면 꼭 onDestroy에 null 처리를 해줘야 메모리 릭이 나지 않습니다!
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.
넹넹 반영하겠습니다!
val intent = Intent(this, WishFcActivity::class.java) | ||
startActivity(intent) |
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.
우리에겐 확장함수가 있으니 사용하시면 편하실거에유
(holder as MultiViewWishHolder1).bind(datas[position]) | ||
when (holder) { | ||
is MultiViewWishHolder1 -> { | ||
holder.bind(datas[position]) | ||
holder.setIsRecyclable(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.
이 메소드는 뭐죵
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.
RecyclerView의 각 아이템에 해당하는 데이터를 ViewHolder에 바인딩하고, 클릭 이벤트 처리하는 메소드인데 서버연결하면서 수정할것 같아용
// with(binding) { | ||
// dialogTitle.setText(getString(R.string.use_wish_dialog_title)) | ||
// dialogBody.setText(getString(R.string.use_wish_dialog_description)) | ||
// btnRight.setText(getString(R.string.dialog_ok_text)) | ||
// btnLeft.setOnSingleClickListener { | ||
// dismiss() | ||
// } | ||
// btnRight.setOnSingleClickListener { | ||
// val fragment = WishUsedFragment() | ||
// parentFragmentManager.beginTransaction() | ||
// .replace(R.id.fcv_wish_fc, fragment).commit() | ||
// } | ||
// } |
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.
주석 제거 plz
import sopt.uni.R | ||
import sopt.uni.databinding.FragmentWishUseMyBinding | ||
|
||
class WishUseMyFragment : Fragment() { |
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.
BindingFragment 상속받으면 좋아유
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.
넹넹 추후에 전부 수정할게용!
📌 관련 이슈
#19, #49
📷 screenshot
2023-07-19.2.37.12.mov
📝 Work Desciption
📚 Reference 혹은 궁금한 사항들
�- edittext 엔터 처리 부분 추후에 다시 해야할 것 같습니다.