How to add a UI to a large android listview? -
i have android app displays custom contact list of 500 people , works fine; if looking name starts letter "s", takes forever scroll down.
how can program jump s without scrolling entire list?
here xml layout code:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_width="fill_parent" android:background="@color/background" android:orientation="vertical"> <listview android="@+id/android:thelist" android:layout_height="0dip" android:layout_width="wrap_content" android:scrollbars="vertical" android:fadingedge="vertical" android:padding="2dp" android:fastscrollenabled="true"> </listview> <textview android:text="@+id/textview01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/label" android:textsize="14dip" android:textstyle="bold" android:paddingleft="10dip" android:paddingtop="3dip"></textview> </linearlayout>
have considered using fastscroll option?
Comments
Post a Comment