Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8847] Android: issues with soft keyboard using scrollViews and normal Views

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-04-24T08:47:10.000+0000
Affected Version/sRelease 1.8.2, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam, api
ReporterFederico Casali
AssigneeHieu Pham
Created2012-04-20T11:53:33.000+0000
Updated2017-03-24T18:11:35.000+0000

Description

Problem Description

Put a scrollView (or tableView) and a normal view in the bottom of a window. Set the windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN property in the window. Soft keyboard is not covering the normal view when brought on top. Instead, view is pushed up like it is attached to the keyboard. This behavior it's not present in TiSDK 1.7.6 and 1.8.2

Sample code

var win = Ti.UI.createWindow({
	title:'pippo',
	backgroundColor:'white',
	// windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_STATE_ALWAYS_HIDDEN,
	windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN,
});


var text = Ti.UI.createTextField({
	top:10,
	height:50,
	width:200,
	hintText:'click here!'
});
// win.add(text);


var scrollView = Ti.UI.createScrollView({
	// top:0,
	bottom:100,
	// height:450,
	backgroundColor:'orange'
});
scrollView.add(text);
win.add(scrollView);


var view1 = Ti.UI.createView({
	backgroundColor:'blue',
	bottom:0,
	height:100,
});
win.add(view1);

win.open();

ING project related issue

Comments

  1. Neeraj Gupta 2012-04-24

    Closing as per Federico's comments.
  2. Hieu Pham 2012-04-24

    For future reference, please refer to http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html for a comprehensive list with detailed descriptions of these constants.
  3. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source