일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 주 4일 근무제
- Firebase authentication apple login 최신
- Spring LocalDateTime response array
- stable-diffusion-webui local 네트워크에서 접속
- 로컬 서버 접속
- Android apple login 인증서 설정
- no such module '__ObjC'
- Firebase authentication apple login
- 소개팅앱 만들기
- Supabase edge function
- 소개팅앱 만들기 flutter
- DT_TOOLCHAIN_DIR cannot be used
- Stomp socket connection event
- Spring boot swagger blank screen
- stable-diffusion-webui local 접속
- supabase storage feature not enabled for this tenant
- 주 4일 근무제 경험담
- supabase edge function deploy error supabaseurl is required
- Supabase edge function insert data
- Firebase authentication android apple login setting
- invite user for supabase project
- Spring google SMTP settings
- 주 4일 근무제 log
- Android apple login
- Android apple login identifier
- supabase storage public url not working
- 소개팅앱 만들기 stomp
- supabase edge function deploy error
- Firebase authentication android apple login
- Stomp user connection event
Archives
- Today
- Total
목록StaggeredGridLayoutManager 삭제 (1)
꿀맛코딩
How to remove Android StaggeredGridLayoutManager item (StaggeredGridLayoutManager item 삭제 방법)
보통 RecyclerView 에서 아이템 삭제후에 notifyItemRangeRemoved() 또는 notifyItemRemoved() 을 이용해서 아이템의 삭제 여부를 통보 해주면 별다른 이상없이 잘 작동 하지만, StaggeredGridLayoutManager 에서는 각 뷰 타입별로 Span 을 달리 하기 위해 ItemDecoration 을 사용했는데, 여기서 out of index 에러가 나는 것이다. 찾아보니 아래와 같은 순서로 제거 동작을 수행하면 더 이상 에러가 나지 않았다. val index = arrayList.indexOf(item) arrayList.removeAt(index) notifyItemRemoved(index) notifyItemRangeRemoved(index, 1) 참고 ..
공부방/Android
2019. 9. 26. 20:12