Hello
I have a CLV with many items. Each item is actually a layout. If I scroll down my list and give focus to a textfield the keyboard pops, the following code is executed:
When the user ends the input by pressing the Accept Button (B4XFloatTextField) the keyboard disappears, but, the CLV returns to the very top. I have tried clvSettings.sv.ScrollViewOffsetY = LastRecordedOffsetY but is does not scroll.
Any suggestions ?
Regards
John
I have a CLV with many items. Each item is actually a layout. If I scroll down my list and give focus to a textfield the keyboard pops, the following code is executed:
B4X:
Sub pg_KeyboardStateChanged (Height As Float)
Dim v As View = clvSettings.AsView
clvSettings.GetBase.Height = Min(v.CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height - 10dip - clvSettings.GetBase.Top)
End Sub
When the user ends the input by pressing the Accept Button (B4XFloatTextField) the keyboard disappears, but, the CLV returns to the very top. I have tried clvSettings.sv.ScrollViewOffsetY = LastRecordedOffsetY but is does not scroll.
Any suggestions ?
Regards
John