일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- es6
- Python
- 보조정렬
- tomcat
- 정렬
- Java
- MSSQL
- xPlatform
- hadoop
- JavaScript
- NPM
- mybatis
- window
- react
- Express
- Eclipse
- Kotlin
- maVen
- IntelliJ
- Spring
- Sqoop
- SPC
- R
- Android
- SQL
- GIT
- 공정능력
- mapreduce
- vaadin
- table
- Today
- Total
목록RecyclerView (3)
DBILITY
독거 가능성 100% 노후에 라면값이라도 하게 센스를 발휘합시다!😅
Please click on the ad so that I can pay for ramen in my old age!
点击一下广告,让老后吃个泡面钱吧!
老後にラーメン代だけでもするように広告を一回クリックしてください。
private val smoothScroller: SmoothScroller by lazy { object : LinearSmoothScroller(binding.root.context) { override fun getVerticalSnapPreference(): Int { return SNAP_TO_START } } } activityMainRecyclerView.apply { layoutManager = LinearLayoutManager(root.context) layoutManager?.apply { smoothScroller.targetPosition = viewModel.items.value.size-1 startSmoothScroll(smoothScroller) } itemAnimator ..
MutableStateFlow에 MutableList형을 넣어(?) 자료를 추가,삭제,갱신해 봤다. 이게 맞는 건지는 모르겠다. 되는대로 하였음 ViewModel.kt import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch ..
https://developer.android.com/develop/ui/views/layout/recyclerview?hl=ko RecyclerView로 동적 목록 만들기 | Views | Android Developers 이 페이지는 Cloud Translation API를 통해 번역되었습니다. 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. RecyclerView로 동적 목록 만들기 Android Jetpack의 구성요소 developer.android.com 공식처럼 사용하면 되려나 RecyclerView에 표시될 Item의 data class,Layout을 만들고 layoutManager를 지정하고 adapter를 연결한다. adapter가 중요한데 ListAdap..