compile 'com.github.anzewei.alphabet:AlphabetIndexAdapter:0.1'
##2.继承AlphabetIndexAdapter
public class Friend implements AlphabetIndexAdapter.ILetterAble
public class FriendAdapter extends AlphabetIndexAdapter<Friend> {
protected View getKeyView(int position, View convertView, ViewGroup parent) {
索引的view
}
protected View getChildView(Friend item, View convertView, ViewGroup parent) {
子项的view
}
}
##3.其他设置 通过调用setShowKey显示或隐藏索引view
adapter.setShowKey(false);