开发者

How to display in TextView really large text (several megs)?

开发者 https://www.devze.com 2023-02-03 16:13 出处:网络
I need to display in scrollable TextView really large amount of text (up to several megabytes). It\'s pretty clear that one n开发者_JS百科eed to somehow chunk text and display it slice by slice. The o

I need to display in scrollable TextView really large amount of text (up to several megabytes). It's pretty clear that one n开发者_JS百科eed to somehow chunk text and display it slice by slice. The only question how to do it technically. Anyone can advise?


You have several options,

Chunk it in a list.

Chunk it by chapter and display over several activitys.

Display this list one item at a time with a next button.

Have a buffer and remove off the beginning as it is scrolled past the screen and add to the end as it is approaching the screen,

Really is your choice, come back when there's a problem with that choice ;-)

0

精彩评论

暂无评论...
验证码 换一张
取 消