Android Question Custom theme vs webview keyboard issue

biometrics

Active Member
Licensed User
Longtime User
I used a custom theme to make the status bar translucent using this: https://www.b4x.com/android/forum/threads/translucent-status-bar-navigation-keys.42614/

I have a webview form where the keyboard hides some text fields.

I used the IME library and the HeightChanged event to move the page up so the text fields aren't hidden using: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content

The problem is as the event fires my activity moves down so that the status bar is not translucent anymore.

I've tried using the runtime theme change but that restarts the activity and is not suitable for this app: https://www.b4x.com/android/forum/threads/changing-the-theme-at-runtime.57277/

In the event I tried reducing the top of the activity but the status bar isn't translucent anymore.

So... How can I stop the activity from moving down. Alternatively how can I get the keyboard not to hide text field in a webview but not using IME?
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
I used a custom theme to make the status bar translucent using this: https://www.b4x.com/android/forum/threads/translucent-status-bar-navigation-keys.42614/
Your app is based on the old Android 4 theme. This is not recommended.

Changing the theme at runtime will not help.

Another approach for creating a transparent status bar: https://www.b4x.com/android/forum/threads/how-to-apply-gradient-to-status-bar.93713/#post-592983
Note that it breaks the "adjustPan" built-in feature. I'm not sure how it will affect adjustResize mode.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…