A
A
Alexey Markov2015-02-16 23:19:53
Android
Alexey Markov, 2015-02-16 23:19:53

What is the best way to display text on Android?

Good day! What is the best way to display large amounts of text in an android application? An application is being developed that is somewhat reminiscent of a book reader, so it is critical to quickly display large amounts of text, scroll, etc.
How best to implement?

  • Use a class that inherits TextView, implement scrolling by overriding the onDraw method and load new sections of text by changing the text property?
  • Use Canvas directly, setText. But there is a problem of line wrapping.
  • Similar, but using OpenGL ES, with the same issues as the previous method

Is there any proper way to do this? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arthur Glyzin, 2015-02-18
@forceLain

Split text into paragraphs, show each paragraph as a separate TextView using a ListView.

A
ArtemiyNeko, 2015-02-26
@ArtemiyNeko

As an option, albeit with its own characteristics , there is always a WebView.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question