Handling the keyboard is often awkward, and it is difficult to automate. When the keyboard opens the Activity dimensions do not change (I think), so anchors might not help. There is a keyboard event which you can use to adapt the height of your scroll view ...
B4X:
Private Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
If (NewHeight < OldHeight) Then ' Keyboard is open
scrBase.SetLayout(0, 0, Activity.Width, NewHeight)
scrBase.ScrollPosition = inputView - NewHeight
Else ' Reset scrollview height
scrBase.SetLayout(0, 0, Activity.Width, Activity.Height)
End If
End Sub
This code resizes the scrollview so that it fits on the visible screen, and then changes the scroll position to ensure that a particular view (the target input EditText, for example) is in the visible portion of the scroll view. If you are not sure which input view the User is aiming for then at least they can manually scroll until it is visible. Hope this moves you forward.