pull to refresh1 Kotlin] 안드로이드 당겨서 새로고침 // SwipeRefreshLayout build.gradle 추가해주고 dependencies { implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" } activity_main.xml MainActivity.kt // 당겨서 새로고침 pullToRefresh.setOnRefreshListener { //새로고침 내용 items.clear() . . // 새로고침 중지 // 없으면 새로고침 애니메이션 끝나지 않음 pullToRefresh.isRefreshing = false } https://javapapers.com/android/android-swipe-down-to-refresh-a-listview/ Android Swipe Down to Refresh a Lis.. 2020. 3. 20. 이전 1 다음