2010-10-13 49 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