setChecked not working
I'm trying to set the CheckBox to checked using myCheckBox.setChecked(true) but it is always not checked when the screen is loaded. Can you please check ?
Thanks.
Hi, I've seen the error, Does the error happen when you call the myCheckBox.setChecked(true) function in the onCreate function?
Exactly, I called during the onCreate function.
Okay, I'm going to fix it!!
Great! Tks !!
I have the same error calling to setChecked() from RecyclerView.onBindViewHolder
For me the same. Calling setChecked() from getView() - BaseAdapter - not working properly. But by flipping some pages, its set yet.
Hope you know how to fix. Thanks
Love the library, but this setChecked issue is a deal breaker for me, it is so basic, can't believe it is not working. Please fix.
+1, this really needs to be fixed.
Hello,any update on this? Anyone found a temporary workaround while it gets fixed?
EDIT: It seems like it's a problem with threads. By reviewing the code, I found a way to make it work (it's a bit hacky, just as a temporary solution until it gets fixed) Call: setChecked(myCheckBox,checked);
And implement: void setChecked(final CheckBox cb, final boolean checked){ cb.post(new Runnable() { @Override public void run() { cb.setChecked(checked); } }); }
Needs to get fixed, pls + 1
Needs to get fixed, pls + 1