javascript - How to auto-scroll to input field in Android when the soft keyboard overlaps them on showing? -
i developing hybrid app using worklight, , experiencing next issue:
when user clicks on input field, soft keyboard pops hides input field when latter relatively low on screen. page scrollable, user can scroll , see field again, client requirements define page auto-scroll until field visible.
please note happens in android environment. in iphone , ipad environments default behavior the desired one.
based on findings, trick should done via android:windowsoftinputmode attribute in android manifest file. however, efforts there failed accomplish auto-scroll.
if there solution worklight specific, prefer utilize it, rather intervening in android native code.
this isn't worklight @ all... web apps in general in android, seems (from quick search in stack overflow).
here suggested solutions, differ yours:
textbox hidden below keyboard in android webview html textfield in webview in android application hidden soft keyboard keyboard hiding edittext when android:windowtranslucentstatus=true you perchance utilize iscroll.js (lite edition) - or implement catching focus event - scroll specific amount of pixels upwards. javascript android webview worklight
No comments:
Post a Comment