Detailed Description
In order to shorten the processing time of an electronic product and reduce the power consumption of the electronic product, in the embodiment of the invention, when the electronic product is in a non-screen-locking state, if it is detected that a user clicks a designated area in a screen and a clicked dragging behavior meets a first preset condition, a preset to-be-selected operation menu is obtained, the to-be-selected operation menu is presented to the user, and when it is detected that the user clicks any one operation icon in the to-be-selected operation menu, corresponding processing is executed according to the operation behavior corresponding to the any one operation icon.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, the electronic product includes a detecting unit 10, a first processing unit 11 and asecond processing unit 12, wherein,
the detection unit 10 is configured to detect that a user clicks a first designated area in a screen and a clicked dragging behavior meets a first preset condition in a non-screen-locked state;
the first processing unit 11 is configured to obtain a preset operation menu to be selected, and present the operation menu to be selected to a user;
and thesecond processing unit 12 is configured to, when it is detected that the user clicks any one of the operation icons in the to-be-selected operation menu, execute corresponding processing according to an operation behavior corresponding to the any one of the operation icons.
Based on the above technical solution, referring to fig. 2, in the embodiment of the present invention, a detailed flow of the fast switching operation in the using process of the electronic product is as follows:
step 200: in a non-screen-locking state, it is detected that a user clicks a first designated area in a screen and a clicked dragging behavior meets a first preset condition.
The non-screen-locked state may be any state after the screen of the electronic product is unlocked, for example, it may be any one of a standby state, an application program running state, a function setting state and a filing state, where the application program running state may be a game running state, an audio/video playing state, an instant messaging software running state, a system detection state, and the like, and the function setting state may be a system configuration state, an application parameter configuration state, and the like, and the above description is only by way of example and is not limited thereto.
On the other hand, in order to implementstep 200, in this embodiment, a user may set some areas in the screen of the electronic product as designated detection areas, for example, an edge area of the screen, a center area of the screen, and the like (without being limited thereto), the electronic product may detect operation behaviors of the user in the designated detection areas, and in order to avoid a user misoperation, the electronic product may determine that the user needs to perform another operation in the current operation interface when it is detected that the user clicks the designated detection area and a clicked dragging behavior meets a first preset condition, and at this time, the electronic product may provide a preset operation menu to be selected for the user to quickly select. Wherein, it is detected that the user clicks the first detection area and the clicked dragging behavior meets the first preset condition, and there are multiple implementation manners (not limited to this):
for example, it is detected that the user clicks on a first designated area in the screen and the post-click drag distance reaches a set threshold.
For another example, it is detected that the user clicks a first designated area in the screen and drags to the set coordinate position after clicking.
For another example, it is detected that the user clicks a first designated area in the screen and the post-click drag trajectory conforms to the set pattern. The setting pattern may be various, such as a circle, a square, and the like.
For example, referring to fig. 3, when the user clicks the lower edge of the screen and the clicked dragging distance exceeds half the size of the screen, the electronic product presents the user with the menu of operations to be selected.
Step 210: and acquiring a preset application program menu to be selected, and presenting the application program menu to be selected to a user.
In this embodiment, the to-be-selected operation menu may be one or any combination of a to-be-selected application program menu, a to-be-selected background program menu and a to-be-selected shortcut configuration menu.
Referring to fig. 4, a menu corresponding to the "quick start" button in the drawing is a menu of applications to be selected, and each application icon presented in the menu of applications to be selected is an icon of an application that is not currently started, such as a camera, a video, a talk back, a short message, and the like. The user can quickly switch from the current operation interface to the operation interface of the corresponding application program by clicking the icons without returning to the standby interface.
Referring to fig. 4, a menu corresponding to the "background application" button in the drawing is a background application menu to be selected, and each application icon presented in the background application menu to be selected is an icon of an application that is currently started and runs in the background, such as an alarm clock, a gallery, a music store, and the like. The user can quickly switch from the current operation interface to the operation interface of the corresponding application program without returning to the standby interface by clicking the icons, or the user can directly close the corresponding application program by clicking the icons.
Referring to fig. 4, a menu corresponding to a "shortcut switch" button in the drawing is a shortcut configuration menu to be selected, each icon presented in the shortcut configuration menu to be selected is an icon of a configuration function that can be controlled by a simple operation manner (e.g., on/off), such as bluetooth, infrared, screen lock, and the like, and a user can quickly implement state switching of the configuration function in a current operation interface by clicking the icons without returning to a standby interface.
Step 220: and when detecting that the user clicks any one operation icon in the operation menu to be selected, executing corresponding processing according to the operation behavior corresponding to the any one operation icon.
The method specifically comprises the following steps:
if the operation icon clicked by the user is detected to be an application icon in the application menu to be selected, presenting a corresponding application operation interface to the user;
for example, as shown in fig. 5, when playing music, the user may click the "short message" icon in the application menu to be selected, and switch to the short message operation interface to send the short message.
And if the operation icon clicked by the user is detected to be an application program icon in the background program menu to be selected, presenting a corresponding application program operation interface to the user according to the click position of the user, or closing the corresponding application program.
For example, as shown in fig. 6, in the process of playing a video, a user may present an operation interface of a group short message running in the background to be selected to the user by clicking a general area of a "group short message" icon in the background program menu to be selected (i.e., a "cross" pattern area at the upper right corner), or may directly close a recording function running in the background by clicking a specific area of a "recording" icon in the background program menu to be selected (i.e., a "cross" pattern area at the upper right corner).
And if the operation icon clicked by the user is detected to be a shortcut configuration icon in the shortcut configuration menu to be selected, starting or closing the corresponding configuration function.
For example, a user may turn off network traffic by clicking on a "network" icon during the course of a game to avoid incurring unnecessary costs.
Based on the above embodiment, further, after the user opens a certain number of applications in the above manner, the electronic product may also use another manner to perform faster switching between the opened applications, specifically: when the electronic product determines that the number of the application program operation interfaces presented to a user reaches a set value, when the user uses any one obtained application program operation interface, and detects that the user clicks a second designated area in a screen and the clicked dragging behavior meets a second preset condition, the electronic product presents a previous application program operation interface of the any one application program operation interface to the user based on the presentation time sequence, and when the electronic product detects that the user clicks a third designated area in the screen and the clicked dragging behavior meets the second preset condition, presents a next application program operation interface of the any one application program operation interface to the user based on the presentation time sequence.
The second designated area may be an edge area of the screen or a center area of the screen, and the third designated area may be an edge area of the screen or a center area of the screen, as long as the first designated area, the second designated area, and the third designated area do not overlap with each other, and no operational confusion occurs, for example, the first designated area may be a lower edge of the screen, the second designated area may be a right edge of the screen, and the third designated area may be a left edge of the screen, and so on. The first preset condition, the second preset condition and the third preset condition may be completely the same, may be partially the same, or may be different from each other, and are determined according to the application scenario, and are not described herein again.
For example, referring to fig. 7, assuming that the user opens two applications, namely a music player and a short message, when the user finishes sending the short message, the user may switch the operation interface of the music player back to the screen again by clicking the right edge of the screen and dragging the right edge for a certain distance.
For another example, referring to fig. 8, assuming that the user opens two applications, namely, a short message application and an FM radio application, if the user returns to the short message operation interface to send a short message, after the short message is sent, the operation of clicking the left edge of the screen and dragging a certain distance may be performed to switch the operation interface of the FM radio application back to the screen.
The above method is merely exemplary and not limited thereto.
On the other hand, referring to fig. 5, in practical applications, the to-be-selected operation menu includes which submenus, whether to start the function of switching the operation interface of the application program from left to right, and which operation icons are presented in each submenu can be flexibly configured according to the use habits of the user; further, referring to fig. 5 and 6, assuming that the lower edge is the first designated area, the size of the first designated area, the effective click position of the user, and the effective dragging distance after clicking may also be flexibly configured according to the use habit of the user. The method not only enriches the application content, but also can be more flexibly suitable for the use requirements of users.
In summary, in the embodiment of the present invention, when the electronic product is in the non-screen-locked state, the user may trigger the electronic product to present the to-be-selected operation menu by clicking the first designated area in the screen and making a dragging action meeting the first preset condition, so that the user may directly switch from the current operation interface to another operation interface or complete another operation by clicking the operation icon in the to-be-selected operation menu, without returning to the standby interface.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.