Android:如何摆脱scrollView的“褪色边缘”
我在滚动视图中嵌入文本视图时遇到问题。也就是说,当我滚动文本时,会短暂出现一条橙色细线,表明我已经在特定方向上尽可能远了。我已经尝试了一些方法,例如“android:fadingEdge=”none”并设置背景颜色,但它只是停留在那里。
如何摆脱或控制这些“滚动结束”颜色?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看到的不是滚动到内容时通常显示的“褪色边缘”,而是姜饼和更新版本中的“过度滚动”效果。您可以在 XML 中将
android:overScrollMode
设置为“always”、“never”或“ifContentScrolls”。“always”和“never”应该是不言自明的,“ifContentScrolls”只会在内容不完全适合视图而不滚动的情况下显示效果。
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.