Publish an android reader with pen training, slightly imitating the 91 Android reader. [the source code will be provided later]

Source: Internet
Author: User

Http://www.cnblogs.com/TerryBlog/archive/2010/09/16/1828360.html

Because it is a practical demo, there is not much consideration on the interface and optimization, but some basic functions and some necessary functions of the reader are implemented.

The reading interface is as follows:

The scroll bar below is displayed in the form of a 91 reader. The progress bar is displayed based on the percentage of text length. The text display mode is segmented, and the percentage and text name are displayed below.

 

The Reader supports UMD, txt, PHP, HTML, image format, and XML format. UMD supports both UMD formats.

Menu:

Here, only four menus are provided, and the following are their descriptions respectively. Save the bookmarks menu:

By reading the current first line, you can add a name to the bookmarks in advance. By saving each book, you can have a list of bookmarks. When saving the bookmarks, you can also save the current percentage and the number of segments of the current text, the bookmarks are listed below:

 

It imitates the browsing mode of the bookmarks of the 91 reader and adds two events to the bookmarks. One is the item click event. clicking the event directly will read the text through the bookmarks, and the other is the context menu, for example:

The first item in the context is consistent with the current click event. Context 2: delete: Delete the bookmarks currently pressed, and delete all bookmarks corresponding to the text.

 

Set Menu:

Interface

 

Here, the font size and font type are imitated by 91 readers. The font size is as follows:

The font color settings are as follows:

Select the corresponding color to return. The font color summary changes the color based on the returned color value, as shown in figure

The font type is as follows:

The above ebook reader will provide you with a preview of your choice based on the selected differences. Here, it imitates the 91 reader. After the above selection, click the keyboard to return and save the current settings, then load the previous text according to the settings as follows:

 

The above operations are only for TXT operations. Next we will talk about operations in the UMD format. First, we will go to the sdcard browser on the main interface.

Because the Image Browsing is the same as the UMD cartoon browsing, We will skip the UMD format browsing here.

UMD cartoon browsing:

Click the UMD format cartoon to enter, for example:

Click to open for reading:

 

UMD text display, find a novel in UMD format, click to enter the following interface:

Click the "Preface" under the directory. The page that will be displayed will be the same as the TXT reading interface above. UMD text reading will support saving bookmarks and viewing bookmarks.

 

Known BUG:

  • An error occurred while switching between the horizontal and vertical screens.
  • When the sdcard browser returns the result of the previous interface, the position is sometimes incorrect.
  • When reading the TXT document, the screen will be half displayed if the space is too long.
  • There is also a problem in calculating the progress bar after the bookmarks are returned or the progress bar is set to be loaded back.

The above are the functions developed in the past three days, and the functional modules will be released one by one from time to time.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.