Android Question Invalid keyboard height

Pooya1

Active Member
Licensed User
In my code
B4X:
Sub ime_HeightChanged (NewHeight As Int, OldHeight As Int)
  
        If NewHeight = 100%y Then
            pnltext.SetLayoutAnimated(400,pnltext.Left,100%y+NewHeight+pnltext.Height,pnltext.Width,pnltext.Height)
            Sleep(600)
  
        Else
            pnltext.SetLayoutAnimated(400,pnltext.Left,100%y-NewHeight,pnltext.Width,pnltext.Height)
        End If
    End If
  
End Sub

I try to change panel position when key board is show and hide panel when keyboard is hide
This code is working good in some device but in other device,panel is behind of keyboard
I guess the autocomplete toolbar on top keyboard is problem
Is it?

For example i attach picture that edittext is top of keyboard
swiftkey20320introducing20smart20space202-11343581.png
 
Last edited:
Top