I have an android application which is running on production for several years. Lately, I have discovered a problem with a ListView in the app, that gets blurry while scrolling. The problem only occurs under Android Marshmallow.
Here is a screenshot of the ListView while scrolling
Any help would be much appreciated.
Thanks!
Preface: I posted a separate answer prior to this one, but that solution only worked on my MotoX. I later discovered it did not work for my Galaxy Tab A. The answer here seems to be more universal:
I was able to fix my scrolling blur by defining a separate ListView style for my application and specifying a different list divider. So, for my application theme I set this:
<item name="android:listViewStyle">@style/ListViewStyleNoBlur</item>
Where ListViewStyleNoBlur
is defined as:
<style name="ListViewStyleNoBlur" parent="@android:style/Widget.ListView.White">
<item name="android:divider">@android:drawable/divider_horizontal_bright</item>
</style>
I specified these in a values-v23
resources folder so the change doesn't affect pre-Marshmallow devices.
My application theme is based off of android:style/Theme.Light
, which is why my list view style's parent is android:style/Widget.ListView.White
. My app min SDK is 8, which is why I'm using such an "old" theme. I also noticed that if I use a "newer" theme, such as Holo, the blur does not exist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With