QMBForm icon indicating copy to clipboard operation
QMBForm copied to clipboard

Focus and keyboard issue

Open ToddManUtah opened this issue 9 years ago • 3 comments

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 avatar Dec 24 '15 04:12 ToddManUtah

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 avatar Dec 24 '15 04:12 ToddManUtah

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?

ToddManUtah avatar Jan 07 '16 17:01 ToddManUtah

Same problem only on Android 6.0 Marshmallow.

Changing android:focusable="false" made unwritable.

cerob avatar Jul 22 '17 11:07 cerob