1

I initially used this method: myListView.setScrollingCacheEnabled(false); to enhance my list view's scrolling performance. However, I feel like it is causing a small bug in my list view. And I am not sure what it actually does.

1 out of every 20 times I navigate to the activity or fragment that contains the list view. The list view is not visible, then when I touch the screen, it immediately appears.

What is the difference between myListView.setScrollingCacheEnabled(false); and myListView.setScrollingCacheEnabled(true); ?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
grantespo
  • 2,233
  • 2
  • 24
  • 62
  • that´s like cookies here on the web. Not the same but similar function. In your case it disables the drawing cache of your listviews children (your items), so they must be "redrawn" on every scroll. https://developer.android.com/reference/android/widget/AbsListView.html#setScrollingCacheEnabled(boolean) – Opiatefuchs Dec 21 '16 at 03:32
  • check this SO [Answer](http://stackoverflow.com/a/17516356/3140227) – Vipul Asri Dec 21 '16 at 03:37
  • Possible duplicate of [scrollingCache?](http://stackoverflow.com/questions/15570041/scrollingcache) – Galya Dec 21 '16 at 12:16

0 Answers0