I think the attribute you are looking for is:
android:requiresFadingEdge="horizontal|vertical"
You can search and better understand this attribute from the recycler documentation view.
The other attribute you're talking about, 'cacheColorHint' , can be used to match the attenuation color with the background color. This attribute is the color on which the list view is drawn, and is defined as an opaque color , because you do not always have a white background (I think this is the default color ... but I'm not sure), the best option is to use a transparent color "# 00000000" as suggested by Romain Guy.
Hope this is what you are looking for!
Greetings
source share