4

How to make text pagination in Android TextView? How to divide long text into pages?

Thanks.

Onik
  • 19,396
  • 14
  • 68
  • 91
Lang
  • 131
  • 1
  • 9

1 Answers1

0

There's been a fair amount of discussion on SO on this topic, in my opinion there isn't a good solution for this yet.

Here's the solution I ended up using: HTML book-like pagination. Take a look at Nacho L's implementation of the accepted answer. It worked tolerably well in Android as well... though it is a little buggy, in my experience, if there are images or long strings in the html content.

Maybe it'd be worth the time to write a new View for this.

Community
  • 1
  • 1
Turnsole
  • 3,422
  • 5
  • 30
  • 52