Android : How to remove fading effect from HorizontalScrollView?

on Wednesday, March 18, 2015


I have HorizontalScrollView with ListView in it and I want to remove fading effect. I've tried this



android:fadingEdgeLength="0dp"


and this



android:fadingEdge="none"


and



android:cacheColorHint="#fff"


and



android:cacheColorHint="#00000000"


and this in my HorizontalScrollView



@Override
protected float getLeftFadingEdgeStrength() {
return 0.0f;
}

@Override
protected float getRightFadingEdgeStrength() {
return 0.0f;
}


and I still have white fading effect on my LG.


I know that I can solve this problem setting "Over Scroll Mode" to "never", but I need overscroll in my scrollview.


How can I solve this problem?


0 comments:

Post a Comment