Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 화면 회전
- layout_constrainedWidth
- Popup menu background color
- ThreeTen Backport
- todo
- layout_constrainedHeight
- Load failed
- 생명주기
- NumberPIcker
- http
- Navigation
- json
- Lifecycle
- 기기고유값
- DataBinding
- SSAID
- BottomSheetDialogFragment
- studywithme
- DialogFragment
- multipart
- RecyclerView
- gradle plugin
- Android
- Room
- Retrofit2
- findNavController
- kotlin
- WorkManager
- log
- Collections Function
Archives
- Today
- Total
목록Click (1)
chacha's
♻ RecyclerView에 👆 Click 이벤트 추가하기
아래에서 사용된 코드는 Github 에서 확인하실 수 있습니다. - Implement a Click Listener with RecyclerVIew and DataBinding 👆 DataBinding을 사용할 때, RecyclerView에 ClickListenr를 추가하는 방법 1. 어댑터 클래스가 있는 파일에서 clickListener 클래스를 만듭니다. class SleepNightAdapter() : ListAdapter(SleepNightDiffCallback()) { ... } /** * click 을 감지하고 클릭과 관련되어 처리해야 데이터를 fragment 에 전달합니다. * click event 가 발생할 때마다 이를 fragment 에 알리는 * 아래의 Callback method 는 ..
Android/My Library
2021. 6. 7. 16:11