Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus and keyboard issue #20

Open
ToddManUtah opened this issue Dec 24, 2015 · 3 comments
Open

Focus and keyboard issue #20

ToddManUtah opened this issue Dec 24, 2015 · 3 comments

Comments

@ToddManUtah
Copy link

I've implemented QMBForm in my app but I'm having some problems.

I'm using QMBForm in a DialogFragment. I'm not sure if that makes a difference.

When the dialog comes up, the rows all appear correctly but there is a problem:

  1. The keyboard does not come up automatically although the row is blinking like it's waiting for input
  2. When I click on the row, the keyboard comes up but when I type on the keyboard, nothing happens
  3. If I change to a different row and then come back to the 1st row, the keyboard shows and everything works as expected.

I've implemented the QMBForm in several places in my app and have the same problem. Am I missing something? Has anyone else seen this issue?

Thanks for any help!

@ToddManUtah
Copy link
Author

I found a partial answer in stackoverflow. I added this to the ListView definition in the xml file:
android:focusable="false"

This fixed the issue I was seeing where the row didn't seem to be getting any input.

The problem of the keyboard not appearing automatically is still there. I have to click on the field to get it to come up.

@ToddManUtah
Copy link
Author

Is there a way to set a text row to become the first responder. If I were using simple objective-c, I'd put something in like this: [textView becomeFirstResponder];

I think this may all be related to another issue I'm seeing. If I load the form on a tablet, it works (with the exception of the keyboard coming up on the first text row). If I load the form on a phone, the keyboard doesn't come up right away (just like on the tablet). But, when I touch the text row, the keyboard pops up and then immediately goes away. I can't edit the field because the keyboard hides itself 1/2 second after it comes up. Any ideas on what's happening?

@cerob
Copy link

cerob commented Jul 22, 2017

Same problem only on Android 6.0 Marshmallow.

Changing android:focusable="false" made unwritable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants