实现方法: 在xml中设置listview属性:
android:fastScrollEnabled="true"
或者在Java代码中
mListview.setFastScrollEnabled(true);
默认只有当ListView的内容大于
4
页时,才会显示快速滑动块。