Is it currently possible to have a full screen edit text that flings nicely, not like the jerky scrolling of the default edittext view, but more like a nice text editor, like TextPad? It should scroll like a scrollview, not an edittext box, and should also scroll right to the end of the longest line. My clumsy attempt doesn't work very well...
I'm sure I'm not doing something right... When I paste a long bit of text into it, it doesn't scroll right, and looking through the methods list doesn't give me any ideas...
I looked for an edittext tutorial, or another post that might answer this, but found no answers. Also I noticed that when the soft keyboard popped up, it didn't push the bottom of the scrollview up. I'm missing something, I know I am.
Any help appreciated. Thanks...
B4X:
Sub Globals
Dim sv As ScrollView
Dim ed As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
sv.Initialize(1000)
activity.AddView(sv, 0, 0, 100%x, 100%y)
sv.Panel.Color = Colors.White
ed.Initialize("ed")
sv.Panel.AddView(ed, 0, 0, 100%x, 100%y)
ed.Color = Colors.White
ed.SelectionStart = 0
End Sub
I'm sure I'm not doing something right... When I paste a long bit of text into it, it doesn't scroll right, and looking through the methods list doesn't give me any ideas...
I looked for an edittext tutorial, or another post that might answer this, but found no answers. Also I noticed that when the soft keyboard popped up, it didn't push the bottom of the scrollview up. I'm missing something, I know I am.
Any help appreciated. Thanks...
Last edited: