1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Custom theme vs webview keyboard issue

Discussion in 'Android Questions' started by biometrics, Jun 7, 2019.

  1. biometrics

    biometrics Active Member Licensed 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: Jun 7, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice