简体   繁体   English

Textfield仍然隐藏在键盘后面--Titanium Android

[英]Textfield is remain hidden behind the keyboard - Titanium Android

I am opening an remote web page in webview in android. 我正在android中的webview中打开一个远程网页。 The remote webpage is include HTML + Javascript + Ajax + ADF (Application Development Framework - ORACLE). 远程网页包括HTML + Javascript + Ajax + ADF(应用程序开发框架 - ORACLE)。

The remote webpage has many textview, dropdown with labels etc... The problem is when I am trying to write something in textfield, the textfield is not scrolling up automatically, it remains hidden behind the keyboard. 远程网页有很多文本视图,下拉标签等...问题是当我尝试在文本字段中写东西时,文本字段不会自动向上滚动,它仍然隐藏在键盘后面。

Troubleshoot: 故障排除:

I also have tried windowSoftInputMode = Resize, windowSoftInputMode = Adjustpan, android:Fullscreen:false in android manifest file. 我也尝试过windowSoftInputMode = Resize, windowSoftInputMode = Adjustpan, android:Fullscreen:false在android清单文件中为windowSoftInputMode = Resize, windowSoftInputMode = Adjustpan, android:Fullscreen:false

And I also have tried with this all properties in Webview (Android): 我也尝试过使用Webview(Android)中的所有属性:

cacheMode:Titanium.UI.Android.WEBVIEW_LOAD_NO_CACHE,
enableZoomControls:false,
enableJavascriptInterface:true,
ignoreSslError:true,
keepScreenOn:true,
softKeyboardOnFocus :Titanium.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS,
loading:true,
pluginState:Titanium.UI.Android.WEBVIEW_PLUGINS_ON

This is working fine in iOS and Android system browser but not working in Titanium Webview in android platform. 这在iOS和Android系统浏览器中运行良好,但在Android平台的Titanium Webview中无效。

I am using : 我正在使用

Titanium SDK: 5.2.2
Appcelerator Studio : 4.5
Android Device: Samsung, Google Nexus, Motorola

the solution for me was to change the Window's Soft Input Mode property. 我的解决方案是更改Window的Soft Input Mode属性。 Try both Titanium.UI.Android.SOFT_INPUT_ADJUST_PAN or Titanium.UI.Android.SOFT_INPUT_ADJUST_RESIZE some of them should work https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-windowSoftInputMode 尝试Titanium.UI.Android.SOFT_INPUT_ADJUST_PAN或Titanium.UI.Android.SOFT_INPUT_ADJUST_RESIZE其中一些应该工作https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-windowSoftInputMode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM