-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
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
有没有设置默认选中数据,默认选中一条或者多条 #9
Comments
修改setAdapter方法, addView(view);之前调用view.setSelected(true);就可以 |
设置setselected不行啊 |
private void initAutoFlowlayout(ArrayList mData, List skillModels) { 无法实现,选中之后 选其他会多选,点击默认的会 不选中 |
第一步,加多一个字段isSelcect控制是否选中,如: |
第一步,adapter的实体类加多一个字段isSelcect控制是否选中,如:
可以实现默认选中。 |
还有,单选后再次点击怎么还可以取消所选中的那一项
The text was updated successfully, but these errors were encountered: