Madan Kumar Rajan N
Madan Kumar Rajan N

Reputation: 21

Android - how to display large text

I have a txt file which is around 2MB. I need to display it in android. I have tried out WebView and it takes around 5 seconds to load and display the file. Is there any way I can get it rendered faster? Moreover, I dont want to load all the text at the start. Something like a scrollbar which displays elements efficiently is what I require. I need not stick to WebView alone, but can choose to show it using any efficient way.

Upvotes: 2

Views: 410

Answers (1)

Alex Klimashevsky
Alex Klimashevsky

Reputation: 2495

You can divide your text by paragraphs and use listview. show each paragraph of text in one item.

Upvotes: 1

Related Questions