K
K
Kyborg20112011-12-08 21:49:00
Android
Kyborg2011, 2011-12-08 21:49:00

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

3 answer(s)
R
Roman, 2011-12-08
@WNeZRoS

If the problem is in the different width of the letters, then it is solved using the monospace font.

Z
Zeldan, 2011-12-09
@Zeldan

Do I understand correctly what is needed from such a scrolling:
image
Do it like this, page by page:
image
image
Or not?

D
debugger88, 2011-12-19
@debugger88

maybe you need something like this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question