Hi all, I'm testing a small program. There is something strange. This is the sub that have problems:
It seems that I can't set the attribute visible=false to the button (it doesn't work). Just for testing, I tried to make the button disappear simply "shifting" it out of the screen, and it worked.
Is there any reason for this strange behavior ?
Thanks.
B4X:
Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
If NewHeight < OldHeight Then ' if keyboard appeared
' btnHide.Visible = True
ToastMessageShow("show", False)
btnHide.SetLayoutAnimated(500, 0, btnHide.Top, btnHide.Width,btnHide.Height) ' left to right: show
Else ' keyboard disappeared
' btnHide.Visible = False
ToastMessageShow("hide", False)
btnHide.SetLayoutAnimated(500, 0-btnHide.Width, btnHide.Top, btnHide.Width,btnHide.Height) ' right to left: hide
End If
End Sub
Is there any reason for this strange behavior ?
Thanks.