We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public void show(int position, List<ImageView> imageGroupList, final List<String> urlList) { show(imageGroupList.get(position), imageGroupList, urlList); }
ImageView
imageGroupList.get(position)
RecyclerView
item复用
position
adapter
ImageView和ImageUrl
// adapter if (!urlList.contains(imageUrl)){ urlList.add(imageUrl) imageList.add(imageView) } // show val urlList = adapter.getUrlList() imageWatcher.show(urlList.indexOf(imageUrl), adapter.getImageList(), urlList)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ImageView
是可以通过imageGroupList.get(position)
拿到;RecyclerView
中存在着item复用
,可能导致传的参数ImageView
是第一次拿到的。RecyclerView
中无论如何都能拿到position
,即使多类型布局,可以通过adapter
中保存ImageView和ImageUrl
The text was updated successfully, but these errors were encountered: