Detailed Description
Referring to fig. 1, fig. 1 is a flowchart of an operation method of a touch screen terminal application according to an embodiment of the present invention, where as shown in the figure, the operation method of the touch screen terminal application according to the embodiment includes:
s101: and detecting a touch track generated by a gesture operation performed on the touch screen by a user.
When a user performs gesture operation on the touch screen, a corresponding touch track is generated. The touch screen terminal detects a touch track generated by gesture operation of a user on the touch screen.
The touch tracks detected in the embodiment of the invention are all continuous touch tracks. In a specific application, if the user interrupts the gesture operation halfway, the step of detecting the touch trajectory and the subsequent steps are executed again when the gesture operation of the user on the touch screen is detected again. That is to say, in the detection process, as long as the user releases the touch screen, the operation is invalid, and the touch trajectory is detected again when the user performs gesture operation on the touch screen.
S102: and judging whether the gesture operation meets a preset rule or not according to the touch track.
The preset rule is that the gesture operation enters the application icon area, and the gesture operation continues until the gesture operation leaves the application icon area.
In the embodiment of the invention, the application icon areas displayed on the touch screen terminal are not overlapped with each other pairwise.
In the specific application process, the judging process specifically comprises the following steps: and acquiring a touch track generated by the gesture operation of the user, judging whether the touch point is on a certain application icon area displayed currently every time a touch point is added, if so, continuously detecting and judging whether the touch track is continuous, and if the touch track is interrupted midway, returning to detect the touch track again. And if the touch track is kept continuous all the time, continuously acquiring the touch track on the touch screen until the gesture operation leaves the application icon area. At this time, the gesture operation is considered to satisfy a predetermined rule, and the next step is executed.
The application icon area can be determined by applying two point coordinates on the diagonal line of the icon, for example, as shown in FIG. 2, the two point coordinates on the diagonal line of the application icon are (xicon1, yicon1), (xicon2, yicon2), and as long as the touch point coordinate (x, y) in the touch trajectory satisfies xicon1 ≦ x ≦ xicon2 and yicon1 ≦ y ≦ yicon2, the coordinate (x, y) is located in the application icon area.
S103: and when the gesture operation meets a preset rule, respectively acquiring a first intersection point of a touch track generated by the gesture operation and the application icon area and a last intersection point of the touch track generated by the gesture operation and the application icon area.
In S102, when it is determined that the touch point of the touch trajectory is in one of the currently displayed application icon regions, the first intersection coordinates of the touch trajectory and the application icon region are recorded, for example, as P1(xP1, yP1), and the application corresponding to the application icon is recorded.
When the touch trajectory continues and until the gesture operation leaves the application icon area, the last intersection coordinate of the touch trajectory and the application icon area is recorded, for example, as P2(xP2, yP2) before the gesture operation leaves the application icon area. It should be noted that, in this process, as long as the gesture operation leaves the touch screen, the step of detecting the touch trajectory needs to be returned to perform the detection and subsequent steps again.
And when the gesture operation meets the preset rule, acquiring a first intersection point and a last intersection point of the recorded touch track and the application icon area, and performing S104.
S104: and matching the first intersection point and the last intersection point with the prestored operation rule.
And matching the obtained first intersection point and the obtained last intersection point with a prestored operation rule. If the matching is successful, S105 is executed, otherwise, the detection step is returned to for re-detection.
The pre-stored operation rule is a preset operation rule, and therefore, the method of the invention further comprises the steps of setting and storing the operation rule. And setting an operation rule, namely presetting operation executed by two intersection points when the touch track enters each application icon area and leaves the application icon area.
In the embodiment of the invention, the prestored operation rule is expressed by defining the following expression,
[CA1,CA2,CA3],
in the expression, CA1 is a position parameter of a first intersection of a touch trajectory generated by a gesture operation and an application icon area, CA2 is a position parameter of a last intersection of the touch trajectory generated by the gesture operation and the application icon area, and CA3 is an operation instruction executed for an application corresponding to the application icon.
And when the matching is specific, matching the first intersection with CA1, matching the last intersection with CA2, determining that the matching is successful only if the matching of the first intersection and the matching of the last intersection is successful, and otherwise, determining that the matching is failed. When the matching is successful, the corresponding operation is executed on the application corresponding to the icon according to theCA 3.
In order to reduce the determination complexity, in the embodiment of the present invention, CA1 indicates on which side of the application icon area the first intersection of the touch trajectory and the application icon area is located. CA2 indicates which side of the application icon area the last intersection of the touch trajectory with the application icon area is located. For example, as shown in fig. 3, thenumbers 1,2,3, and 4 may be used to represent the left, upper, right, and lower four sides of the application icon area, respectively. In setting a specific prestored operation rule, CA1 and CA2 represent specific number combinations, such as (1, 4) representing the corresponding operation rule when the first intersection point of the touch trajectory and the application icon area is located at the left side of the icon and the last intersection point is located at the lower side of the icon. And so on. CA3 is a specific operation specifically executed for the application corresponding to the application icon. Which may be but is not limited to opening, uninstalling, or upgrading, etc.
And during the specific matching, converting the coordinates of the acquired first intersection point and the acquired last intersection point into which side of the application icon area the intersection point specifically corresponds, and expressing the side by using the corresponding number.
For example, if the first intersection is on the left side of the application icon area, P1 would be converted to 1, and if the last intersection is on the right side of the application icon area, P2 would be converted to 3. And matching the P1 and the P2 with the prestored operation rules, and determining that the matching is successful as long as the prestored operation rules of which the CA1 is 1 and the CA2 is 3 are found.
For example, if the icon region of the application APP1 is a coordinate region satisfying xapp11 ≦ x ≦ xapp12 and yapp11 ≦ y ≦ yapp12, the first intersection of the touch trajectory with the application icon region is P1(xP1, yP1), P1 is converted to 1 if xP1 ≦ xapp11 and yapp11< yP1< yapp12, P1 is converted to 2 if yP1 ≦ yapp12 and xapp11< xP1< xapp12, P1 is converted to 3 if xP1 ≦ xapp12 and yapp11< yP1< yapp12, and P1 is converted to 3894 if yP1 ≦ yapp11 and xapp11< xpp 1< xapp12 are satisfied.
Performing a determination process once for each new touch point of the touch trajectory, when it is detected that the touch trajectory new touch point is not on the application icon region, acquiring a last intersection point P2 of the touch trajectory previous to the touch point, i.e., the touch trajectory and the application icon region, and setting P2 coordinates as P2(xP2, yP2), where P2 is converted to 1 if xP2 is satisfied and yapp11< yP2< yapp12, P12 is converted to 2 if xP2 is satisfied and xapp12 <xP 12 < xapp12, P12 is converted to 3 ifxP 12 is satisfied and yapp12 < yapp12, and P12 is converted to 3 ifxP 12 is satisfied.
Of course, other location parameters may be used as parameters for the pre-stored operation rules. Such as a range of coordinate values, etc. And when matching is carried out, converting the acquired intersection point coordinates into a position parameter form corresponding to a prestored operation rule. The embodiments of the present invention are not necessarily illustrated.
S105: and executing operation on the application corresponding to the application icon according to the pre-stored operation rule.
And after the matching is successful, executing operation on the application corresponding to the application icon according to the pre-stored operation rule. For example, P1 and P2 satisfy (1, 3), and the operation rule of (1, 3, uninstall) exists in the pre-stored operation rules, then the uninstall operation is performed on the application corresponding to the icon.
The operation performed on the application includes, but is not limited to, an open, uninstall, upgrade operation, or the like.
It should be noted that, according to the above technical solution of the present invention, the application icon is not limited to an icon of an application program, and may also be an icon displayed on other touch screen interfaces such as an album and an alarm clock, for example, for the album icon, the corresponding operation may be opening, deleting, and the like. What icon corresponds to what operation is executed can be set according to the user's needs, and the implementation of the above specific embodiment mode is only a specific example of the present invention and is not intended to limit the scope of the present invention.
It should be noted that, in the embodiment of the present invention, when the gesture operation satisfies the predetermined rule, only the first intersection point and the last intersection point of the touch trajectory and the application icon area need to be obtained, and no attention is paid to what the specific touch trajectory is, which is more flexible and diverse than a scheme of determining and executing a corresponding operation through the touch trajectory, and the recognition process is also simpler and more convenient. For example, as shown in fig. 4, although the four touch tracks have different shapes, by applying the technical solution of the present invention, the first intersection point and the last intersection point of the collected touch track and the application icon area all belong to the same side of the application icon, that is, the four touch operations all obtain the same operation result. Therefore, compared with the fixed track identification operation, the scheme of the invention is more flexible and is simpler to realize.
The operation method for the touch screen terminal application provided by the embodiment of the invention detects the touch track generated by the gesture operation performed by the user on the touch screen, judges whether the gesture operation meets the preset rule according to the touch track, respectively obtains the first intersection point and the last intersection point of the touch track generated by the gesture operation and the application icon area when the gesture operation meets the preset rule, and matches the first intersection point and the last intersection point with the prestored operation rule, and executes the operation on the application corresponding to the application icon according to the prestored operation rule when the matching is successful. Through the mode, the operation of the application can be completed only by one step, the difficulty of the operation of the application is reduced, and meanwhile, the efficiency of the operation of the application is improved, so that better use experience is brought to a user.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a touch screen terminal according to an embodiment of the present invention, where the touch screen terminal according to the embodiment is configured to execute the operation method of the touch screen terminal application shown in fig. 1, as shown in the figure, the touch screen terminal 100 according to the embodiment includes adetection module 11, adetermination module 12, anacquisition module 13, amatching module 14, and aprocessing module 15, where:
thedetection module 11 is used for detecting a touch track generated by a gesture operation performed by a user on the touch screen.
When a user performs gesture operation on the touch screen, a corresponding touch track is generated. Thedetection module 11 detects a touch track generated by a gesture operation performed by a user on the touch screen.
The touch tracks detected in the embodiment of the invention are all continuous touch tracks. In a specific application, if the user interrupts the gesture operation halfway, the step of detecting the touch trajectory and the subsequent steps are executed again when the gesture operation of the user on the touch screen is detected again. That is to say, in the detection process, as long as the user releases the touch screen, the operation is invalid, and the touch trajectory is detected again when the user performs gesture operation on the touch screen.
The judgingmodule 12 is configured to judge whether the gesture operation meets a predetermined rule according to the touch trajectory, and notify the obtainingmodule 13 when the gesture operation meets the predetermined rule, where the predetermined rule is that the gesture operation enters the application icon area, and the gesture operation continues until the gesture operation leaves the application icon area.
In the embodiment of the invention, the application icon areas displayed on the touch screen terminal are not overlapped with each other pairwise.
In the specific application process, the judging process specifically comprises the following steps: and acquiring a touch track generated by the gesture operation of the user, judging whether the touch point is on a certain application icon area displayed currently every time a touch point is added, if so, continuously detecting and judging whether the touch track is continuous, and if the touch track is interrupted midway, returning to detect the touch track again. And if the touch track is kept continuous all the time, continuously acquiring the touch track on the touch screen until the gesture operation leaves the application icon area. At this time, theacquisition module 13 is notified of the gesture operation as satisfying a predetermined rule.
The obtainingmodule 13 is configured to, when the gesture operation satisfies a predetermined rule, respectively obtain a first intersection point of the touch trajectory generated by the gesture operation and the application icon area, and a last intersection point of the touch trajectory generated by the gesture operation and the application icon area.
When the touch point of the touch track is judged to be in one of the currently displayed application icon areas, the first intersection point coordinate of the touch track and the application icon area is recorded, such as P1(xP1, yP1), and the application corresponding to the application icon is recorded.
When the touch trajectory continues and until the gesture operation leaves the application icon area, the last intersection coordinate of the touch trajectory and the application icon area is recorded, for example, as P2(xP2, yP2) before the gesture operation leaves the application icon area.
It should be noted that, in this process, as long as the gesture operation leaves the touch screen, the step of detecting the touch trajectory needs to be returned to perform the detection and subsequent steps again.
When the gesture operation satisfies the predetermined rule, the obtainingmodule 13 obtains a first intersection point and a last intersection point of the recorded touch trajectory and the application icon area.
Thematching module 14 is configured to match the first intersection and the last intersection with a pre-stored operation rule, and notify theprocessing module 15 when matching is successful;
and matching the first intersection point and the last intersection point acquired by theacquisition module 13 with a prestored operation rule. If the match is successful, theprocessing module 15 is notified. Otherwise, thedetection module 11 is notified to perform the detection again.
The pre-stored operation rule is a preset operation rule, and therefore, the method of the invention further comprises the steps of setting and storing the operation rule. And setting an operation rule, namely presetting operation executed on the application by two intersection points when the touch track enters each application icon area and leaves the application icon area.
In the embodiment of the invention, the prestored operation rule is expressed by defining the following expression,
[CA1,CA2,CA3],
in the expression, CA1 is a position parameter of a first intersection of a touch trajectory generated by a gesture operation and an application icon area, CA2 is a position parameter of a last intersection of the touch trajectory generated by the gesture operation and the application icon area, and CA3 is an operation instruction executed for an application corresponding to the application icon.
And when the matching is specific, matching the first intersection with CA1, matching the last intersection with CA2, determining that the matching is successful only if the matching of the first intersection and the matching of the last intersection is successful, and otherwise, determining that the matching is failed. When the matching is successful, the corresponding operation is executed on the application corresponding to the icon according to theCA 3.
In order to reduce the determination complexity, in the embodiment of the present invention, CA1 indicates on which side of the application icon area the first intersection of the touch trajectory and the application icon area is located. CA2 indicates which side of the application icon area the last intersection of the touch trajectory with the application icon area is located. For example, as shown in fig. 3, thenumbers 1,2,3, and 4 may be used to represent the left, upper, right, and lower four sides of the application icon area, respectively. In setting a specific prestored operation rule, CA1 and CA2 represent specific number combinations, such as (1, 4) representing the corresponding operation rule when the first intersection point of the touch trajectory and the application icon area is located at the left side of the icon and the last intersection point is located at the lower side of the icon. And so on. CA3 is a specific operation specifically executed for the application corresponding to the application icon. Which may be but is not limited to opening, uninstalling, or upgrading, etc.
And during the specific matching, converting the coordinates of the acquired first intersection point and the acquired last intersection point into which side of the application icon area the intersection point specifically corresponds, and expressing the side by using the corresponding number.
For example, if the first intersection is on the left side of the application icon area, P1 would be converted to 1, and if the last intersection is on the right side of the application icon area, P2 would be converted to 3. And matching the P1 and the P2 with the prestored operation rules, and determining that the matching is successful as long as the prestored operation rules of which the CA1 is 1 and the CA2 is 3 are found.
For example, if the icon region of the application APP1 is a coordinate region satisfying xapp11 ≦ x ≦ xapp12 and yapp11 ≦ y ≦ yapp12, the first intersection of the touch trajectory with the application icon region is P1(xP1, yP1), P1 is converted to 1 if xP1 ≦ xapp11 and yapp11< yP1< yapp12, P1 is converted to 2 if yP1 ≦ yapp12 and xapp11< xP1< xapp12, P1 is converted to 3 if xP1 ≦ xapp12 and yapp11< yP1< yapp12, and P1 is converted to 3894 if yP1 ≦ yapp11 and xapp11< xpp 1< xapp12 are satisfied.
Performing a determination process once for each new touch point of the touch trajectory, when it is detected that the touch trajectory new touch point is not on the application icon region, acquiring a last intersection point P2 of the touch trajectory previous to the touch point, i.e., the touch trajectory and the application icon region, and setting P2 coordinates as P2(xP2, yP2), where P2 is converted to 1 if xP2 is satisfied and yapp11< yP2< yapp12, P12 is converted to 2 if xP2 is satisfied and xapp12 <xP 12 < xapp12, P12 is converted to 3 ifxP 12 is satisfied and yapp12 < yapp12, and P12 is converted to 3 ifxP 12 is satisfied.
Of course, other location parameters may be used as parameters for the pre-stored operation rules. Such as a range of coordinate values, etc. And when matching is carried out, converting the acquired intersection point coordinates into a position parameter form corresponding to a prestored operation rule. The embodiments of the present invention are not necessarily illustrated.
Theprocessing module 15 is configured to, when the matching is successful, perform an operation on the application corresponding to the application icon according to a pre-stored operation rule.
After the matching is successful, theprocessing module 15 executes an operation on the application corresponding to the application icon according to the pre-stored operation rule. For example, P1 and P2 satisfy (1, 3), and the operation rule of (1, 3, uninstall) exists in the pre-stored operation rules, then the uninstall operation is performed on the application corresponding to the icon.
The touch screen terminal provided by the embodiment of the invention can be but is not limited to a touch screen mobile phone, a tablet personal computer, a touch all-in-one machine, an intelligent television and the like. Of course, other touch screen terminals capable of implementing the technical solution of the present invention are also possible.
As can be understood from the above detailed description of the touch screen terminal application operation method and the specific embodiment of the touch screen terminal provided in the embodiments of the present invention, by detecting a touch trajectory generated by a gesture operation performed by a user on a touch screen, determining whether the gesture operation satisfies a predetermined rule according to the touch trajectory, when the gesture operation satisfies the predetermined rule, respectively obtaining a first intersection point and a last intersection point of the touch trajectory generated by the gesture operation and an application icon area, and matching the first intersection point and the last intersection point with a prestored operation rule, and when the matching is successful, performing an operation on an application corresponding to the application icon according to the prestored operation rule. The invention provides a new method for operating the application, which can complete the operation of the application only by one step, thereby reducing the difficulty of the operation of the application and simultaneously improving the efficiency of the operation of the application, thereby bringing better use experience to users. Compared with the existing scheme of identifying response operation through the touch track, the operation scheme of the invention is more flexible and diversified, and the identification process is simpler and more convenient.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present 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 integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.