hello everyone.
The problem is the following:
I'm using the IME library with the IME_HeightChanged event to detect keyboard activation and move an EditText to a position where I can type in it:
So far everything works correctly but when I include the TabStrip library and call the tab generation
the EditText stops rising to the new position, I comment the line and again it starts working
Commenting it starts working correctly
part of the code:
any solution
Thanks in advance
The problem is the following:
I'm using the IME library with the IME_HeightChanged event to detect keyboard activation and move an EditText to a position where I can type in it:
B4X:
EditText1.Top = NewHeight - EditText1.Height
B4X:
TabStrip1.LoadLayout("Chats", " Chat ")
B4X:
'TabStrip1.LoadLayout("Chats", " Chat ")
part of the code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
IME.Initialize("IME")
IME.AddHeightChangedEvent
Activity.LoadLayout("Main")
lupa = LoadBitmap(File.DirAssets, "search.png")
camara = LoadBitmap(File.DirAssets, "camara.png")
ToolbarHelper.Initialize
ToolbarHelper.ShowUpIndicator = False 'set to true to show the up arro
Dim cs As CSBuilder
cs.Initialize.Size(19).Typeface(Typeface.LoadFromAssets("NeueHaasDisplay-Mediu.ttf")).Append("VamosApp Business").PopAll
ACToolBarLight1.Title = cs
ACToolBarLight1.SubTitle=""
ACToolBarLight1.InitMenuListener
TabStrip1.LoadLayout("Chats", Chr(0xF0C0))
TabStrip1.LoadLayout("Chats", " Chat ")
TabStrip1.LoadLayout("Estado", "Estados")
TabStrip1.LoadLayout("Llamadas", "Llamadas")
End Sub
Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
EditText1.Top = (NewHeight) - EditText1.Height
Log(NewHeight)
End Sub
any solution
Thanks in advance