Android Question IME HeightChanged Event won't fire

hatzisn

Well-Known Member
Licensed User
Longtime User
Hi all,

I am facing a problem with IME library. I have added the following code in the activity_create event

B4X:
    IME3.Initialize("IME3")
    IME3.SetCustomFilter(txtHour,txtHour.INPUT_TYPE_NUMBERS,"0123456789")
    IME3.SetCustomFilter(txtMinute,txtMinute.INPUT_TYPE_NUMBERS,"0123456789")
    IME3.AddHeightChangedEvent

and this code for the event:

B4X:
Sub IME3_HeightChanged (NewHeight As Int, OldHeight As Int)
    Log("Μπήκα στο HeightChange")
    Msgbox (NewHeight & CRLF & lngOriginalHeight,"Title")
    If NewHeight < lngOriginalHeight Then
        If pnlSetThis.Visible = True Then
            pnlSetThis.Top = NewHeight - pnlSetThis.Height
        End If
        If pnlCopyHours.Visible = True Then
            pnlCopyHours.Top = NewHeight - pnlCopyHours.Height
        End If
    Else
        If pnlSetThis.Visible = True Then
            pnlSetThis.Top = lngStartHpnlSetThis
        End If
        If pnlCopyHours.Visible = True Then
            pnlCopyHours.Top = lngStartHpnlCopyHours
        End If
    End If
End Sub

The application is not in full screen mode and yet it does not get in the event at all. Nothing is logged and no message box is showing...

Am I missing something here? Some help would be highly appreciated.

Thanks,
Nikolaos

P.S. The setcustomfilter commands are working properly...
 

hatzisn

Well-Known Member
Licensed User
Longtime User
No actually I did not added that but I am curious because in an other activity with less views is working fine and without the SetActivityAttribute command. I will add this and let you know. Do you believe that it has something to do with the actual number of the views?
 
Upvote 0
Top