开发者

ScrollView Effect

I have a Listview in my application. I have set the ScrollView to my LinearLayout. Now I want to set the ScrollView visible only while I am scrolling. If i am not scrolling, then it should not be shown.

开发者_StackOverflow中文版Any idea for this view?


Assuming View myView,

myView.setScrollbarFadingEnabled(true);

http://developer.android.com/reference/android/view/View.html#setScrollbarFadingEnabled%28boolean%29


You need to set the scroll bar size to be 0, this is part of the View flags so that's why you don't find it in the ScrollView docs.

View | Android Dev

so either set it in layout.xml:

android:scrollbarSize="1px"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜