Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

setEnabled(false) #27

Open
felipecds opened this issue Feb 25, 2016 · 4 comments
Open

setEnabled(false) #27

felipecds opened this issue Feb 25, 2016 · 4 comments

Comments

@felipecds
Copy link

I'm using LabelledSpinner in a case where I have a fragment with many disabled fields. When I start the fragment (setting a blank array to spinner), when I use spinner.setEnabled(false), in the first call it isn't work. But when I call setEnabled(true) in a "new item" button and click at my "Cancel" button calling setEnabled(false), the component become unfocusable.

I'm having a problem because when I enter the activity, even setting a dummy layout focusable and focusableInTouchMode = true, the keyboard is opening and I think it is because the spinner are enabled.

I tried setting all descendants views of LabelledSpinner enabled to false, but isn't work either.

@farbodsz
Copy link
Owner

Thanks for letting me know.

I'll have a look into it - alternatively you can fork the project and fix the issue yourself (I don't mind either!).

Let me know of any updates/new information regarding this issue.

@felipecds
Copy link
Author

I will help you with this too. Thnks for replying.

@farbodsz
Copy link
Owner

farbodsz commented Jun 9, 2016

Hi @felipecds

Sorry, it's been a while since I have updated the UsefulViews library. I just wanted to let you know that this is on my to-do list and I haven't forgotten about it. I am extremely busy with studying for exams at school which is why I haven't been able to look into this issue.

I will try to look into it in a couple weeks time.

@muhamad-rizki
Copy link

I fix this issue by using below code
spinner.getSpinner().setEnabled(false);

@farbodsz farbodsz self-assigned this Dec 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants