开发者

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

开发者 https://www.devze.com 2023-03-13 12:43 出处:网络
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 particul

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

精彩评论

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