|
Please try this ,
1) If you are using ListView - override the following methods.
@Override
public int getViewTypeCount() {
return getCount();
}
@Override
public int getItemViewType(int position) {
return position;
}
2) If you are using RecycyclerView - override only getItemViewType method.
@Override
public int getItemViewType(int position) {
return position;
}
|
Please try this ,
1) If you are using ListView - override the following methods.
@Override
public int getViewTypeCount() {
return getCount();
}
@Override
public int getItemViewType(int position) {
return position;
}
2) If you are using RecycyclerView - override only getItemViewType method.
@Override
public int getItemViewType(int position) {
return position;
}
|
Please try this ,
1) If you are using ListView - override the following methods.
@Override
public int getViewTypeCount() {
return getCount();
}
@Override
public int getItemViewType(int position) {
return position;
}
2) If you are using RecycyclerView - override only getItemViewType method.
@Override
public int getItemViewType(int position) {
return position;
}
|
还有一种可能的问题是你写的recycleview逻辑不全
if之后还有else没有写