Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Use other view instead of TextView may cause problem "Changes made to Items affect other Items" #89

Open
spdv123 opened this issue Aug 19, 2016 · 0 comments

Comments

@spdv123
Copy link

spdv123 commented Aug 19, 2016

I used a RelativeLayout View contains two TextViews: t1 and t2.When click on one item its t2 will change, however, other items' t2 changed either. I found one solution in "http://stackoverflow.com/questions/36099052/android-listview-changes-made-to-items-affect-other-items" but it didn't work, then I found that it was caused by the function getItemViewType(), so I changed every
getItemViewType(XXX) into Item item = (MainActivity.Item)(adapter.getItem(XXX)); int viewType = item.type; and it worked well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant