CN109710139B - Page processing method, device, terminal and storage medium - Google Patents

Page processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN109710139B
CN109710139B CN201811577678.0A CN201811577678A CN109710139B CN 109710139 B CN109710139 B CN 109710139B CN 201811577678 A CN201811577678 A CN 201811577678A CN 109710139 B CN109710139 B CN 109710139B
Authority
CN
China
Prior art keywords
page
sliding
rotation
content
terminal
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
Application number
CN201811577678.0A
Other languages
Chinese (zh)
Other versions
CN109710139A (en
Inventor
侯玉娟
沈进秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxi Investment Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811577678.0A priority Critical patent/CN109710139B/en
Publication of CN109710139A publication Critical patent/CN109710139A/en
Application granted granted Critical
Publication of CN109710139B publication Critical patent/CN109710139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a page processing method, a device, a terminal and a storage medium, wherein the current page is displayed, rotation information of rotation of the terminal is detected, the rotation information comprises a first rotation parameter, when the first rotation parameter meets a sliding operation condition, page content in the current page is subjected to sliding display according to the rotation information, when the first rotation parameter meets a switching operation condition, a display target page is switched according to the rotation information, the scheme realizes sliding display of the page content in the current page and switching of the display target page according to the rotation parameter by detecting the rotation information of the terminal and performing page processing according to the rotation information, and accordingly, the flexibility of page processing is improved.

Description

Page processing method, device, terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page processing method, an apparatus, a terminal, and a storage medium.
Background
Electronic devices are publications that digitize information content such as text, pictures, sound, images, and the like using computer technology. With the rapid development of the internet, a reading mode through an electronic device reading application is more and more common.
Disclosure of Invention
The embodiment of the application provides a page processing method, a page processing device, a terminal and a storage medium, which can improve the flexibility of page processing.
In a first aspect, an embodiment of the present application provides a page processing method, including:
displaying the current page;
detecting rotation information of terminal rotation, wherein the rotation information comprises a first rotation parameter;
when the first rotation parameter meets a sliding operation condition, performing sliding display on the page content in the current page according to the rotation information;
and when the first rotation parameter meets the switching operation condition, switching a display target page according to the rotation information.
In a second aspect, an embodiment of the present application provides a page processing apparatus, including:
the display module is used for displaying the current page;
the terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting rotation information of terminal rotation, and the rotation information comprises a first rotation parameter;
the sliding module is used for performing sliding display on the page content in the current page according to the rotation information when the first rotation parameter meets the sliding operation condition;
and the switching module is used for switching and displaying a target page according to the rotation information when the first rotation parameter meets the switching operation condition.
In a third aspect, a storage medium is provided in this application, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the page processing method provided in any embodiment of this application.
The embodiment of the application discloses a page processing method, a device, a terminal and a storage medium, wherein the current page is displayed, rotation information of the rotation of the terminal is detected, when a first rotation parameter meets a sliding operation condition, page content in the current page is subjected to sliding display according to the rotation information, when the first rotation parameter meets a switching operation condition, a target page is switched and displayed according to the rotation information, the scheme is that the rotation information of the rotation of the terminal is detected, and page processing is performed according to the rotation information, so that the flexibility of page processing is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a page processing method provided in an embodiment of the present application.
Fig. 2 is a first flowchart of a page processing method according to an embodiment of the present application.
Fig. 3 is a second flowchart of the page processing method according to the embodiment of the present application.
Fig. 4 is a schematic diagram of a sliding display of a page content according to an embodiment of the present application.
Fig. 5 is a schematic diagram of page turning provided by an embodiment of the present application.
Fig. 6 is a schematic diagram of a switching page provided in an embodiment of the present application.
Fig. 7 is a schematic view of a first structure of a page processing apparatus according to an embodiment of the present application.
Fig. 8 is a schematic diagram of a second structure of a page processing apparatus according to an embodiment of the present application.
Fig. 9 is a schematic diagram of a third structure of a page processing apparatus according to an embodiment of the present application.
Fig. 10 is a fourth schematic structural diagram of a page processing apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the page processing method may be the page processing apparatus provided in the embodiment of the present application, or a terminal integrated with the page processing apparatus, where the page processing apparatus may be implemented in a hardware or software manner. The terminal may be a mobile phone, a tablet computer, an electronic reader, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, or other terminal devices.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a page processing method according to an embodiment of the present application, taking an example that a page processing apparatus is integrated in a terminal, where the terminal can display a current page, detect rotation information of a terminal rotation, perform sliding display on content of the page in the current page according to the rotation information when a first rotation parameter meets a sliding operation condition, and switch and display a target page according to the rotation information when the first rotation parameter meets a switching operation condition.
Referring to fig. 2, fig. 2 is a first flowchart of a page processing method according to an embodiment of the present disclosure. The specific flow of the page processing method provided by the embodiment of the application can be as follows:
201. and displaying the current page.
Wherein the current page comprises a current reading page.
For example, after the terminal receives the instruction to display the current page, the current reading page may be displayed, and the current reading interface may be a starting page of a document, a reading page of a history record, or the like. The current page may be displayed in a plurality of ways, for example, the current page displaying instruction may be received, and the current page may be displayed according to the current page displaying instruction.
For example, the current page instruction may be triggered by a user operating the terminal (e.g., shaking, sliding, clicking, and the like), and specifically, the terminal may trigger the current page instruction to be displayed based on the detected click operation, and at this time, the page processing device receives the instruction.
For another example, the user may further perform an operation on the touch display screen to trigger the current page display instruction, and at this time, the current page display instruction triggered by the user through the touch display screen may be received.
In an embodiment, in order to facilitate the triggering of the instruction to display the current page, a current page display interface may be further configured, so that the user may trigger the instruction to display the current page through the current page display interface.
The presentation form of displaying the current page interface is various, for example, the form of an input box, an icon, a button, and the like.
For example, a "start reading" button is set on the image capturing interface, and when the user clicks the button, a current page display instruction is generated, and at this time, the terminal may display the current page according to the current page display instruction.
202. Rotation information of the terminal rotation is detected.
The page processing method provided by the embodiment of the application can be applied to a terminal comprising a gravity sensor, a gyroscope and other devices, wherein the gravity sensor is a sensor capable of completing conversion from gravity change information to an electric signal, and the gravity sensor drives an electric contact according to a cantilever type shifter made of an elastic sensitive element and an energy storage spring made of the elastic sensitive element, so that conversion from gravity change to the electric signal is completed, and gravity data can be output. The gyroscope is an angular motion detection device and can return angular acceleration data of three axes of x, y and z.
When the sensor is used, a coordinate system can be established for the terminal according to straight lines where the directions of three sensitive axes of the sensor are located. Typically, the directions of the three sensitive axes correspond to the length, width and height of the terminal, respectively, so as to define a coordinate system.
The rotation information of the terminal rotation includes a first rotation parameter, a second rotation parameter, and the like, the first rotation parameter may include a rotation direction, the rotation direction may include upward rotation, downward rotation, leftward rotation, rightward rotation, and the like, the determination of the rotation direction may be determined according to a relationship between a current position of the terminal and a reference direction, for example, the terminal may be used as the reference direction when the terminal is in a horizontal direction, a reference plane is established according to the reference direction and passing through a center point of a terminal screen, and the rotation direction of the terminal is determined according to positions of frames, which are currently located at two ends of the reference plane, for example, when an upper frame of the terminal is located above the reference plane and a lower frame of the terminal is located below the reference plane, the rotation direction of the terminal is downward rotation.
The second rotation parameter may include a rotation angle, the rotation angle is an angle between a positive direction of a current position of the terminal and a reference direction, the positive direction of the current position of the terminal may determine a direction of the terminal, and the reference direction may determine a direction to be used as a reference. The positive direction and the reference direction of the current position of the terminal can be adjusted according to actual conditions, and the like.
In practical application, the direction most suitable for reading can be used as the reference direction, for example, when the terminal rotates downwards, the direction in which the terminal rotates downwards by 30 degrees can be used as the reference direction, so that the sliding speed can be determined according to the rotation angle, the terminal can be directly rotated to realize page sliding in the reading process, and the user experience is improved.
The second rotation parameter may further include a rotation displacement, where the rotation displacement is a displacement between a feature point of a current position of the terminal and a reference point, and the feature point of the current position of the terminal is a feature point for determining the rotation displacement, for example, when the terminal is in a horizontal direction, the feature point is used as a reference direction, a reference plane is established according to the reference direction and passing through a center point of a terminal screen, a rectangle with the same size as the terminal is established on the reference plane according to the size of the terminal and the position of the center point of the terminal screen, the center point of the rectangle is overlapped with the center point of the terminal screen, a corresponding point of the rectangle corresponding to a center point of a lower frame of the terminal is used as the reference point, and when the rotation direction is a downward rotation, the rotation displacement may be a. The reference line and the reference surface can be adjusted according to actual conditions, and the like.
In practical application, the direction most suitable for reading can be used as the reference direction, for example, when the terminal rotates downwards, the direction in which the terminal rotates downwards by 30 degrees can be used as the reference direction, and the plane in which the terminal rotates downwards by 30 degrees can be used as the reference plane, so that the sliding speed can be determined according to the rotational displacement, and in the reading process, the terminal can be directly rotated to realize page sliding, thereby improving the user experience.
In practical application, the rotation information of the terminal rotation can be detected through the current position of the terminal. 203. And when the first rotation parameter meets the sliding operation condition, performing sliding display on the page content in the current page according to the rotation information.
The sliding operation condition is a condition for judging whether to perform sliding display on the page content in the current page, for example, the sliding operation condition may be that the terminal rotates downwards or upwards, that is, when it is detected that the terminal rotates downwards or upwards, the sliding operation condition is satisfied.
In practical application, please refer to fig. 4, where fig. 4 is a view illustrating the page content in the current page in a sliding manner, for example, when it is detected that the terminal rotates downwards or upwards, the page content in the current page can be displayed in a sliding manner according to the rotation information, if the sliding operation condition is satisfied.
Specifically, the step "performing sliding display on the page content in the current page according to the rotation information when the first rotation parameter satisfies the sliding operation condition" may include:
determining the sliding direction of the page content sliding according to the first rotation parameter;
determining the sliding speed of the page content sliding according to the second rotation parameter;
and controlling the page content in the current page to be displayed in a sliding manner according to the sliding direction and the sliding speed.
In an embodiment, the relationship between the sliding direction and the reading order may also be set according to the actual situation, for example, the upward sliding may be set to display the content before the page content in the current page by sliding, the downward sliding may be set to display the content after the page content in the current page by sliding, and so on.
In practical application, the sliding direction of the page content in the current page is determined according to the first rotation parameter, for example, when it is detected that the first rotation parameter is rotated downwards, the sliding direction of the page content in the current page is determined to be slid downwards, so that the rotating direction is the same as the sliding direction, and the user experience is improved. Other settings may also be made depending on the actual situation.
In practical application, it may also be determined whether the content of the page content of the current page after the sliding direction exists, for example, when it is determined that the sliding direction is downward sliding according to the first rotation parameter, and the downward sliding is set as displaying the content of the page content of the current page after the sliding, it may be determined whether the content of the page content of the current page after the sliding exists, if the content of the page content of the current page after the sliding exists, the page sliding may be implemented, and if the content of the page content of the current page after the sliding does not exist, the page sliding is not performed.
The sliding speed of the page content in the current page may be the speed of the page sliding, for example, x pages/second may be used as the sliding speed, and the like.
In practical application, the sliding speed can be determined according to the second rotation parameter, for example, when the second rotation parameter includes the rotation angle, different sliding speeds can be adjusted according to different rotation angles, so that the change of the sliding speed is realized; or when the second rotation parameter includes the rotation displacement, different sliding speeds can be adjusted according to the difference of the rotation displacement, so that the change of the sliding speed is realized, when the user needs to accelerate the reading speed or slow down the reading speed, the sliding speed can be adjusted correspondingly, and the user experience is improved.
In an embodiment, the second rotation parameter may be positively correlated with the sliding speed, for example, when the second rotation parameter includes a rotation angle, the larger the rotation angle is, the faster the sliding speed is, and the smaller the rotation angle is, the slower the sliding speed is; or when the second rotation parameter includes the rotation displacement, the larger the rotation displacement is, the faster the sliding speed is, the smaller the rotation displacement is, the slower the sliding speed is, and the like, so that the user can adjust the sliding speed by changing the second rotation parameter of the terminal, and the user experience is improved. The second rotation parameter may also have other relations with the slip speed, etc., depending on the actual situation.
Specifically, the step of "determining the sliding speed of the page content sliding according to the second rotation parameter" may include:
when the rotation angle is larger than an angle threshold, determining the sliding speed of the page content sliding according to the rotation angle;
and when the rotation angle is not greater than the angle threshold, the sliding speed of the page content sliding is zero.
The second rotation parameter may include a rotation angle, the angle threshold is an angle threshold for dividing whether to execute page sliding, and in order to prevent undesirable page sliding due to slight shake or slight shaking of the terminal, the angle threshold is set so that when the user forgets to turn off the function of implementing page sliding display through terminal rotation, page sliding due to small shake generated by the terminal is not generated, and meanwhile, in the sliding process, page sliding may also be stopped in time by rotating the terminal.
In practical application, when the rotation angle is greater than the angle threshold, the sliding speed of the page content sliding is determined according to the rotation angle, and when the rotation angle is not greater than the angle threshold, the sliding speed of the page content sliding is zero.
Specifically, the step of "determining the sliding speed of the page content sliding according to the second rotation parameter" may include:
when the rotary displacement is larger than a displacement threshold value, determining the sliding speed of the page content sliding according to the rotary displacement;
and when the rotary displacement is not larger than the displacement threshold value, the sliding speed of the page content sliding is zero.
The second rotation parameter may further include a rotation displacement, the displacement threshold is a displacement threshold for dividing whether to execute page sliding, and in order to prevent undesirable page sliding due to slight shake or slight shaking of the terminal, the displacement threshold is set so that when the user forgets to close the function of implementing page sliding through terminal rotation, page sliding due to small shake is not generated, and meanwhile, in the sliding process, page sliding may also be stopped in time through rotating the terminal.
In practical application, when the rotational displacement is greater than the displacement threshold, the sliding speed of the page content sliding is determined according to the rotational displacement, and when the rotational displacement is not greater than the displacement threshold, the sliding speed of the page content sliding is zero.
In an embodiment, specifically, the step of "controlling the page content in the current page to be displayed in a sliding manner according to the sliding direction and the sliding speed" may include:
controlling the page content in the current page to be displayed in a sliding manner according to the sliding direction and the sliding speed, and detecting the page content display proportion, wherein the page content display proportion is the proportion of the content amount of the currently displayed page to the total content amount of the current page;
when the display proportion of the page content is detected to reach a preset proportion, controlling the target time length of the sliding display pause of the page content;
and after the sliding display of the page content is paused for the target duration, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed.
And the content amount of the currently displayed page is the content amount of the text displayed on the current screen interface of the terminal. The page content display ratio is a ratio of the currently displayed text content amount to the current page total content amount, for example, the page content amount displayed on the current screen of the terminal is 70% of the 14 th page and 30% of the 15 th page, and the current page total content amount is the content of the 15 th page, then the currently displayed page content amount is a ratio of the current page content amount to the current page total content amount, and is a percentage of the 30% content of the 15 th page to the 15 th page total content, that is, 30%. The preset proportion is the proportion for judging whether to control the target time length of the sliding display pause of the page content. The target duration is a pause duration of the page content, and the target duration may be adjusted according to an actual situation, for example, the target duration and the second rotation parameter may be in positive correlation, that is, the larger the second rotation parameter is, the shorter the target duration is, the smaller the second rotation parameter is, the longer the target duration is, and the like.
The method comprises the steps that when the page is detected to reach a preset proportion, the sliding display pause target duration of the page content can be controlled, so that the user can conveniently judge whether the page content of the current page has content which is interesting to the user through short-time page stop, and further determine whether to execute the pause of the page sliding.
For example, the preset proportion may be set to 100%, the target duration is 1 second, when the display proportion of the page content reaches 100% of the preset proportion, the sliding of the page content in the current page is paused for one second, that is, the current screen of the terminal displays all the content of the current page, for example, when all the content of the 15 th page is displayed, the sliding of the page content in the current page is paused for one second, so that the user can browse the 15 th page for a short time, if there is no reading content that the user is interested in, after staying for one second, the sliding display of the page content in the current page according to the sliding direction and the sliding speed can be continued; if reading contents which the user is interested in exist, the user can stop page sliding on the current page and read the current page by rotating the terminal and the like.
In one embodiment, the updated page number, chapter, etc. after the page is slid can also be displayed.
204. And when the first rotation parameter meets the switching operation condition, switching the display target page according to the rotation information.
The switching operation condition is a condition for determining whether to switch the page content in the current page, for example, the switching operation condition may be that the terminal rotates left or right, that is, when it is detected that the terminal rotates left or right, the switching operation condition is satisfied.
In practical applications, for example, when it is detected that the terminal is rotated to the left or to the right, the switching operation condition is satisfied, and the display target page may be switched according to the rotation information.
Specifically, the step of "switching the display target page according to the rotation information" may include:
determining a page turning direction according to the first rotation parameter;
determining page turning speed according to the second rotation parameter;
displaying a page turning animation effect according to the page turning direction and the page turning speed;
and when the second rotation parameter meets the page turning stop condition, stopping displaying the page turning animation effect, and switching to a display target page.
The page turning stop condition may be a condition for determining whether to stop turning the page, for example, the second rotation parameter may be within a certain range as the page turning stop condition.
In an embodiment, the relationship between the page turning direction and the reading order may also be set according to an actual situation, for example, the left page turning may be set to display the content before the page content in the current page by turning the page, the right page turning down sliding may be set to display the content after the page content in the current page by turning the page, and the like.
In practical application, the page turning direction is determined according to the first rotation parameter, for example, when the first rotation parameter is detected to be right rotation, the page turning direction of the page content in the current page can be determined to be right page turning; when the first rotation parameter is detected to be left rotation, the page turning direction of the page content in the current page can be determined to be left page turning, so that the rotation direction is the same as the page turning direction, and the user experience is improved. Other settings may also be made depending on the actual situation.
In practical application, it may also be determined whether the content after the page content in the current page has the page turning direction, for example, when it is determined that the page turning direction is rightward sliding according to the first rotation parameter, and the page turning to the right is set to display the content after the page content in the current page by page turning, it may be determined whether the content after the page content in the current page exists, if the content after the page content in the current page exists, page turning may be implemented, and if the content after the page content in the current page does not exist, page turning may not be performed.
The page turning speed may be a page turning speed, for example, x pages/second may be used as the page turning speed, and the like.
In practical application, the page turning speed can be determined according to the second rotation parameter, for example, when the second rotation parameter includes a rotation angle, different page turning speeds can be adjusted according to different rotation angles, so that the change of the page turning speed is realized; or when the second rotation parameter includes the rotation displacement, different page turning speeds can be adjusted according to the difference of the rotation displacement, so that the change of the page turning speed is realized, when a user needs to increase the reading speed or decrease the reading speed, the page turning speed can be correspondingly adjusted, and the user experience is improved.
In an embodiment, the second rotation parameter may be positively correlated with the page turning speed, for example, when the second rotation parameter includes a rotation angle, the larger the rotation angle is, the faster the page turning speed is, and the smaller the rotation angle is, the slower the page turning speed is; or when the second rotation parameter includes rotation displacement, the larger the rotation displacement is, the faster the page turning speed is, the smaller the rotation displacement is, the slower the page turning speed is, so that the user can adjust the page turning speed by changing the second rotation parameter of the terminal, and the user experience is improved. The second rotation parameter may have other relations with the page turning speed according to actual conditions.
Specifically, the step "when the second rotation parameter meets the page turning stop condition, stop displaying the page turning animation effect, and switch to the display target page" may include:
when the second rotation parameter is smaller than the rotation threshold value, stopping displaying the page turning animation effect, and switching to a display target page;
and when the second rotation parameter is not less than the rotation threshold value, displaying a page turning animation effect according to the page turning direction and the page turning speed.
In practical application, please refer to fig. 5, where fig. 5 shows the page-turning animation effect according to the page-turning direction and the page-turning speed, when the second rotation parameter satisfies the page-turning stop condition, the page-turning animation effect is stopped to be displayed, and the page-turning animation effect is switched to the display target page, and in the process of displaying the page-turning animation effect, the content of the page to be turned can be displayed, that is, not only the page-turning animation is displayed, for example, when the second rotation parameter includes a rotation angle, the page-turning stop condition may be that the second rotation parameter is smaller than a rotation threshold, and when it is detected that the second rotation parameter is smaller than the rotation threshold, the page-turning animation effect is stopped to be switched to the display target page, that is. The method can prevent the undesirable page turning caused by slight shake or slight shaking of the terminal, and therefore the page turning stopping condition is set, so that when a user forgets to close the page turning function realized by terminal rotation, the page turning caused by small shake of the terminal can not be generated, and meanwhile, in the page turning process, the page turning can be stopped in time by rotating the terminal. And when the second rotation parameter is detected to be not less than the rotation threshold, displaying a page turning animation effect according to the page turning direction and the page turning speed.
In one embodiment, the updated page number, chapter and the like after the page is turned can be displayed.
Specifically, the step of "switching the display target page according to the rotation information" may include:
determining a page switching direction according to the first rotation parameter;
determining a switching step length according to the second rotation parameter;
determining a target page to be switched according to the page switching direction and the switching step length;
and switching and displaying the target page.
Where the switching step is the number of pages switched, e.g., from page 3 to page 5, the switching step is two pages, and so on.
In an embodiment, referring to fig. 6, fig. 6 shows page switching, for example, the page switching direction may be determined according to the first rotation parameter, the switching step is determined according to the second rotation parameter, then the target page to be switched is determined according to the page switching direction and the switching step, and page switching is performed.
In an embodiment, a head-to-tail switching condition may also be set, and since a situation that a user wishes to directly read an ending or start reading from the beginning may occur, the terminal may switch to display the head page or the tail page by setting the head-to-tail switching condition. When the head-to-tail switching condition is met, the page can be switched to the first page or the last page, the switched page number can be obtained according to the first rotation parameter, for example, when the rotation direction is downward rotation, and the head-to-tail switching condition is that the second rotation parameter is greater than a certain parameter, the last page in the downward rotation direction, namely the last page of the document, can be switched to. When the user needs to switch to the home page or the end page, the user does not need to wait for turning to the home page or the end page to be switched to, and the effect of direct switching can be achieved by adjusting the second rotating parameter, so that the switching time is saved, the reading speed is increased, and the user experience is improved.
In an embodiment, a rotary reading switch may be further provided, where the rotary reading switch is a switch for controlling whether to implement page processing according to rotation of the terminal, and the rotary reading switch may be turned on in various manners, for example, the rotary reading switch may be turned on by a user operating (e.g., shaking, sliding, clicking, etc.) the terminal, for example, the rotary reading switch may be turned on by shaking the terminal, specifically, the terminal may turn on the rotary reading switch based on detection of the shaking operation, and at this time, the page processing device will receive the turn-on instruction.
For another example, the user may operate the touch display screen to turn on the rotary reading switch, and at this time, the terminal may receive the rotary reading switch turned on by the user through the touch display screen.
The rotary reading switch has various expression forms, such as an input frame, an icon, a button and the like. For example, a "rotation reading" button is set on the terminal reading interface, and when the user clicks the button, a rotation reading start instruction is generated by triggering, and at this time, the terminal may start the function of implementing page processing according to the rotation of the terminal according to the rotation reading start instruction.
By arranging the rotary reading switch, the switch can be turned on when a user needs to realize a page processing function according to the rotation of the terminal; when the page processing function is not needed, the page processing function can be realized according to the rotation of the terminal by closing the switch, so that the situation that the page processing is caused due to the rotation of the terminal caused by carelessness or inattention of a user is avoided. Meanwhile, page processing is achieved according to rotation of the terminal, so that a user can operate with one hand to achieve page processing, the problem that the user cannot process pages with two hands when the user is wet or inconvenient is solved, and damage or abrasion of a terminal screen due to touch or pressing is reduced.
In practical application, the rotary reading switch is turned on, the step of detecting the rotary information of the terminal rotation is executed, the rotary reading switch is turned off, and page processing according to the rotary information is stopped. For example, when the user wishes to turn on the page processing function according to the rotation information, the rotation reading switch may be turned on; when the user starts reading or does not want to start the page processing function according to the rotation information, the rotation reading switch can be closed, and the page processing function according to the rotation information is stopped, so that misoperation caused by the fact that the switch cannot be closed is avoided.
And page numbers, chapters and the like updated after page turning can be displayed.
As can be seen from the above, in the embodiment of the present application, the current page is displayed, the rotation information of the terminal rotation is detected, when the first rotation parameter meets the sliding operation condition, the page content in the current page is displayed in a sliding manner according to the rotation information, and when the first rotation parameter meets the switching operation condition, the target page is switched and displayed according to the rotation information. According to the scheme, the page processing is carried out according to the rotation information by detecting the rotation information of the terminal, and the function of carrying out the page processing according to the rotation information can be realized by opening and closing the rotary reading switch, so that the operation of carrying out the page processing by one hand is realized; the page processing is carried out by rotating the terminal, so that the damage or abrasion of the terminal screen caused by sliding or pressing and other operations is avoided; meanwhile, the user can also process the page under inconvenient conditions, such as wet hands; the direction and the speed of page processing can be determined according to the rotation of the terminal, and page processing in different directions and different speeds can be realized; the rotary reading switch is arranged, so that a user can start the function of page processing according to the rotary information when needed, and can also close the rotary reading switch without starting the function of page processing according to the rotary information if the user does not need the rotary reading switch, thereby improving the flexibility of page processing.
According to the method described in the foregoing embodiment, the page processing apparatus is specifically integrated in the terminal for further details.
Referring to fig. 3, a specific flow of the page processing method according to the embodiment of the present application may be as follows:
301. and the terminal displays the current page.
For example, after the terminal receives the instruction to display the current page, the terminal may display the current reading page, where the current reading interface may be a starting page of a document, or a reading page of a history record, and so on.
For example, the terminal may receive an instruction to display the current page, and display the current page according to the instruction to display the current page.
For another example, the user may further perform an operation on the touch display screen to trigger the current page display instruction, and at this time, the current page display instruction triggered by the user through the touch display screen may be received.
In an embodiment, in order to facilitate the triggering of the instruction for displaying the current page, the terminal may further include an interface for displaying the current page, so that the user may trigger the instruction for displaying the current page through the interface for displaying the current page.
For example, a "start reading" button is set on the image capturing interface, and when the user clicks the button, a current page display instruction is generated, and at this time, the terminal may display the current page according to the current page display instruction.
302. The terminal detects rotation information of the terminal rotation.
The rotation information of the terminal rotation includes a first rotation parameter, a second rotation parameter, and the like, the first rotation parameter may include a rotation direction, and the determination of the rotation direction may be determined according to a relationship between a current position of the terminal and a reference direction.
The second rotation parameter may include a rotation angle, the rotation angle is an angle between a positive direction of a current position of the terminal and the reference direction, the positive direction of the current position of the terminal may determine a direction of the terminal, and the reference direction may determine a direction serving as a reference. In practical application, the terminal can regard the most suitable direction of reading as the reference direction to can confirm the slip speed according to the rotation angle, in the reading process, can directly rotate the terminal and realize that the page slides, promote user experience.
The second rotation parameter may further include a rotation displacement, where the rotation displacement is a displacement between a feature point of the current position of the terminal and the reference point, and the feature point of the current position of the terminal is a feature point for determining the rotation displacement. In practical application, the terminal can regard the most suitable direction of reading as the reference direction to can confirm the sliding speed according to rotary displacement, in the reading process, can directly rotate the terminal and realize the page slip, promote user experience.
In practical application, the terminal can detect the rotation information of the terminal rotation through the current position of the terminal.
303. And when the first rotation parameter meets the sliding operation condition, the terminal performs sliding display on the page content in the current page according to the rotation information.
The sliding operation condition is a condition for judging whether to perform sliding display on the page content in the current page, for example, the sliding operation condition may be that the terminal rotates downwards or upwards, that is, when the terminal detects that the terminal rotates downwards or upwards, the sliding operation condition is satisfied.
In practical applications, for example, when the terminal detects that the terminal rotates downwards or upwards, the sliding operation condition is satisfied, and the page content in the current page can be displayed in a sliding manner according to the rotation information.
In an embodiment, the terminal may further set the relationship between the sliding direction and the reading order according to the actual situation, for example, the upward sliding may be set to display the content before the page content in the current page by sliding, the downward sliding may be set to display the content after the page content in the current page by sliding, and so on.
In practical application, the terminal determines the sliding direction of the page content in the current page according to the first rotation parameter, for example, when it is detected that the first rotation parameter is a downward rotation, the sliding direction of the page content in the current page is determined to be a downward sliding, so that the rotation direction is the same as the sliding direction, and the user experience is improved. Other settings may also be made depending on the actual situation.
In practical application, the terminal may further determine whether the content of the current page has a content after the sliding direction.
In practical application, the terminal may determine the sliding speed according to the second rotation parameter, for example, when the second rotation parameter includes the rotation angle, different sliding speeds may be adjusted according to different rotation angles, so as to change the sliding speed; or when the second rotation parameter includes the rotation displacement, different sliding speeds can be adjusted according to the difference of the rotation displacement, so that the change of the sliding speed is realized, when the user needs to accelerate the reading speed or slow down the reading speed, the sliding speed can be adjusted correspondingly, and the user experience is improved.
In an embodiment, the terminal may further make the second rotation parameter have a positive correlation with the sliding speed, for example, when the second rotation parameter includes a rotation angle, the larger the rotation angle is, the faster the sliding speed is, and the smaller the rotation angle is, the slower the sliding speed is; or when the second rotation parameter includes the rotation displacement, the larger the rotation displacement is, the faster the sliding speed is, the smaller the rotation displacement is, the slower the sliding speed is, and the like, so that the user can adjust the sliding speed by changing the second rotation parameter of the terminal, and the user experience is improved. The second rotation parameter may also have other relations with the slip speed, etc., depending on the actual situation.
In practical application, when the rotation angle is greater than the angle threshold, the terminal determines the sliding speed of the page content sliding according to the rotation angle, and when the rotation angle is not greater than the angle threshold, the sliding speed of the page content sliding is zero.
The second rotation parameter may further include a rotation displacement, the displacement threshold is a displacement threshold for dividing whether to execute page sliding, and in order to prevent undesirable page sliding due to slight shake or slight shaking of the terminal, the displacement threshold is set so that when the user forgets to close the function of implementing page sliding through terminal rotation, page sliding due to small shake is not generated, and meanwhile, in the sliding process, page sliding may also be stopped in time through rotating the terminal.
In practical application, when the rotational displacement is greater than the displacement threshold, the terminal determines the sliding speed of the page content sliding according to the rotational displacement, and when the rotational displacement is not greater than the displacement threshold, the sliding speed of the page content sliding is zero.
And the content amount of the currently displayed page is the content amount of the text displayed on the current screen interface of the terminal. The page content display ratio is a ratio of the currently displayed text content amount to the current page total content amount, for example, the page content amount displayed on the current screen of the terminal is 70% of the 14 th page and 30% of the 15 th page, and the current page total content amount is the content of the 15 th page, then the currently displayed page content amount is a ratio of the current page content amount to the current page total content amount, and is a percentage of the 30% content of the 15 th page to the 15 th page total content, that is, 30%. The preset proportion is the proportion for judging whether to control the target time length of the sliding display pause of the page content. The target duration is a pause duration of the page content, and the target duration may be adjusted according to an actual situation, for example, the target duration and the second rotation parameter may be in positive correlation, that is, the larger the second rotation parameter is, the shorter the target duration is, the smaller the second rotation parameter is, the longer the target duration is, and the like.
The method comprises the steps that when the page is detected to reach a preset proportion, the sliding display pause target duration of the page content can be controlled, so that the user can conveniently judge whether the page content of the current page has content which is interesting to the user through short-time page stop, and further determine whether to execute the pause of the page sliding.
For example, the terminal may set the preset proportion to 100%, the target duration is 1 second, and when the display proportion of the page content reaches 100% of the preset proportion, the sliding of the page content in the current page is suspended for one second, that is, the current screen of the terminal displays all the content of the current page, for example, when all the content of the 15 th page is displayed, the sliding of the page content in the current page is suspended for one second, so that the user can view the 15 th page for a short time, and if there is no reading content that the user is interested in, after staying for one second, the sliding display of the page content in the current page can be continued by controlling the sliding direction and the sliding speed; if reading contents which the user is interested in exist, the user can stop page sliding on the current page and read the current page by rotating the terminal and the like.
In an embodiment, the terminal may further display the updated page number, chapter, and the like after the page is slid.
304. And when the first rotation parameter meets the switching operation condition, the terminal switches and displays the target page according to the rotation information.
The switching operation condition is a condition for determining whether to switch the page content in the current page, for example, the switching operation condition may be that the terminal rotates left or right, that is, when it is detected that the terminal rotates left or right, the switching operation condition is satisfied.
In practical applications, for example, when the terminal detects that the terminal rotates left or right, the switching operation condition is satisfied, and the display target page may be switched according to the rotation information.
The page turning stop condition may be a condition for determining whether to stop turning the page, for example, the second rotation parameter may be within a certain range as the page turning stop condition.
In an embodiment, the terminal may further set the relationship between the page turning direction and the reading order according to an actual situation, for example, the left page turning may be set to display the content before the page content in the current page by turning the page, the right page turning down sliding may be set to display the content after the page content in the current page by turning the page, and the like. In practical application, the terminal determines the page turning direction according to the first rotation parameter, for example, when the first rotation parameter is detected to be right rotation, the terminal may determine that the page turning direction of the page content in the current page is right page turning; when the first rotation parameter is detected to be left rotation, the page turning direction of the page content in the current page can be determined to be left page turning, so that the rotation direction is the same as the page turning direction, and the user experience is improved. Other settings may also be made depending on the actual situation.
In practical application, the terminal may further determine whether the content after the page content in the current page has the page turning direction, for example, when it is determined that the page turning direction is rightward sliding according to the first rotation parameter, and the page turning to the right is set to display the content after the page content in the current page by page turning, it may be determined whether the content after the page content in the current page exists, if the content after the page content in the current page exists, page turning may be implemented, and if the content after the page content in the current page does not exist, page turning may not be performed.
In practical application, the terminal may determine the page turning speed according to the second rotation parameter, for example, when the second rotation parameter includes a rotation angle, different page turning speeds may be adjusted according to different rotation angles, so as to change the page turning speed; or when the second rotation parameter includes the rotation displacement, different page turning speeds can be adjusted according to the difference of the rotation displacement, so that the change of the page turning speed is realized, when a user needs to increase the reading speed or decrease the reading speed, the page turning speed can be correspondingly adjusted, and the user experience is improved.
In an embodiment, the terminal may further positively correlate the second rotation parameter with the page turning speed, for example, when the second rotation parameter includes a rotation angle, the larger the rotation angle is, the faster the page turning speed is, and the smaller the rotation angle is, the slower the page turning speed is; or when the second rotation parameter includes rotation displacement, the larger the rotation displacement is, the faster the page turning speed is, the smaller the rotation displacement is, the slower the page turning speed is, so that the user can adjust the page turning speed by changing the second rotation parameter of the terminal, and the user experience is improved. The second rotation parameter may have other relations with the page turning speed according to actual conditions.
In practical application, the terminal displays a page turning animation effect according to the page turning direction and the page turning speed, when the second rotation parameter meets a page turning stop condition, the display of the page turning animation effect is stopped, and the page turning animation effect is switched to a display target page. The method can prevent the undesirable page turning caused by slight shake or slight shaking of the terminal, and therefore the page turning stopping condition is set, so that when a user forgets to close the page turning function realized by terminal rotation, the page turning caused by small shake of the terminal can not be generated, and meanwhile, in the page turning process, the page turning can be stopped in time by rotating the terminal. And when the second rotation parameter is detected to be not less than the rotation threshold, displaying a page turning animation effect according to the page turning direction and the page turning speed.
In an embodiment, the terminal may further display the updated page number, chapter, and the like after the page is turned.
In an embodiment, for example, the terminal may further determine a page switching direction according to the first rotation parameter, determine a switching step length according to the second rotation parameter, then determine a target page to be switched according to the page switching direction and the switching step length, and perform page switching.
In an embodiment, the terminal may further set a head-to-tail switching condition, and since a situation that the user wishes to directly read the ending or start reading from the beginning may occur, the terminal may switch to display the head page or the tail page by setting the head-to-tail switching condition. When the head-to-tail switching condition is met, the page can be switched to the first page or the last page, the switched page number can be obtained according to the first rotation parameter, for example, when the rotation direction is downward rotation, and the head-to-tail switching condition is that the second rotation parameter is greater than a certain parameter, the last page in the downward rotation direction, namely the last page of the document, can be switched to. When the user needs to switch to the home page or the end page, the user does not need to wait for turning to the home page or the end page to be switched to, and the effect of direct switching can be achieved by adjusting the second rotating parameter, so that the switching time is saved, the reading speed is increased, and the user experience is improved.
In an embodiment, the terminal may further include a rotary reading switch, where the rotary reading switch is a switch for controlling whether to implement the page processing according to the rotation of the terminal, and the rotary reading switch may be turned on in various manners, for example, the rotary reading switch may be turned on by a user operating (e.g., shaking, sliding, clicking, etc.) the terminal, for example, the rotary reading switch may be turned on by shaking the terminal, and specifically, the terminal may turn on the rotary reading switch based on the detection of the shaking operation, and at this time, the page processing device will receive the turn-on instruction.
For another example, the user may operate the touch display screen to turn on the rotary reading switch, and at this time, the terminal may receive the rotary reading switch turned on by the user through the touch display screen.
The rotary reading switch has various expression forms, such as an input frame, an icon, a button and the like. For example, a "rotation reading" button is set on the terminal reading interface, and when the user clicks the button, a rotation reading start instruction is generated by triggering, and at this time, the terminal may start the function of implementing page processing according to the rotation of the terminal according to the rotation reading start instruction.
By arranging the rotary reading switch, the switch can be turned on when a user needs to realize a page processing function according to the rotation of the terminal; when the page processing function is not needed, the page processing function can be realized according to the rotation of the terminal by closing the switch, so that the situation that the page processing is caused due to the rotation of the terminal caused by carelessness or inattention of a user is avoided. Meanwhile, page processing is achieved according to rotation of the terminal, so that a user can operate with one hand to achieve page processing, the problem that the user cannot process pages with two hands when the user is wet or inconvenient is solved, and damage or abrasion of a terminal screen due to touch or pressing is reduced.
In practical application, the rotary reading switch is turned on, the step of detecting the rotary information of the terminal rotation is executed, the rotary reading switch is turned off, and page processing according to the rotary information is stopped. For example, when the user wishes to turn on the page processing function according to the rotation information, the rotation reading switch may be turned on; when the user starts reading or does not want to start the page processing function according to the rotation information, the rotation reading switch can be closed, and the page processing function according to the rotation information is stopped, so that misoperation caused by the fact that the switch cannot be closed is avoided.
The terminal can also display the updated page numbers, chapters and the like after page turning.
As can be seen from the above, in the embodiment of the present application, the current page is displayed, the rotation information of the terminal rotation is detected, when the first rotation parameter meets the sliding operation condition, the page content in the current page is displayed in a sliding manner according to the rotation information, and when the first rotation parameter meets the switching operation condition, the target page is switched and displayed according to the rotation information. According to the scheme, the page processing is carried out according to the rotation information by detecting the rotation information of the terminal, and the function of carrying out the page processing according to the rotation information can be realized by opening and closing the rotary reading switch, so that the operation of carrying out the page processing by one hand is realized; the page processing is carried out by rotating the terminal, so that the damage or abrasion of the terminal screen caused by sliding or pressing and other operations is avoided; meanwhile, the user can also process the page under inconvenient conditions, such as wet hands; the direction and the speed of page processing can be determined according to the rotation of the terminal, and page processing in different directions and different speeds can be realized; the rotary reading switch is arranged, so that a user can start the function of page processing according to the rotary information when needed, and can also close the rotary reading switch without starting the function of page processing according to the rotary information if the user does not need the rotary reading switch, thereby improving the flexibility of page processing.
In order to better implement the page processing method provided by the embodiment of the present application, an embodiment of the present application further provides a page processing device, and the page processing device may be specifically integrated in a terminal such as a mobile phone, a tablet computer, a palmtop computer, and the like. The meaning of the noun is the same as that in the page processing method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 7, fig. 7 is a first structural diagram of a page processing apparatus according to an embodiment of the present disclosure, where the page processing apparatus 700 includes a memory 710, one or more processors 720, and one or more applications, where the one or more applications are stored in the memory 710 and configured to be executed by the processor 720; the processor 720 may include a monitoring module 721, a determination module 722, a calibration module 723, and an adjustment module 724. For example, the structures and connection relationships of the above components may be as follows:
memory 710 may be used to store applications and data. Memory 710 stores applications containing executable code. The application programs may constitute various functional modules. The processor 720 executes various functional applications and data processing by executing application programs stored in the memory 710. Further, the memory 710 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 710 may also include a memory controller to provide processor 720 access to memory 710.
The processor 720 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application stored in the memory 710 and calling data stored in the memory 710, thereby monitoring the entire device. Optionally, processor 720 may include one or more processing cores; preferably, the processor 720 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 720 loads the executable code corresponding to the processes of one or more application programs into the memory 710 according to the following instructions, and the processor 720 runs the application programs stored in the memory 710, thereby implementing various functions:
for example, as shown in fig. 7, the page processing apparatus may include a display module 721, a detection module 722, a sliding module 723, and a switching module 724, as follows:
a display module 721, configured to display a current page;
a detecting module 722, configured to detect rotation information of the terminal rotation, where the rotation information includes a first rotation parameter;
the sliding module 723 is configured to perform sliding display on the content of the page in the current page according to the rotation information when the first rotation parameter meets a sliding operation condition;
a switching module 724, configured to switch a display target page according to the rotation information when the first rotation parameter meets a switching operation condition.
In an embodiment, referring to fig. 8, the sliding module 723 may include:
the sliding direction determining submodule 7231 is configured to determine a sliding direction of the page content sliding according to the first rotation parameter;
the sliding speed determination submodule 7232 is configured to determine a sliding speed of the page content sliding according to the second rotation parameter;
and the sliding operation sub-module 7233 is configured to control the page content in the current page to perform sliding display according to the sliding direction and the sliding speed.
In one embodiment, the slip speed determination submodule 7232 may be specifically configured to:
when the rotation angle is larger than an angle threshold, determining the sliding speed of the page content sliding according to the rotation angle;
and when the rotation angle is not greater than the angle threshold, the sliding speed of the page content sliding is zero.
In one embodiment, the slip speed determination submodule 7232 may also be specifically configured to:
when the rotary displacement is larger than a displacement threshold value, determining the sliding speed of the page content sliding according to the rotary displacement;
and when the rotary displacement is not larger than the displacement threshold value, the sliding speed of the page content sliding is zero.
In one embodiment, the sliding operation submodule 7233 can be specifically configured to:
controlling the page content in the current page to be displayed in a sliding manner according to the sliding direction and the sliding speed, and detecting the page content display proportion, wherein the page content display proportion is the proportion of the content amount of the currently displayed page to the total content amount of the current page;
when the display proportion of the page content is detected to reach a preset proportion, controlling the target time length of the sliding display pause of the page content;
and after the sliding display of the page content is paused for the target duration, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed.
In an embodiment, referring to fig. 9, the switching module 724 may include:
the page turning direction determining submodule 7241 is configured to determine a page turning direction according to the first rotation parameter;
the page turning speed determining submodule 7242 is configured to determine a page turning speed according to the second rotation parameter;
the switching submodule 7243 is configured to display a page turning animation effect according to the page turning direction and the page turning speed;
the stop sub-module 7244 is configured to stop displaying the page-turning animation effect and switch to the display target page when the second rotation parameter meets the page-turning stop condition.
In an embodiment, the stop submodule 7244 may further be specifically configured to:
when the second rotation parameter is smaller than the rotation threshold value, stopping displaying the page turning animation effect, and switching to a display target page;
and when the second rotation parameter is not less than the rotation threshold value, displaying a page turning animation effect according to the page turning direction and the page turning speed.
In an embodiment, referring to fig. 10, the switching module 724 may further include:
the page switching direction determining submodule 7251 is configured to determine a page switching direction according to the first rotation parameter;
a switching step determining submodule 7252, configured to determine a switching step according to the second rotation parameter;
the target page determining submodule 7253 is configured to determine, according to the page switching direction and the switching step length, a target page to be switched to;
the display sub-module 7254 is configured to switch and display the target page.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment of the present application, the current page is displayed through the display module 721, the rotation information of the terminal rotation is detected through the detection module 722, when the first rotation parameter meets the sliding operation condition, the page content in the current page is displayed in a sliding manner according to the rotation information through the sliding module 723, and when the first rotation parameter meets the switching operation condition, the display target page is switched according to the rotation information through the switching module 724. According to the scheme, the page processing is carried out according to the rotation information by detecting the rotation information of the terminal, and the function of carrying out the page processing according to the rotation information can be realized by opening and closing the rotary reading switch, so that the operation of carrying out the page processing by one hand is realized; the page processing is carried out by rotating the terminal, so that the damage or abrasion of the terminal screen caused by sliding or pressing and other operations is avoided; meanwhile, the user can also process the page under inconvenient conditions, such as wet hands; the direction and the speed of page processing can be determined according to the rotation of the terminal, and page processing in different directions and different speeds can be realized; the rotary reading switch is arranged, so that a user can start the function of page processing according to the rotary information when needed, and can also close the rotary reading switch without starting the function of page processing according to the rotary information if the user does not need the rotary reading switch, thereby improving the flexibility of page processing.
Correspondingly, an embodiment of the present application further provides a terminal, as shown in fig. 11, where the terminal may be used to implement the page processing method and apparatus provided in the foregoing embodiment. The terminal may include Radio Frequency (RF) circuitry 111, memory 112 including one or more computer-readable storage media, input unit 113, display unit 114, sensor 115, audio circuitry 116, Wireless Fidelity (WiFi) module 117, processor 118 including one or more processing cores, and power supply 119. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 111 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 118; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 111 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 111 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 112 may be used to store software programs and modules, and the processor 118 executes various functional applications and data processing by executing the software programs and modules stored in the memory 112. The memory 112 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 112 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 112 may also include a memory controller to provide the processor 118 and the input unit 113 access to the memory 112.
The input unit 113 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 113 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 118, and can receive and execute commands from the processor 118. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 113 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 114 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 114 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 118 to determine the type of touch event, and then the processor 118 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 11 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 115, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 116, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 116 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 116 and converted into audio data, which is then processed by the audio data output processor 118, and then transmitted to, for example, another terminal via the RF circuit 111, or the audio data is output to the memory 112 for further processing. The audio circuitry 116 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 117, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 117, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 118 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 112 and calling data stored in the memory 112, thereby performing overall monitoring of the handset. Optionally, processor 118 may include one or more processing cores; preferably, the processor 118 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 118.
The terminal also includes a power supply 119 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 118 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 119 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 118 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 112 according to the following instructions, and the processor 118 runs the application programs stored in the memory 112, thereby implementing various functions:
displaying a current page, detecting rotation information of the rotation of the terminal, performing sliding display on the content of the page in the current page according to the rotation information when the first rotation parameter meets the sliding operation condition, and switching and displaying a target page according to the rotation information when the first rotation parameter meets the switching operation condition.
The above operations can be referred to the previous embodiments specifically, and are not described herein again.
As can be seen from the above, in the embodiment of the present application, the current page is displayed, the rotation information of the terminal rotation is detected, when the first rotation parameter meets the sliding operation condition, the page content in the current page is displayed in a sliding manner according to the rotation information, and when the first rotation parameter meets the switching operation condition, the target page is switched and displayed according to the rotation information. According to the scheme, the page processing is carried out according to the rotation information by detecting the rotation information of the terminal, and the function of carrying out the page processing according to the rotation information can be realized by opening and closing the rotary reading switch, so that the operation of carrying out the page processing by one hand is realized; the page processing is carried out by rotating the terminal, so that the damage or abrasion of the terminal screen caused by sliding or pressing and other operations is avoided; meanwhile, the user can also process the page under inconvenient conditions, such as wet hands; the direction and the speed of page processing can be determined according to the rotation of the terminal, and page processing in different directions and different speeds can be realized; the rotary reading switch is arranged, so that a user can start the function of page processing according to the rotary information when needed, and can also close the rotary reading switch without starting the function of page processing according to the rotary information if the user does not need the rotary reading switch, thereby improving the flexibility of page processing.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the page processing methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
displaying a current page, detecting rotation information of the rotation of the terminal, performing sliding display on the content of the page in the current page according to the rotation information when the first rotation parameter meets the sliding operation condition, and switching and displaying a target page according to the rotation information when the first rotation parameter meets the switching operation condition.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute any step of the method for processing a page provided in the embodiment of the present application, beneficial effects that any method for processing a page provided in the embodiment of the present application can achieve may be achieved, for details, see the foregoing embodiments, and are not described herein again.
The page processing method, the page processing device, the mobile terminal and the storage medium provided by the embodiments of the present application are introduced in detail, and a specific example is applied to illustrate the principle and the implementation of the present application, and the description of the embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A page processing method is characterized by comprising the following steps:
displaying the current page;
detecting rotation information of terminal rotation, wherein the rotation information comprises a first rotation parameter and a second rotation parameter;
when the first rotation parameter meets a sliding operation condition, determining a sliding direction of page content sliding according to the first rotation parameter;
when the second rotation parameter is larger than a preset parameter threshold, determining the sliding speed of the page content sliding according to the second rotation parameter;
when the second rotation parameter is not greater than a preset parameter threshold value, the sliding speed of the page content sliding is zero;
if the content behind the page content in the current page is judged to exist based on the sliding direction, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed, and detecting the page content display proportion, wherein the page content display proportion is the proportion of the content amount of the currently displayed page to the total content amount of the current page;
when the display proportion of the page content is detected to reach a preset proportion, controlling the sliding display pause target time length of the page content so that a user can judge whether the page content in the current page has content which is interested by the user in the target time length, wherein the target time length is in positive correlation with the second rotation parameter;
after the sliding display of the page content is paused for a target duration, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed and stopping performing page sliding on the current page through the rotating terminal;
and when the first rotation parameter and the second rotation parameter meet the switching operation condition, switching a display target page according to the rotation information.
2. The page processing method according to claim 1, wherein switching a display target page according to the rotation information includes:
determining a page turning direction according to the first rotation parameter;
determining page turning speed according to the second rotation parameter;
displaying a page turning animation effect according to the page turning direction and the page turning speed;
and when the second rotation parameter meets the page turning stop condition, stopping displaying the page turning animation effect, and switching to a display target page.
3. The page processing method according to claim 2, wherein when the second rotation parameter satisfies a page turning stop condition, stopping displaying a page turning animation effect, and switching to a display target page includes:
when the second rotation parameter is smaller than the rotation threshold value, stopping displaying the page turning animation effect, and switching to a display target page;
and when the second rotation parameter is not less than the rotation threshold value, displaying a page turning animation effect according to the page turning direction and the page turning speed.
4. The page processing method according to claim 1, wherein switching a display target page according to the rotation information includes:
determining a page switching direction according to the first rotation parameter;
determining a switching step length according to the second rotation parameter;
determining a target page to be switched according to the page switching direction and the switching step length;
and switching and displaying the target page.
5. A page processing apparatus, comprising:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor;
the display module is used for displaying the current page;
the terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting rotation information of terminal rotation, and the rotation information comprises a first rotation parameter and a second rotation parameter;
the sliding module is used for determining the sliding direction of the page content sliding according to the first rotation parameter when the first rotation parameter meets the sliding operation condition; when the second rotation parameter is larger than a preset parameter threshold, determining the sliding speed of the page content sliding according to the second rotation parameter; when the second rotation parameter is not greater than a preset parameter threshold value, the sliding speed of the page content sliding is zero; if the content behind the page content in the current page is judged to exist based on the sliding direction, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed, and detecting the page content display proportion, wherein the page content display proportion is the proportion of the content amount of the currently displayed page to the total content amount of the current page; when the display proportion of the page content is detected to reach a preset proportion, controlling the sliding display pause target time length of the page content so that a user can judge whether the page content in the current page has content which is interested by the user in the target time length, wherein the target time length is in positive correlation with the second rotation parameter; after the sliding display of the page content is paused for the target duration, controlling the page content in the current page to perform sliding display according to the sliding direction and the sliding speed;
and the switching module is used for switching and displaying a target page according to the rotation information when the first rotation parameter and the second rotation parameter meet the switching operation condition.
6. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the page processing method according to any one of claims 1 to 4.
CN201811577678.0A 2018-12-20 2018-12-20 Page processing method, device, terminal and storage medium Active CN109710139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811577678.0A CN109710139B (en) 2018-12-20 2018-12-20 Page processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811577678.0A CN109710139B (en) 2018-12-20 2018-12-20 Page processing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109710139A CN109710139A (en) 2019-05-03
CN109710139B true CN109710139B (en) 2021-06-15

Family

ID=66256094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811577678.0A Active CN109710139B (en) 2018-12-20 2018-12-20 Page processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109710139B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045574B (en) * 2019-12-09 2021-04-30 掌阅科技股份有限公司 Page turning method based on gravity sensing, computing equipment and computer storage medium
CN113761409A (en) * 2020-06-28 2021-12-07 北京沃东天骏信息技术有限公司 Interface operation information processing method, equipment and storage medium
CN112783415A (en) * 2021-01-29 2021-05-11 五八到家有限公司 Information display method, device, equipment and storage medium
CN113553507B (en) * 2021-07-26 2024-06-18 北京字跳网络技术有限公司 Interest tag-based processing method, device, equipment and storage medium
CN114265506B (en) * 2021-12-28 2023-10-13 北京奇艺世纪科技有限公司 Rotary interaction method, device, terminal equipment and readable storage medium
CN114706507A (en) * 2022-04-27 2022-07-05 北京达佳互联信息技术有限公司 Content display method and device, electronic equipment and storage medium
CN116069223B (en) * 2023-03-07 2023-08-04 荣耀终端有限公司 Anti-shake method, anti-shake device and wearable equipment
CN116860146B (en) * 2023-09-05 2023-11-24 中国中金财富证券有限公司 K line graph display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902458A (en) * 2011-07-25 2013-01-30 康佳集团股份有限公司 Page turning method for E-books
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages
JP2016001486A (en) * 2015-08-03 2016-01-07 セイコーエプソン株式会社 Portable information apparatus, electronic book, and information storage medium
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product
CN108268563A (en) * 2017-01-04 2018-07-10 广州市动景计算机科技有限公司 Page display method, device and computing device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100504870C (en) * 2006-09-05 2009-06-24 腾讯科技(深圳)有限公司 Web page content revealing method and customer terminal device
JP2010224664A (en) * 2009-03-19 2010-10-07 Funai Electric Co Ltd Reproduction device
CN103823623A (en) * 2014-02-13 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for performing page turning on terminal reading contents
CN104375752A (en) * 2014-11-06 2015-02-25 惠州Tcl移动通信有限公司 Electronic book page turning control method and system based on mobile terminal and mobile terminal
CN106406573B (en) * 2016-09-14 2020-06-09 惠州Tcl移动通信有限公司 Method and system for controlling page turning of mobile terminal
CN108664145A (en) * 2018-05-14 2018-10-16 珠海格力电器股份有限公司 Interface display control method and device, storage medium and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902458A (en) * 2011-07-25 2013-01-30 康佳集团股份有限公司 Page turning method for E-books
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages
JP2016001486A (en) * 2015-08-03 2016-01-07 セイコーエプソン株式会社 Portable information apparatus, electronic book, and information storage medium
CN108268563A (en) * 2017-01-04 2018-07-10 广州市动景计算机科技有限公司 Page display method, device and computing device
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product

Also Published As

Publication number Publication date
CN109710139A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109710139B (en) Page processing method, device, terminal and storage medium
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
EP3617861A1 (en) Method of displaying graphic user interface and electronic device
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
US9377868B2 (en) Sliding control method and terminal device thereof
EP3136214A1 (en) Touch operation method and apparatus for terminal
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
WO2017125027A1 (en) Method and device for displaying information, and computer storage medium
CN105975190B (en) Graphical interface processing method, device and system
EP2851779A1 (en) Method, device, storage medium and terminal for displaying a virtual keyboard
WO2015039445A1 (en) Notification message display method and apparatus, and electronic device
CN109491738B (en) Terminal device control method and terminal device
US10474507B2 (en) Terminal application process management method and apparatus
WO2021036603A1 (en) Application program control method and terminal
WO2020007114A1 (en) Method and apparatus for switching split-screen application, storage medium, and electronic device
CN107957843B (en) Control method and mobile terminal
CN107613095B (en) Incoming call processing method and mobile terminal
CN108491148B (en) Application sharing method and terminal
WO2021093772A1 (en) Notification message processing method and electronic device
CN108052258B (en) Terminal task processing method, task processing device and mobile terminal
CN107479799B (en) Method and device for displaying window
WO2015014135A1 (en) Mouse pointer control method and apparatus, and terminal device
CN109074124B (en) Data processing method and mobile equipment
CN104238931B (en) Information input method and device and electronic equipment
CN113050863A (en) Page switching method and device, storage medium and electronic equipment

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: 20230310

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Huaxi Investment Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right