[AC-1167] Virtual Keyboard does not show up upon search view gains focus on Android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Not Our Bug |
| Resolution Date | 2014-05-19T06:40:55.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | android, api |
| Reporter | David He |
| Assignee | Ritu Agrawal |
| Created | 2014-05-06T06:56:45.000+0000 |
| Updated | 2016-03-08T07:37:32.000+0000 |
Description
Code below is able to reproduce this issue
var search = Ti.UI.Android.createSearchView({
hintText : "Table Search",
softKeyboardOnFocus : Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS,
iconifiedByDefault : false,
top : 120
});
var win = Ti.UI.createWindow({
title: "Root Window",
windowSoftInputMode : Titanium.UI.Android.SOFT_INPUT_ADJUST_PAN
});
win.add(search);
win.addEventListener("open", function() {
search.focus();
});
win.open();
I tried this test on Samsung Galaxy Nexus 4.2.2 device with Titanium SDK 3.2.3 and I cannot reproduce this issue. Are you running into this issue on a specific device?
@Ritu Agrawal Yes, it happens on my Galaxy S2 device running on Android 4.1.2 Also test on Google Nexus 7 which is running on 4.4.x - working beautifully. So, it is a bug from Android SDK? Thanks
Yes, it appears to be a device bug. You may want to try it on a later generation device (S4 or S5).
So, what is the decision? If no fix for it, is there any workaround?
It appears to be a device specific issue as it works fine on a later device. There is no known work around available at this point.