<How to display solid color as fadingEdge top in S...
# stackoverflow
r
How to display solid color as fadingEdge top in ScrollView Android I am trying to create a custom ScrollView in Android where I want to display a solid color (#232325) at the top as a fading edge. The goal is to have the top fading edge behave like a solid color block rather than a gradient. my extended class for scrollView as follows: class TopFadeEdgeScrollView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 ) : ScrollView(context, attrs, defStyleAttr) { private val fadeHeight = 100 // Height...