参考链接:http://blog.csdn.net/johnny901114/article/details/7869047
代码入手:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"
android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb"
android:scrollbarSize="5dip"
android:scrollbarStyle="insideInset" >
....
</ScrollView>
效果图:
android:scrollbarTrackVertical //右边滑动轨道的效果(白色);
android:scrollbarThumbVertical //右边滑动的线条效果(蓝色);
android:scrollbarSize //右边滑动轨道横截面的宽度;
android:scrollbarStyle
详情请看http://blog.csdn.net/guangcheng0312q/article/details/52181123