在管理Android的应用程序了文字就像在一个电子书 [英] Managing text in android applicaiton like in a eBook

查看:77
本文介绍了在管理Android的应用程序了文字就像在一个电子书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序它看起来像一个电子书阅读器,但它不完全是一个电子书阅读器。 我有被分为不同的章节一个巨大的文字。现在我想present文本作为一本书,用户应该阅读的电子书,这将有不同的功能,如转到,搜索,目录的感觉和页面之间最重要的页面卷曲的过渡。

I am developing an application which looks like an eBook reader, but its not exactly an eBook reader. I have a huge text which is divided into various chapters. Now i want to present that text as a book, user should get a feel of reading an eBook which will have various features like GoTo, Search, Table of Contents and most importantly page curl transition between pages.

现在,问题是如何将整个内容转换成的页数。我怎样才能知道,字符的将要装配到屏幕的数量(根据屏幕尺寸和字体大小)。我就从哪里开始以及如何继续完全糊涂了。

Now the problem is how to divide the whole content into number of pages. How can I know that, the number of characters that are going to fit into the screen( depending on the screen size and font size). I am totally confused on where to start and how to proceed.

最后我计划建立一个电子书阅读器将读取只有一本书,是我给的文字。

Ultimately I am planning to develop an eBook Reader which will read only one book that is the text which i give.

请让我知道要实现这一点,在那里把分页符,并在那里把文本(在数据库或资源文件)。

Please let me know to achieve this, where to put page breaks and where to put the text( in database or resource file).

推荐答案

我试图使用Android TextSwitcher 用户界面组件。

I'm trying to use Android TextSwitcher UI Component.

它根据屏幕大小自动断开的文本。你可以添加一些点击监听器的页面间来回移动。

It automatically breaks the text according to the screen size. You can add some click listeners to traverse between pages..

这篇关于在管理Android的应用程序了文字就像在一个电子书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆