CN106598410B - Display methods, device and the terminal device of e-book - Google Patents
Display methods, device and the terminal device of e-book Download PDFInfo
- Publication number
- CN106598410B CN106598410B CN201611117320.0A CN201611117320A CN106598410B CN 106598410 B CN106598410 B CN 106598410B CN 201611117320 A CN201611117320 A CN 201611117320A CN 106598410 B CN106598410 B CN 106598410B
- Authority
- CN
- China
- Prior art keywords
- dynamic wallpaper
- book
- page
- screen
- dynamic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
Abstract
An embodiment of the present invention provides a kind of display methods of e-book, device and terminal devices, wherein the display methods of the e-book includes:Obtain the information of the screen for showing dynamic wallpaper, wherein the information of the screen includes the dimension information of the screen;According to the dimension information of the screen, the drawing area of the dynamic wallpaper is determined;In the drawing area, dynamic wallpaper is called to draw the electronic book data that interface renderings obtain, generates the e-book dynamic wallpaper page;The e-book dynamic wallpaper page of generation is shown on the screen.The display efficiency of e-book is improved through the embodiment of the present invention and enters the speed of e-book reading, is reduced the operation complexity of user, is improved the reading experience of user's reading electronic book.
Description
Technical field
The present embodiments relate to technical field of data processing more particularly to a kind of display methods of e-book, device and
Terminal device.
Background technology
With popularizing for terminal device, the people of reading electronic book is more and more on the terminal device, is read by terminal device
Reading e-book has many advantages, such as that environmental protection, low-power consumption, amount of storage are big, and user is facilitated to carry.
Currently, the conventional method for showing e-book is to open electronics by application programs such as special e-book reading applications
Written matter could be read, on the other hand the position where on the one hand needing user to search application program and icon need such as to open
Dynamic application, then finds the corresponding e-book page, clicks the complex operations such as e-book opening, causes user in reading electronic book
When it is complicated for operation, slow into e-book reading speed, the experience of user's reading electronic book is poor.
Invention content
An embodiment of the present invention provides a kind of display methods of e-book, device and terminal devices, to solve current user
It is complicated for operation in reading electronic book, it is slow into e-book reading speed, and then lead to asking for user's reading electronic book experience difference
Topic.
One side according to the ... of the embodiment of the present invention provides a kind of display methods of e-book, including:It obtains for showing
The information of the screen of dynamic wallpaper, wherein the information of the screen includes the dimension information of the screen;According to the screen
Dimension information determines the drawing area of the dynamic wallpaper;In the drawing area, calls dynamic wallpaper to draw interface renderings and obtain
The electronic book data taken generates the e-book dynamic wallpaper page;The e-book dynamic wall of generation is shown on the screen
Page face.
Another aspect according to the ... of the embodiment of the present invention provides a kind of display device of e-book, including:Acquisition module,
Information for obtaining the screen for showing dynamic wallpaper, wherein the information of the screen includes the size letter of the screen
Breath;Determining module determines the drawing area of the dynamic wallpaper for the dimension information according to the screen;Drafting module is used
In in the drawing area, calls dynamic wallpaper to draw the electronic book data that interface renderings obtain, generate e-book dynamic wallpaper
The page;Display module, the e-book dynamic wallpaper page for showing generation on the screen.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of terminal device, including:Processor, leads to memory
Believe that interface and communication bus, the processor, the memory and the communication interface are completed mutual by the communication bus
Between communication;The memory makes the processor execute such as storing an at least executable instruction, the executable instruction
The corresponding operation of display methods of the preceding e-book.
It is according to the ... of the embodiment of the present invention in another aspect, additionally provide a kind of computer readable storage medium, the computer
Readable storage medium storing program for executing is stored with:Executable instruction for the information for obtaining the screen for showing dynamic wallpaper, wherein described
The information of screen includes the dimension information of the screen;For the dimension information according to the screen, the dynamic wallpaper is determined
Drawing area executable instruction;For in the drawing area, dynamic wallpaper being called to draw the electronics that interface renderings obtain
Book data generate the executable instruction of the e-book dynamic wallpaper page;The electronics for showing generation on the screen
The executable instruction of the book dynamic wallpaper page.
Display methods, device and the terminal device of a kind of e-book provided according to embodiments of the present invention, realize and pass through
The scheme of dynamic wallpaper reading electronic book.Wherein, painting for dynamic wallpaper is determined in the dimension information of the screen according to acquisition
It is by calling dynamic wallpaper to draw interface accordingly that the drafting generation of relevant electronic book data is dynamic in the region behind region processed
The state wallpaper page, by the dynamic wallpaper page for showing the generation, you can viewing e-book.With traditional e-book reading application
Difference, dynamic wallpaper need not complicated operation can just activate to open, it is also need not be prolonged etc. to be applied to interact knot with system
Therefore fruit shows e-book in the form of dynamic wallpaper, improve the display efficiency of e-book and enter the speed of e-book reading
Degree, also, the operation complicated without user's progress can open e-book, reduce the operation complexity of user, improve use
The reading experience of family reading electronic book.
Description of the drawings
Fig. 1 is a kind of step flow chart of the display methods of according to embodiments of the present invention one e-book;
Fig. 2 is a kind of step flow chart of the display methods of according to embodiments of the present invention two e-book;
Fig. 3 is a kind of step flow chart of the display methods of according to embodiments of the present invention three e-book;
Fig. 4 is a kind of structure diagram of the display device of according to embodiments of the present invention four e-book;
Fig. 5 is a kind of structure diagram of the display device of according to embodiments of the present invention five e-book;
Fig. 6 is a kind of structural schematic diagram of according to embodiments of the present invention six terminal device.
Specific implementation mode
(identical label indicates identical element in several attached drawings) and embodiment below in conjunction with the accompanying drawings, implement the present invention
The specific implementation mode of example is described in further detail.Following embodiment is not limited to the present invention for illustrating the present invention
Range.
It will be understood by those skilled in the art that the terms such as " first ", " second " in the embodiment of the present invention are only used for distinguishing
Different step, equipment or module etc. neither represent any particular technology meaning, also do not indicate that the inevitable logic between them is suitable
Sequence.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the display methods of according to embodiments of the present invention one e-book is shown.
The display methods of e-book in the present embodiment can realize by any suitable terminal device, as smart mobile phone,
Tablet computer or desktop computer etc., but not limited to this, other devices for having similar data processing function can refer to this implementation
Example realizes that the display methods of e-book, the embodiment of the present invention are not restricted this, and the present embodiment carries out only by taking terminal device as an example
Explanation.
The display methods of the e-book of the present embodiment includes the following steps:
Step S100, the information of the screen for showing dynamic wallpaper is obtained.
Wherein, the information of the screen includes but not limited to the dimension information of screen.For example, the display screen of smart mobile phone
Information.
Step S102, according to the dimension information of screen, the drawing area of dynamic wallpaper is determined.
In general, the drawing area of dynamic wallpaper will not occupy the whole region of screen, drawing area and screen border
Between have certain spacing distance.Therefore, usual manner may be used in those skilled in the art, according to the dimension information of screen
Determine the drawing area of dynamic wallpaper.Certainly, for certain unconventional modes, e.g., the drawing area of dynamic wallpaper is setting shape
The region of shape, alternatively, the form identical as the size of screen or more than screen size of the drawing area of dynamic wallpaper is similarly suitable
With the e-book displaying scheme of the embodiment of the present invention, can normally it be shown and be read by subsequent proper treatment.
Step S104, in drawing area, dynamic wallpaper is called to draw the electronic book data that interface renderings obtain, generates electronics
The book dynamic wallpaper page.
Electronic book data may include at least one of the lteral data of e-book, graph data.E-book usually has
There is certain format, before e-book is plotted as dynamic wallpaper, can in advance be obtained according to the format of e-book corresponding
Electronic book data for example, the format according to e-book parses etc. it, and then obtains corresponding electronic book data.
Dynamic wallpaper, which draws interface, to be depicted as dynamic wallpaper figure by the lteral data of e-book and/or graph data
Piece, and then it is generated as dynamic wallpaper.For example, the lteral data of e-book is plotted as by the Word-Drawing interface by dynamic wallpaper
Dynamic wallpaper;Alternatively, the graph data of e-book is plotted as dynamic wallpaper by the graphic plotting interface by dynamic wallpaper;Or
Person, respectively by the Word-Drawing interface of dynamic wallpaper and graphic plotting interface by the lteral data of e-book and graph data one
It rises and is plotted as dynamic wallpaper.
Step S106, the e-book dynamic wallpaper page of generation is shown on the screen.
In the embodiment of the present invention, the dynamic wallpaper generated by electronic book data can be shown in terminal with arbitrary appropriate form
The interface of equipment, including but not limited to:On the blank interface of terminal device display, demarcate in the application program image of terminal device
The upper layer in face is shown, the lower layer at the application icon interface of terminal device shows.It more preferably, can be in terminal device
Blank is shown on interface, to further increase display speed, reduces the complexity of terminal device processing display interface.
According to the display methods of e-book provided in this embodiment, the side by dynamic wallpaper reading electronic book is realized
Case.Wherein, in the region, can passing through after drawing area for dynamic wallpaper is being determined according to the dimension information of the screen of acquisition
It calls dynamic wallpaper to draw interface accordingly and relevant electronic book data is drawn into the generation dynamic wallpaper page, by showing the life
At the dynamic wallpaper page, you can viewing e-book.Different from traditional e-book reading application, dynamic wallpaper need not be complicated
Operation can just activate to open, and also without the interaction results to be applied with system such as prolonged, therefore, be shown in the form of dynamic wallpaper
Show e-book, improve the display efficiency of e-book and enter the speed of e-book reading, also, complexity is carried out without user
Operation can open e-book, reduce the operation complexity of user, improve the reading experience of user's reading electronic book.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of the display methods of according to embodiments of the present invention two e-book is shown.
The display methods of e-book in the present embodiment can realize by any suitable terminal device, as smart mobile phone,
Tablet computer or desktop computer etc., but not limited to this, other devices for having similar data processing function can refer to this implementation
Example realizes that the display methods of e-book, the embodiment of the present invention are not restricted this, and the present embodiment carries out still by taking terminal device as an example
Explanation.
The present embodiment on the basis of the above embodiments, emphasizes the difference with above-described embodiment, and something in common can be with
Introduction in reference above-described embodiment and explanation.
The display methods of the e-book of the present embodiment includes the following steps:
Step S200, the clicking operation of input is received.
Step S202, according to the information of clicking operation, judge whether the position of clicking operation is located at the dynamic wallpaper of setting
The regional extent of icon, if so, thening follow the steps S204;If it is not, then terminating this flow.
In the present embodiment, it is alternatively possible on interface on the terminal device, as preset an icon on a certain blank interface
Such as button icon, the unfixed suspension button icon of button icon or position that can be fixed in position etc., by receiving user
The operation of button icon is clicked, starts and shows dynamic wallpaper.Either the fixed button icon in position or position are unfixed
Button icon has certain effective coverage range, when terminal device receives point of the user within the scope of the effective coverage
When hitting operation, dynamic wallpaper starts.Compared with the fixed button icon in position, suspension button icon is shown flexibly, easy to operation,
The normal display of other application or icon will not be influenced being arranged at non-blank-white interface.
It should be noted that above-mentioned steps S200-S202 is optional step, and in practical applications, people in the art
Member can also use any suitable other manner start dynamic wallpaper, such as shake mobile phone, to mobile phone carry out turning operation or
Screen, which is clicked, according to certain rule such as double-clicks screen.
Step S204, it determines and starts dynamic wallpaper, obtain the information of the screen for showing dynamic wallpaper.
Wherein, the information of screen includes at least the dimension information of screen.
In a kind of feasible pattern, when dynamic wallpaper starts, state is converted to visible state from invisible mode, because
This, in the embodiment of the present invention, can be converted to the message of visible state, really by the dynamic wallpaper that receives from invisible mode
Determine dynamic wallpaper startup, is obtained the information of the screen for showing dynamic wallpaper.Using this kind of mode, by dynamic wall
The monitoring of paper-like state is that can trigger the flow that e-book is drawn using dynamic wallpaper, realizes that simply terminal device is to be treated
Interaction and information content are few, have saved cost of implementation, have improved realization efficiency.
But not limited to this, it is determined that the mode that dynamic wallpaper starts is equally applicable, such as, it is determined that the click of user is grasped
Corresponding message is sent to terminal device after work, terminal device carries out corresponding operation etc. according to the message.
Step S206, according to the dimension information of screen, the drawing area of dynamic wallpaper is determined.
Step S208, in the drawing area of dynamic wallpaper, dynamic wallpaper is called to draw the e-book number that interface renderings obtain
According to the generation e-book dynamic wallpaper page.
Wherein, the electronic book data of acquisition may include lteral data and/or graph data.
Correspondingly, dynamic wallpaper Word-Drawing interface can be called, according to the text of setting in the drawing area of dynamic wallpaper
Word format draws lteral data, and/or, dynamic wallpaper graphic plotting interface is called, according to the graphical format graphing of setting
Data;Then, according to the lteral data of drafting and/or graph data, the e-book dynamic wallpaper page is generated.
Wherein, text formatting includes but not limited to font size, font style, font spacing, alignment thereof, line space
Deng;Graphical format includes but not limited to feature size, graph position, drawing area etc..
When drawing lteral data, a kind of feasible mode includes:According to the text formatting of setting, the width of drawing area
With drafting origin coordinates, the word number of words for drawing the current line where origin coordinates is determined;Dynamic wallpaper Word-Drawing is called to connect
Mouthful, in drawing area, since drawing the position indicated by origin coordinates, according to the text formatting of setting and word number of words,
The lteral data of current line is drawn by row;Also, after the lteral data of current line is completed, the word number of next line is carried out
According to drafting, until the lteral data for completing current drawing area is drawn.
For the lteral data of e-book, it is thus necessary to determine that often capable drawable word quantity, in this way, having drawn one
After row, the section start that drafting initial position can be moved to next line carries out the Word-Drawing of next line.It wherein, can per a line
Word quantity is drawn, it can be according to drawing area width, the position for drawing origin coordinates instruction of current line and text formatting
It determines.For example, the width of the screen got is 1080 pixel units, the origin coordinates of drafting is located at the start bit of current line
It sets, the font set shows size as 108 × 108 pixel units, it is determined that often row at most drawable word quantity is 1080
÷ 108=10.
After current drawing area is all completed, you can the dynamic wallpaper for generating the page where the drawing area, into
And corresponding drawing area is drawn in next dynamic wallpaper page.
In addition, electronic book data can be not only the content-data of e-book, and can also be the bibliography data of e-book, packet
Include the bibliography image and/or bibliography word of e-book.For example, the title of e-book, cover, author, chapters and sections etc..In this situation
Under, dynamic wallpaper can be called to draw the bibliography data for the above-mentioned e-book that interface renderings obtain, to generate book in drawing area
Frame dynamic wallpaper is simultaneously shown.User can select the e-book in bookshelf dynamic wallpaper, and terminal device can receive user
To the selection operation of the bibliography image of e-book and/or bibliography word that are shown in bookshelf dynamic wallpaper;In turn, according to the selection
Operation obtains the eBook content data of corresponding e-book to be drawn;Then, continue that dynamic wallpaper drafting interface is called to exist
The eBook content data that acquisition is drawn in new dynamic wallpaper generate the corresponding e-book dynamic wallpaper page and show.It is logical
Bookshelf dynamic wallpaper is crossed, flexible select and set of the user to e-book is realized.
Step S210, the e-book dynamic wallpaper page of generation is shown on the screen.
After the e-book dynamic wallpaper page generates, you can shown on the screen, watch and use for user.
S200-S210 through the above steps realizes the generation and display of e-book dynamic wallpaper.On this basis, originally
Field technology personnel can further realize the interaction schemes between following users and e-book.But those skilled in the art should
Be illustrated, be not with lower part e-book provided in an embodiment of the present invention displaying scheme in required part.
Step S212, receive the change message of screen either to the operation information of e-book according to change message or
Operation information operates the e-book dynamic wallpaper page accordingly.
Wherein, the change message of screen includes but not limited to the changed message of attribute of screen;To the behaviour of e-book
It includes but not limited to that message, the click that the e-book dynamic wallpaper page of operation generation shifts are carried out to e-book to make information
The operation information of operation, operation information of slide etc..
Hereinafter, based on the e-book dynamic wallpaper page shown on current screen, to e-book dynamic wallpaper for above-mentioned
The operation that change message or operation information are carried out is further described.
Operation one:
After the changed message of attribute for receiving screen, terminal device obtains the screen after variation according to the message
The dimension information of curtain;According to the dimension information of the screen after variation, the drawing area of dynamic wallpaper is redefined;It is redefining
Drawing area, call dynamic wallpaper draw interface repaint electronic book data, generate the new e-book dynamic wallpaper page;
And the new e-book dynamic wallpaper page is shown on the screen.
For example, the screen of terminal device rotates to be transverse screen state by vertical screen state, then the height of the screen under vertical screen state
The width of transverse screen state sub-screen is converted to, the width of the screen under vertical screen state is converted to the height of transverse screen state sub-screen.
At this point, the changed related news of attribute that terminal device will generate screen, wherein carrying the attribute of the screen after changing
The dimension information of screen after information, including variation;Dimension information of the terminal device based on the screen after variation, redefines and paints
Region processed;In turn, in the drawing area redefined, still dynamic wallpaper is called to draw the drafting that interface carries out e-book,
It generates the e-book dynamic wallpaper page and shows.Draw generation first is the e-book page that former screen is currently shown, then
The drafting of new page can be carried out depending on the user's operation.Wherein, dynamic wallpaper is called to draw the drafting that interface carries out e-book,
The process of the e-book dynamic wallpaper page and display is generated as previously mentioned, details are not described herein.
Operation two:
After receiving the message that the e-book dynamic wallpaper page currently shown shifts, obtained according to the message
Deviation post information redefines the drawing area of dynamic wallpaper according to deviation post information;In the drawing area redefined,
It calls dynamic wallpaper to draw interface and repaints electronic book data, generate the new e-book dynamic wallpaper page;And on the screen
Show the new e-book dynamic wallpaper page.
When user is by such as sliding the operation of screen and holding so that the e-book dynamic wallpaper page hair currently shown
When raw offset, relevant message that terminal device will generate and the e-book dynamic wallpaper page shifts carries within the message
Offset location information;At this point, terminal device is needed according to deviation post information, to the dynamic wallpaper page of the e-book of display
It is adjusted.
With current display page for page 5, user has carried out the operation slided and kept to the left, at this point, the 5th should be shown
A part and a part for page 6 for page.Under normal circumstances, in order to make user have preferable usage experience, can be generated in advance with
The consecutive one or more pages of the Current electronic book dynamic wallpaper page, because the e-book dynamic wallpaper page of generation is picture
Format, thus, when user has carried out the operation slided and kept to the left, terminal device is to the bits of offset confidence according to the operation
Breath, picture and the picture of page 6 to page 5 are handled accordingly, and then, by treated, page pictures repaint
The drawing area redefined, and generate the e-book dynamic wallpaper page under corresponding shift state.And when user carries out
When the operation slided and kept to the right, because the e-book dynamic wallpaper page of generation can be stored in terminal device, at this point, to working as
After the picture of page 5 of preceding display and the picture of page 4 before are handled, repaint in the drafting area redefined
Domain, and generate the e-book dynamic wallpaper page under corresponding shift state.
Operation three:
After receiving the operation information of input, judge operation indicated by the operation information whether with setting operation
Match;If matching, executes e-book dynamic wallpaper corresponding with the operation and draw.
Wherein, user includes but not limited to that clicking operation and sliding are grasped to the operation of the Current electronic book dynamic wallpaper page
Make.By taking clicking operation and slide as an example, by the operation of both forms, the page turning of e-book can be achieved.
Based on this, in a kind of feasible mode, terminal device judges whether the operation indicated by the operation information is sliding
Dynamic operation;If slide, it is determined that the operation is matched with setting operation, and then executes corresponding e-book dynamic wallpaper
Drafting operation.For example, obtaining the origin coordinates and terminating coordinates of slide;According to origin coordinates and terminating coordinates, judge
The direction of slide;If slide is to slide to the right, continue that dynamic wallpaper is called to draw interface from remaining e-book
Electronic book data to be drawn is obtained in data, generates and shows the new e-book dynamic wallpaper page;If slide be to
Left sliding then obtains the previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page and shows.
In another feasible mode, terminal device judges whether the operation indicated by the operation information is to click behaviour
Make;If clicking operation, then the position of clicking operation is obtained;Judge whether the position of clicking operation is located at setting regions;If position
In setting regions, it is determined that the operation is matched with setting operation.For example, judging whether the position of clicking operation is located at lower page turning
Region or upper page turning region;If being located at lower page turning region, continue that dynamic wallpaper is called to draw interface from remaining e-book number
Electronic book data to be drawn is obtained according to middle, generate and shows the new e-book dynamic wallpaper page;If being located at upper page turning region,
It then obtains the previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page and shows.
As it can be seen that by aforesaid operations, the page turning of dynamic wallpaper form e-book is had effectively achieved.
Operation four:
During the e-book dynamic wallpaper page is shown, the information of the clicking operation of input is received, judges to click behaviour
Whether the position of work is located at the regional extent of the dynamic wallpaper icon of setting;If so, closing dynamic wallpaper.
As previously mentioned, when dynamic wallpaper is by starting the operation of corresponding icon such as button icon, correspondingly, also may be used
With by closing dynamic wallpaper to the operation of icon.It can be aobvious in the e-book dynamic wallpaper page to the shutoff operation of dynamic wallpaper
After showing, any moment in user's watching process carries out, and terminal device judges whether user has carried out effective operation to icon, can
To be realized by judging whether the position of clicking operation is located in the regional extent of the dynamic wallpaper icon set.
In a kind of preferred embodiment, before closing dynamic wallpaper, it is dynamic that terminal device can also record the e-book currently shown
The mark and/or order information of the state wallpaper page can be directly since the pages when being again started up so as to subsequent dynamic wallpaper
Viewing.That is, after closing dynamic wallpaper, determine that dynamic wallpaper starts again, then it can be dynamic according to the e-book of record
The mark and/or order information of the state wallpaper page determine electronic book data to be drawn, and then carry out e-book dynamic wall page
The drafting in face.By this kind of mode, the continuity of user's reading electronic book is realized, improves the reading experience of user.
The display methods of e-book through this embodiment realizes the scheme by dynamic wallpaper reading electronic book.With biography
The e-book reading application of system is different, and dynamic wallpaper can just be activated to open without complicated operation, need not also be waited for for a long time
Using the interaction results with system, therefore, e-book is shown in the form of dynamic wallpaper, improve e-book display efficiency and into
Enter the speed of e-book reading, also, carry out complicated operation without user, you can e-book is opened, to reduce user
Operation complexity, improve the reading experience of user's reading electronic book.
In addition, the present embodiment also achieves the startup and closing of dynamic wallpaper, and pass through the corresponding behaviour to dynamic wallpaper
Make to realize the operation that e-book reading is applied, such as upper and lower page turning, screen rotation, improves the reading body of user's reading electronic book
It tests.
Embodiment three
With reference to Fig. 3, a kind of step flow chart of the display methods of according to embodiments of the present invention three e-book is shown.
The display methods of e-book in the present embodiment can realize by any suitable terminal device, as smart mobile phone,
Tablet computer or desktop computer etc., but not limited to this, other devices for having similar data processing function can refer to this implementation
Example realizes that the display methods of e-book, the embodiment of the present invention are not restricted this, and the present embodiment carries out still by taking terminal device as an example
Explanation.
In addition, the present embodiment is by taking the dynamic wallpaper of android system as an example, to e-book provided in an embodiment of the present invention
Display methods illustrates.But it should be understood by those skilled in the art that being with dynamic wallpaper function for other
System, other relevant interfaces dynamic wallpaper application and its provided can refer to the dynamic wall that the embodiment of the present invention realizes e-book
Paper displaying scheme.
E-book dynamic wallpaper is realized under android system, need first to register a realization
The service (Service) of WallpaperService interfaces, while stating that the service provides dynamic wallpaper service;Then, in reality
The Engine classes behaviour of a succession WallpaperService.Engine function is created in existing WallpaperService services
Make to draw corresponding content, including but not limited to starts and close icon, the electronic book data etc. of dynamic wallpaper.Wherein it is possible to
It is the side drawFrame in the present embodiment by creating an e-book dynamic wallpaper method for drafting in the Engine classes of establishment
Electronic book data is plotted on the interface of terminal device by method.Wherein, WallpaperService provides dynamic wallpaper service,
It realizes the practical realization of dynamic wallpaper by WallpaperService.Engine..
Based on this, the display methods of the e-book of the present embodiment includes the following steps:
Step S300, the application icon of e-book dynamic wallpaper is drawn on the interface of terminal device.
In the present embodiment, the application icon of e-book dynamic wallpaper is drawn and includes at the blank interface of terminal device
On, that is, it is shown on no application program image target interface, by the application icon of e-book dynamic wallpaper, e-book may be implemented
The startup and closing of dynamic wallpaper.
WallpaperService.Engine is provided by getSurfaceHolder () method and is accessed dynamic wallpaper institute
Approach at interface will obtain SurfaceHolder examples by getSurfaceHolder () method, can by the example
To realize the control to interface dimensions, pattern where dynamic wallpaper, the monitoring to interface state variation also allows at the interface
Upper editor's pixel.SurfaceHolder examples obtain Canvas examples by lockCanvas () method, are painted for wallpaper
System.Text can be depicted as dynamic wallpaper by Canvas examples by relevant drawText methods, by relevant
DrawBitmap methods can be by graphic plotting at dynamic wallpaper.
Therefore, in the case where realizing WallpaperService.Engine, Canvas examples can be used
DrawBitmap methods e-book dynamic wallpaper icon is plotted to interface a certain angle (the not region of interference reading word, than
Such as the upper right corner at interface), the coordinate position of screen is in the coordinate range of the icon when the user clicks, as the coordinate of icon is:
The upper left corner (x1, y1), the upper right corner (x2, y1), the lower left corner (x1, y2), the lower right corner (x2, y2), user click coordinate be (a,
B), work as x1<=a<=x2 and y1<=b<When=y2, it is possible to determine that user clicks this icon, in e-book dynamic wallpaper
The icon is clicked under dispaly state, is considered as and is switched to conventional wallpaper state, can use Canvas examples at this time
The wallpaper picture of user setting is plotted on interface by drawBitmap methods.And click this under the routine wallpaper state of interface
Icon, which is then considered as, is switched to e-book dynamic wallpaper dispaly state, draws electronic book data at this time, forms e-book dynamic wallpaper
The page.
Step S302, operation of the user to e-book dynamic wallpaper icon is received, is started according to the operation information of the operation
Dynamic wallpaper, and corresponding dynamic wallpaper is called to draw interface renderings e-book.
In a kind of feasible pattern, can (such as be by other appropriate approach except WallpaperService.Engine
System file acquisition interface) obtain electronic book data.For example, the file format information of e-book is obtained, according to file format information
E-book is parsed;And then analytically after e-book in obtain electronic book data.Wherein, the file format letter of e-book
Breath includes but not limited to:EPUB, TXT etc..The electronic book data obtained after being parsed to e-book includes but not limited to electricity
Content-data, bibliography data of the philosophical works etc..
But not limited to this, in practical applications, those skilled in the art can also be otherwise or by corresponding
Dynamic wallpaper interface realize electronic book data acquisition.
As previously mentioned, in the present embodiment, by the drawFrame methods created in the Engine classes of establishment, by electronics
Book data are plotted as dynamic wallpaper.
For this purpose, Engine monitors correlated condition by following three methods, drawFrame methods are called in due course, these three
Method includes:OnVisibilityChanged methods, onSurfaceChanged methods and onOffsetsChanged methods.
Wherein, onVisibilityChanged methods can be monitored the visibility of dynamic wallpaper, when the visibility of dynamic wallpaper
When changing, i.e., drawFrame methods are called to draw e-book dynamic wallpaper when dynamic wallpaper is visible;
OnSurfaceChanged methods can be monitored the variation of screen attribute, be called when the wide height of screen changes
DrawFrame methods draw e-book dynamic wallpaper;OnOffsetsChanged methods can carry out the offset of dynamic wallpaper
Monitoring, when dynamic wallpaper shifts, deviation post changes, and drawFrame methods are called when such as sliding dynamic wallpaper
Draw e-book dynamic wallpaper.
Wherein, the specific implementation of drawFrame methods drafting e-book dynamic wallpaper includes:Pass through Engine first
GetSurfaceHolder () method that class provides obtains SurfaceHolder examples, reuses SurfaceHolder examples
LockCanvas () method obtain Canvas examples, then the drawText methods of Canvas examples can be used electronics
Lteral data in book data is plotted as the dynamic wallpaper on screen, using the drawBitmap methods of Canvas examples by electronics
Graph data in book data is plotted as the dynamic wallpaper on screen.
When drawing the lteral data of e-book, it is thus necessary to determine that at most how many a words can be drawn per a line, it can be with
According to the incoming origin coordinates (x, y) drawn of drawText methods, it is arranged using the paintbrush Paint in incoming drawText methods
Font size can determine the drawable word number of every row further according to the width of screen.It can be painted obtaining a line at most
After the height that the maximum word number and a line word of system occupy, the style of writing digital data of completing.Then, further according to not painting
The lteral data of the e-book of system continues to draw next line.
Step S304, the page turn over operation to e-book dynamic wallpaper is received, e-book dynamic wallpaper page turning is carried out.
The onTouchEvent () method provided in Engine classes can receive the event and phase that user clicks screen
To the coordinate position of screen, when obtaining the click event of user, by getX () methods of MotionEvent objects and
The coordinate address that getY () method obtains may determine that the page turn over operation of user is upper page turning or lower page turning.According to user
Page turn over operation, call drawFrame methods in draw e-book under the electronic book data of one page or page up.
Step S306, it receives user to operate e-book dynamic wallpaper icon, is determined according to the operation and close current display
Dynamic wallpaper.
E-book dynamic wallpaper icon is clicked under e-book dynamic wallpaper dispaly state, can be switched to conventional wallpaper
The wallpaper picture of user setting is plotted on interface using the drawBitmap methods of Canvas examples by state at this time.
Through this embodiment, a kind of concrete methods of realizing of e-book dynamic wallpaper is provided, in this way, can be
Start and close e-book dynamic wallpaper on the interface of terminal device, realizes the operations such as the page turning of e-book dynamic wallpaper.Pass through
E-book dynamic wallpaper improves the speed into e-book reading, also, carries out complicated operation without user, improves
The reading experience of user's reading electronic book.
Example IV
With reference to Fig. 4, a kind of structure diagram of the display device of according to embodiments of the present invention four e-book is shown.
The display device of the e-book of the present embodiment includes:Acquisition module 402, for obtaining for showing dynamic wallpaper
The information of screen, wherein the information of the screen includes the dimension information of the screen;Determining module 404, for according to
The dimension information of screen determines the drawing area of dynamic wallpaper;Drafting module 406, in drawing area, calling dynamic wallpaper
The electronic book data that interface renderings obtain is drawn, the e-book dynamic wallpaper page is generated;Display module 408, on the screen
Show the e-book dynamic wallpaper page generated.
The display device of the e-book provided through this embodiment realizes the side by dynamic wallpaper reading electronic book
Case.Wherein, in the region, can passing through after drawing area for dynamic wallpaper is being determined according to the dimension information of the screen of acquisition
It calls dynamic wallpaper to draw interface accordingly and relevant electronic book data is drawn into the generation dynamic wallpaper page, by showing the life
At the dynamic wallpaper page, you can viewing e-book.Different from traditional e-book reading application, dynamic wallpaper need not be complicated
Operation can just activate to open, and also without the interaction results to be applied with system such as prolonged, therefore, be shown in the form of dynamic wallpaper
Show e-book, improve the display efficiency of e-book and enter the speed of e-book reading, also, complexity is carried out without user
Operation, you can open e-book and improve the reading body of user's reading electronic book to reduce the operation complexity of user
It tests.
The display device of the e-book of the present embodiment can be set in the equipment appropriate with data-handling capacity, packet
Include but be not limited to mobile terminal, desktop computer etc..
Embodiment five
With reference to Fig. 5, a kind of structure diagram of the display device of according to embodiments of the present invention five e-book is shown.
The display device of the e-book of the present embodiment includes:Acquisition module 502, for obtaining for showing dynamic wallpaper
The information of screen, wherein the information of the screen includes the dimension information of the screen;Determining module 504, for according to
The dimension information of screen determines the drawing area of dynamic wallpaper;Drafting module 506, in drawing area, calling dynamic wallpaper
The electronic book data that interface renderings obtain is drawn, the e-book dynamic wallpaper page is generated;Display module 508, on the screen
Show the e-book dynamic wallpaper page generated.
Optionally, electronic book data includes lteral data and/or graph data;Drafting module 506 includes:Draw call mould
Block 5062 draws word number in drawing area, calling dynamic wallpaper Word-Drawing interface according to the text formatting of setting
According to, and/or, dynamic wallpaper graphic plotting interface is called, according to the graphical format graphing data of setting;Generation module
5064, for the lteral data and/or graph data according to drafting, generate the e-book dynamic wallpaper page.
Optionally, draw call module 5062 calls dynamic wallpaper Word-Drawing interface, according to setting in drawing area
When text formatting draws lteral data:It is painted according to the text formatting of setting, the width of drawing area and drafting origin coordinates, determination
The word number of words of current line where origin coordinates processed;Dynamic wallpaper Word-Drawing interface is called, in drawing area, from drafting
Position indicated by origin coordinates starts, and according to the text formatting of setting and word number of words, the word number of current line is drawn by row
According to;Also, after the lteral data of current line is completed, the lteral data for carrying out next line is drawn, until completing currently
The lteral data of drawing area is drawn.
Optionally, acquisition module 502 is for receiving the message that dynamic wallpaper is converted to visible state from invisible mode
Afterwards, the information of the screen for showing dynamic wallpaper is obtained.
Optionally, the display device of the e-book of the present embodiment further includes:First redraws module 510, in display mould
After block 508 shows the e-book dynamic wallpaper page of generation on the screen, the changed message of attribute of screen is received;
The dimension information of the screen after variation is obtained according to the message;According to the dimension information of the screen after variation, redefine dynamic
The drawing area of state wallpaper;In the drawing area redefined, calls dynamic wallpaper to draw interface and repaints electronic book data,
Generate the new e-book dynamic wallpaper page;And the new e-book dynamic wallpaper page is shown on the screen.
Optionally, the display device of the e-book of the present embodiment further includes:Second redraws module 512, in display mould
After block 508 shows the e-book dynamic wallpaper page of generation on the screen, the e-book dynamic wallpaper currently shown is received
The message that the page shifts;Deviation post information is obtained according to the message, dynamic is redefined according to deviation post information
The drawing area of wallpaper;In the drawing area redefined, calls dynamic wallpaper to draw interface and repaint electronic book data, it is raw
The e-book dynamic wallpaper page of Cheng Xin;And the new e-book dynamic wallpaper page is shown on the screen.
Optionally, the display device of the e-book of the present embodiment further includes:First receiving module 514, in display mould
After block 508 shows the e-book dynamic wallpaper page of generation on the screen, the operation information of input is received;Judgment module 516,
For judging whether operation indicated by the operation information matches with setting operation;Execution module 518, if being used for judgment module
516 judging result is matching, then executes e-book dynamic wallpaper corresponding with the operation and draw.
Optionally, judgment module 516 is for judging whether the operation indicated by the operation information is slide;If
Slide, it is determined that the operation is matched with setting operation;Alternatively, for judging that the operation indicated by the operation information is
No is clicking operation;If clicking operation, then the position of clicking operation is obtained;Judge whether the position of clicking operation is located at setting
Region;If being located at setting regions, it is determined that the operation is matched with setting operation.
Optionally, execution module 518 be used for when it is described operation be slide when, obtain slide origin coordinates and
Terminating coordinates;According to origin coordinates and terminating coordinates, the direction of slide is judged;If slide is to slide to the right, after
It is continuous that dynamic wallpaper drafting interface is called to obtain electronic book data to be drawn from remaining electronic book data, it generates and shows new
The e-book dynamic wallpaper page;If slide is to slide to the left, the previous of the Current electronic book dynamic wallpaper page is obtained
The e-book dynamic wallpaper page is simultaneously shown;When the operation is clicking operation, under judging whether the position of clicking operation is located at
Page turning region or upper page turning region;If being located at lower page turning region, continue that dynamic wallpaper is called to draw interface from remaining electronics
Electronic book data to be drawn is obtained in book data, generates and shows the new e-book dynamic wallpaper page;If being located at upper page turning
Region then obtains the previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page and shows.
Optionally, the display device of the e-book of the present embodiment further includes:Starting module 520 is triggered, for obtaining mould
Block 502 is obtained for before showing the information of screen of dynamic wallpaper, receiving the information of the clicking operation of input, judges to click
Whether the position of operation is located at the regional extent of the dynamic wallpaper icon of setting;Start dynamic wallpaper if so, determining, and executes
Acquisition module 502.
Optionally, the display device of the e-book of the present embodiment further includes:Closedown module 522, in e-book dynamic
During the wallpaper page is shown, the information of the clicking operation of input is received, judges whether the position of clicking operation is located at setting
Dynamic wallpaper icon regional extent;If so, closing dynamic wallpaper.
Optionally, closedown module 522 is additionally operable to before closing dynamic wallpaper, records the e-book dynamic wall currently shown
The mark and/or order information in page face.
Optionally, the display device of the e-book of the present embodiment further includes:Module 524 is restarted, in closedown module
522 close after dynamic wallpaper, determine that dynamic wallpaper restarts, and according to the mark and/or order information of record, determination waits painting
The electronic book data of system.
Optionally, drafting module 506 includes:Bibliography drafting module 5066, in drawing area, dynamic wallpaper being called to paint
The bibliography image and/or bibliography word for the e-book that interface renderings processed obtain generate bookshelf dynamic wallpaper and show;Second receives
Module 5068 is grasped for receiving the selection of bibliography image and/or bibliography word of the e-book to being shown in bookshelf dynamic wallpaper
Make;Content drafting module 50610, for according to the selection operation, obtaining the eBook content data of e-book to be drawn;
Continue that dynamic wallpaper drafting interface is called to draw the eBook content data of acquisition in new dynamic wallpaper, and generates corresponding
The e-book dynamic wallpaper page.
The display device of the e-book of the present embodiment for realizing corresponding e-book in aforesaid plurality of embodiment display
Method, and the advantageous effect with corresponding embodiment of the method, details are not described herein.
Embodiment six
Fig. 6 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention, and the specific embodiment of the invention is not
The specific implementation of terminal device is limited.
As shown in fig. 6, the terminal device may include:Processor (processor) 610, communication interface
(Communications Interface) 620, memory (memory) 630 and communication bus 640.
Wherein:
Processor 610, communication interface 620 and memory 630 complete mutual communication by communication bus 640.
Communication interface 620, for being communicated with the network element of such as server or other terminal devices etc..
Processor 610 can specifically execute the correlation step in above method embodiment for executing program 632.
Specifically, program 632 may include program code, which includes computer-managed instruction.
Processor 610 may be a central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that terminal device includes can be same type of processor, such as one or more CPU;Also may be used
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 630, for storing relevant electronic book data and program 632.Memory 630 may include high-speed RAM
Memory, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a disk storage
Device.
Program 632 specifically can be used for so that processor 610 executes following operation:Obtain the screen for showing dynamic wallpaper
The information of curtain, wherein the information of the screen includes the dimension information of the screen;According to the dimension information of the screen, really
Determine the drawing area of dynamic wallpaper;In drawing area, dynamic wallpaper is called to draw the electronic book data that interface renderings obtain, generated
The e-book dynamic wallpaper page;The e-book dynamic wallpaper page of generation is shown on the screen.
In a kind of optional embodiment, electronic book data includes lteral data and/or graph data;Program 632 is also
For making processor 610 in drawing area, calls dynamic wallpaper to draw the electronic book data that interface renderings obtain, generate electronics
When the book dynamic wallpaper page:In drawing area, dynamic wallpaper Word-Drawing interface is called, text is drawn according to the text formatting of setting
Digital data, and/or, dynamic wallpaper graphic plotting interface is called, according to the graphical format graphing data of setting;According to drafting
Lteral data and/or graph data, generate the e-book dynamic wallpaper page.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 calls dynamic in drawing area
Wallpaper Word-Drawing interface, when drawing lteral data according to the text formatting of setting:According to the text formatting of setting, drawing area
Width and draw origin coordinates, determine draw origin coordinates where current line word number of words;Call dynamic wallpaper word
Interface is drawn, in drawing area, since drawing the position indicated by origin coordinates, according to the text formatting and word of setting
Number of words is drawn the lteral data of current line by row;Also, after the lteral data of current line is completed, next line is carried out
Lteral data is drawn, until the lteral data for completing current drawing area is drawn.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is being obtained for showing dynamic wall
When the information of the screen of paper:After receiving the message that dynamic wallpaper is converted to visible state from invisible mode, obtain for showing
Show the information of the screen of dynamic wallpaper.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 shows the electricity of generation on the screen
After the philosophical works dynamic wallpaper page, the changed message of attribute of screen is received;After variation being obtained according to the message
The dimension information of screen;According to the dimension information of the screen after variation, the drawing area of dynamic wallpaper is redefined;Again true
Fixed drawing area calls dynamic wallpaper to draw interface and repaints electronic book data, generates new e-book dynamic wall page
Face;And the new e-book dynamic wallpaper page is shown on the screen.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 shows the electricity of generation on the screen
After the philosophical works dynamic wallpaper page, the message that the e-book dynamic wallpaper page currently shown shifts is received;According to institute
It states message and obtains deviation post information, the drawing area of dynamic wallpaper is redefined according to deviation post information;It is redefining
Drawing area, call dynamic wallpaper draw interface repaint the electronic book data, generate new e-book dynamic wallpaper
The page;And the new e-book dynamic wallpaper page is shown on the screen.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 shows the electricity of generation on the screen
After the philosophical works dynamic wallpaper page, the operation information of input is received;Judge the operation indicated by the operation information whether with set
Fixed operation matching;If matching, executes e-book dynamic wallpaper corresponding with the operation and draw.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is judging the operation information institute
When whether the operation of instruction matches with setting operation:Judge whether the operation indicated by the operation information is slide;If
For slide, it is determined that the operation is matched with setting operation;Alternatively, judging whether is operation indicated by the operation information
For clicking operation;If clicking operation, then the position of clicking operation is obtained;Judge whether the position of clicking operation is located at setting area
Domain;If being located at setting regions, it is determined that the operation is matched with setting operation.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is when the operation is sliding behaviour
When making, the origin coordinates and terminating coordinates of slide are obtained;According to origin coordinates and terminating coordinates, the side of slide is judged
To;If slide is to slide to the right, continue dynamic wallpaper is called to draw interface obtaining and wait for from remaining electronic book data
The electronic book data of drafting generates and shows the new e-book dynamic wallpaper page;If slide is to slide to the left, obtain
The previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page is simultaneously shown;When the operation is clicking operation,
Judge whether the position of clicking operation is located at lower page turning region or upper page turning region;If being located at lower page turning region, continue to call
Dynamic wallpaper draws interface and obtains electronic book data to be drawn from remaining electronic book data, generates and shows new electronics
The book dynamic wallpaper page;If being located at upper page turning region, the previous e-book dynamic of the Current electronic book dynamic wallpaper page is obtained
The wallpaper page is simultaneously shown.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is being obtained for showing dynamic
Before the information of the screen of wallpaper, the information of the clicking operation of input is received, judges whether the position of clicking operation is located at and sets
The regional extent of fixed dynamic wallpaper icon;Start dynamic wallpaper if so, determining, and executes acquisition for showing dynamic wallpaper
Screen information the step of.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is in the e-book dynamic wallpaper page
During display, the information of the clicking operation of input is received, judges whether the position of clicking operation is located at the dynamic wall of setting
The regional extent of paper icon;If so, closing dynamic wallpaper.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is before closing dynamic wallpaper,
Record the mark and/or order information of the e-book dynamic wallpaper page currently shown.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 is after closing dynamic wallpaper,
It determines that dynamic wallpaper restarts, according to the mark and/or order information of record, determines electronic book data to be drawn.
In a kind of optional embodiment, program 632 is additionally operable to so that processor 610 calls dynamic in drawing area
Wallpaper draws the electronic book data that interface renderings obtain, when generating the e-book dynamic wallpaper page:In drawing area, dynamic is called
Wallpaper draws the bibliography image and/or bibliography word for the e-book that interface renderings obtain, and generates bookshelf dynamic wallpaper and shows;It connects
Receive the selection operation to the bibliography image of e-book and/or bibliography word that are shown in bookshelf dynamic wallpaper;According to selection operation,
Obtain the eBook content data of e-book to be drawn;Continue that dynamic wallpaper drafting interface is called to paint in new dynamic wallpaper
The eBook content data obtained are made, and generate the corresponding e-book dynamic wallpaper page.
The specific implementation of each step may refer to corresponding in corresponding steps and unit in above-described embodiment in program 632
Description, this will not be repeated here.It is apparent to those skilled in the art that for convenience and simplicity of description, it is above-mentioned to retouch
The specific work process of the equipment and module stated can refer to corresponding processes in the foregoing method embodiment description, herein no longer
It repeats.
Terminal device through this embodiment realizes the scheme by dynamic wallpaper reading electronic book.Wherein, in basis
The dimension information of the screen of acquisition determines in the region, can passing through and call dynamic wallpaper phase after drawing area for dynamic wallpaper
Relevant electronic book data is drawn and generates the dynamic wallpaper page by the drafting interface answered, by the dynamic wall page for showing the generation
Face, you can viewing e-book.Different from traditional e-book reading application, dynamic wallpaper could start without complicated operation to be beaten
It opens, also therefore shows e-book in the form of dynamic wallpaper without the to be applied and system interaction results such as prolonged, improve
The display efficiency of e-book and the speed for entering e-book reading, also, complicated operation is carried out without user, you can it opens
E-book improves the reading experience of user's reading electronic book to reduce the operation complexity of user.
It may be noted that according to the needs of implementation, all parts/step described in the embodiment of the present invention can be split as more
The part operation of two or more components/steps or components/steps can be also combined into new component/step by multi-part/step
Suddenly, to realize the purpose of the embodiment of the present invention.
It is above-mentioned to be realized in hardware, firmware according to the method for the embodiment of the present invention, or be implemented as being storable in note
Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through net
The original storage that network is downloaded in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium
In computer code, can be stored in using all-purpose computer, application specific processor or can compile to method described here
Such software processing in journey or the recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that computer, processing
Device, microprocessor controller or programmable hardware include can store or receive software or computer code storage assembly (for example,
RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and execute, realize
The display methods of e-book described here.In addition, when all-purpose computer accesses for realizing the aobvious of the e-book being shown here
When showing the code of processing, all-purpose computer is converted to the display processing for executing the e-book being shown here by the execution of code
Special purpose computer.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The range of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and is not the limitation to the embodiment of the present invention, related skill
The those of ordinary skill in art field can also make various in the case where not departing from the spirit and scope of the embodiment of the present invention
Variation and modification, therefore all equivalent technical solutions also belong to the scope of the embodiment of the present invention, the patent of the embodiment of the present invention
Protection domain should be defined by the claims.
Claims (25)
1. a kind of display methods of e-book, including:
Obtain the information of the screen for showing dynamic wallpaper, wherein the information of the screen includes the size letter of the screen
Breath;
According to the dimension information of the screen, the drawing area of the dynamic wallpaper is determined;
In the drawing area, dynamic wallpaper is called to draw the bibliography image and/or bibliography text of the e-book that interface renderings obtain
Word generates bookshelf dynamic wallpaper and shows;
Receive the selection operation to the bibliography image of e-book and/or bibliography word that are shown in bookshelf dynamic wallpaper;
According to the selection operation, the eBook content data of e-book to be drawn are obtained;
Continue that dynamic wallpaper is called to draw the eBook content data that interface draws acquisition in new dynamic wallpaper, and generation pair
The e-book dynamic wallpaper page answered;
The e-book dynamic wallpaper page of generation is shown on the screen;
By the page turn over operation for realizing e-book to the corresponding operating of the e-book dynamic wallpaper page;
And before closing dynamic wallpaper, the mark and/or sequence that record the e-book dynamic wallpaper page currently shown are believed
Breath, when being again started up for subsequent dynamic wallpaper, is shown from the e-book dynamic wallpaper page currently shown.
2. according to the method described in claim 1, wherein, the eBook content data include lteral data and/or figure number
According to;
It is described that dynamic wallpaper is called to draw the eBook content data that interface draws acquisition in new dynamic wallpaper, and generation pair
The e-book dynamic wallpaper page answered, including:
Dynamic wallpaper Word-Drawing interface is called, the lteral data is drawn according to the text formatting of setting, and/or, it calls dynamic
State wallpaper graphics draw interface, and the graph data is drawn according to the graphical format of setting;
According to the lteral data of drafting and/or the graph data, the e-book dynamic wallpaper page is generated.
3. according to the method described in claim 2, wherein, the calling dynamic wallpaper Word-Drawing interface, according to the text of setting
Word format draws the lteral data, including:
According to the text formatting of the setting, the width of the drawing area and drafting origin coordinates, the drafting starting is determined
The word number of words of current line where coordinate;
Dynamic wallpaper Word-Drawing interface is called, in the drawing area, from the position indicated by the drafting origin coordinates
Start, according to the text formatting of the setting and the word number of words, the lteral data of current line is drawn by row;
Also, after the lteral data of current line is completed, the lteral data for carrying out next line is drawn, until completing currently
The lteral data of drawing area is drawn.
4. according to claim 1-3 any one of them methods, wherein the information of the screen for showing dynamic wallpaper is obtained,
Including:
After receiving the message that dynamic wallpaper is converted to visible state from invisible mode, the screen for showing dynamic wallpaper is obtained
The information of curtain.
5. according to claim 1-3 any one of them methods, wherein show that the e-book of generation is dynamic on the screen
After the state wallpaper page, the method further includes:
Receive the changed message of attribute of the screen;
The dimension information of the screen after variation is obtained according to the message;
According to the dimension information of the screen after variation, the drawing area of the dynamic wallpaper is redefined;
In the drawing area redefined, calls dynamic wallpaper to draw interface and repaints the eBook content data,
Generate the new e-book dynamic wallpaper page;
And the new e-book dynamic wallpaper page is shown on the screen.
6. according to claim 1-3 any one of them methods, wherein show that the e-book of generation is dynamic on the screen
After the state wallpaper page, the method further includes:
Receive the message that the e-book dynamic wallpaper page currently shown shifts;
Deviation post information is obtained according to the message, painting for the dynamic wallpaper is redefined according to the deviation post information
Region processed;
In the drawing area redefined, calls dynamic wallpaper to draw interface and repaints the eBook content data,
Generate the new e-book dynamic wallpaper page;
And the new e-book dynamic wallpaper page is shown on the screen.
7. according to claim 1-3 any one of them methods, wherein show that the e-book of generation is dynamic on the screen
After the state wallpaper page, the method further includes:
Receive the operation information of input;
Judge whether the operation indicated by the operation information matches with setting operation;
If matching, executes e-book dynamic wallpaper corresponding with the operation and draw.
8. according to the method described in claim 7, wherein, judge operation indicated by the operation information whether with setting operation
Matching, including:
Judge whether the operation indicated by the operation information is slide;If slide, it is determined that it is described operation with
Setting operation matches;
Alternatively,
Judge whether the operation indicated by the operation information is clicking operation;If clicking operation, then the click behaviour is obtained
The position of work;Judge whether the position of the clicking operation is located at setting regions;If being located at the setting regions, it is determined that described
Operation is matched with setting operation.
9. according to the method described in claim 8, wherein,
When the operation is slide, the execution e-book dynamic wallpaper corresponding with the operation is drawn, including:
Obtain the origin coordinates and terminating coordinates of the slide;According to the origin coordinates and terminating coordinates, the sliding is judged
The direction of operation;If the slide is to slide to the right, continue that dynamic wallpaper is called to draw interface from remaining e-book
EBook content data to be drawn are obtained in content-data, generate and show the new e-book dynamic wallpaper page;If described
Slide is to slide to the left, then obtains the previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page and show
Show;
When the operation is clicking operation, the execution e-book dynamic wallpaper corresponding with the operation is drawn, including:
Judge whether the position of the clicking operation is located at lower page turning region or upper page turning region;If being located at lower page turning region, continue
It calls dynamic wallpaper to draw interface and obtains eBook content data to be drawn from remaining eBook content data, generate simultaneously
Show the new e-book dynamic wallpaper page;If being located at upper page turning region, before obtaining the Current electronic book dynamic wallpaper page
The one e-book dynamic wallpaper page is simultaneously shown.
10. according to the method described in claim 1, wherein, the information for obtaining the screen for showing dynamic wallpaper it
Before, the method further includes:
The information for receiving the clicking operation of input, judges whether the position of the clicking operation is located at the dynamic wallpaper figure of setting
Target area range;
Start dynamic wallpaper if so, determining, and the step of executing the information of screen of the acquisition for showing dynamic wallpaper.
11. according to the method described in claim 10, wherein, the method further includes:
During the e-book dynamic wallpaper page is shown, the information of the clicking operation of input is received, judges the click behaviour
Whether the position of work is located at the regional extent of the dynamic wallpaper icon of setting;
If so, closing dynamic wallpaper.
12. according to the method described in claim 1, wherein, when the dynamic wallpaper is again started up, from the electricity currently shown
The philosophical works dynamic wallpaper page carries out display:
It determines that dynamic wallpaper restarts, according to the mark and/or order information of record, determines in e-book to be drawn
Hold data.
13. a kind of display device of e-book, including:
Acquisition module, the information for obtaining the screen for showing dynamic wallpaper, wherein the information of the screen includes described
The dimension information of screen;
Determining module determines the drawing area of the dynamic wallpaper for the dimension information according to the screen;
Drafting module, including bibliography drafting module, the second receiving module and content drafting module, wherein the bibliography is drawn
Module, in the drawing area, dynamic wallpaper being called to draw the bibliography image and/or book of the e-book that interface renderings obtain
Mesh word generates bookshelf dynamic wallpaper and shows;
Second receiving module, bibliography image and/or bibliography for receiving the e-book to being shown in bookshelf dynamic wallpaper
The selection operation of word;
The content drafting module, for according to the selection operation, obtaining the eBook content data of e-book to be drawn;
Continue that dynamic wallpaper drafting interface is called to draw the eBook content data of acquisition in new dynamic wallpaper, and generates corresponding
The e-book dynamic wallpaper page;
Display module, the e-book dynamic wallpaper page for showing generation on the screen;
Described device is additionally operable to, before closing dynamic wallpaper, record the mark of the e-book dynamic wallpaper page currently shown and/
Or order information, when being again started up for subsequent dynamic wallpaper, carried out from the e-book dynamic wallpaper page currently shown
Display;
Described device is additionally operable to, and realizes that the page turning of e-book is grasped by the corresponding operating to the e-book dynamic wallpaper page
Make.
14. device according to claim 13, wherein the eBook content data include lteral data and/or figure
Data;
The drafting module includes:
Draw call module draws the word for calling dynamic wallpaper Word-Drawing interface according to the text formatting of setting
Data, and/or, dynamic wallpaper graphic plotting interface is called, the graph data is drawn according to the graphical format of setting;Generate mould
Block is used for the lteral data according to drafting and/or the graph data, generates the e-book dynamic wallpaper page.
15. device according to claim 14, wherein the draw call module connects in calling dynamic wallpaper Word-Drawing
Mouthful, when drawing the lteral data according to the text formatting of setting:According to the text formatting of the setting, the drawing area
Width and drafting origin coordinates determine the word number of words of the current line where the drafting origin coordinates;Call dynamic wallpaper text
Word draws interface, in the drawing area, since the position indicated by the drafting origin coordinates, according to the setting
Text formatting and the word number of words are drawn the lteral data of current line by row;Also, it is drawn in the lteral data of current line
Cheng Hou, the lteral data for carrying out next line are drawn, until the lteral data for completing current drawing area is drawn.
16. according to claim 13-15 any one of them devices, wherein the acquisition module, for receiving dynamic wallpaper
After the message for being converted to visible state from invisible mode, the information of the screen for showing dynamic wallpaper is obtained.
17. according to claim 13-15 any one of them devices, wherein described device further includes:
First redraws module, for shown on the screen in the display module generation the e-book dynamic wallpaper page it
Afterwards, the changed message of attribute of the screen is received;The size of the screen after variation is obtained according to the message
Information;According to the dimension information of the screen after variation, the drawing area of the dynamic wallpaper is redefined;It is redefining
The drawing area, call dynamic wallpaper draw interface repaint the eBook content data, generate new e-book
The dynamic wallpaper page;And the new e-book dynamic wallpaper page is shown on the screen.
18. according to claim 13-15 any one of them devices, wherein described device further includes:
Second redraws module, for shown on the screen in the display module generation the e-book dynamic wallpaper page it
Afterwards, the message that the e-book dynamic wallpaper page currently shown shifts is received;Deviation post is obtained according to the message
Information redefines the drawing area of the dynamic wallpaper according to the deviation post information;In the drafting redefined
Region calls dynamic wallpaper to draw interface and repaints the eBook content data, generates new e-book dynamic wall page
Face;And the new e-book dynamic wallpaper page is shown on the screen.
19. according to claim 13-15 any one of them devices, wherein described device further includes:
First receiving module, for shown on the screen in the display module generation the e-book dynamic wallpaper page it
Afterwards, the operation information of input is received;Judgment module, for judge operation indicated by the operation information whether with setting operation
Matching;Execution module executes electronics corresponding with the operation if the judging result for the judgment module is matching
Book dynamic wallpaper is drawn.
20. device according to claim 19, wherein the judgment module, for judging indicated by the operation information
Operation whether be slide;If slide, it is determined that the operation is matched with setting operation;Alternatively, for judging
Whether the operation indicated by the operation information is clicking operation;If clicking operation, then the position of the clicking operation is obtained;
Judge whether the position of the clicking operation is located at setting regions;If being located at the setting regions, it is determined that described to operate and set
Fixed operation matching.
21. device according to claim 20, wherein
The execution module, for when the operation is slide, obtaining origin coordinates and the termination of the slide
Coordinate;According to the origin coordinates and terminating coordinates, the direction of the slide is judged;If the slide is to slide to the right
It is dynamic, then continue that dynamic wallpaper drafting interface is called to obtain eBook content number to be drawn from remaining eBook content data
According to generating and show the new e-book dynamic wallpaper page;If the slide is to slide to the left, Current electronic book is obtained
The previous e-book dynamic wallpaper page of the dynamic wallpaper page is simultaneously shown;
When the operation is clicking operation, judge whether the position of the clicking operation is located at lower page turning region or upper page turning area
Domain;If being located at lower page turning region, continue dynamic wallpaper is called to draw interface obtaining and wait for from remaining eBook content data
The eBook content data of drafting generate and show the new e-book dynamic wallpaper page;If being located at upper page turning region, obtain
The previous e-book dynamic wallpaper page of the Current electronic book dynamic wallpaper page is simultaneously shown.
22. device according to claim 13, wherein described device further includes:
Starting module is triggered, for before the information of screen that the acquisition module obtains for showing dynamic wallpaper, receiving
To the information of the clicking operation of input, judge whether the position of the clicking operation is located at the dynamic wallpaper figure target area of setting
Range;Start dynamic wallpaper if so, determining, and executes the acquisition module.
23. device according to claim 22, wherein described device further includes:
Closedown module, for during the e-book dynamic wallpaper page is shown, receiving the information of the clicking operation of input, sentencing
Whether the position for the clicking operation of breaking is located at the regional extent of the dynamic wallpaper icon of setting;If so, closing dynamic wallpaper.
24. device according to claim 13, wherein described device further includes:
Module is restarted, for determining that dynamic wallpaper restarts, according to the mark and/or order information of record, is determined
EBook content data to be drawn.
25. a kind of terminal device, including:Processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute as right is wanted for storing an at least executable instruction, the executable instruction
Ask the corresponding operation of display methods of 1-12 any one of them e-book.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611117320.0A CN106598410B (en) | 2016-12-07 | 2016-12-07 | Display methods, device and the terminal device of e-book |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611117320.0A CN106598410B (en) | 2016-12-07 | 2016-12-07 | Display methods, device and the terminal device of e-book |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598410A CN106598410A (en) | 2017-04-26 |
CN106598410B true CN106598410B (en) | 2018-10-23 |
Family
ID=58597333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611117320.0A Active CN106598410B (en) | 2016-12-07 | 2016-12-07 | Display methods, device and the terminal device of e-book |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598410B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643916A (en) * | 2017-10-09 | 2018-01-30 | 武汉斗鱼网络科技有限公司 | Control control method, device, electronic equipment and readable storage medium storing program for executing |
CN110990090A (en) * | 2019-11-14 | 2020-04-10 | 上海掌门科技有限公司 | Dynamic wallpaper display method, device and computer readable medium |
CN111240776B (en) * | 2019-12-31 | 2023-11-10 | Oppo广东移动通信有限公司 | Dynamic wallpaper setting method and device, storage medium and electronic equipment |
CN111209065B (en) * | 2019-12-31 | 2023-12-08 | Oppo广东移动通信有限公司 | Dynamic wallpaper setting method and device, storage medium and electronic equipment |
CN114077468A (en) * | 2020-08-18 | 2022-02-22 | 华为技术有限公司 | Screen window redrawing method, electronic equipment and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141745A (en) * | 2007-10-22 | 2008-03-12 | 中兴通讯股份有限公司 | Mobile equipment dynamic desktop generating method and apparatus |
CN101968718A (en) * | 2010-10-29 | 2011-02-09 | 汉王科技股份有限公司 | Picture display method in case of locked screen and electronic reader |
CN102567041A (en) * | 2010-12-27 | 2012-07-11 | 爱国者电子科技(天津)有限公司 | Computer device capable of realizing dynamic desktop |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9075522B2 (en) * | 2010-02-25 | 2015-07-07 | Microsoft Technology Licensing, Llc | Multi-screen bookmark hold gesture |
CN102855053B (en) * | 2012-09-13 | 2016-06-15 | 惠州Tcl移动通信有限公司 | The method inputted based on the information contrast of mobile terminal and mobile terminal |
-
2016
- 2016-12-07 CN CN201611117320.0A patent/CN106598410B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141745A (en) * | 2007-10-22 | 2008-03-12 | 中兴通讯股份有限公司 | Mobile equipment dynamic desktop generating method and apparatus |
CN101968718A (en) * | 2010-10-29 | 2011-02-09 | 汉王科技股份有限公司 | Picture display method in case of locked screen and electronic reader |
CN102567041A (en) * | 2010-12-27 | 2012-07-11 | 爱国者电子科技(天津)有限公司 | Computer device capable of realizing dynamic desktop |
Also Published As
Publication number | Publication date |
---|---|
CN106598410A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598410B (en) | Display methods, device and the terminal device of e-book | |
CN104317474B (en) | Windows switching method and device | |
CN105302418B (en) | A kind of information processing method and electronic equipment | |
US6522347B1 (en) | Display apparatus, portable information processing apparatus, information recording medium, and electronic apparatus | |
US7770130B1 (en) | Non-distracting temporary visual clues for scrolling | |
CN108064369B (en) | Interaction method and device of flexible display screen | |
US20070139430A1 (en) | Rendering "gadgets" with a browser | |
US20070083821A1 (en) | Creating viewports from selected regions of windows | |
US7061498B2 (en) | Screen display processing apparatus, screen display processing method and computer program | |
KR101512010B1 (en) | Combining interfaces of shell applications and sub-applications | |
CN102915176A (en) | Method and device for split-screen display | |
KR20020062926A (en) | System and method to efficiently generate and switch page display views on a portable electronic book | |
CN101299220A (en) | Method for disassembling and combining multiple-page browser window and multiple-page browser | |
CN103309616A (en) | Soft keyboard display method and terminal | |
CN103631475A (en) | Method and device for switching windows | |
WO2019233269A1 (en) | Icon display method and device, terminal, and storage medium | |
JP5225376B2 (en) | System and method for providing a virtual interface | |
CN105224163A (en) | Interface display method and device | |
WO2023193590A1 (en) | Method and apparatus for page interaction, and device and storage medium | |
CN112148167A (en) | Control setting method and device and electronic equipment | |
CN108804584A (en) | Method for exhibiting data, device, equipment and storage medium | |
CN102486913A (en) | Bistable-state display screen refreshing method and device | |
WO2023024959A1 (en) | Image labeling method and system, and device and storage medium | |
WO2023005899A1 (en) | Graphic identifier display method and electronic device | |
CN115421631A (en) | Interface display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220630 Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd. Address before: 100124 2029e, floor 2, Sihui building, Huihe South Street, Sihui East, Chaoyang District, Beijing Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |