CN107179865B - Page switching method and terminal - Google Patents
Page switching method and terminal Download PDFInfo
- Publication number
- CN107179865B CN107179865B CN201710356141.0A CN201710356141A CN107179865B CN 107179865 B CN107179865 B CN 107179865B CN 201710356141 A CN201710356141 A CN 201710356141A CN 107179865 B CN107179865 B CN 107179865B
- Authority
- CN
- China
- Prior art keywords
- angle value
- screen
- page
- switching
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 172
- 238000010586 diagram Methods 0.000 claims description 28
- 238000004891 communication Methods 0.000 abstract description 6
- 210000003811 finger Anatomy 0.000 description 21
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 210000004247 hand Anatomy 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
- G06F3/0488—Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
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 invention provides a page switching method and a terminal, relates to the technical field of communication, and aims to solve the problem that page turning operation of an application on the terminal is difficult. The method comprises the following steps: acquiring a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, wherein the first angle value is the angle value when the folding operation process is started, the second angle value is the angle value when the two screens are unfolded from the close position, and the third angle value is the angle value when the folding operation process is finished; and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page. As long as two screens are mutually folded and then mutually unfolded, and when the mutual relation of the angle values between the two screens meets the preset condition, the page switching can be carried out on the application on the terminal, and the method is convenient and fast.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a page switching method and a terminal.
Background
The flexible screen has a foldable characteristic, and the terminal equipped with the flexible screen also has a foldable characteristic. Generally, a screen of a terminal equipped with a flexible screen is relatively large, and a user is inconvenient to operate the terminal by holding the terminal. For example, when a user is watching an electronic book, if the user holds two expanded screens with both hands, it is inconvenient to turn pages. If a user holds the terminal with one hand and operates the terminal with the other hand, since the thumb of the user is always in contact with the screen of the terminal, a situation of false triggering may occur, and meanwhile, the content on the screen may be blocked. When browsing a picture library, the problem of inconvenience in turning pictures is also existed. Therefore, the prior art has the problem that the page turning operation of the application on the terminal is difficult.
Disclosure of Invention
The embodiment of the invention provides a page switching method and a terminal, and aims to solve the problem that in the prior art, page turning operation on an application on the terminal is difficult.
In a first aspect, an embodiment of the present invention provides a page switching method, which is applied to a terminal equipped with a flexible screen, where the flexible screen is foldable into a first screen and a second screen, and the method includes:
acquiring a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, wherein the folding operation process is a process of continuously changing the angle value between the first screen and the second screen, the first angle value is the angle value between the two screens at the beginning of the folding operation process, the second angle value is the angle value between the two screens from the close to the open of the first screen and the second screen, and the third angle value is the angle value between the two screens at the end of the folding operation process;
and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page.
In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal is equipped with a flexible screen, and the flexible screen is foldable to have a first screen and a second screen, and the terminal includes:
the folding device comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, the folding operation process is a process that the angle value between the first screen and the second screen continuously changes, the first angle value is an angle value between the two screens when the folding operation process starts, the second angle value is an angle value between the two screens when the first screen and the second screen are unfolded from a close position, and the third angle value is an angle value between the two screens when the folding operation process ends;
and the switching module is used for switching the page if the relationship between the first angle value acquired by the first acquisition module, the second angle value acquired by the first acquisition module and the third angle value acquired by the first acquisition module meets a preset condition.
In this way, in the embodiment of the present invention, a first angle value, a second angle value and a third angle value between a first screen and a second screen in a folding operation process are obtained, where the folding operation process is a process in which an angle value between the first screen and the second screen continuously changes, the first angle value is an angle value between the two screens at the start of the folding operation process, the second angle value is an angle value between the two screens from the approach to the expansion of the first screen and the second screen, and the third angle value is an angle value between the two screens at the end of the folding operation process; and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page. Therefore, the first screen and the second screen of the terminal are folded, the first screen and the second screen are unfolded, and when the mutual relation of the angle values between the first screen and the second screen meets the preset condition, page switching can be performed on the application on the terminal, and the terminal is convenient and fast to use.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a page switching method according to an embodiment of the present invention;
fig. 2 is a flowchart of another page switching method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another page switching method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a first diagram of another terminal according to an embodiment of the present invention;
fig. 6 is a second schematic diagram of another terminal according to an embodiment of the present invention;
fig. 7 is a third schematic diagram of another terminal according to an embodiment of the present invention;
fig. 8 is a fourth schematic diagram of another terminal according to an embodiment of the present invention;
fig. 9 is a fifth schematic diagram of another terminal according to an embodiment of the present invention;
fig. 10 is a block diagram of another terminal provided in an embodiment of the present invention;
fig. 11 is a structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a page switching method provided in an embodiment of the present invention, which is applied to a terminal equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen, as shown in fig. 1, including the following steps:
In step 101, the terminal of the present invention is equipped with a flexible screen, and the flexible screen can be folded into two screens, namely, a first screen and a second screen. The first screen and the second screen may be respectively provided with a triaxial gyroscope, the triaxial gyroscope in the first screen may acquire angle information of the first screen relative to a reference plane, and the triaxial gyroscope in the second screen may acquire angle information of the second screen relative to the reference plane. And comparing the angle information of the first screen relative to the reference plane with the angle information of the second screen relative to the reference plane to obtain the angle value between the first screen and the second screen.
The terminal may detect whether an angle value between the first screen and the second screen is changed in real time. When the first screen and the second screen move relatively, the terminal detects that the angle value between the first screen and the second screen changes.
The first screen and the second screen can be relatively close to each other and then relatively spread, so that the angle value between the first screen and the second screen is continuously changed. The process of continuously changing the angle value between the first screen and the second screen can be recorded as a folding operation process, that is, the process of relatively closing the first screen and the second screen and then relatively unfolding the first screen and the second screen can be recorded as a folding operation process. The angle value between the two screens at the beginning of the folding operation is recorded as a first angle value.
When the two screens are relatively closed, the terminal can detect that the angle value between the first screen and the second screen is changed, and can detect that the angle value between the two screens is gradually reduced. When the first screen and the second screen stop relatively approaching, the terminal can detect that the angle value between the two screens is not changed any more, namely, can detect that the angle value between the two screens is not reduced any more. At this time, the terminal may obtain an angle value between the two screens after the first screen and the second screen stop being relatively closed, that is, the terminal may obtain an angle value between the two screens when the first screen and the second screen are unfolded from the close position, and the angle value is recorded as a second angle value.
After the two screens are relatively closed, the two screens can be relatively unfolded. At this time, the terminal detects that the angle between the two screens has changed again within the preset time period, and can detect that the angle between the two screens is gradually increased. When the first screen and the second screen stop being relatively unfolded, the terminal can detect that the angle value between the two screens is not changed any more, that is, can detect that the angle value between the two screens is not increased any more. At this time, the terminal may obtain an angle value between the two screens after the first screen and the second screen stop being relatively unfolded, that is, the terminal may obtain an angle value between the two screens when the folding operation process is finished, and record the angle value as a third angle value.
After the first angle value, the second angle value between the two screens after the first screen and the second screen are relatively close and the third angle value between the two screens after the first screen and the second screen are relatively unfolded are obtained, whether the relation of the first angle value, the second angle value and the third angle value meets the preset condition or not can be further judged.
And 102, if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page.
In step 102, when the terminal determines that the relationship between the first angle value, the second angle value, and the third angle value satisfies the preset condition, the page switching may be performed on the application on the terminal. The application may be an electronic book or a photo library.
The page switching method of the embodiment of the invention obtains a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, wherein the folding operation process is a process of continuously changing the angle value between the first screen and the second screen, the first angle value is the angle value between the two screens at the beginning of the folding operation process, the second angle value is the angle value between the two screens from the approach to the expansion of the first screen and the second screen, and the third angle value is the angle value between the two screens at the end of the folding operation process; and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page. Therefore, the first screen and the second screen of the terminal are relatively folded, the first screen and the second screen are relatively unfolded, and when the mutual relation of the angle values between the first screen and the second screen meets the preset condition, page switching can be performed on the application on the terminal, and the terminal is convenient and fast to use. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
Fig. 2 is a flowchart of another page switching method provided in an embodiment of the present invention, which is applied to a terminal equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen. As shown in fig. 2, the method comprises the following steps:
In step 201, the terminal of the present invention is equipped with a flexible screen, and the flexible screen can be folded into two screens, namely, a first screen and a second screen. The first screen and the second screen can be respectively provided with a three-axis gyroscope, and the angle value between the first screen and the second screen can be calculated through the three-axis gyroscopes in the two screens.
The first screen and the second screen can be relatively close to each other and then relatively spread, so that the angle value between the first screen and the second screen is continuously changed. The process of continuously changing the angle value between the first screen and the second screen can be recorded as a folding operation process, that is, the process of relatively closing the first screen and the second screen and then relatively unfolding the first screen and the second screen can be recorded as a folding operation process. The angle value between the two screens at the start of the folding operation is noted as a first angle value, and the first angle value is represented by x 1.
It should be noted that when the first screen and the second screen are unfolded to be in a flush state, the angle value between the two screens is marked as 180 degrees; when the first screen and the second screen are folded together, the angle between the two screens is marked as 0 degree.
Typically, the angle between the two screens will be in the range of 90-180 degrees when the user holds the two screens spread apart in both hands. Thus, a range of firing angles may be defined, such as 90-180 degrees. When the folding operation process is started, the angle value between the first screen and the second screen is within the triggering angle range, the first screen and the second screen are folded relatively first and then unfolded relatively, and the application on the terminal is switched when the mutual relation of the angle values between the two screens meets the preset condition.
Moreover, the trigger angle range can be set at will, and a user can set the trigger angle range according to own habits. For example, the user may also set the trigger angle range to 120-180 degrees.
When the first screen and the second screen are relatively closed, the terminal can detect that the angle value between the first screen and the second screen is changed, and can detect that the angle value between the two screens is gradually reduced. When the first screen and the second screen stop relatively approaching, the terminal can detect that the angle value between the two screens is not changed any more, namely, can detect that the angle value between the two screens is not reduced any more. At this time, the terminal may obtain an angle value between the two screens after the first screen and the second screen stop being relatively closed, that is, the terminal may obtain an angle value between the two screens when the first screen and the second screen are unfolded from the close position, and record the angle value as a second angle value, and record the second angle value as x 2.
After the two screens are relatively closed, the two screens can be relatively unfolded. At this time, the terminal detects that the angle between the two screens has changed again within the preset time period, and can detect that the angle between the two screens is gradually increased. When the first screen and the second screen stop being relatively unfolded, the terminal can detect that the angle value between the two screens is not changed any more, that is, can detect that the angle value between the two screens is not increased any more. At this time, the terminal may obtain the angle value between the two screens after the first screen and the second screen stop being relatively unfolded, that is, the terminal may obtain the angle value between the two screens when the folding operation process is finished, and record the angle value as a third angle value, and record the third angle value as x 3.
In step 202, after the first angle value x1, the second angle value x2 between the two screens after the first screen and the second screen are relatively close, and the third angle value x3 between the two screens after the first screen and the second screen are relatively spread are obtained, it may be further determined whether the relationship among the first angle value x1, the second angle value x2, and the third angle value x3 satisfies a preset condition.
Whether the second angle value x2 is smaller than or equal to a preset first threshold value or not can be determined, that is, whether the angle value between the two screens after the first screen and the second screen are relatively closed together is smaller than or equal to the preset first threshold value or not can be determined. Wherein the preset first threshold is smaller than the minimum value of the triggering angle range. The preset first threshold value can be set arbitrarily, and is denoted as a. For example, the user may set the preset first threshold to 40 degrees, i.e., let a be 40 degrees.
It is also determined whether the absolute value of the difference between the first angle value x1 and the third angle value x3 is less than or equal to a preset second threshold value. The preset second threshold may also be set arbitrarily, and is denoted as b. For example, the user may set the preset second threshold to 15 degrees, i.e., let b be 15 degrees.
If the terminal determines that the second angle value x2 is less than or equal to the preset first threshold a and the absolute value of the difference between the first angle value x1 and the third angle value x3 is less than or equal to the preset second threshold b, it may be further determined whether the second angle value x2 is greater than a preset third threshold. The preset third threshold value can be set arbitrarily, and is denoted as c. For example, the user may set the preset third threshold to 20 degrees, i.e., let c be 20 degrees. Wherein the preset third threshold c is smaller than the preset first threshold a.
In step 203, if the terminal determines that the second angle value is less than or equal to the preset third threshold c, i.e. x2 is less than or equal to c, i.e. x2 is less than or equal to 20 degrees, the page is switched in a direction in which the page number is less than the page number on the first screen.
And 204, if the second angle value is larger than a preset third threshold and smaller than or equal to a preset first threshold, and the absolute value of the difference between the first angle value and the third angle value is smaller than or equal to a preset second threshold, switching the page in the direction in which the page number is larger than the page number on the second screen.
In step 204, if the terminal determines that the second angle value x2 is greater than the preset third threshold value c, and the second angle value x2 is less than or equal to the preset first threshold value a, i.e., c < x2 ≦ a, i.e., 20 degrees < x2 ≦ 40 degrees, and the absolute value of the difference between the first angle value x1 and the third angle value x3 is less than or equal to the preset second threshold value b, the page is switched in a direction in which the page number is greater than the page number on the second screen.
In step 205, after the terminal performs page switching on the application, the terminal may also perform fast page switching on the application. For example, the terminal may detect whether a first touch operation to a screen of the terminal is received.
And step 206, determining a touch track corresponding to the first touch operation.
In step 206, if a first touch operation on the screen of the terminal is received, the terminal may determine a touch trajectory corresponding to the first touch operation.
For example, after page switching is performed in a direction in which the page number is greater than the page number on the second screen, if the user's finger touches the second screen, and slides to the right on the second screen. The terminal detects a first touch operation, and then the terminal determines a touch track corresponding to the first touch operation, namely detects a touch track drawn by a finger of a user when the finger slides on the second screen.
And step 207, acquiring a length value of the touch track.
In step 207, after the terminal determines the touch trajectory, a length value of the touch trajectory may be obtained.
It should be noted that, when performing fast page switching, the number of pages to be switched fast may be directly proportional to the length value of the touch trajectory. For example, the length of the touch trajectory is one centimeter, and the number of pages corresponding to switching may be 10 pages.
And 208, determining a first target page corresponding to the length value of the touch track, and displaying a schematic diagram of the first target page.
In step 208, after the terminal acquires the length value of the touch trajectory, a first target page corresponding to the length value of the touch trajectory may be determined, and a schematic diagram of the first target page is displayed.
For example, assuming that the length value of the touch trajectory is one centimeter, the number of pages corresponding to switching may be 2 pages. Assuming that the currently opened application is an electronic book, after page switching is performed in a direction in which the page number is larger than that on the second screen, the current page number on the first screen is 49, and the current page number on the second screen is 50.
If the user touches the second screen with a finger and slides to the right on the second screen at the moment, the terminal detects a first touch operation, and further determines a touch track corresponding to the first touch operation, namely detects the touch track drawn by the finger of the user when the finger slides on the second screen.
After the terminal detects the touch track, the length value of the touch track can be obtained, a first target page corresponding to the length value of the touch track can be determined, and a schematic diagram of the first target page is displayed.
It should be noted that, when the application performing page switching is an electronic book, in the process of performing fast page switching, only the enlarged page number may be displayed on the page, and the specific content of the page is not displayed.
For example, if the finger of the user slides rightwards for one centimeter on the second screen, the length value of the touch trajectory acquired by the terminal is one centimeter, the page number on the second screen can jump from 50 to 52, at this time, the first target page is the page with the page number of 52, and only the page number of 52 is displayed on the first target page, and the specific content of the page is not displayed; if the finger of the user continues to slide rightwards for one centimeter on the second screen, that is, when the finger of the user slides for two centimeters on the second screen, the length value of the touch track acquired by the terminal is two centimeters, the page number on the second screen can be changed from 52 to 54, at this time, the first target page is the page with the page number of 54, and only the page number of 54 is displayed on the first target page, and the specific content of the page cannot be displayed; if the finger of the user slides one centimeter rightward on the second screen again, that is, when the finger of the user slides three centimeters on the second screen, the length value of the touch trajectory that the terminal can acquire is three centimeters, the page number on the second screen can be jumped from 54 to 56, at this time, the first target page is a page with the page number of 56, and only the page number of 56 is displayed on the first target page, and the specific content of the page cannot be displayed.
Similarly, after the page is switched to the direction in which the page number is smaller than the page number on the first screen, if the user touches the first screen with a finger and slides to the left on the first screen at this time, the page can be quickly switched to the previous page. The specific switching process is similar to the aforementioned process of quickly switching pages to the next page, and is not described herein again.
When the application performing page switching is a photo gallery, only thumbnails, not original images, may be displayed on a page during fast page switching.
Step 209 receives a first page switch stop command.
In step 209, a fast page switch may be achieved when the user's finger slides across the screen. When the finger of the user leaves the screen, the terminal receives a first page switch stop instruction. And the terminal stops performing the fast page switching according to the first page switching stop instruction.
In step 2010, after receiving the first page switch stop instruction, the terminal determines a second target page according to the first page switch stop instruction, and displays the content of the second target page.
For example, when the application performing page switching is an electronic book, after receiving a first page switching stop instruction, the terminal determines a second target page according to the first page switching stop instruction, that is, determines a target page number of the electronic book according to the first page switching stop instruction, and displays the content of the second target page, that is, displays the content of the page where the target page number is located; when the application for page switching is a photo library, after receiving a first page switching stop instruction, the terminal determines a second target page according to the first page switching stop instruction, namely determines a target thumbnail according to the first page switching stop instruction, and then displays the content of the second target page, namely displays a target original image corresponding to the target thumbnail.
Therefore, the first screen and the second screen of the terminal are relatively folded, the first screen and the second screen are relatively unfolded, and when the mutual relation of the angle values between the first screen and the second screen meets the preset condition, page switching can be performed on the application on the terminal, and the terminal is convenient and fast to use. And moreover, the application can be rapidly switched. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
Fig. 3 is a flowchart of another page switching method provided in an embodiment of the present invention, which is applied to a terminal equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen. As shown in fig. 3, the method comprises the following steps:
The first screen and the second screen can be relatively close to each other and then relatively spread, so that the angle value between the first screen and the second screen is continuously changed. The process of continuously changing the angle value between the first screen and the second screen can be recorded as a folding operation process, that is, the process of relatively closing the first screen and the second screen and then relatively unfolding the first screen and the second screen can be recorded as a folding operation process. The angle value between the two screens at the start of the folding operation is noted as a first angle value, and the first angle value is represented by x 1.
When the first screen and the second screen are relatively closed, the terminal can detect that the angle value between the first screen and the second screen is changed, and can detect that the angle value between the two screens is gradually reduced. When the first screen and the second screen stop relatively approaching, the terminal can detect that the angle value between the two screens is not changed any more, namely, can detect that the angle value between the two screens is not reduced any more. At this time, the terminal may obtain an angle value between the two screens after the first screen and the second screen stop being relatively closed, that is, the terminal may obtain an angle value between the two screens when the first screen and the second screen are unfolded from the close position, and record the angle value as a second angle value, and record the second angle value as x 2.
After the two screens are relatively closed, the two screens can be relatively unfolded. At this time, the terminal detects that the angle between the two screens has changed again within the preset time period, and can detect that the angle between the two screens is gradually increased. When the first screen and the second screen stop being relatively unfolded, the terminal can detect that the angle value between the two screens is not changed any more, that is, can detect that the angle value between the two screens is not increased any more. At this time, the terminal may obtain the angle value between the two screens after the first screen and the second screen stop being relatively unfolded, that is, the terminal may obtain the angle value between the two screens when the folding operation process is finished, and record the angle value as a third angle value, and record the third angle value as x 3.
In step 302, after the first angle value x1, the second angle value x2 between the two screens after the first screen and the second screen are relatively close, and the third angle value x3 between the two screens after the first screen and the second screen are relatively spread are obtained, it can be further determined whether the relationship among the first angle value x1, the second angle value x2, and the third angle value x3 meets the preset condition.
It may be determined whether the absolute value of the difference between the first angle value x1 and the second angle value x2 is greater than or equal to a preset fourth threshold. The preset fourth threshold value can be set arbitrarily, and is denoted as d. For example, the user may set the preset fourth threshold to 60 degrees, i.e., let d be 60 degrees. That is, the terminal can determine whether | x1-x2| ≧ d is true, that is, whether | x1-x2| ≧ 60 degrees is true.
The terminal may further determine whether an absolute value of a difference between the third angle value x3 and the second angle value x2 is greater than or equal to a preset fourth threshold value d. That is, the terminal can determine whether | x3-x2| ≧ d is true, that is, whether | x3-x2| ≧ 60 degrees is true.
If the terminal determines that the absolute value of the difference between the first angle value x1 and the second angle value x2 is greater than or equal to a preset fourth threshold d, and the absolute value of the difference between the third angle value x3 and the second angle value x2 is greater than or equal to the preset fourth threshold d, that is, if the terminal determines that | x1-x2| ≧ d is true and | x3-x2| ≧ d is true, that is, if the terminal determines that | x1-x2| ≧ 60 degrees is true and | x3-x2| ≧ 60 degrees is true, the terminal may further determine whether the second angle value x2 is greater than a preset fifth threshold. The preset fifth threshold may be set arbitrarily, and may be denoted as e. For example, the user may set the preset fifth threshold to 30 degrees, i.e., let e be 30 degrees. That is, the terminal can determine whether x2>30 degrees holds.
In step 303, if the terminal determines that the second angle value x2 is less than or equal to a preset fifth threshold e, i.e. x2 is less than or equal to e, i.e. x2 is less than or equal to 30 degrees, the page is switched to a direction in which the page number is less than the page number on the first screen.
And step 304, if the second angle value is larger than a preset fifth threshold, switching the page to the direction in which the page number is larger than the page number on the second screen.
In step 304, if the terminal determines that the second angle value x2 is greater than a preset fifth threshold value e, i.e., x2> e, i.e., x2>30 degrees, the page is switched in a direction in which the page number is greater than the page number on the second screen.
Optionally, the page switching is performed, including:
judging whether the angle value between the first screen and the reference plane is changed in the folding operation process;
judging whether the angle value between the second screen and the reference plane is changed in the folding operation process;
if the angle value between the first screen and the reference plane is changed in the folding operation process and the angle value between the second screen and the reference plane is not changed in the folding operation process, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the angle value between the second screen and the reference plane is changed in the folding operation process and the angle value between the first screen and the reference plane is not changed in the folding operation process, switching the page to the direction in which the page number is larger than the page number on the second screen.
When the first screen and the second screen are relatively close to each other and then relatively spread, the two screens can both generate motion. It may also be the case that the change in the value of the angle between the first screen and the second screen occurs because the first screen remains stationary with respect to the reference plane and the second screen acts with respect to the first screen; alternatively, the change in the value of the angle between the first screen and the second screen occurs because the second screen remains stationary relative to the reference plane and the first screen moves relative to the second screen. Wherein the reference plane may be a horizontal plane.
The terminal may determine whether an angle value between the first screen and the reference plane is changed during the folding operation and whether an angle value between the second screen and the reference plane is changed during the folding operation. If the terminal judges that the angle value between the first screen and the reference plane is changed in the folding operation process and the angle value between the second screen and the reference plane is not changed in the folding operation process, namely the change of the angle value between the first screen and the second screen is caused by the fact that the second screen is kept still relative to the reference plane and the first screen acts relative to the second screen, namely the change of the angle value between the first screen and the second screen is caused by the fact that the second screen is kept still, only the first screen is folded and the first screen is unfolded, and page switching is carried out in the direction in which the page number is smaller than the page number on the first screen.
If the terminal judges that the angle value between the second screen and the reference plane is changed in the folding operation process and the angle value between the first screen and the reference plane is not changed in the folding operation process, namely the change of the angle value between the first screen and the second screen is caused by the fact that the first screen is kept still relative to the reference plane and the second screen acts relative to the first screen, namely the change of the angle value between the first screen and the second screen is caused by the fact that the first screen is kept still, only the second screen is folded and the second screen is unfolded, and page switching is carried out in the direction in which the page number is larger than the page number on the second screen.
And 305, receiving a second touch operation on the screen of the terminal.
In step 305, after the terminal performs page switching on the application, the terminal may also perform fast page switching on the application. For example, the terminal may detect whether a second touch operation to the screen of the terminal is received.
And step 306, determining a touch track corresponding to the second touch operation.
In step 306, if a second touch operation on the screen of the terminal is received, the terminal may determine a touch trajectory corresponding to the second touch operation.
For example, the second screen is kept still, only the first screen is folded, and then the first screen is unfolded, so that the page switching is performed in the direction in which the page number is smaller than that on the first screen. Then if the user's finger touches the first screen and slides to the left on the first screen. The terminal detects a second touch operation, and further determines a touch track corresponding to the second touch operation, namely detects a touch track drawn by a finger of a user when the finger slides on the first screen.
And 307, acquiring the sliding speed of the touch track.
After the terminal determines the touch trajectory, the sliding speed of the touch trajectory may be acquired in step 307.
It should be noted that, when performing fast page switching, the number of pages to be switched fast may be directly proportional to the sliding speed of the touch trajectory.
And 308, determining a third target page corresponding to the sliding speed of the touch track, and displaying a schematic diagram of the third target page.
In step 308, after the terminal acquires the sliding speed of the touch trajectory, it may determine a third target page corresponding to the sliding speed of the touch trajectory, and display a schematic diagram of the third target page.
The number of pages that switch fast can be directly proportional to the speed of sliding of touch trajectory, and the speed of sliding is the bigger, and the number of pages that switch fast is more, and the finger that also means the user slides on the screen the faster, and the number of pages that switch fast is more.
When the application for switching the page is an electronic book, only the amplified page number can be displayed on the page without displaying the specific content of the page in the process of fast switching the page; when the application performing page switching is a photo gallery, only thumbnails, not original pictures, may be displayed on a page in the process of performing fast page switching.
Optionally, the first target page is an enlarged page number.
As described above, when the application performing the page switching is an electronic book, in the process of performing the fast page switching, the schematic diagram of the first target page may be an enlarged page number.
Optionally, the third target page is an enlarged page number.
As described above, when the application performing the page switching is an electronic book, in the process of performing the fast page switching, the schematic diagram of the third target page may be an enlarged page number.
In step 309, when the user's finger slides on the screen, a fast page switch can be achieved. When the finger of the user leaves the screen, the terminal receives a second page switching stop instruction. And the terminal stops performing the fast page switching according to the second page switching stop instruction.
And 3010, determining a fourth target page according to the second page switching stop instruction, and displaying the content of the fourth target page.
In step 3010, after receiving the second page switch stop instruction, the terminal determines a fourth target page according to the second page switch stop instruction, and displays the content of the fourth target page.
For example, when the application performing page switching is an electronic book, after receiving a second page switching stop instruction, the terminal determines a fourth target page according to the second page switching stop instruction, that is, determines a target page number of the electronic book according to the second page switching stop instruction, and displays the content of the fourth target page, that is, displays the content of the page where the target page number is located; when the application for page switching is a photo gallery, after receiving a second page switching stop instruction, the terminal determines a fourth target page according to the second page switching stop instruction, namely determines a target thumbnail according to the second page switching stop instruction, and further displays the content of the fourth target page, namely displays a target original image corresponding to the target thumbnail.
Therefore, the first screen and the second screen of the terminal are relatively folded, the first screen and the second screen are relatively unfolded, and when the mutual relation of the angle values between the first screen and the second screen meets the preset condition, page switching can be performed on the application on the terminal, and the terminal is convenient and fast to use. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
Fig. 4 is a structural diagram of a terminal provided in an implementation of the present invention, where the terminal is equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen, as shown in fig. 4, the terminal 400 includes a first obtaining module 401 and a switching module 402, where:
a first obtaining module 401, configured to obtain a first angle value, a second angle value, and a third angle value between a first screen and a second screen in a folding operation process, where the folding operation process is a process in which an angle value between the first screen and the second screen continuously changes, the first angle value is an angle value between the two screens at a start of the folding operation process, the second angle value is an angle value between the two screens from a position close to the second screen to a position open to the first screen, and the third angle value is an angle value between the two screens at an end of the folding operation process;
a switching module 402, configured to perform page switching if a relationship between the first angle value acquired by the first acquiring module 401, the second angle value acquired by the first acquiring module 401, and the third angle value acquired by the first acquiring module 401 meets a preset condition.
Optionally, the switching module 402 is specifically configured to:
if the second angle value acquired by the first acquiring module 401 is smaller than or equal to a preset first threshold, and the absolute value of the difference between the first angle value acquired by the first acquiring module 401 and the third angle value acquired by the first acquiring module 401 is smaller than or equal to a preset second threshold, the page switching is performed.
Optionally, as shown in fig. 5, the switching module 402 includes:
the first determining sub-module 4021 is configured to determine whether the second angle value acquired by the first acquiring module 401 is greater than a preset third threshold, where the preset third threshold is smaller than the preset first threshold;
the first switching sub-module 4022 is configured to switch the page in a direction in which the page number is smaller than the page number on the first screen if the first determining sub-module 4021 determines that the second angle value is smaller than or equal to a preset third threshold;
the second switching sub-module 4023 is configured to switch the page in a direction in which the page number is greater than the page number on the second screen if the first determining sub-module 4021 determines that the second angle value is greater than a preset third threshold and is less than or equal to a preset first threshold, and an absolute value of a difference between the first angle value acquired by the first acquiring module 401 and the third angle value acquired by the first acquiring module 401 is less than or equal to a preset second threshold.
Optionally, the switching module 402 is specifically configured to:
if the absolute value of the difference between the first angle value acquired by the first acquiring module 401 and the second angle value acquired by the first acquiring module 401 is greater than or equal to a preset fourth threshold, and the absolute value of the difference between the third angle value acquired by the first acquiring module 401 and the second angle value acquired by the first acquiring module 401 is greater than or equal to a preset fourth threshold, page switching is performed.
Optionally, as shown in fig. 6, the switching module 402 includes:
the second determining sub-module 4024 is configured to determine whether the second angle value acquired by the first acquiring module 401 is greater than a preset fifth threshold;
the third switching sub-module 4025 is configured to switch the page in a direction in which the page number is smaller than the page number on the first screen if the second determining sub-module 4024 determines that the second angle value is smaller than or equal to a preset fifth threshold;
the fourth switching sub-module 4026 is configured to switch the page in a direction in which the page number is greater than the page number on the second screen if the second determining sub-module 4024 determines that the second angle value is greater than a preset fifth threshold.
Optionally, as shown in fig. 7, the switching module 402 includes:
a third judging sub-module 4027, configured to judge whether an angle value between the first screen and the reference plane has changed in the folding operation process;
a fourth judging sub-module 4028, configured to judge whether an angle value between the second screen and the reference plane has changed in the folding operation process;
the fifth switching sub-module 4029 is configured to perform page switching in a direction in which the page number is smaller than the page number on the first screen if the third determining sub-module 4027 determines that the angle value between the first screen and the reference plane has changed during the folding operation, and the fourth determining sub-module 4028 determines that the angle value between the second screen and the reference plane has not changed during the folding operation;
the sixth switching sub-module 40210 is configured to switch the page in a direction in which the page number is greater than the page number on the second screen if the fourth determining sub-module 4028 determines that the angle value between the second screen and the reference plane has changed during the folding operation, and the third determining sub-module 4027 determines that the angle value between the first screen and the reference plane has not changed during the folding operation.
Optionally, as shown in fig. 8, the terminal further includes:
a first receiving module 403, configured to receive a first touch operation on a screen of a terminal;
a first determining module 404, configured to determine a touch trajectory corresponding to the first touch operation received by the first receiving module 403;
a second obtaining module 405, configured to obtain a length value of the touch trajectory determined by the first determining module 404;
a first display module 406, configured to determine a first target page corresponding to the length value of the touch trajectory acquired by the second acquisition module 405, and display a schematic diagram of the first target page;
a second receiving module 407, configured to receive a first page switch stop instruction;
the second displaying module 408 is configured to determine a second target page according to the first page switching stop instruction received by the second receiving module 407, and display the content of the second target page.
Optionally, as shown in fig. 9, the terminal further includes:
a third receiving module 409, configured to receive a second touch operation on the screen of the terminal;
a second determining module 4010, configured to determine a touch trajectory corresponding to the second touch operation received by the third receiving module 409;
a third obtaining module 4011, configured to obtain a sliding speed of the touch trajectory determined by the second determining module 4010;
a third display module 4012, configured to determine a third target page corresponding to the sliding speed of the touch trajectory acquired by the third acquisition module 4011, and display a schematic diagram of the third target page;
a fourth receiving module 4013, configured to receive a second page switch stop instruction;
the fourth display module 4014 is configured to determine a fourth target page according to the second page switching stop instruction received by the fourth receiving module 4013, and display content of the fourth target page.
Optionally, the first target page is an enlarged page number.
Optionally, the third target page is an enlarged page number.
The terminal 400 can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition. And as long as the first screen and the second screen of the terminal 400 are relatively folded, and then the first screen and the second screen are relatively unfolded, and when the correlation of the angle values between the first screen and the second screen meets the preset condition, the page switching can be performed on the application on the terminal 400, which is convenient and fast. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
Referring to fig. 10, fig. 10 is a block diagram of a terminal provided in an implementation of the present invention, the terminal being equipped with a flexible screen, and the flexible screen being foldable to have a first screen and a second screen, as shown in fig. 10, the terminal 1000 includes: at least one processor 1001, memory 1002, at least one network interface 1004, and a user interface 1003. The various components in terminal 1000 are coupled together by a bus system 1005. It is understood that bus system 1005 is used to enable communications among the components connected. The bus system 1005 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. But for the sake of clarity the various busses are labeled in figure 10 as the bus system 1005.
The user interface 1003 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It is to be understood that the memory 1002 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 1002 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 1002 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 10021 and applications 10022.
The operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 10022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program implementing the method according to the embodiment of the present invention may be included in the application program 10022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 1002, specifically, a program or an instruction stored in the application 10022, the processor 1001 is configured to:
acquiring a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, wherein the folding operation process is a process of continuously changing the angle value between the first screen and the second screen, the first angle value is the angle value between the two screens at the beginning of the folding operation process, the second angle value is the angle value between the two screens from the close to the open of the first screen and the second screen, and the third angle value is the angle value between the two screens at the end of the folding operation process;
and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page.
The method disclosed by the embodiment of the invention can be applied to the processor 1001 or can be implemented by the processor 1001. The processor 1001 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 1001. The Processor 1001 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002 and performs the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the present application, or a combination thereof.
For a software implementation, the techniques herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, if the relationship between the first angle value, the second angle value, and the third angle value satisfies a preset condition, the processor 1001 performs page switching, including:
and if the second angle value is smaller than or equal to a preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to a preset second threshold value, page switching is carried out.
Optionally, the processor 1001 performs page switching, including:
judging whether the second angle value is larger than a preset third threshold value, wherein the preset third threshold value is smaller than the preset first threshold value;
if the second angle value is smaller than or equal to a preset third threshold value, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the second angle value is larger than a preset third threshold value and smaller than or equal to a preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to a preset second threshold value, switching the page in the direction that the page number is larger than the page number on the second screen.
Optionally, if the relationship between the first angle value, the second angle value, and the third angle value satisfies a preset condition, the processor 1001 performs page switching, including:
and if the absolute value of the difference value between the first angle value and the second angle value is greater than or equal to a preset fourth threshold value, and the absolute value of the difference value between the third angle value and the second angle value is greater than or equal to the preset fourth threshold value, switching the page.
Optionally, the processor 1001 performs page switching, including:
judging whether the second angle value is larger than a preset fifth threshold value or not;
if the second angle value is smaller than or equal to a preset fifth threshold, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the second angle value is larger than a preset fifth threshold, switching the page in the direction that the page number is larger than the page number on the second screen.
Optionally, the processor 1001 performs page switching, including:
judging whether the angle value between the first screen and the reference plane is changed in the folding operation process;
judging whether the angle value between the second screen and the reference plane is changed in the folding operation process;
if the angle value between the first screen and the reference plane is changed in the folding operation process and the angle value between the second screen and the reference plane is not changed in the folding operation process, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the angle value between the second screen and the reference plane is changed in the folding operation process and the angle value between the first screen and the reference plane is not changed in the folding operation process, switching the page to the direction in which the page number is larger than the page number on the second screen.
Optionally, after performing page switching, the processor 1001 is further configured to:
receiving a first touch operation on a screen of a terminal;
determining a touch track corresponding to the first touch operation;
acquiring a length value of a touch track;
determining a first target page corresponding to the length value of the touch track, and displaying a schematic diagram of the first target page;
receiving a first page switching stop instruction;
and determining a second target page according to the first page switching stop instruction, and displaying the content of the second target page.
Optionally, after performing page switching, the processor 1001 is further configured to:
receiving a second touch operation on a screen of the terminal;
determining a touch track corresponding to the second touch operation;
acquiring the sliding speed of a touch track;
determining a third target page corresponding to the sliding speed of the touch track, and displaying a schematic diagram of the third target page;
receiving a second page switching stop instruction;
and determining a fourth target page according to the second page switching stop instruction, and displaying the content of the fourth target page.
Optionally, the processor 1001 executes the first target page as an enlarged page number.
Optionally, the processor 1001 executes the third target page as an enlarged page number.
Terminal 1000 can implement each process implemented by the terminal in the foregoing embodiments, and details are not described here to avoid repetition. And as long as the first screen and the second screen of the terminal 1000 are relatively folded, and then the first screen and the second screen are relatively unfolded, and when the correlation of the angle values between the first screen and the second screen meets the preset condition, the page switching can be performed on the application on the terminal 1000, which is convenient and fast. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
Referring to fig. 11, fig. 11 is a block diagram of a terminal provided in an embodiment of the present invention, the terminal is equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen, as shown in fig. 11, a terminal 1100 includes a Radio Frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a processor 1150, an audio circuit 1160, a communication module 1170, a power supply 1180, and a camera 1190.
The input unit 1130 may be used to receive numeric or character information input by a user and generate signal inputs related to user settings and function control of the terminal 1100, among other things. Specifically, in the embodiment of the present invention, the input unit 1130 may include a touch panel 1131. The touch panel 1131, also referred to as a touch screen, can collect touch operations of a user (for example, operations of the user on the touch panel 1131 by using a finger, a stylus pen, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device 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 the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1150, and can receive and execute commands sent by the processor 1150. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132, and the other input devices 1132 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.
Among other things, the display unit 1140 may be used to display information input by the user or information provided to the user and various menu interfaces of the terminal 1100. The display unit 1140 may include a display panel 1141, and optionally, the display panel 1141 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 1131 may cover the display panel 1141 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 1150 to determine the type of the touch event, and then the processor 1150 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 1150 is a control center of the terminal 1100, connects various parts of the entire mobile phone by using various interfaces and lines, and executes various functions and processes data of the terminal 1100 by operating or executing software programs and/or modules stored in the first memory 1121 and calling data stored in the second memory 1122, thereby integrally monitoring the terminal 1100. Optionally, processor 1150 may include one or more processing units.
In an embodiment of the present invention, the processor 1150, by invoking software programs and/or modules stored in the first memory 1121 and/or data stored in the second memory 1122, is configured to:
acquiring a first angle value, a second angle value and a third angle value between a first screen and a second screen in the folding operation process, wherein the folding operation process is a process of continuously changing the angle value between the first screen and the second screen, the first angle value is the angle value between the two screens at the beginning of the folding operation process, the second angle value is the angle value between the two screens from the close to the open of the first screen and the second screen, and the third angle value is the angle value between the two screens at the end of the folding operation process;
and if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, switching the page.
Optionally, if the relationship between the first angle value, the second angle value, and the third angle value satisfies a preset condition, the processor 1150 performs page switching, including:
and if the second angle value is smaller than or equal to a preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to a preset second threshold value, page switching is carried out.
Optionally, the processor 1150 performs page switching, including:
judging whether the second angle value is larger than a preset third threshold value, wherein the preset third threshold value is smaller than the preset first threshold value;
if the second angle value is smaller than or equal to a preset third threshold value, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the second angle value is larger than a preset third threshold value and smaller than or equal to a preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to a preset second threshold value, switching the page in the direction that the page number is larger than the page number on the second screen.
Optionally, if the relationship between the first angle value, the second angle value, and the third angle value satisfies a preset condition, the processor 1150 performs page switching, including:
and if the absolute value of the difference value between the first angle value and the second angle value is greater than or equal to a preset fourth threshold value, and the absolute value of the difference value between the third angle value and the second angle value is greater than or equal to the preset fourth threshold value, switching the page.
Optionally, the processor 1150 performs page switching, including:
judging whether the second angle value is larger than a preset fifth threshold value or not;
if the second angle value is smaller than or equal to a preset fifth threshold, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the second angle value is larger than a preset fifth threshold, switching the page in the direction that the page number is larger than the page number on the second screen.
Optionally, the processor 1150 performs page switching, including:
judging whether the angle value between the first screen and the reference plane is changed in the folding operation process;
judging whether the angle value between the second screen and the reference plane is changed in the folding operation process;
if the angle value between the first screen and the reference plane is changed in the folding operation process and the angle value between the second screen and the reference plane is not changed in the folding operation process, page switching is carried out in the direction that the page number is smaller than the page number on the first screen;
and if the angle value between the second screen and the reference plane is changed in the folding operation process and the angle value between the first screen and the reference plane is not changed in the folding operation process, switching the page to the direction in which the page number is larger than the page number on the second screen.
Optionally, after performing page switching, the processor 1150 is further configured to:
receiving a first touch operation on a screen of a terminal;
determining a touch track corresponding to the first touch operation;
acquiring a length value of a touch track;
determining a first target page corresponding to the length value of the touch track, and displaying a schematic diagram of the first target page;
receiving a first page switching stop instruction;
and determining a second target page according to the first page switching stop instruction, and displaying the content of the second target page.
Optionally, after performing page switching, the processor 1150 is further configured to:
receiving a second touch operation on a screen of the terminal;
determining a touch track corresponding to the second touch operation;
acquiring the sliding speed of a touch track;
determining a third target page corresponding to the sliding speed of the touch track, and displaying a schematic diagram of the third target page;
receiving a second page switching stop instruction;
and determining a fourth target page according to the second page switching stop instruction, and displaying the content of the fourth target page.
Optionally, processor 1150 executes the first target page as an enlarged page number.
Optionally, processor 1150 executes the third target page as an enlarged page number.
1100 can implement the various processes implemented by the terminal in the foregoing embodiments, and are not described here again to avoid repetition. And as long as the first screen and the second screen of the terminal 1100 are relatively folded, and then the first screen and the second screen are relatively unfolded, and when the correlation of the angle values between the first screen and the second screen meets the preset condition, the page switching can be performed on the application on the terminal 1100, which is convenient and fast. Meanwhile, the false triggering condition is effectively prevented. Moreover, the operation mode is very similar to the mode of turning over books or photo albums in real life, so that the user can remember the operation mode conveniently, and the page switching efficiency is improved.
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 invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or 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.
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 of the present invention.
In addition, functional units in the embodiments of the present invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (18)
1. A page switching method is applied to a terminal equipped with a flexible screen, and the flexible screen can be folded to have a first screen and a second screen, the method comprising:
acquiring a first angle value, a second angle value and a third angle value between the first screen and the second screen in the folding operation process, wherein the folding operation process is a process in which the angle value between the first screen and the second screen continuously changes, the first angle value is the angle value between the two screens at the beginning of the folding operation process, the second angle value is the angle value between the two screens from the close to the open of the first screen and the second screen, and the third angle value is the angle value between the two screens at the end of the folding operation process;
if the relation among the first angle value, the second angle value and the third angle value meets a preset condition, page switching is carried out;
if the relationship among the first angle value, the second angle value and the third angle value meets a preset condition, page switching is performed, and the method comprises the following steps:
and if the second angle value is smaller than or equal to a preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to a preset second threshold value, switching the page.
2. The method of claim 1, wherein the performing page switching comprises:
judging whether the second angle value is larger than a preset third threshold value, wherein the preset third threshold value is smaller than the preset first threshold value;
if the second angle value is smaller than or equal to the preset third threshold, page switching is performed in a direction that the page number is smaller than the page number on the first screen;
if the second angle value is larger than the preset third threshold value and smaller than or equal to the preset first threshold value, and the absolute value of the difference value between the first angle value and the third angle value is smaller than or equal to the preset second threshold value, page switching is performed in the direction that the page number is larger than the page number on the second screen.
3. The method of claim 1, wherein the page switching if the relationship among the first angle value, the second angle value, and the third angle value satisfies a predetermined condition comprises:
and if the absolute value of the difference value between the first angle value and the second angle value is greater than or equal to a preset fourth threshold value, and the absolute value of the difference value between the third angle value and the second angle value is greater than or equal to the preset fourth threshold value, page switching is performed.
4. The method of claim 3, wherein the performing page switching comprises:
judging whether the second angle value is larger than a preset fifth threshold value or not;
if the second angle value is smaller than or equal to the preset fifth threshold, performing page switching in a direction in which the page number is smaller than the page number on the first screen;
and if the second angle value is larger than the preset fifth threshold, switching the page to the direction in which the page number is larger than the page number on the second screen.
5. The method of claim 1, wherein the performing page switching comprises:
judging whether the angle value between the first screen and the reference plane is changed in the folding operation process;
judging whether the angle value between the second screen and the reference plane is changed in the folding operation process;
if the angle value between the first screen and the reference plane is changed in the folding operation process and the angle value between the second screen and the reference plane is not changed in the folding operation process, performing page switching in the direction of which the page number is smaller than the page number on the first screen;
if the angle value between the second screen and the reference plane is changed in the folding operation process and the angle value between the first screen and the reference plane is not changed in the folding operation process, page switching is performed in the direction that the page number is larger than the page number on the second screen.
6. The method of claim 1, wherein after the page switching, the method further comprises:
receiving a first touch operation on a screen of the terminal;
determining a touch track corresponding to the first touch operation;
acquiring a length value of the touch track;
determining a first target page corresponding to the length value of the touch track, and displaying a schematic diagram of the first target page;
receiving a first page switching stop instruction;
and determining a second target page according to the first page switching stop instruction, and displaying the content of the second target page.
7. The method of claim 1, wherein after the page switching, the method further comprises:
receiving a second touch operation on the screen of the terminal;
determining a touch track corresponding to the second touch operation;
acquiring the sliding speed of the touch track;
determining a third target page corresponding to the sliding speed of the touch track, and displaying a schematic diagram of the third target page;
receiving a second page switching stop instruction;
and determining a fourth target page according to the second page switching stop instruction, and displaying the content of the fourth target page.
8. The method of claim 6, wherein the first target page is an enlarged page number.
9. The method of claim 7, wherein the third target page is an enlarged page number.
10. A terminal, characterized in that the terminal is equipped with a flexible screen, and the flexible screen is foldable to have a first screen and a second screen, the terminal comprising:
a first obtaining module, configured to obtain a first angle value, a second angle value, and a third angle value between the first screen and the second screen in a folding operation process, where the folding operation process is a process in which an angle value between the first screen and the second screen continuously changes, the first angle value is an angle value between the two screens at a start of the folding operation process, the second angle value is an angle value between the two screens from a position close to a position in which the first screen and the second screen are unfolded, and the third angle value is an angle value between the two screens at an end of the folding operation process;
the switching module is used for switching pages if the relationship between the first angle value acquired by the first acquisition module, the second angle value acquired by the first acquisition module and the third angle value acquired by the first acquisition module meets a preset condition;
the switching module is specifically configured to:
and if the second angle value acquired by the first acquisition module is smaller than or equal to a preset first threshold value, and the absolute value of the difference between the first angle value acquired by the first acquisition module and the third angle value acquired by the first acquisition module is smaller than or equal to a preset second threshold value, performing page switching.
11. The terminal of claim 10, wherein the switching module comprises:
the first judgment submodule is used for judging whether the second angle value acquired by the first acquisition module is larger than a preset third threshold value, and the preset third threshold value is smaller than the preset first threshold value;
the first switching submodule is used for switching the page in the direction that the page number is smaller than the page number on the first screen if the first judging submodule judges that the second angle value is smaller than or equal to the preset third threshold;
and the second switching submodule is used for switching the page in the direction that the page number is greater than the page number on the second screen if the first judging submodule judges that the second angle value is greater than the preset third threshold value and is less than or equal to the preset first threshold value, and the absolute value of the difference value between the first angle value acquired by the first acquiring module and the third angle value acquired by the first acquiring module is less than or equal to the preset second threshold value.
12. The terminal of claim 10, wherein the handover module is specifically configured to:
if the absolute value of the difference between the first angle value acquired by the first acquisition module and the second angle value acquired by the first acquisition module is greater than or equal to a preset fourth threshold, and the absolute value of the difference between the third angle value acquired by the first acquisition module and the second angle value acquired by the first acquisition module is greater than or equal to the preset fourth threshold, page switching is performed.
13. The terminal of claim 12, wherein the switching module comprises:
the second judgment submodule is used for judging whether the second angle value acquired by the first acquisition module is larger than a preset fifth threshold value or not;
a third switching submodule, configured to switch the page in a direction in which the page number is smaller than the page number on the first screen if the second determining submodule determines that the second angle value is smaller than or equal to the preset fifth threshold;
and the fourth switching submodule is configured to switch the page in a direction in which the page number is greater than the page number on the second screen if the second judgment submodule judges that the second angle value is greater than the preset fifth threshold.
14. The terminal of claim 10, wherein the switching module comprises:
the third judgment submodule is used for judging whether the angle value between the first screen and the reference plane is changed in the folding operation process;
the fourth judgment submodule is used for judging whether the angle value between the second screen and the reference plane is changed in the folding operation process;
a fifth switching sub-module, configured to perform page switching in a direction where the page number is smaller than the page number on the first screen if the third determining sub-module determines that the angle value between the first screen and the reference plane has changed in the folding operation process, and the fourth determining sub-module determines that the angle value between the second screen and the reference plane has not changed in the folding operation process;
and the sixth switching sub-module is configured to perform page switching in a direction in which the page number is greater than the page number on the second screen if the fourth determining sub-module determines that the angle value between the second screen and the reference plane has changed in the folding operation process, and the third determining sub-module determines that the angle value between the first screen and the reference plane has not changed in the folding operation process.
15. The terminal of claim 10, wherein the terminal further comprises:
the terminal comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a first touch operation on a screen of the terminal;
the first determining module is used for determining a touch track corresponding to the first touch operation received by the first receiving module;
the second obtaining module is used for obtaining the length value of the touch track determined by the first determining module;
the first display module is used for determining a first target page corresponding to the length value of the touch track acquired by the second acquisition module and displaying a schematic diagram of the first target page;
the second receiving module is used for receiving the first page switching stop instruction;
and the second display module is used for determining a second target page according to the first page switching stop instruction received by the second receiving module and displaying the content of the second target page.
16. The terminal of claim 10, wherein the terminal further comprises:
the third receiving module is used for receiving a second touch operation on the screen of the terminal;
a second determining module, configured to determine a touch trajectory corresponding to the second touch operation received by the third receiving module;
a third obtaining module, configured to obtain a sliding speed of the touch trajectory determined by the second determining module;
the third display module is used for determining a third target page corresponding to the sliding speed of the touch track acquired by the third acquisition module and displaying a schematic diagram of the third target page;
the fourth receiving module is used for receiving a second page switching stop instruction;
and the fourth display module is used for determining a fourth target page according to the second page switching stop instruction received by the fourth receiving module and displaying the content of the fourth target page.
17. The terminal of claim 15, wherein the first target page is an enlarged page number.
18. The terminal of claim 16, wherein the third target page is an enlarged page number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710356141.0A CN107179865B (en) | 2017-05-19 | 2017-05-19 | Page switching method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710356141.0A CN107179865B (en) | 2017-05-19 | 2017-05-19 | Page switching method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107179865A CN107179865A (en) | 2017-09-19 |
CN107179865B true CN107179865B (en) | 2020-01-14 |
Family
ID=59832580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710356141.0A Active CN107179865B (en) | 2017-05-19 | 2017-05-19 | Page switching method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107179865B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107589903A (en) * | 2017-10-19 | 2018-01-16 | 广东欧珀移动通信有限公司 | Method and device for displaying multi-page display information |
CN110045905A (en) * | 2018-01-15 | 2019-07-23 | 中兴通讯股份有限公司 | Data display method and device, terminal |
WO2020077569A1 (en) * | 2018-10-17 | 2020-04-23 | 深圳市柔宇科技有限公司 | Foldable electronic device and input control method |
CN109542552A (en) * | 2018-10-24 | 2019-03-29 | 维沃移动通信有限公司 | A kind of display control method and terminal device |
CN112703480A (en) * | 2018-10-29 | 2021-04-23 | 深圳市柔宇科技股份有限公司 | Control method of folding mobile terminal and folding mobile terminal |
CN109947315B (en) * | 2019-03-04 | 2024-05-14 | Oppo广东移动通信有限公司 | Split screen display method and device, electronic equipment and computer readable storage medium |
CN109976633B (en) * | 2019-03-15 | 2021-10-22 | Oppo广东移动通信有限公司 | Interface interaction method and device, electronic device and storage medium |
CN110058828B (en) * | 2019-04-01 | 2022-06-21 | Oppo广东移动通信有限公司 | Application display method, device, electronic device and storage medium |
CN110072007A (en) * | 2019-04-15 | 2019-07-30 | 珠海格力电器股份有限公司 | Page turning method and system based on folding screen mobile terminal and folding screen mobile terminal |
CN110072014B (en) * | 2019-05-20 | 2021-04-09 | 维沃移动通信有限公司 | Screen folding state determining method and mobile terminal |
CN110209243A (en) * | 2019-05-31 | 2019-09-06 | 网易(杭州)网络有限公司 | Method and apparatus, the storage medium, electronic equipment of mobile terminal control |
CN110413168B (en) * | 2019-07-23 | 2021-06-08 | 维沃移动通信有限公司 | Icon management method and terminal |
CN112988028B (en) * | 2019-12-02 | 2022-09-13 | 青岛海信移动通信技术股份有限公司 | Document page turning method and folding screen terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809891A (en) * | 2012-11-13 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Page switching method and device |
CN104423875A (en) * | 2013-09-11 | 2015-03-18 | 华为技术有限公司 | Information display method and device |
CN104898936A (en) * | 2014-03-07 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Page turning method and mobile device |
CN106157819A (en) * | 2016-09-26 | 2016-11-23 | 京东方科技集团股份有限公司 | A kind of display device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102031408B1 (en) * | 2014-06-18 | 2019-10-11 | 구글 엘엘씨 | Methods, systems and media for controlling playback of video using a touchscreen |
-
2017
- 2017-05-19 CN CN201710356141.0A patent/CN107179865B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809891A (en) * | 2012-11-13 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Page switching method and device |
CN104423875A (en) * | 2013-09-11 | 2015-03-18 | 华为技术有限公司 | Information display method and device |
CN104898936A (en) * | 2014-03-07 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Page turning method and mobile device |
CN106157819A (en) * | 2016-09-26 | 2016-11-23 | 京东方科技集团股份有限公司 | A kind of display device |
Also Published As
Publication number | Publication date |
---|---|
CN107179865A (en) | 2017-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107179865B (en) | Page switching method and terminal | |
CN105959553B (en) | A kind of switching method and terminal of camera | |
KR102097496B1 (en) | Foldable mobile device and method of controlling the same | |
EP2399187B1 (en) | Method and apparatus for causing display of a cursor | |
JP5970086B2 (en) | Touch screen hover input processing | |
EP3661187A1 (en) | Photography method and mobile terminal | |
US8775966B2 (en) | Electronic device and method with dual mode rear TouchPad | |
US8823749B2 (en) | User interface methods providing continuous zoom functionality | |
CN107390990B (en) | Image adjusting method and mobile terminal | |
US9524094B2 (en) | Method and apparatus for causing display of a cursor | |
CN107643912B (en) | Information sharing method and mobile terminal | |
JP2013117885A (en) | Information processing program, information processing equipment, information processing system and information processing method | |
CN106648382B (en) | A kind of picture browsing method and mobile terminal | |
JP2014026602A (en) | Display terminal device and program | |
CN106406741B (en) | A kind of operation processing method and mobile terminal of mobile terminal | |
EP2889740A1 (en) | Method, apparatus and computer program product for zooming and operating screen frame | |
KR20100105755A (en) | Wireless communication device and split touch sensitive user input surface | |
CN106970752B (en) | Screen capturing method and mobile terminal | |
CN106791422A (en) | A kind of image processing method and mobile terminal | |
CN107632761B (en) | Display content viewing method, mobile terminal and computer readable storage medium | |
JP5628991B2 (en) | Display device, display method, and display program | |
CN106713742B (en) | Shooting method and mobile terminal | |
CN107333004A (en) | A kind of photographic method and mobile terminal | |
CN107315529B (en) | Photographing method and mobile terminal | |
JP6004105B2 (en) | Input device, input control method, and input control program |
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 |