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

Android Question IME Strange beaviour

Discussion in 'Android Questions' started by Gianni Sassanelli, Jul 22, 2019.

  1. Gianni Sassanelli

    Gianni Sassanelli Active Member Licensed User

    Hi,
    i have strange beaviour using on screen keyboard and ime

    when i got focus on edittext view keyboard appears in the foreground and the activity view is resized automatically
    after keyboard_enter i hide the keyboard with IME.hide()
    after this, for ever view focused, the keyboard appear in foreground, but the activity view is not resized and keyboard cover the edittext

    is this ready ?
    tks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Have you set the adjust mode to adjustResize in the manifest editor?
     
  3. Gianni Sassanelli

    Gianni Sassanelli Active Member Licensed User

    hi Erel,
    i have this code in Manifest

    Code:
    SetActivityAttribute(trend_commesse_elenco,        android:theme, @android:style/Theme.Translucent.NoTitleBar)
    SetActivityAttribute(trend_commesse_elenco,     android:windowSoftInputMode, adjustResize)
    Esempio.jpg
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You are using an Android 2 theme. This is not good.

    Does it work if you comment the first SetActivityAttribute line?
     
  5. Gianni Sassanelli

    Gianni Sassanelli Active Member Licensed User

     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Android 5+ devices use the material theme. Android 4 devices use the holo theme. Android 4+ devices also support AppCompat themes.
     
  7. Gianni Sassanelli

    Gianni Sassanelli Active Member Licensed User

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