Android Question IME adjustPan does not always force up the activity when text view get the focus

Discussion in 'Android Questions' started by Q Candiani, Jun 5, 2019.

  1. Q Candiani

    Q Candiani Member Licensed User

    Hello, I am working on an application with many activities, all of them in portrait mode. The application is very complex and has a large number of views. Unfortunately, when I work with textboxes, in some cases, the default activity's 'adjustpan' works perfectly, but in other cases, it simply does not work. I can not find the pattern of this behavior. I have read many forums about this but I could not find any solution. I tried to edit The Manifest in different ways, I also tried to use the Reflector library, but the behavior is still unpredictable: in some Activities it works well, in others it does not. I have emulated between different devices with different Android APIs and dimensions, but nothing makes the difference regarding this unpredictable behavior. I know I could solve this problem with the IME library, but it would take a lot of time to resolve one by one in each case and the result might not be optimal.

    Does anyone know what problem it could be? Why does IME adjustPan not force up the activity when text view get the focus?

    Thanks.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is nothing that you can do in your code. adjustPan is fully managed by the OS. If it doesn't work as you need then switch to adjustResize and handle it with the IME library.
     
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