Closed hongzhou85 closed 10 years ago
When you dispatch the onClick , you should distinguish the Section and the Item, like this:
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (itemList.get(position).getType() == Item.ITEM) {
// do your want to do...
}else{
// the Section is on click
}
See example app. Every item there is clickable.
PinnedSectionListView pList = (PinnedSectionListView) v.findViewById(R.id.pinned_list); pList.setOnItemClickListener( ... );
Only Section is detected and items (non-section) are not detected.