开发者

How much text can fit into a string.xml file?

开发者 https://www.devze.com 2023-01-04 07:29 出处:网络
Android: I am programming an app that is beginning to use a massive amount of text. I\'m putting all of my text in a string file and calling it from there and then placing portions of it into a textvi

Android: I am programming an app that is beginning to use a massive amount of text. I'm putting all of my text in a string file and calling it from there and then placing portions of it into a textview.

Is there a limit to that or is there a better way to store text (in a file or datab开发者_JS百科ase?) and then retrieve it to go into a textview and if so...any examples?


I would suggest using database to handle large amount of text.

It can handle unlimited text size.

You can use full text index in database to increase the search performance.

You may use view to select specific portions. Some databases support even materialized view.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号