RecyclerView is scrolling to top, while user is scrolling down (bad anchorPosition?)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề trong codelab trong khi liên tục cuộn xuống, sau đó kiểm tra các log tải của GithubRemoteMediator và những thay đổi được báo cáo của anchorPosition. Xác định lý do anchorPosition di chuyển ngược từ 81 về 41 và xác minh rằng thao tác cuộn không còn nhảy đến một phần tử trước đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
After continuously scrolling down, after a while RecyclerView is switching his position to some element which was before, resulting in not smooth displaying of elements in it.
I only change NETWORK_PAGE_SIZE to 20, and switch to latest versions of:
roomVersion = '2.4.3'
pagingVersion = '3.1.1'
I added logs to GithubRemoteMediator, when scrolling down, there is:
15:21:54.884 RemoteMediator D load, type: REFRESH, state.pages.size: 0, anchorPosition: null
15:21:55.935 RemoteMediator D load, type: PREPEND, state.pages.size: 1, anchorPosition: null
15:21:55.999 RemoteMediator D load, type: APPEND, state.pages.size: 1, anchorPosition: 3
15:21:56.918 RemoteMediator D load, type: APPEND, state.pages.size: 1, anchorPosition: 0
15:21:57.748 RemoteMediator D load, type: APPEND, state.pages.size: 1, anchorPosition: 0
15:22:02.064 RemoteMediator D load, type: APPEND, state.pages.size: 2, anchorPosition: 40
15:22:04.697 RemoteMediator D load, type: APPEND, state.pages.size: 2, anchorPosition: 30
15:22:08.322 RemoteMediator D load, type: APPEND, state.pages.size: 4, anchorPosition: 81
15:22:10.000 RemoteMediator D load, type: APPEND, state.pages.size: 2, anchorPosition: 41
As You can see, anchorPosition after element 81 is going to be 41, which result in RecyclerView most likely going to that element.
- Ngôn ngữ chính
- Kotlin
- Star
- 508
- Fork
- 268
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của android/codelab-android-paging
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
android/codelab-android-paging#236 · 3 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
android/codelab-android-paging#243 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 35/100
android/codelab-android-paging#241 · 1 bình luận ·
Tất cả issue của android/codelab-android-paging
Issue tương tự
-
bug iOS UI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
devsoc-unsw/freerooms-mobile#278 ·
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
home-assistant/android#7690 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
staticAssetsPath follows symlinks outside the directory on WindowsCó thể đã có người làm @ybelMekk đã nhận hôm nay. Đang mởbug security findings
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
navikt/mock-oauth2-server#1132 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
performance solver
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày