Open CGmaybe10 opened 9 years ago
Yeah,I met the same error.It takes me some times to find out why.Sometimes,the listview's item doesn't call "onLayout" method!Under this situation,SwipeLayout doesn't call "onLayout",so item is repeated. I advise to close it manually by a special flag.
@lancewong2014 could you tell me how to deal with this situation in detail? I met the same error, and I have done something in fillValues() but the item opened as well.
@euangelion666 I mean u can add a flag for each item.When the flag is true,u open it,otherwise u close it.
@lancewong2014 thank you for your help. But I found that change the view in swipelayout from match_parent to wrap_content can prevent this situation happen. Maybe will help you
Hi, any one found the solution for this problem? I am facing same issue.
Hi I Know my list is small so used following solution
`@Override
public int getViewTypeCount() {
return getCount();
}
@Override public int getItemViewType(int position) {
return position;
}`
use your example, do nothing in fillValues(int position, View convertView) method, there is a problem. eg, listView contains fifty items. 1step, i open first item, 2step, i slide listView down when eleventh item shows, It‘s opened!