Disabling CheckedTextView

1k Views Asked by At

I use CheckedTextView. I am Disabling it using the method "setEnabled(false)" . If I do so, only the colour of the text changes to grey, but its still checkable. How to disable CheckedTextview? Even I tried with setClickable(false), even that didn't work.

3

There are 3 best solutions below

0
On

You can go for

isSelected()

method. It will surely solve your problem.

0
On

setFocusable, setFocusableInTouchMode to false.

0
On

Use chkTextView.setEnabled(false); for disable click on checkbox it works for me.