Hi all,
I tried everything I could think of.
I have an app using the B4xPages model. Originally it had the Activity attribute #FullScreen: True (I can't recall why I set that way) and, as expected the delegation of the HeightCanged event didn't work.
Now I changed the attribute back to False, Tools/Clean project (even manually deleted and rebuilt the Objects folder from a new empty project), but it still doesn't delegate.
Can you spot what I am missing?
All the code was copied and pasted from here
Manifest
Main
B4xPage where I need the IME functionality
Run in debug mode, device attached by USB cable.
I can't see neither of the Logs related to the event.
Any idea? TIA
I tried everything I could think of.
I have an app using the B4xPages model. Originally it had the Activity attribute #FullScreen: True (I can't recall why I set that way) and, as expected the delegation of the HeightCanged event didn't work.
Now I changed the attribute back to False, Tools/Clean project (even manually deleted and rebuilt the Objects folder from a new empty project), but it still doesn't delegate.
Can you spot what I am missing?
All the code was copied and pasted from here
Manifest
B4X:
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
Main
B4X:
Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
..
Sub Globals
Private ime As IME
End Sub
Sub Activity_Create(FirstTime As Boolean)
ime.Initialize("IME")
ime.AddHeightChangedEvent
Dim pm As B4XPagesManager
pm.Initialize(Activity)
End Sub
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
Log("IMEEEEE")
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
End Sub
B4xPage where I need the IME functionality
B4X:
'Handle keyboard changes:
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
Log("IME - "&NewHeight&" "&OldHeight)
End Sub
Run in debug mode, device attached by USB cable.
I can't see neither of the Logs related to the event.
Any idea? TIA