CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

Enable / Disable CountryCodePicker

Open ma-altaiir opened this issue 8 years ago • 5 comments

Hello;

Tried to disable component but it seems like it does not work at all, tried from xml and code both enabled and clickable , none is working.

ma-altaiir avatar Apr 04 '18 22:04 ma-altaiir

Hello, android:clickable="false" will not work. You can use app:ccp_clickable="false" from XML and setCcpClickable(false); from code to disable click.

If this does not work, feel free to comment back.

hbb20 avatar Apr 17 '18 20:04 hbb20

I dont find setCcpClickable(false) method. Please help.

kamalmeh avatar Oct 16 '19 17:10 kamalmeh

oh... What is the library version you are using? I think it should be there in latest one at least. Here is the method in code.

hbb20 avatar Oct 16 '19 17:10 hbb20

I got it. I was using older version. I am now using the latest as mentioned in README page. My mistake. It is resolved now. Thanks! for the response.

kamalmeh avatar Oct 16 '19 18:10 kamalmeh

I dont find setCcpClickable(false) method. Please help.

You need to cast it to (CountryCodePicker), more likely you are dealing with abstract (View).

omzer avatar Jan 19 '20 13:01 omzer