mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add getViewTypeCount() and getItemViewType()
This commit is contained in:
parent
bd8bd44d6f
commit
14fa56c201
1 changed files with 10 additions and 0 deletions
|
|
@ -293,6 +293,16 @@ public class CategorizationFragment extends Fragment {
|
|||
return i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
return sectionHeader.contains(position) ? TYPE_SEPARATOR : TYPE_ITEM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getViewTypeCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
public View getView(int i, View view, ViewGroup viewGroup) {
|
||||
CheckedTextView checkedView;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue