开发者

Android: how to get rid of scrollView's "fading edge"

I'm having a problem with a text view embedded in a ScrollView. That 开发者_运维问答is, when I scroll the text a thin orange line briefly appears to show that I've gone as far as a can in a particular direction. I've tried a couple of things like "android:fadingEdge="none" and setting the background color, but it's just staying there.

How do I get rid of or control these "end of scroll" colors?


What you're seeing isn't the "fading edge" normally shown while you're scrolled into content, it's the "over-scroll" effect in Gingerbread and newer. From your XML you can set android:overScrollMode to "always", "never", or "ifContentScrolls".

"always" and "never" should be self-explanatory, "ifContentScrolls" will only show the effect if the content does not fully fit within the view without scrolling.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜