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 answers

0
VVB On

You can go for

isSelected()

method. It will surely solve your problem.

0
yedidyak On

setFocusable, setFocusableInTouchMode to false.

0
Sandeep Devhare On

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