T Tomas Petrus Active Member Licensed User Longtime User Aug 24, 2015 #1 Hi, I have App with some TextFields and everything is in ScrollView. I have problem with focus in TextField, because it is hidden behind keyboard and I must scroll to that field. Is there any way how to automatic scroll on that field? Thanks for answer
Hi, I have App with some TextFields and everything is in ScrollView. I have problem with focus in TextField, because it is hidden behind keyboard and I must scroll to that field. Is there any way how to automatic scroll on that field? Thanks for answer
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2015 #2 You should handle the Page_KeyboardStateChanged event: B4X: Sub Page1_KeyboardStateChanged (Height As Float) End Sub Upvote 0
You should handle the Page_KeyboardStateChanged event: B4X: Sub Page1_KeyboardStateChanged (Height As Float) End Sub
T Tomas Petrus Active Member Licensed User Longtime User Aug 24, 2015 #3 Tnaks for answer. What should be in that event. Is this right? B4X: ScrollView1.ScrollTo(0,Height,False) thanks Upvote 0
Tnaks for answer. What should be in that event. Is this right? B4X: ScrollView1.ScrollTo(0,Height,False) thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2015 #4 Not exactly. Try this: B4X: If Height > 0 Then sv.ScrollTo(0, sv.ScrollOffsetY + Height, True) End If Upvote 0
Not exactly. Try this: B4X: If Height > 0 Then sv.ScrollTo(0, sv.ScrollOffsetY + Height, True) End If