2010-10-13 52 views
0

嗨,我想创建一个具有相同功能的基本联系人列表具有本地的一个,即按字母顺序排列,并在侧面滚动拇指选项卡滚动字母。创建一个android contactList视图?

如何创建滚动选项卡的东西?我将使用某种排序算法的顺序排序我的联系人列表,以便应该罚款,但即时知道怎么做在下面的PIC看到快速拇指状片滚动:

alt text

回答

2

几个小时后试图为了解决这个问题我终于找到了非常简单的答案。只需在列表的布局中启用快速滚动。

<ListView 
     android:id="@id/android:list" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:fastScrollEnabled="true" 
    /> 

http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:fastScrollEnabled

+0

欢呼。我会测试一下,看看它是否有效 – jonney 2011-03-23 10:49:18