Answer the question
In order to leave comments, you need to log in
Activity for reader on Android?
Hello. I am writing an application for Android, one of the functions of which will be a long book reader (txt). Of course, I want to make sure that the text is divided into pages and paging between pages is done as in CoolReader. I found an example of an activity for paging a TextView: marcreichelt.blogspot.com/2010/09/android-use-real... This option works great, but there is a problem - I need to find a method by which I could divide the text into pages and shove Each TextView has as much text as will fit on the screen. Maybe someone did this? Or do you know how to do it?
PS Found a question on stackoverflow by a person with similar problems: stackoverflow.com/questions/8368448/how-to-page-a-...He was able to divide the text, but since the letters were of different widths, the division into pages turned out to be clumsy. So what should be the normal option?
Answer the question
In order to leave comments, you need to log in
If the problem is in the different width of the letters, then it is solved using the monospace font.
Do I understand correctly what is needed from such a scrolling:
Do it like this, page by page:
Or not?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question