Custom overscroll glow/edge color for ListView?
android, android-layout, android-listview, android-widget
Solution
You can use a reflection-like solution to hack your way to changing this glow color:
int glowDrawableId = context.getResources().getIdentifier("overscroll_glow", "drawable", "android");
Drawable androidGlow = context.getResources().getDrawable(glowDrawableId);
androidGlow.setColorFilter(brandColor, PorterDuff.Mode.MULTIPLY);
I encountered the same problem, and it seems like a good solution, at least until Google adds an API for changing the color (or branding the color): http://evendanan.net/android/branding/2013/12/09/branding-edge-effect/
Problem
I have a `ListView`, and a custom style that basically looks just like Holo, but with yellow accents instead of blue. When I scroll to the bottom or top of the list, I get the un-fitting blue. I made custom drawables for `overscroll_glow.png` and `overscroll_edge.png`, but I don't know how to use them. How can I get my `ListView` to use these drawables instead of the system ones? Would the `OverScroller` class help?