Hello,
Several times now over the past few years I have needed a scrolling text window.
Think of the old 1980s and 1990s video display terminals where you have 25 lines by 80 characters of text. New text is appended at the bottom and old text scrolls off the top screen.
Each of the lines of text could be short, terminated by a CRLF, or they could be long and wraparound several physical lines.
I am currently using an EditText control with a list in the background holding the individual lines of text. This has the problem of not knowing exactly how many lines can fit in the EditText control on the screen – remember lines can be short or they can be long and wraparound to several physical display lines.
I'm obviously not thinking of the problem correctly. How would others approach this problem?
I kind of think ListViews or ScrollViews won't work because of the short line/long line wraparound problem. How would you approach this?
Thanks,
Barry.
Several times now over the past few years I have needed a scrolling text window.
Think of the old 1980s and 1990s video display terminals where you have 25 lines by 80 characters of text. New text is appended at the bottom and old text scrolls off the top screen.
Each of the lines of text could be short, terminated by a CRLF, or they could be long and wraparound several physical lines.
I am currently using an EditText control with a list in the background holding the individual lines of text. This has the problem of not knowing exactly how many lines can fit in the EditText control on the screen – remember lines can be short or they can be long and wraparound to several physical display lines.
I'm obviously not thinking of the problem correctly. How would others approach this problem?
I kind of think ListViews or ScrollViews won't work because of the short line/long line wraparound problem. How would you approach this?
Thanks,
Barry.