Android : colorEdgeEffect takes effect for the whole app, how can I set it for a specific RecyclerView?

on Sunday, March 8, 2015


My application has different colors depending on the section. I would like to change the overscroll color of a recyclerView programmaticaly.


As the primary color of the app cannot be modified programatically I have tried several solutions including this one in my Theme, and it works for different Activities, but not for specific Fragments inside an Activity...



<style name="MyAppTheme" parent="...">
...
<item name="android:colorEdgeEffect">@color/my_color</item>
</style>


So my question, is how to change the overscroll color programmatically for a RecyclerView.


Thanks


enter image description here


0 comments:

Post a Comment