EditText에 텍스트 입력 후 버튼 눌러서 리스트에 추가
리스트 항목을 롱클릭해서 리스트에서 제외
하는 예제이다.
RecyclerView에
AAC ViewModel + LiveData + ListAdapter를 곁들인..
나의 작고 소듕한 예제..
데이터 바인딩도 추가했다.
참고 링크 :
[Android] RecyclerView에 DataBinding 적용하기
태그들을 RecyclerView로 만들고 DataBinding을 곁들여서 Drawable 이미지와 텍스트를 변경해줄 것이다. 파일 구조는 위와 같다.RecyclerView에 들어가는 정보인 이미지와 텍스트를 클래스로 정의해준다. 이
velog.io
데이터바인딩 two-way binding 원리
EditText 로 알아보는 BindingAdapter
improve777.medium.com
https://jwsoft91.tistory.com/67?category=815797
[Java] DataBinding + LiveData + BindingAdapter
DataBinding + LiveData + BindingAdapter build.gradle (Module: app) android { dataBinding { enabled = true } } BindingAdapters.java package com.jwsoft.javaproject; import android.view.View; import androidx.annotation.ColorInt; import androidx.databinding.Bi
jwsoft91.tistory.com
'개발 > Android' 카테고리의 다른 글
| [실수담] flow collect 두 개 실행 시 안될 때 (0) | 2022.12.14 |
|---|---|
| [DI] hilt 조금만 찍먹해보았다 (0) | 2022.12.07 |
| 페이징3 - 기본 기능 구현 + LoadStateAdapter + Refresh + EmptyView 구현 (0) | 2022.12.02 |
| StaggeredGridLayout 한 쪽으로 쌓일 때 해결 방법 (0) | 2022.11.28 |
| [JAVA] 안드로이드 LiveData 초간단 예제 (ViewModel 안 쓰고) (0) | 2022.11.02 |