I tried this sample and it was successful, but if edittext1 is moved to bottom then edittext1 is under the keyboard so it is not visible...
What do i need to add so that edittext1 can appear up the keyboard...?
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
Log("IME_HeightChanged: " & NewHeight)
End Sub
And in B4XMainPage add this:
B4X:
Private edittext1 As EditText 'in class globals or as B4XView
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
edittext1.Top = NewHeight-edittext1.Height-50dip
End Sub
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.