CN108509125B - Page turning method, device, terminal and computer readable storage medium - Google Patents

Page turning method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108509125B
CN108509125B CN201810268053.XA CN201810268053A CN108509125B CN 108509125 B CN108509125 B CN 108509125B CN 201810268053 A CN201810268053 A CN 201810268053A CN 108509125 B CN108509125 B CN 108509125B
Authority
CN
China
Prior art keywords
display screen
acceleration
along
swing
page turning
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.)
Expired - Fee Related
Application number
CN201810268053.XA
Other languages
Chinese (zh)
Other versions
CN108509125A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810268053.XA priority Critical patent/CN108509125B/en
Publication of CN108509125A publication Critical patent/CN108509125A/en
Application granted granted Critical
Publication of CN108509125B publication Critical patent/CN108509125B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application belongs to the technical field of communication, and particularly relates to a page turning method, a page turning device, a terminal and a computer-readable storage medium, wherein the page turning method comprises the following steps: acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction; acquiring the time interval of the display screen which firstly swings along the first direction or firstly swings along the second direction and then stays; executing page turning actions of the display contents on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time intervals, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction; the technical problem of low operation efficiency of controlling the mobile terminal to execute the page turning function in the prior art can be solved.

Description

Page turning method, device, terminal and computer readable storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a page turning method, an apparatus, a terminal, and a computer-readable storage medium.
Background
With the development of mobile communication technology, people increasingly use mobile terminals to read information, so that the mobile terminals play an increasingly important role in life and work of people.
However, in the prior art, the triggering manner for controlling the mobile terminal to execute the page turning function is single, and the page turning function can be triggered only by clicking or sliding the touch screen by the user. When a user wears gloves or is stained with water and cannot operate the touch screen, a lot of troubles are brought to the user, and the defect of low operation efficiency is caused.
Disclosure of Invention
The embodiment of the application provides a page turning method, a page turning device, a terminal and a computer readable storage medium, which can solve the technical problem of low operation efficiency when a mobile terminal is controlled to execute a page turning function in the prior art.
A first aspect of the embodiments of the present application provides a page turning method, including:
acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction;
acquiring the time interval of the display screen which firstly swings along the first direction or firstly swings along the second direction and then stays;
and executing page turning actions of the display contents on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time intervals, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction.
A second aspect of the embodiments of the present application provides a page turning device, including:
the first acquisition unit is used for acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction;
the second acquisition unit is used for acquiring the time interval of the display screen firstly swinging along the first direction or firstly swinging along the second direction for staying;
and the page turning unit is used for executing page turning actions of the content displayed on the display screen according to the sequence and the time interval of the swinging along the first direction and the swinging along the second direction, the magnitude of the acceleration of the swinging along the first direction and the magnitude of the acceleration of the swinging along the second direction.
A third aspect of the embodiments of the present application provides a terminal, including a display screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In the embodiment of the application, the page turning action of the content displayed on the display screen is executed according to the sequence of the display screen swinging along the first direction and the second direction and the time interval, the acceleration swinging along the first direction and the acceleration swinging along the second direction, so that the user can trigger the page turning function of the content displayed on the display screen by swinging the display screen, the user does not need to click or slide the display screen to trigger the page turning function, and the operation efficiency of controlling the mobile terminal to execute the page turning function is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of an implementation process of a page turning method provided in an embodiment of the present application;
fig. 2 is a schematic implementation flow diagram of a page turning method S103 provided in the embodiment of the present application;
fig. 3 is a schematic flowchart of another implementation of the page turning method S103 according to the embodiment of the present application;
FIG. 4 is a schematic diagram of a first display screen and a second display screen provided by an embodiment of the application;
FIG. 5 is a schematic diagram of a first display screen and a second display screen together displaying an entire page according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating that a first display screen and a second display screen respectively display an independent page according to an embodiment of the present application;
fig. 7 is a schematic diagram of a page turning process in which a first display screen and a second display screen respectively display an independent page according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a page turning device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a schematic flow chart of an implementation process of a page turning method provided in an embodiment of the present application, where the method is applied to a terminal, and may be executed by a page turning device configured on the terminal, and the page turning device may be implemented in a hardware and/or software manner, and is suitable for a situation where a page of display content on a display screen of the terminal needs to be turned. The method may include steps S101 to S103.
In S101, the magnitude of the acceleration of the display screen swinging in the first direction and the magnitude of the acceleration of the display screen swinging in the second direction are acquired.
In the embodiment of the application, the display content on the display screen of the terminal can be turned through swinging the display screen of the terminal.
It should be noted that, when the page of the display content on the display screen of the terminal is turned, the display screen needs to swing in the first direction and then swing in the second direction, or swing in the second direction and then swing in the first direction, so as to complete the start and end of the page turning action of the display content on the display screen.
Therefore, when the page of the display content on the display screen of the terminal is turned, the terminal needs to acquire the magnitude of the acceleration of the display screen swinging along the first direction and the magnitude of the acceleration of the display screen swinging along the second direction, so that the terminal can execute the page turning action of the display content on the display screen according to the sequence and the time interval of the swinging along the first direction and the swinging along the second direction, the magnitude of the acceleration of the swinging along the first direction and the magnitude of the acceleration of the swinging along the second direction.
For example, the first direction is a clockwise direction, the second direction is a counterclockwise direction, and the display screen swings once in the clockwise direction and once in the counterclockwise direction respectively to complete the page turning action of the display content on the display screen. In other embodiment modes of the present application, the first direction and the second direction may also be at an angle with each other, for example, 0 ° to 180 °.
The acceleration magnitude can be an angular acceleration magnitude of the swinging of the display screen of the terminal. The acquiring the magnitude of the acceleration of the display screen swinging along the first direction and the magnitude of the acceleration of the display screen swinging along the second direction comprises the following steps: and acquiring the magnitude of the acceleration of the display screen swinging along the first direction and the magnitude of the acceleration of the display screen swinging along the second direction by using an acceleration sensor or a gyroscope. The terminal comprises a smart phone, a tablet personal computer, a Personal Digital Assistant (PDA), a learning machine and the like. And the terminal is provided with applications such as a QQ, WeChat, an electronic book reader, a music player and a video player.
In S102, a time interval during which the display screen firstly swings in the first direction or firstly swings in the second direction and then stays is obtained.
When the terminal completes the page turning action of the content displayed on the display screen, the terminal needs to swing once along the first direction and once along the second direction, so that the time interval for the next swing stop of the display screen can be acquired after the display screen swings along the first direction or swings along the second direction.
For example, after the display screen swings along the first direction or swings along the second direction, a timer is started to time, and a time interval during which the display screen stays after swinging along the first direction or swings along the second direction is obtained.
In S103, a page turning action of the content displayed on the display screen is executed according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, and the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction.
After acquiring the magnitude of the acceleration of the display screen swinging along the first direction, the magnitude of the acceleration of the display screen swinging along the second direction and the time interval of the display screen firstly swinging along the first direction or firstly swinging along the second direction and then staying, the terminal can execute the page turning action of the display content on the display screen according to the sequence of the display screen swinging along the first direction and the second direction and the time interval as well as the magnitude of the acceleration of the display screen swinging along the first direction and the magnitude of the acceleration of the display screen swinging along the second direction; the operation efficiency of controlling the mobile terminal to execute the page turning function is improved.
Optionally, as shown in fig. 2, the performing, according to the chronological order of the swinging in the first direction and the swinging in the second direction and the time interval, and the magnitude of the acceleration of the swinging in the first direction and the magnitude of the acceleration of the swinging in the second direction, a page turning action of the content displayed on the display screen includes: step S201 to step S202.
In S201, if the display screen swings in the first direction at an acceleration greater than a first preset threshold, swings in the second direction at an acceleration greater than the first preset threshold, and stops swinging in the first direction at a time interval less than or equal to a second preset threshold, a page turning action of the display content on the display screen in the first direction is performed.
In S202, if the display screen swings in the second direction at first with an acceleration greater than the first preset threshold, swings in the first direction at second with an acceleration greater than the first preset threshold, and swings in the second direction at a dwell time interval less than or equal to the second preset threshold, a page turning action of the display content on the display screen in the second direction is executed.
That is, the direction in which the display screen is first swung performs a page turning action.
For example, if the display content on the display screen is an electronic book, and the current electronic book stays on the 20 th page, when the user swings the display screen counterclockwise first and then swings the display screen back clockwise, the display content on the display screen turns up to the 19 th page; when the user swings the display screen clockwise and then swings the display screen back anticlockwise, the display content on the display screen is turned to the 21 st page downwards.
It should be noted that, for example, in other embodiments of the present application, it may be further configured that, according to a habit of a user, the user swings the display screen counterclockwise first and then swings the display screen back clockwise, so that the display content on the display screen is turned down to page 21.
The content displayed on the display screen can also comprise pictures, page-turnable web pages and other page-turnable situations. For example, when a user browses pictures in a microblog, friend circle or QQ space, the page turning method can be used for turning pages. For another example, when the user watches videos such as a series or listens to music, by the page turning method according to the present application, the playing video may be switched to the previous video or the next video, or forward or backward fast forward is performed on the playing video, or the playing music may be switched to the previous music or the next music, or forward or backward fast forward is performed on the playing music.
Optionally, the performing, according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, and the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction, a page turning action of the content displayed on the display screen includes: if the time interval is larger than the second preset threshold, continuously turning pages of the content displayed on the display screen at a speed corresponding to the swing acceleration in the first direction or the swing acceleration in the second direction according to the swing acceleration in the first direction or the swing acceleration in the second direction, and stopping the turning of the content displayed on the display screen when the display screen swings in the second direction or the swing acceleration in the first direction is larger than the first preset threshold.
In the embodiment of the application, if the time interval that the display screen firstly swings in the first direction or firstly swings in the second direction and then stays is smaller than or equal to a second preset threshold, it indicates that the time interval between the display screen swinging in the first direction and the display screen swinging in the second direction is short, and at this time, the display content on the display screen executes a page turning action once.
And when the time interval of the display screen which firstly swings along the first direction or firstly swings along the second direction and then stays is larger than a second preset threshold value, the time interval between the display screen which swings along the first direction and swings along the second direction is longer, and at the moment, the display content on the display screen executes continuous page turning action.
In addition, when the display content on the display screen executes the continuous page turning action, the pages are continuously turned according to the speed corresponding to the acceleration value swinging along the first direction or the speed corresponding to the acceleration value swinging along the second direction.
For example, the terminal stores the correspondence between the acceleration and the continuous page turning speed in advance. When the display content on the display screen executes the continuous page turning action, the speed corresponding to the acceleration of the display screen firstly swinging along the first direction or the acceleration of the display screen firstly swinging along the second direction is obtained according to the corresponding relation, and the continuous page turning action is executed on the display content on the display screen according to the speed, so that the continuous page turning speed of the display content on the display screen can be flexibly controlled.
And when the display content on the display screen performs continuous page turning action, if the acceleration of the display screen swinging along the second direction or swinging along the first direction is greater than the first preset threshold value, stopping page turning of the display content on the display screen.
For example, after the display screen swings in the first direction, the display screen stays for a time interval greater than the second preset threshold, so that the display content on the display screen performs a continuous page turning action. And when the display content on the display screen performs the continuous page turning action, if the display screen swings along the second direction due to the careless slight shake of the user and the swinging acceleration is less than or equal to the first preset threshold, the continuous page turning of the display content on the display screen is not affected at the moment, that is, the display content on the display screen continuously turns pages at the original speed. And when the acceleration of the display screen swinging along the second direction is larger than the first preset threshold value, the display content on the display screen is turned over, and the page turning of the display content on the display screen is stopped. The page turning of the content displayed on the display screen has certain fault tolerance, the page turning can be flexibly and conveniently stopped, and the page turning accuracy of the content displayed on the display screen is improved.
Optionally, before performing the page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, and the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction, the method includes: step S301 to step S302.
In S301, it is determined whether the magnitude of the acceleration of the display screen swinging in the first direction or the magnitude of the acceleration of the display screen swinging in the second direction is less than or equal to the first preset threshold.
In S302, if the magnitude of the acceleration of the display screen swinging along the first direction or the magnitude of the acceleration of the display screen swinging along the second direction is less than or equal to the first preset threshold, the page turning action of the content displayed on the display screen is not executed.
For example, if the display screen may swing in the first direction or the second direction due to an inadvertent slight shake of the user, and the acceleration of the swing is smaller than or equal to the first preset threshold, the page turning action of the content displayed on the display screen is not performed at this time. The page turning of the content displayed on the display screen has certain fault tolerance, and the page turning accuracy of the content displayed on the display screen is improved.
In the above-described embodiments, the display screen may be a single display screen, but as mobile terminal technology has advanced, terminals having multi-screen displays have gradually appeared. For example, as shown in fig. 4, the display screens include a first display screen 41 and a second display screen 42.
Optionally, if the first display screen and the second display screen display a whole page together; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes: and executing page turning actions of the display contents on the first display screen or the second display screen according to the sequence of the first display screen or the second display screen swinging along the first direction and the second direction and the time interval, as well as the magnitude of the acceleration of the first display screen swinging along the first direction and the magnitude of the acceleration of the second display screen swinging along the second direction.
As shown in fig. 5, the displaying a whole page by the first display screen and the second display screen together includes: the first display screen and the second display screen jointly display a picture, a video or an electronic book reading layout, and the function of large-screen display is achieved. At this time, because the display content on the display screen is an integral page, the page turning action for the display content on the display screen can be executed according to the sequence of the swing of any one of the first display screen and the second display screen along the first direction and the second direction, the time interval, the magnitude of the acceleration of the swing along the first direction and the magnitude of the acceleration of the swing along the second direction.
It should be noted that, for a specific page turning manner in which the first display screen and the second display screen jointly display a whole page, refer to the steps of the method described in fig. 1 to 3, and details are not repeated here.
Optionally, if the first display screen and the second display screen respectively display an independent page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes: executing page turning actions of the display contents on the first display screen according to the sequence of the first display screen swinging along the first direction and the second display screen swinging along the second direction, the time interval, the acceleration of the first display screen swinging along the first direction and the acceleration of the first display screen swinging along the second direction; and executing page turning actions of the display contents on the second display screen according to the sequence of the second display screen swinging along the first direction and the second direction and the time interval, as well as the acceleration of the second display screen swinging along the first direction and the acceleration of the second display screen swinging along the second direction.
That is, the page turning of the independent pages respectively displayed on the first display screen and the second display screen is not interfered with each other, and the pages are turned independently. For example, as shown in fig. 6, the ebook page displayed on the first display screen may be turned to page 1 or any other page, and the ebook page displayed on the second display screen may be turned to page 21 or any other page. So that the user can flexibly view the contents to be viewed.
It should be noted that, as shown in fig. 6, specific page turning manners of the independent pages respectively displayed on the first display screen and the second display screen may refer to the steps of the method described in fig. 1 to fig. 3, and are not described herein again.
Optionally, if the first display screen and the second display screen respectively display an independent page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes: simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the first direction or the second direction according to the time interval of the first display screen swinging along the first direction or swinging and staying along the second direction, and the magnitude of the acceleration of the first display screen swinging along the first direction and the magnitude of the acceleration of the second display screen swinging along the second direction; and simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the second direction or the first direction according to the time interval of the stop of the second display screen swinging along the first direction or swinging along the second direction, and the magnitude of the acceleration of the swinging along the first direction and the magnitude of the acceleration of the swinging along the second direction.
That is, the page turning of the independent pages respectively displayed on the first display screen and the second display screen interfere with each other. For example, as shown in fig. 7, when the ebook page displayed on the first display screen is the 20 th page and the ebook page displayed on the second display screen is the 21 st page, the ebook page displayed on the first display screen may be turned up to the 18 th page by swinging the first display screen, and the ebook page displayed on the second display screen is turned up to the 19 th page; or the page of the electronic book displayed on the first display screen is turned downwards to the 22 nd page by swinging the second display screen, and the page of the electronic book displayed on the second display screen is turned to the 23 rd page. That is, the swing of the first display screen is set to implement only page-up, the swing of the second display screen is set to implement only page-down, and the sequence of the swing of the first display screen along the first direction and the swing along the second direction is unrelated to the page-turning direction of the display content of the display screen. Similarly, the swing of the first display screen can be set to realize page turning down according to the use habit of the user, and the swing of the second display screen can be set to realize page turning up.
Furthermore, the sequence of the first display screen or the second display screen swinging along the first direction and the second direction is related to the page turning direction of the display content of the display screen. For example, the swing of the first display screen or the second display screen may control the display content of the display screen to page up, may also control the display content of the display screen to page down, and may control the display content of the display screen to page down along different directions through any one of the display screens.
It should be noted that, as shown in fig. 7, specific page turning manners of the independent pages respectively displayed on the first display screen and the second display screen may refer to the steps of the method described in fig. 1 to fig. 3, and are not described herein again.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the application.
Fig. 8 shows a schematic structural diagram of a page turning device 800 provided in an embodiment of the present application, which includes a first obtaining unit 801, a second obtaining unit 802, and a page turning unit 803.
A first acquiring unit 801, configured to acquire an acceleration magnitude of a display screen swinging in a first direction and an acceleration magnitude of a display screen swinging in a second direction;
a second obtaining unit 802, configured to obtain a time interval during which the display screen first swings in the first direction or first swings in the second direction;
the page turning unit 803 is configured to execute a page turning action of the content displayed on the display screen according to the sequence and the time interval of the swinging in the first direction and the swinging in the second direction, and the magnitude of the acceleration of the swinging in the first direction and the magnitude of the acceleration of the swinging in the second direction.
It should be noted that, for convenience and brevity of description, the specific working process of the page turning apparatus 800 described above may refer to the corresponding process of the method described in fig. 1 to fig. 7, and is not described herein again.
As shown in fig. 9, the present application provides a terminal for implementing the page turning method, where the terminal may be a mobile terminal such as a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a learning machine, and includes: one or more input devices 94 (only one shown in fig. 9) and one or more output devices 95 (only one shown in fig. 9). The display 91, processor 92, memory 93, input device 94 and output device 95 are connected by a bus 96.
It should be understood that in the embodiments of the present Application, the Processor 92 may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 94 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 95 may include a display, a speaker, etc.
Memory 93 may include both read-only memory and random-access memory, and provides instructions and data to processor 92. Some or all of memory 92 may also include non-volatile random access memory. For example, the memory 93 may also store device type information.
The memory 93 stores a computer program that is executable on the processor 92, for example, a program of a method of turning pages. The processor 92, when executing the computer program, implements the steps of the above-described method embodiment of turning pages, such as steps 101 to 103 shown in fig. 1. Alternatively, the processor 92, when executing the computer program, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the units 801 to 803 shown in fig. 8.
The computer program may be divided into one or more modules/units, which are stored in the memory 93 and executed by the processor 92 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the terminal for turning pages. For example, the computer program may be divided into a first acquiring unit, a second acquiring unit and a page turning unit, and each unit specifically functions as follows: the first acquisition unit is used for acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction; the first direction is opposite the second direction; the second acquisition unit is used for acquiring the time interval of the display screen firstly swinging along the first direction or firstly swinging along the second direction for staying; and the page turning unit is used for executing page turning actions of the content displayed on the display screen according to the sequence and the time interval of the swinging along the first direction and the swinging along the second direction, the magnitude of the acceleration of the swinging along the first direction and the magnitude of the acceleration of the swinging along the second direction.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (7)

1. A method of turning pages, comprising:
acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction; acquiring the time interval of the display screen which firstly swings along the first direction or firstly swings along the second direction and then stays;
executing page turning actions of the display contents on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time intervals, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction, and the page turning actions comprise: if the display screen swings along the first direction at first and is higher than the acceleration of a first preset threshold value, then swings along the second direction and is higher than the acceleration of the first preset threshold value, and the time interval of swinging and staying along the first direction is smaller than or equal to a second preset threshold value, executing a page turning action of the display content on the display screen along the first direction; if the display screen swings along the second direction at first and is more than the acceleration of the first preset threshold, then swings along the first direction and is more than the acceleration of the first preset threshold, and the time interval of swinging and staying along the second direction is less than or equal to the second preset threshold, then a page turning action of the display content on the display screen along the second direction is executed; the page turning action comprises a page turning action along the first direction and a page turning action along the second direction;
the display screen comprises a first display screen and a second display screen;
if the first display screen and the second display screen respectively display an independent page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes:
simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the first direction or the second direction according to the time interval of the first display screen swinging along the first direction or swinging and staying along the second direction, and the magnitude of the acceleration of the first display screen swinging along the first direction and the magnitude of the acceleration of the second display screen swinging along the second direction; and
simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the second direction or the first direction according to the time interval of the second display screen firstly swinging along the first direction or firstly swinging along the second direction for staying, the magnitude of the acceleration of swinging along the first direction and the magnitude of the acceleration of swinging along the second direction;
the executing the page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction comprises:
if the time interval is greater than the second preset threshold, continuously turning pages of the display content on the display screen at a speed corresponding to the swing acceleration in the first direction or the swing acceleration in the second direction according to the swing acceleration in the first direction or the swing acceleration in the second direction, and stopping the turning of the display content on the display screen when the display screen swings in the second direction or the swing acceleration in the first direction is greater than the first preset threshold; the terminal stores the corresponding relation between the acceleration and the continuous page turning speed in advance, when the display content on the display screen executes the continuous page turning action, the speed corresponding to the acceleration of the display screen firstly swinging along the first direction or the acceleration of the display screen firstly swinging along the second direction is obtained according to the corresponding relation, and the continuous page turning action is executed on the display content on the display screen according to the speed.
2. The method of claim 1, wherein if the first display screen and the second display screen together display a single page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes:
and executing page turning actions of the display contents on the first display screen or the second display screen according to the sequence of the first display screen or the second display screen swinging along the first direction and the second direction and the time interval, as well as the magnitude of the acceleration of the first display screen swinging along the first direction and the magnitude of the acceleration of the second display screen swinging along the second direction.
3. The method of claim 2,
if the first display screen and the second display screen respectively display an independent page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes:
executing page turning actions of the display contents on the first display screen according to the sequence of the first display screen swinging along the first direction and the second display screen swinging along the second direction, the time interval, the acceleration of the first display screen swinging along the first direction and the acceleration of the first display screen swinging along the second direction;
and executing page turning actions of the display contents on the second display screen according to the sequence of the second display screen swinging along the first direction and the second direction and the time interval, as well as the acceleration of the second display screen swinging along the first direction and the acceleration of the second display screen swinging along the second direction.
4. The method of claim 1, wherein before performing the page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, and the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction, the method comprises:
judging whether the magnitude of the acceleration of the display screen swinging along the first direction or the magnitude of the acceleration of the display screen swinging along the second direction is smaller than or equal to a first preset threshold value or not;
and if the acceleration of the display screen swinging along the first direction or the acceleration of the display screen swinging along the second direction is smaller than or equal to the first preset threshold, not executing page turning action of the display content on the display screen.
5. A page turning device, comprising:
the first acquisition unit is used for acquiring the swing acceleration of the display screen along a first direction and the swing acceleration along a second direction;
the second acquisition unit is used for acquiring the time interval of the display screen firstly swinging along the first direction or firstly swinging along the second direction for staying;
the page turning unit is used for executing page turning actions of the display content on the display screen according to the sequence and the time interval of the swinging along the first direction and the swinging along the second direction, the acceleration of the swinging along the first direction and the acceleration of the swinging along the second direction, and the page turning unit comprises: if the display screen swings along the first direction at first and is higher than the acceleration of a first preset threshold value, then swings along the second direction and is higher than the acceleration of the first preset threshold value, and the time interval of swinging and staying along the first direction is smaller than or equal to a second preset threshold value, executing a page turning action of the display content on the display screen along the first direction; if the display screen swings along the second direction at first and is more than the acceleration of the first preset threshold, then swings along the first direction and is more than the acceleration of the first preset threshold, and the time interval of swinging and staying along the second direction is less than or equal to the second preset threshold, then a page turning action of the display content on the display screen along the second direction is executed; the page turning action comprises a page turning action along the first direction and a page turning action along the second direction;
the display screen comprises a first display screen and a second display screen;
if the first display screen and the second display screen respectively display an independent page; the executing a page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction includes:
simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the first direction or the second direction according to the time interval of the first display screen swinging along the first direction or swinging and staying along the second direction, and the magnitude of the acceleration of the first display screen swinging along the first direction and the magnitude of the acceleration of the second display screen swinging along the second direction; and
simultaneously executing a page turning action of the display contents on the first display screen and the second display screen along the second direction or the first direction according to the time interval of the second display screen firstly swinging along the first direction or firstly swinging along the second direction for staying, the magnitude of the acceleration of swinging along the first direction and the magnitude of the acceleration of swinging along the second direction;
the executing the page turning action of the content displayed on the display screen according to the sequence of the swing in the first direction and the swing in the second direction and the time interval, as well as the magnitude of the acceleration of the swing in the first direction and the magnitude of the acceleration of the swing in the second direction comprises:
if the time interval is greater than the second preset threshold, continuously turning pages of the display content on the display screen at a speed corresponding to the swing acceleration in the first direction or the swing acceleration in the second direction according to the swing acceleration in the first direction or the swing acceleration in the second direction, and stopping the turning of the display content on the display screen when the display screen swings in the second direction or the swing acceleration in the first direction is greater than the first preset threshold; the terminal stores the corresponding relation between the acceleration and the continuous page turning speed in advance, when the display content on the display screen executes the continuous page turning action, the speed corresponding to the acceleration of the display screen firstly swinging along the first direction or the acceleration of the display screen firstly swinging along the second direction is obtained according to the corresponding relation, and the continuous page turning action is executed on the display content on the display screen according to the speed.
6. A terminal comprising a display, a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201810268053.XA 2018-03-28 2018-03-28 Page turning method, device, terminal and computer readable storage medium Expired - Fee Related CN108509125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810268053.XA CN108509125B (en) 2018-03-28 2018-03-28 Page turning method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810268053.XA CN108509125B (en) 2018-03-28 2018-03-28 Page turning method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108509125A CN108509125A (en) 2018-09-07
CN108509125B true CN108509125B (en) 2021-03-26

Family

ID=63379103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810268053.XA Expired - Fee Related CN108509125B (en) 2018-03-28 2018-03-28 Page turning method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108509125B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011907B (en) * 2019-04-16 2021-05-07 腾讯科技(深圳)有限公司 Message display method, message processing method and device
CN114066875A (en) * 2021-11-25 2022-02-18 数坤(北京)网络科技股份有限公司 Slice image processing method and device, storage medium and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140159A (en) * 2000-10-30 2002-05-17 Motoaki Fujimoto Portable information apparatus equipped with sensor
CN102141858A (en) * 2010-02-25 2011-08-03 微软公司 Multi-Screen synchronous slide gesture
CN103941875A (en) * 2014-05-05 2014-07-23 成都理想境界科技有限公司 Page turning method and device and terminal
CN105549878A (en) * 2015-12-08 2016-05-04 北京奇虎科技有限公司 Electronic book page turning control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140159A (en) * 2000-10-30 2002-05-17 Motoaki Fujimoto Portable information apparatus equipped with sensor
CN102141858A (en) * 2010-02-25 2011-08-03 微软公司 Multi-Screen synchronous slide gesture
CN103941875A (en) * 2014-05-05 2014-07-23 成都理想境界科技有限公司 Page turning method and device and terminal
CN105549878A (en) * 2015-12-08 2016-05-04 北京奇虎科技有限公司 Electronic book page turning control method and device

Also Published As

Publication number Publication date
CN108509125A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
EP3901756B1 (en) Electronic device including touch sensitive display and method for operating the same
CN113867662A (en) Display method and terminal
US20150074576A1 (en) Information processing methods and electronic devices
WO2017032078A1 (en) Interface control method and mobile terminal
WO2013097650A1 (en) Method, system and terminal equipment for starting of application programs
CN104571877A (en) Display processing method and device for pages
CN108228300B (en) Method and device for controlling real-time refreshing of content
CN105468275A (en) Method and apparatus for performing operation on presented object
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
CN104216618A (en) Interface control method
CN114756150B (en) Application icon management method, terminal equipment and storage medium
WO2017101390A1 (en) Picture display method and apparatus
CN108509125B (en) Page turning method, device, terminal and computer readable storage medium
US20140365893A1 (en) Causing elements to be displayed
CN110708426A (en) Double-screen synchronous display method and device, server and storage medium
US20170169599A1 (en) Methods and electronic devices for displaying picture
CN104049846A (en) Information processing method and electronic device
CN112181252B (en) Screen capturing method and device and electronic equipment
CN112055156B (en) Preview image updating method and device, mobile terminal and storage medium
JP6175375B2 (en) Display device, display method, and program
CN113094009B (en) Display method and display device
CN108027673B (en) Extended user touch input
CN109085974B (en) Screen control method, system and terminal equipment
CN111831198B (en) Double-screen touch method and device
CN112328351A (en) Animation display method, animation display device and terminal 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210326