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
ItemClickListener中,设置当前单选点击不生效,修改如下 if (entity.getStatus()==0){ entity.setStatus(1);//添加已经选择的对象 currentAdapter.setCurrentSelectedItem(entity); }else if(entity.getStatus()==1){ mUiData.getSelectedEntities().remove(currentAdapter.getCurrentSelectedItem()); entity.setStatus(0); }
The text was updated successfully, but these errors were encountered:
应该这么写吧
Sorry, something went wrong.
if (entity.getStatus() == 0) {//未选中->选中 entity.setStatus(1); //添加已经选择的对象 currentAdapter.setCurrentSelectedItem(entity); } else if (entity.getStatus() == 1) {//选中->未选中 entity.setStatus(0); //移除已经选择的对象 currentAdapter.setCurrentSelectedItem(null); }
//屏蔽不可点击 if (currentAdapter.getAttributeMembersEntities().get(position).getStatus() == 2) { return; } //再次点击已经选中的 if (currentAdapter.getAttributeMembersEntities().get(position).getStatus() == 1) { currentAdapter.setCurrentSelectedItem(null); mUiData.getSelectedEntities().remove(currentAdapter.getAttributeMembersEntities().get(position)); } else {
No branches or pull requests
ItemClickListener中,设置当前单选点击不生效,修改如下
if (entity.getStatus()==0){
entity.setStatus(1);//添加已经选择的对象
currentAdapter.setCurrentSelectedItem(entity);
}else if(entity.getStatus()==1){
mUiData.getSelectedEntities().remove(currentAdapter.getCurrentSelectedItem());
entity.setStatus(0);
}
The text was updated successfully, but these errors were encountered: