Skip to content

waldenana/AlphabetIndexAdapter

Repository files navigation

PageListLoader

#使用方法 ##1,配置gradle

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);

About

拼音排序的adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages