2

I tried to solve this problem. And I got this:

  1. ScrollView

    • change background color
    • change cacheColorHint color
    • change theme
  2. Extends ListView and make custom ListView

@Override
public int getSolidColor() {
    return Color.rgb(0x30, 0x30, 0x30);
}

1 didn't work for me. So, I tried to do 2. But I can't find any methods with that name in parent class which is RecyclerView.

So, In this case, It seems like RecyclerView is different from ScrollView and ListView.

How can I change the color?

c-an
  • 3,543
  • 5
  • 35
  • 82

2 Answers2

0

Maybe you you can try to modify this attribute:

<color name="colorPrimary">@color/defaultColor</color>
elarcoiris
  • 1,914
  • 4
  • 28
  • 30
0

I got the answer from this

The overscroll glow color inherits the primary color value set by android:colorPrimary in your entire app. But If you need to specify different value simply use android:colorEdgeEffect (only available for API 21 and above).

<style name="MyAppTheme" parent="...">
   <item name="android:colorEdgeEffect">@color/my_color</item>
</style>
krishnaacharyaa
  • 14,953
  • 4
  • 49
  • 88