Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1167] Virtual Keyboard does not show up upon search view gains focus on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNot Our Bug
Resolution Date2014-05-19T06:40:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, api
ReporterDavid He
AssigneeRitu Agrawal
Created2014-05-06T06:56:45.000+0000
Updated2016-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(); 

Comments

  1. Ritu Agrawal 2014-05-07

    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?
  2. David He 2014-05-07

    @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
  3. Ritu Agrawal 2014-05-09

    Yes, it appears to be a device bug. You may want to try it on a later generation device (S4 or S5).
  4. David He 2014-05-09

    So, what is the decision? If no fix for it, is there any workaround?
  5. Ritu Agrawal 2014-05-19

    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.

JSON Source