gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.85k stars 370 forks source link

File browser: Wrong icons and secondary text while scrolling #2358

Closed wshoy closed 4 months ago

wshoy commented 4 months ago

⚠️ This issue respects the following points: ⚠️

Description

The emerging icons and secondary text come from the recently hidden ones before correcting (look at the file size).

2331 makes it more visible, but is unrelated.

image

https://github.com/user-attachments/assets/09814d74-4e0c-46aa-9620-2e539a61e5a5

Steps to reproduce

  1. Scroll
  2. Look at the emerging icons and secondary text

Information

Android version: 13 Device: App Version: 2.12.2

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-
gsantner commented 4 months ago

What you are seeing here is a common performance trick of RecycleView.

It reuses existing list elements and updates them when they get into view, instead of destroying and recreating the whole. I would say it's quite standard behavior of it.

harshad1 commented 4 months ago

I have added a buffer and made some changes to reduce this #2359