CN113056724A - Page skipping method and device, storage medium and electronic equipment - Google Patents
Page skipping method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113056724A CN113056724A CN201880098086.2A CN201880098086A CN113056724A CN 113056724 A CN113056724 A CN 113056724A CN 201880098086 A CN201880098086 A CN 201880098086A CN 113056724 A CN113056724 A CN 113056724A
- Authority
- CN
- China
- Prior art keywords
- page
- sliding
- direction information
- preset position
- target page
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000009191 jumping Effects 0.000 claims abstract description 20
- 238000004590 computer program Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
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
- 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
A page jump method comprises the following steps: when a pressing operation is detected at a preset position of a current page, acquiring a pressing duration corresponding to the pressing operation (101); if the pressing time length reaches the preset time length, detecting whether a sliding operation exists on the current page (102); if the sliding operation is detected, sliding direction information corresponding to the sliding operation is acquired (103); and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page (104).
Description
The present application belongs to the technical field of electronic devices, and in particular, to a page jump method, apparatus, storage medium, and electronic device.
As the configuration of electronic devices is continuously improved, more and more applications are installed on the electronic devices. For example, a user may install a game-like application on the electronic device to perform a game operation. Alternatively, the user may install a video playback-type application on the electronic device, thereby watching a video, etc. The applications can greatly enrich the life of the user and improve the working efficiency of the user. However, as more and more applications are installed on the electronic device, the electronic device needs to display icons of the applications using a plurality of pages. This results in low efficiency when the user performs the page turning operation on the page, that is, the efficiency of the electronic device performing the page jump is low.
Disclosure of Invention
The embodiment of the application provides a page jump method, a page jump device, a storage medium and electronic equipment, which can improve the efficiency of page jump of the electronic equipment.
In a first aspect, an embodiment of the present application provides a page jump method, including:
when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;
if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;
if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;
and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
In a second aspect, an embodiment of the present application provides a page jump apparatus, including:
the device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a pressing time length corresponding to a pressing operation when the pressing operation is detected at a preset position of a current page;
the detection module is used for detecting whether sliding operation exists on the current page or not if the pressing time length reaches a preset time length;
the second acquisition module is used for acquiring sliding direction information corresponding to the sliding operation if the sliding operation is detected;
and the skipping module is used for determining a target page according to the preset position and the sliding direction information and skipping from the current page to the target page.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, where when the computer program is executed on a computer, the computer is caused to execute the page jump method provided in the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, and a processor, where the processor is configured to, by calling a computer program stored in the memory, execute:
when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;
if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;
if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;
and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
In this embodiment, the electronic device may determine a target page to be skipped according to the relevant parameter values of the pressing operation and the sliding operation, and directly skip from the current page to the target page. Therefore, compared with a mode of turning pages one by one in the related art, the present embodiment can improve the efficiency of the user in performing the page turning operation on the page, that is, the present embodiment can improve the efficiency of the electronic device in performing the page jump.
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of a page jump method provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of a page for displaying application icons according to an embodiment of the present application.
Fig. 3 is another flowchart illustrating a page jump method according to an embodiment of the present application.
Fig. 4 is a first schematic diagram of a pressing operation and a sliding operation provided in an embodiment of the present application.
Fig. 5 is a second schematic diagram of a pressing operation and a sliding operation provided in an embodiment of the present application.
Fig. 6 to fig. 11 are scene schematic diagrams of a page jump method provided in an embodiment of the present application.
Fig. 12 is a schematic structural diagram of a page jump device according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 14 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flowchart of a page jump method provided in an embodiment of the present application, where the process may include:
in 101, when a pressing operation is detected at a preset position of a current page, a pressing time length corresponding to the pressing operation is acquired.
As the configuration of electronic devices is continuously improved, more and more applications are installed on the electronic devices. For example, a user may install a game-like application on the electronic device to perform a game operation. Alternatively, the user may install a video playback-type application on the electronic device, thereby watching a video, etc. The applications can greatly enrich the life of the user and improve the working efficiency of the user. However, as more and more applications are installed on the electronic device, the electronic device needs to display icons of the applications using multiple pages (which may also be referred to as desktops). For example, as shown in fig. 2, a maximum of 9 application icons can be displayed on each page of the electronic device, and a total of 24 icons of the electronic device need to be displayed. Then, the electronic device needs to use 3 pages to display 24 application icons, wherein the first page and the 2 nd page each display 9 icons, and the 3 rd page displays 6 icons. Under the condition that the number of pages is large, the efficiency of page turning operation of the page by the user is low, namely the efficiency of page skipping of the electronic equipment is low.
In 101 of the embodiment of the present application, for example, when a pressing operation is detected at a preset position of a current page, the electronic device may acquire a pressing duration corresponding to the pressing operation. For example, if the user performs a pressing operation at a preset position of the current page, the electronic device may acquire a pressing duration corresponding to the pressing operation when detecting the pressing operation.
Then, the electronic device may detect whether the pressing duration corresponding to the pressing operation reaches a preset duration. If the pressing time period is detected to reach the preset time period, the step 102 can be entered. If the pressing time length is detected not to reach the preset time length, the electronic equipment can execute other operations.
In 102, if the pressing duration reaches the preset duration, whether a sliding operation exists on the current page is detected.
For example, when the electronic device detects that the pressing duration corresponding to the pressing operation of the user reaches the preset duration, the electronic device may detect whether a sliding operation exists on the current page.
If a swipe operation is detected on the current page, then 103 may be entered.
If no swipe operation is detected on the current page, the electronic device may perform other operations.
In 103, when the sliding operation is detected, sliding direction information corresponding to the sliding operation is acquired.
For example, when the electronic device detects a sliding operation on the current page, the electronic device may obtain sliding direction information corresponding to the sliding operation. For example, after the user performs a pressing operation at a preset position of the current page and the pressing duration reaches a preset duration, the electronic device may perform a sliding operation, and then obtain sliding direction information corresponding to the sliding operation.
In 104, a target page is determined according to the preset position and the sliding direction information, and the current page jumps to the target page.
For example, after the sliding direction information corresponding to the sliding operation is acquired, the electronic device may determine the target page according to the preset position where the pressing operation is located and the sliding direction information, and jump from the current page to the target page.
For example, a total of 4 pages are available on the electronic device for displaying application icons. The current page is a home page of the 4 pages, the electronic device determines that the target page is a 4 th page according to the preset position and the sliding direction information, and then the electronic device can directly jump to the 4 th page from the current home page. Without requiring the user to page from the home page to page 4 one by one.
It can be understood that, in this embodiment, the electronic device may determine a target page to be skipped according to the relevant parameter values of the pressing operation and the sliding operation, and directly skip from the current page to the target page. Therefore, compared with a mode of turning pages one by one in the related art, the present embodiment can improve the efficiency of the user in performing the page turning operation on the page, that is, the present embodiment can improve the efficiency of the electronic device in performing the page jump.
Referring to fig. 3, fig. 3 is another schematic flow chart of a page jump method according to an embodiment of the present application, where the flow chart may include:
in 201, when a pressing operation is detected at a preset position of a current page, the electronic device acquires a pressing duration corresponding to the pressing operation.
For example, a user has more applications installed on the electronic device, and icons of the applications are displayed using a total of 5 pages.
For example, if the user performs a pressing operation at a preset position of the current page, the electronic device may obtain a pressing duration corresponding to the pressing operation when detecting the pressing operation.
Then, the electronic device may detect whether the pressing duration corresponding to the pressing operation reaches a preset duration. For example, the preset time period may be 1 second, or 1.5 seconds, or 0.8 seconds, and the like, and is not particularly limited herein.
If the pressing time period is detected to reach the preset time period, 202 may be entered.
If the pressing time length is detected not to reach the preset time length, the electronic equipment can execute other operations.
In 202, if the pressing duration reaches the preset duration, the electronic device detects whether a sliding operation exists on the current page.
For example, when the electronic device detects that the pressing duration corresponding to the pressing operation of the user reaches the preset duration, the electronic device may detect whether a sliding operation exists on the current page.
If a swipe operation is detected on the current page, 203 may be entered.
If no swipe operation is detected on the current page, the electronic device may perform other operations.
At 203, if the sliding operation is detected, the electronic device acquires sliding direction information corresponding to the sliding operation.
For example, when the electronic device detects a sliding operation on the current page, the electronic device may obtain sliding direction information corresponding to the sliding operation. For example, after the user performs a pressing operation at a preset position of the current page and the pressing duration reaches a preset duration, the electronic device may perform a sliding operation, and then obtain sliding direction information corresponding to the sliding operation.
At 204, the electronic device determines a target page according to a preset position and sliding direction information, wherein when the preset position is located in a right half area of a display screen area corresponding to the current page and the sliding direction information indicates that the sliding operation is leftward sliding, the target page is a last page of all pages for displaying the application icons.
For example, after obtaining sliding direction information corresponding to a sliding operation of a user, the electronic device may determine the target page according to a preset position and the sliding direction information. When the preset position is located in the right half area of the display screen area corresponding to the current page and the sliding direction information indicates that the sliding operation is leftward sliding, the electronic device may determine the last page of all pages for displaying the application icon as the target page. For example, in the above case, the electronic device may determine the 5 th page as the target page.
For example, as shown in fig. 4, the area a is a right half area of the display screen area corresponding to the current page, and the position where the user presses the current page is the position B. The position B is located in the area A, and belongs to a preset position. After the user presses at the position B and the pressing duration reaches the preset duration, the sliding operation is performed with the position B as the starting position, and the sliding direction is leftward sliding, as shown in fig. 4. In this case, the electronic device may determine the last page of all pages for displaying the application icon as the target page. For example, the electronic device may determine page 5 as the target page.
In one embodiment, the preset position in 204 may be located in the right half area of the display screen area corresponding to the current page, and the preset position does not include the text information of the current page. That is, the preset position in 204 may be a blank position in the right half area of the display screen area corresponding to the current page.
For example, as shown in fig. 4, the right half area of the display screen area corresponding to the current page is an a area. A position for displaying an application icon, and a blank position (i.e., a position where no application icon is displayed) are included in the a region. In one embodiment, the preset position may belong to a blank position in the a region.
After the destination page is determined, 206 may be entered.
In 205, the electronic device determines a target page according to a preset position and sliding direction information, where when the preset position is located in a left second area of a display screen area corresponding to the current page and the sliding direction information indicates that the sliding operation is a rightward sliding operation, the target page is a first page of all pages for displaying the application icon.
For example, after obtaining sliding direction information corresponding to a sliding operation of a user, the electronic device may determine the target page according to a preset position and the sliding direction information. When the preset position is located in the left one-second area of the display screen area corresponding to the current page and the sliding direction information indicates that the sliding operation is rightward sliding, the electronic device may determine a first page of all pages for displaying the application icon as a target page. For example, in the above case, the electronic device may determine the home page as the target page.
For example, as shown in fig. 5, the area C is a left one-second area of the display screen area corresponding to the current page, and the position where the user presses the current page is the position D. The position D is located in the area C, and belongs to a preset position. After the user presses at the position D and the pressing duration reaches the preset duration, the user performs a sliding operation with the position D as an initial position, and the sliding direction is rightward sliding, as shown in fig. 5. In this case, the electronic device may determine a top page among all pages for displaying the application icon as the target page.
In one embodiment, the preset position in 205 may be located in a left-second area of the display screen area corresponding to the current page, and the preset position does not include the graphic and text information of the current page. That is, the preset position in 205 may be a blank position within the left-second area of the display screen area corresponding to the current page.
For example, as shown in fig. 5, a left-second area of the display screen area corresponding to the current page is a C area. A position for displaying an application icon, and a blank position (i.e., a position where no application icon is displayed) are included in the C region. In one embodiment, the preset position may belong to a blank position in the C region.
After the destination page is determined, 206 may be entered.
At 206, the electronic device jumps from the current page to the target page.
For example, if the current page is the 2 nd page, after the 5 th page is determined as the target page, the electronic device may jump from the 2 nd page to the 5 th page directly.
For another example, if the current page is the 4 th page, after the home page is determined as the target page, the electronic device may jump from the 4 th page to the home page directly.
In an implementation, after the sliding operation is detected, the present embodiment may further include the following process:
the electronic equipment acquires a sliding starting position corresponding to the sliding operation.
Then, when the electronic device executes a flow of acquiring sliding direction information corresponding to the sliding operation if the sliding operation is detected, the electronic device may execute: if the sliding operation is detected and the sliding initial position is overlapped with the preset position, the electronic equipment acquires sliding direction information corresponding to the sliding operation.
For example, if the electronic device detects a sliding operation on the current page, the electronic device may obtain a sliding start position of the sliding operation, and detect whether the sliding start position coincides with a preset position where the pressing operation is located, that is, the electronic device may detect whether the sliding start position coincides with the pressing position.
If it is detected that the sliding start position coincides with the pressing position, the electronic device may acquire sliding direction information corresponding to the sliding operation. For example, as shown in fig. 4, the pressing position is a B position, and if the starting position of the sliding operation of the user is also the B position, the electronic device may acquire sliding direction information corresponding to the sliding operation.
If the sliding starting position is detected not to be coincident with the pressing position, the electronic equipment can execute other operations.
In one embodiment, after detecting the pressing operation, the electronic device may further perform the following process: the electronic equipment acquires a first moment when the pressing operation is detected, wherein the first moment is the moment when the pressing operation starts.
After detecting the sliding operation, the electronic device may further perform the following process: the electronic equipment acquires a second moment when the sliding operation is detected, wherein the second moment is the moment when the sliding operation is started.
Then, when the electronic device executes a flow of acquiring sliding direction information corresponding to the sliding operation if the sliding operation is detected, the electronic device may execute: if the sliding operation is detected and the interval between the first moment and the second moment is smaller than or equal to the preset interval, the electronic equipment acquires sliding direction information corresponding to the sliding operation.
For example, if the electronic device acquires information that the user starts pressing the current page at time T1 and starts sliding on the current page at time T2, the electronic device may acquire sliding direction information corresponding to the sliding operation if the electronic device detects that the interval between the time T1 and the time T2 is less than or equal to the preset interval. If the electronic device detects that the interval between the time T1 and the time T2 is greater than the preset interval, the electronic device may perform other operations.
In this embodiment, after obtaining the sliding direction information of the sliding operation, the electronic device may also determine the target page according to the sliding direction information and the preset position.
For example, when the sliding direction information indicates that the sliding operation is sliding leftward, the electronic device may determine a target page according to the preset position and the sliding direction information, where the target page may be a last page of all pages for displaying the application icon. After the target page is determined, the electronic device can jump to the target page from the current page.
For another example, when the sliding direction information indicates that the sliding operation is sliding to the right, the electronic device may determine a target page according to the preset position and the sliding direction information, where the target page may be a first page of all pages for displaying the application icon. After the target page is determined, the electronic device can jump to the target page from the current page.
In an implementation manner, in this embodiment, after the sliding operation is detected, the sliding distance corresponding to the sliding operation may be obtained, and when the sliding distance meets a preset condition, the electronic device determines the target page according to the preset position, the sliding direction information, and the sliding distance.
Referring to fig. 6 to 11, fig. 6 to 11 are schematic views of a scenario of a page jump method according to an embodiment of the present application.
For example, a user installs a plurality of applications on the electronic device, and application icons of the applications are displayed by using a total of 5 pages, including a first page, a 2 nd page, a 3 rd page, a 4 th page and a 5 th page in sequence. The blank position of the right side of each page (i.e., the position where the application icon is not displayed) and the blank position of the left side belong to preset positions.
For example, as shown in fig. 6, the current page of the electronic device is the home page. The area E of the blank position on the right side of the page belongs to a preset position. For example, the user has pressed at position F of the blank position E area on the right side of the current top page, as shown in fig. 7. At this time, the electronic device may detect the pressing operation and obtain a corresponding pressing duration.
After the pressing time duration is acquired, the electronic device may detect whether the pressing time duration is greater than or equal to a preset 1 second. If the pressing time period is greater than or equal to a preset 1 second, the pressing operation may be regarded as a long pressing operation. If the pressing time period is less than the preset 1 second, the pressing operation may be regarded as a short pressing operation.
For example, in this embodiment, the electronic device detects that the pressing duration of the user at the F position is longer than 1 second. In this case, the electronic apparatus may detect whether the user has performed a slide operation on the home page.
For example, in this embodiment, the electronic device detects that the user has performed a sliding operation on the home page with the F position as the start sliding position. In this case, the electronic apparatus may acquire the sliding direction information corresponding to the sliding operation. For example, as shown in fig. 7, the sliding direction corresponding to the sliding operation is leftward sliding.
After the sliding direction information is acquired, the electronic device can determine the target page according to the pressing position and the sliding direction information. For example, since the pressed position is a blank position on the right side of the page, and the slide direction information indicates that the slide operation is a leftward slide. Accordingly, the electronic device may determine the last page of all pages for displaying the application icon as the target page, for example, the electronic device may determine the 5 th page as the target page.
After the target page is determined, the electronic device may jump from the home page to the 5 th page, and the page transformation of the electronic device may be as shown in fig. 8.
As another example, as shown in fig. 9, the current page of the electronic device is page 4. The area G of the blank position on the left side of the page belongs to a preset position. For example, the user has pressed at the H position of the G region at the left margin position of the current page 4, as shown in fig. 10. At this time, the electronic device may detect the pressing operation and obtain a corresponding pressing duration. After the pressing time duration is acquired, the electronic device may detect whether the pressing time duration is greater than or equal to a preset 1 second.
For example, in this embodiment, the electronic device detects that the pressing duration of the user at the H position is greater than 1 second. In this case, the electronic apparatus may detect whether the user has performed a slide operation on the 4 th page.
For example, in this embodiment, the electronic device detects that the user has performed a sliding operation on the 4 th page with the H position as the start sliding position. In this case, the electronic apparatus may acquire the sliding direction information corresponding to the sliding operation. For example, as shown in fig. 10, the sliding direction corresponding to the sliding operation is rightward sliding.
After the sliding direction information is acquired, the electronic device can determine the target page according to the pressing position and the sliding direction information. For example, since the pressed position is a blank position on the left side of the page, and the slide direction information indicates that the slide operation is a rightward slide. Accordingly, the electronic device may determine a first page of all pages for displaying the application icon as a target page, for example, the electronic device may determine the first page as the target page.
After the target page is determined, the electronic device may jump from the 4 th page to the home page, and the page transformation of the electronic device may be as shown in fig. 11.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a page jump device according to an embodiment of the present application. The page jumping apparatus 300 may include: a first obtaining module 301, a detecting module 302, a second obtaining module 303, and a skipping module 304.
The first obtaining module 301 is configured to, when a pressing operation is detected at a preset position of a current page, obtain a pressing duration corresponding to the pressing operation.
A detecting module 302, configured to detect whether a sliding operation exists on the current page if the pressing duration reaches a preset duration.
A second obtaining module 303, configured to obtain sliding direction information corresponding to the sliding operation if the sliding operation is detected.
A skipping module 304, configured to determine a target page according to the preset position and the sliding direction information, and skip from the current page to the target page.
In one embodiment, the sliding direction information indicates that the sliding operation is sliding to the left, then the jump module 304 may be configured to:
determining a target page according to the preset position and the sliding direction information, wherein the target page is the last page of all pages for displaying application icons;
and jumping to the target page from the current page.
In one embodiment, the sliding direction information indicates that the sliding operation is a right sliding operation, then the jump module 304 may be configured to:
determining a target page according to the preset position and the sliding direction information, wherein the target page is a first page of all pages for displaying application icons;
and jumping to the target page from the current page.
In one embodiment, the skip module 304 may be configured to:
and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in the right half area of the display screen area corresponding to the current page, and the target page is the last page of all pages for displaying application icons.
In one embodiment, the skip module 304 may be configured to:
and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the target page is a first page of all pages for displaying application icons.
In an embodiment, the preset position is located in a right half area of a display screen area corresponding to the current page, and the preset position does not include the image-text information of the current page.
In an embodiment, the preset position is located in a left second area of a display screen area corresponding to the current page, and the preset position does not include the image-text information of the current page.
In an embodiment, after detecting the sliding operation, the second obtaining module 303 may further be configured to:
acquiring a sliding initial position corresponding to the sliding operation; and
and if the sliding operation is detected and the sliding initial position is superposed with the preset position of the pressing operation, acquiring sliding direction information corresponding to the sliding operation.
In an embodiment, after detecting the pressing operation, the first obtaining module 301 may further be configured to: and acquiring a first moment when the electronic equipment detects the pressing operation, wherein the first moment is the moment when the pressing operation starts.
After detecting the sliding operation, the second obtaining module 303 may further be configured to:
acquiring a second moment when the electronic equipment detects the sliding operation, wherein the second moment is the moment when the sliding operation starts; and
and if the sliding operation is detected and the interval between the first moment and the second moment is less than or equal to a preset interval, acquiring sliding direction information corresponding to the sliding operation.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute a flow in the page jump method provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute a flow in the page jump method provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 13, fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device 400 may include components such as a display 401, memory 402, processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 13 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 401 can be used to display information such as images or characters and receive a touch operation by a user. For example, touch display 401 may be used to display application icons and the like.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;
if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;
if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;
and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
Referring to fig. 14, the electronic device 500 may include a touch screen display 501, a memory 502, a processor 503, a speaker 504, a microphone 505, and the like.
The touch display screen 501 may be used to display information such as images or characters and receive a touch operation by a user. For example, the touch display screen 501 may be used to display application icons and the like.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 503 executes various functional applications and data processing by running an application program stored in the memory 502.
The processor 503 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 503 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 503 runs the application programs stored in the memory 502, so as to execute:
when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;
if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;
if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;
and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
In one embodiment, the sliding direction information indicates that the sliding operation is a leftward sliding; the processor 503 executes the steps of determining a target page according to the preset position and the sliding direction information, and when jumping from the current page to the target page, may execute: determining a target page according to the preset position and the sliding direction information, wherein the target page is the last page of all pages for displaying application icons; and jumping to the target page from the current page.
In one embodiment, the sliding direction information indicates that the sliding operation is a rightward sliding; the processor 503 executes the steps of determining a target page according to the preset position and the sliding direction information, and when jumping from the current page to the target page, may execute: determining a target page according to the preset position and the sliding direction information, wherein the target page is a first page of all pages for displaying application icons; and jumping to the target page from the current page.
In an embodiment, when the processor 503 executes the determining of the target page according to the preset position and the sliding direction information, where the target page is a last page of all pages for displaying the application icon, the determining may execute: and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in the right half area of the display screen area corresponding to the current page, and the target page is the last page of all pages for displaying application icons.
In an embodiment, when the processor 503 executes the determining of the target page according to the preset position and the sliding direction information, where the target page is a first page of all pages for displaying the application icon, the determining may execute: and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the target page is a first page of all pages for displaying application icons.
In an embodiment, the preset position is located in a right half area of a display screen area corresponding to the current page, and the preset position does not include the image-text information of the current page.
In an embodiment, the preset position is located in a left second area of a display screen area corresponding to the current page, and the preset position does not include the image-text information of the current page.
In one embodiment, after detecting the sliding operation, the processor 503 may further perform: and acquiring a sliding initial position corresponding to the sliding operation.
Then, when the processor 503 executes the step of acquiring the sliding direction information corresponding to the sliding operation if the sliding operation is detected, it may execute: and if the sliding operation is detected and the sliding initial position is superposed with the preset position of the pressing operation, acquiring sliding direction information corresponding to the sliding operation.
In one embodiment, after detecting the pressing operation, the processor 503 may further perform: and acquiring a first moment when the electronic equipment detects the pressing operation, wherein the first moment is the moment when the pressing operation starts.
After detecting the sliding operation, the processor 503 may further perform: and acquiring a second moment when the electronic equipment detects the sliding operation, wherein the second moment is the moment when the sliding operation starts.
Then, when executing the step of acquiring the sliding direction information corresponding to the sliding operation if the sliding operation is detected, the processor 503 may execute: and if the sliding operation is detected and the interval between the first moment and the second moment is less than or equal to a preset interval, acquiring sliding direction information corresponding to the sliding operation.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the page jump method, which is not described herein again.
The page jump device provided in the embodiment of the present application and the page jump method in the above embodiments belong to the same concept, and any one of the methods provided in the page jump method embodiment may be run on the page jump device, and a specific implementation process thereof is described in detail in the page jump method embodiment, and is not described herein again.
It should be noted that, for the page jump method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the page jump method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the page jump method can be included as the process of the embodiment of the page jump method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the page jump device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The page jump method, the page jump device, the page jump storage medium and the electronic device provided by the embodiments of the present application are described in detail above, a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (20)
- A page jump method comprises the following steps:when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
- The page jump method according to claim 1, wherein the swipe direction information indicates that the swipe operation is a leftward swipe;the determining a target page according to the preset position and the sliding direction information, and jumping from the current page to the target page, including:determining a target page according to the preset position and the sliding direction information, wherein the target page is the last page of all pages for displaying application icons;and jumping to the target page from the current page.
- The page jump method according to claim 1, wherein the swipe direction information indicates that the swipe operation is a rightward swipe;the determining a target page according to the preset position and the sliding direction information, and jumping from the current page to the target page, including:determining a target page according to the preset position and the sliding direction information, wherein the target page is a first page of all pages for displaying application icons;and jumping to the target page from the current page.
- The page jump method according to claim 2, wherein the determining a target page according to the preset position and the sliding direction information, wherein the target page is a last page of all pages for displaying application icons, comprises:and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in the right half area of the display screen area corresponding to the current page, and the target page is the last page of all pages for displaying application icons.
- The page jump method according to claim 3, wherein the determining a target page according to the preset position and the sliding direction information, wherein the target page is a first page of all pages for displaying application icons, comprises:and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the target page is a first page of all pages for displaying application icons.
- The page skipping method of claim 4, wherein the preset position is located in the right half of the display screen area corresponding to the current page, and the preset position does not contain the graphic and text information of the current page.
- The page skipping method according to claim 5, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the preset position does not contain the graphic and text information of the current page.
- The page jump method according to claim 1, further comprising, after detecting the slide operation:acquiring a sliding initial position corresponding to the sliding operation;if the sliding operation is detected, obtaining sliding direction information corresponding to the sliding operation, including: and if the sliding operation is detected and the sliding initial position is superposed with the preset position of the pressing operation, acquiring sliding direction information corresponding to the sliding operation.
- The page jump method according to claim 1, further comprising, after detecting the pressing operation: acquiring a first moment when the electronic equipment detects the pressing operation, wherein the first moment is the moment when the pressing operation starts;after the sliding operation is detected, the method further comprises the following steps: acquiring a second moment when the electronic equipment detects the sliding operation, wherein the second moment is the moment when the sliding operation starts;if the sliding operation is detected, obtaining sliding direction information corresponding to the sliding operation, including: and if the sliding operation is detected and the interval between the first moment and the second moment is less than or equal to a preset interval, acquiring sliding direction information corresponding to the sliding operation.
- A page jump apparatus, comprising:the device comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring a pressing time length corresponding to a pressing operation when the pressing operation is detected at a preset position of a current page;the detection module is used for detecting whether sliding operation exists on the current page or not if the pressing time length reaches a preset time length;the second acquisition module is used for acquiring sliding direction information corresponding to the sliding operation if the sliding operation is detected;and the skipping module is used for determining a target page according to the preset position and the sliding direction information and skipping from the current page to the target page.
- A storage medium having stored thereon a computer program, wherein the computer program, when executed on a computer, causes the computer to perform the method of any of claims 1 to 9.
- An electronic device comprising a memory, a processor, wherein the processor is operable to execute, by invoking a computer program stored in the memory:when a pressing operation is detected at a preset position of a current page, obtaining a pressing duration corresponding to the pressing operation;if the pressing time length reaches a preset time length, detecting whether sliding operation exists on the current page or not;if the sliding operation is detected, acquiring sliding direction information corresponding to the sliding operation;and determining a target page according to the preset position and the sliding direction information, and jumping to the target page from the current page.
- The electronic device of claim 12, wherein the swipe direction information indicates that the swipe operation is a leftward swipe, and the processor is configured to perform:determining a target page according to the preset position and the sliding direction information, wherein the target page is the last page of all pages for displaying application icons;and jumping to the target page from the current page.
- The electronic device of claim 12, wherein the sliding direction information indicates that the sliding operation is a rightward sliding, and the processor is configured to perform:determining a target page according to the preset position and the sliding direction information, wherein the target page is a first page of all pages for displaying application icons;and jumping to the target page from the current page.
- The electronic device of claim 13, wherein the processor is configured to perform:and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in the right half area of the display screen area corresponding to the current page, and the target page is the last page of all pages for displaying application icons.
- The electronic device of claim 14, wherein the processor is configured to perform:and determining a target page according to the preset position and the sliding direction information, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the target page is a first page of all pages for displaying application icons.
- The electronic device of claim 15, wherein the preset position is located in a right half area of a display screen area corresponding to the current page, and the preset position does not include the graphic and text information of the current page.
- The electronic device of claim 16, wherein the preset position is located in a left second area of a display screen area corresponding to the current page, and the preset position does not include the graphic and text information of the current page.
- The electronic device of claim 12, wherein the processor is configured to perform:acquiring a sliding initial position corresponding to the sliding operation;and if the sliding operation is detected and the sliding initial position is superposed with the preset position of the pressing operation, acquiring sliding direction information corresponding to the sliding operation.
- The electronic device of claim 12, wherein the processor is configured to perform:acquiring a first moment when the electronic equipment detects the pressing operation, wherein the first moment is the moment when the pressing operation starts;acquiring a second moment when the electronic equipment detects the sliding operation, wherein the second moment is the moment when the sliding operation starts;and if the sliding operation is detected and the interval between the first moment and the second moment is less than or equal to a preset interval, acquiring sliding direction information corresponding to the sliding operation.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/115865 WO2020097908A1 (en) | 2018-11-16 | 2018-11-16 | Method and apparatus for jumping to page, and storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113056724A true CN113056724A (en) | 2021-06-29 |
Family
ID=70731936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880098086.2A Pending CN113056724A (en) | 2018-11-16 | 2018-11-16 | Page skipping method and device, storage medium and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113056724A (en) |
WO (1) | WO2020097908A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114265535A (en) * | 2021-12-21 | 2022-04-01 | 百度在线网络技术(北京)有限公司 | Push message landing page display method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103777869A (en) * | 2014-01-08 | 2014-05-07 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for switching application interfaces of main menus |
US20140380247A1 (en) * | 2013-06-21 | 2014-12-25 | Barnesandnoble.Com Llc | Techniques for paging through digital content on touch screen devices |
CN105843491A (en) * | 2016-03-18 | 2016-08-10 | 华为技术有限公司 | Quick navigation switching method and device of page, and terminal |
CN106126063A (en) * | 2016-06-23 | 2016-11-16 | 上海携程商务有限公司 | Mobile terminal and page loading method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455248B (en) * | 2013-08-22 | 2017-02-01 | 广东欧珀移动通信有限公司 | Content sliding method and system for browsing file |
CN105094302B (en) * | 2014-05-16 | 2018-09-11 | 珠海金山办公软件有限公司 | A kind of flipping-over control method and device |
CN108196753B (en) * | 2018-01-22 | 2021-02-23 | 维沃移动通信有限公司 | Interface switching method and mobile terminal |
-
2018
- 2018-11-16 CN CN201880098086.2A patent/CN113056724A/en active Pending
- 2018-11-16 WO PCT/CN2018/115865 patent/WO2020097908A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140380247A1 (en) * | 2013-06-21 | 2014-12-25 | Barnesandnoble.Com Llc | Techniques for paging through digital content on touch screen devices |
CN103777869A (en) * | 2014-01-08 | 2014-05-07 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for switching application interfaces of main menus |
CN105843491A (en) * | 2016-03-18 | 2016-08-10 | 华为技术有限公司 | Quick navigation switching method and device of page, and terminal |
CN106126063A (en) * | 2016-06-23 | 2016-11-16 | 上海携程商务有限公司 | Mobile terminal and page loading method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114265535A (en) * | 2021-12-21 | 2022-04-01 | 百度在线网络技术(北京)有限公司 | Push message landing page display method, device, equipment and medium |
CN114265535B (en) * | 2021-12-21 | 2024-02-27 | 百度在线网络技术(北京)有限公司 | Floor page display method, device, equipment and medium for push message |
Also Published As
Publication number | Publication date |
---|---|
WO2020097908A1 (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10101827B2 (en) | Method and apparatus for controlling a touch-screen based application ported in a smart device | |
CN106201166A (en) | A kind of multi-screen display method and terminal | |
US20140380375A1 (en) | Page turning method, page turning apparatus and terminal as well as computer readable medium | |
CN108984089B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN107748615B (en) | Screen control method and device, storage medium and electronic equipment | |
CN111831205B (en) | Device control method, device, storage medium and electronic device | |
KR20160138279A (en) | Method and device for operating target application on corresponding equipment | |
US9781198B2 (en) | Information processing method and electronic device | |
CN106775272A (en) | System of selection, device and electronic equipment | |
CN111813305A (en) | Application program starting method and device | |
CN109144447B (en) | Split screen window adjusting method and device, storage medium and electronic equipment | |
CN107390982B (en) | Screenshot method, screenshot equipment and terminal equipment | |
CN111966273A (en) | Information display processing method and device | |
US20160154545A1 (en) | Electronic device and method for managing and displaying application icons | |
CN107239202B (en) | Control instruction identification method and device | |
CN105468094B (en) | Method for operating computer terminal and computer terminal | |
CN113056724A (en) | Page skipping method and device, storage medium and electronic equipment | |
CN110570830B (en) | Equipment adjusting method and device, storage medium and electronic equipment | |
CN106569675B (en) | A kind of prompting frame display methods and device | |
CN105094668B (en) | Information processing method and electronic equipment | |
CN111338728A (en) | Screen capturing method and device and computer readable storage medium | |
CN115543831A (en) | Test script generation method, device, equipment and storage medium | |
CN112399259B (en) | Progress bar control method of player | |
CN108089792A (en) | A kind of application icon lookup method and relevant device | |
CN109684525B (en) | Document display method and device, storage medium and test equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210629 |