I made a custom ImageView
that supports basic scrolling through calls to View.scrollBy()
in a GestureDetector
. I wanted to add some feedback on the reaching of scrolling bounds so I enabled fading with:
setVerticalFadingEdgeEnabled(true);
setHorizontalFadingEdgeEnabled(true);
but the fading works as I expected only on top and left edges, while bottom and right ones don't fade. I'm sure those edges aren't off screen because the view is set to fill_parent in height and width. So what's wrong?
EDIT: enabling only vertical/horizontal fading edges confirms that only top/left edges get drawn. Now I'm trying to read View.java (6870 an on)...