GridView's BUG, or am I useless?

https://github.com/Sel8616/Aui/issues/1

Demo APK

Multi-column GridView, turn on TranscriptMode (regardless of Noraml or Always_Scroll)

There is some data, and after loading part of it into the local cache, call the adapter's notifyDataSetChanged

The following problems occur:

  • The first item is gone (the first item of all data, not the first item of the currently visible range)
  • Can scroll up out of bounds. If it crosses the boundary too much until the first item rolls the bottom edge, it will not roll back directly. .

I didn't find any useful information. I don't have time to study the internal code. Let's put it here for now.

Original 10 items, starting with 0

Original 10 items, starting with 0

Add 10 more, the first item_0 is gone

The first item_0 is gone

At this time, you can scroll up infinitely, but after you remove all the content, you can't scroll back.

Turn up, go out and you can't come back

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324207774&siteId=291194637