Android scrolling scroll list

I have an Android app that has been in production for several years. Recently, I have found a problem with ListView in an application that gets blurry when scrolling. The problem only occurs with Android Marshmallows .

Here is a screenshot of ListView when scrolling

enter image description here

Any help would be greatly appreciated.

Thanks!

+6
source share
2 answers

Foreword I sent a separate answer before that, but this solution only worked on my MotoX. Later, I discovered that this did not work for my Galaxy Tab A. The answer here seems more universal:

I managed to fix my scroll blur by specifying a separate ListView style for my application and specifying a different list separator. So, for my application theme, I installed this:

<item name="android:listViewStyle">@style/ListViewStyleNoBlur</item> 

Where ListViewStyleNoBlur defined as:

 <style name="ListViewStyleNoBlur" parent="@android:style/Widget.ListView.White"> <item name="android:divider">@android:drawable/divider_horizontal_bright</item> </style> 

I specified them in the values-v23 resource folder so that the changes did not affect devices with the Marshmallow pre-pointer.

My application theme is based on android:style/Theme.Light , so the parent style of the list style is android:style/Widget.ListView.White . My app min SDK is 8, so I use such an "old" theme. I also noticed that if I use a β€œnewer” theme like Holo, there is no blur.

+1
source

I also had this problem and through a trial error I found a solution. Hope this also works for you. This is similar to a bug in Marshmallow related to the scroll bar in list view. I had the following property specified in my application theme, and removing this property fixed the blurry scroll:

 <item name="android:fadeScrollbars">false</item> 

Using true instead of false also works, but is not necessary, since it is the default value. I also discovered (via trail-and-error) that using android:fastScrollEnabled="true" causes the same blur, but based on your scroll bar style, you don't seem to use it.

In conclusion, do not use android:fadeScrollbars . If this does not fix your problem, try playing with any other scroll-related styles that you can use in your ListView, given that these styles can be part of the view directly or part of the theme of the action or application.

0
source

All Articles