I've got an application in development where at various points in the life cycle, edittext views will show on screen. Using the virtual keyboard on my various test devices all works as expected (I focus the edittext programmatically and use IME to show the keyboard), but when I test using an attached USB keyboard, I get odd results. The edittext still appears focused (highlighted, blinking cursor) and the virtual keyboard doesn't display (which is expected), but when I try to type in the edittext view, nothing appears.
I've found that if I use the Tab key or the down arrow, the edittext "focuses" and the keyboard begins to work properly. Odder still, if I start with text in the edittext, the backspace and delete keys work as expected, but even after I use them, I still can't type text into the view. Also, tapping the edittext to manually assign it focus doesn't alleviate the problem. I'd chalk it up to some other view getting focus, but as I said, the edittext appears to be focused, and I've written test code that indeed confirms that the view's requestfocus method returns True when it's supposed to.
I've tried requesting focus at various points on the edittext, disabling IME, but nothing seems to get around this issue. I've tried 2 different USB keyboards on two different devices, with the same results.
Does anyone have any suggestions on how to get a physical keyboard to play nicely with my views?
I've found that if I use the Tab key or the down arrow, the edittext "focuses" and the keyboard begins to work properly. Odder still, if I start with text in the edittext, the backspace and delete keys work as expected, but even after I use them, I still can't type text into the view. Also, tapping the edittext to manually assign it focus doesn't alleviate the problem. I'd chalk it up to some other view getting focus, but as I said, the edittext appears to be focused, and I've written test code that indeed confirms that the view's requestfocus method returns True when it's supposed to.
I've tried requesting focus at various points on the edittext, disabling IME, but nothing seems to get around this issue. I've tried 2 different USB keyboards on two different devices, with the same results.
Does anyone have any suggestions on how to get a physical keyboard to play nicely with my views?