list.xml代码:设置fastScrollEnabled为true
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:Android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fastScrollEnabled="true"
>
</ListView>
</LinearLayout>
更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11
