I have a TextView displaying some non-editable database information that is longer than the physical view... i.e. the text scrolls in & out of view.
By default, when the TextView is populated the focus remains at the end of the text with the beginning of the text out of view. TextView.ScrollTo(0) has results that appear related to the orientation of the view when it was first loaded.
Unfortunately, on device re-orientation executing the same command in the Page_Resize event appears to have no effect and the text is once again presented with only the last part of the text in view.
Is there a fix in code for this?
Edit: I appear to be seeing the behavior experienced by @imbault here: https://www.b4x.com/android/forum/threads/textview-scroll-to-the-begining.52233/
TextView.ScrollTo(0) has limited effect when used in the body of the code or in Page_Resize or Page_Appear events as the results seem unpredictable. I have tried making TextView.Editable = True momentarily to scroll to the top but it makes no difference.
By default, when the TextView is populated the focus remains at the end of the text with the beginning of the text out of view. TextView.ScrollTo(0) has results that appear related to the orientation of the view when it was first loaded.
Unfortunately, on device re-orientation executing the same command in the Page_Resize event appears to have no effect and the text is once again presented with only the last part of the text in view.
Is there a fix in code for this?
Edit: I appear to be seeing the behavior experienced by @imbault here: https://www.b4x.com/android/forum/threads/textview-scroll-to-the-begining.52233/
TextView.ScrollTo(0) has limited effect when used in the body of the code or in Page_Resize or Page_Appear events as the results seem unpredictable. I have tried making TextView.Editable = True momentarily to scroll to the top but it makes no difference.
Last edited: