Make text fit exactly as the screen size
I have a long text so I've decided to divide it into pages, and I put a so each swipe scrolls to the next page.. The way I did it was: NumberOfPages=text.length()/CharPerPage; //CharPerPage=500; NumberOfPages++; Chapters.add(text.indexOf(" ", CurrentPage*CharPerPage)); CurrentPage++; int tmp=0; for(int i =NumberOfPages;i>0;i--) { tmp =(CurrentPage*CharPerPage); if(tmp>text.length()) { Chapters.add(text.length()); break; } else { Chapters.add(text.indexOf(" ", tmp)); CurrentPage++; } } So I divide the text into pages, and each page has 500 chars... But this isnt good since Android has different