Summary of the invention
The object of the present invention is to provide a kind of disposal route and touch control device of touch screen operation, be intended to solve the user who exists in the prior art and when carrying out the touch screen operation, touch easily other membrane keyboards, thereby cause maloperation, operate the problem of making troubles to the user.
The present invention is achieved in that a kind of disposal route of touch screen operation, said method comprising the steps of:
Obtain the operation interface in application program that sets in advance and carry out the coordinate information that needs the button of shielding in the slide process;
Obtain the trajectory coordinates information that slide produces;
Judge whether described trajectory coordinates information comprises the coordinate information of the button that needs shielding;
If then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
Another object of the present invention is to provide a kind of touch control device, described touch control device comprises: touch-screen, touch screen induction device and processor;
Described touch screen induction device comprises: shielding button acquiring unit, coordinate acquiring unit;
Described processor comprises: touching judging unit and execution control module;
Shielding button acquiring unit is used for obtaining the operation interface in application program that sets in advance and carries out the coordinate information that the slide process needs the button of shielding;
The coordinate acquiring unit is used for obtaining the trajectory coordinates information that slide produces;
The touching judging unit is used for judging whether described trajectory coordinates information comprises the coordinate information of the button that needs shielding;
Carry out control module, if be used for judging the coordinate information that comprises the button that needs shielding, then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
In the present invention, because when the operation interface of application program is carried out touch operation, can judge in advance whether slide of described touch operation, if slide then further judges whether touch the button that needs shielding in the slide process, in case user's false touch is to these buttons that need shield, and the false touch that belonging to slides causes is so then disregarded the event that the button of the need shielding of this moment reports, if the direct click keys of user is so then processed by normal flow; So just, reduced the unnecessary trouble that maloperation brings to the user.Hence one can see that, and the scheme of the embodiment of the invention can effectively reduce the unnecessary trouble that the operation error because of the user brings, and brings better experience to the user.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also Fig. 1, the realization flow of the disposal route that the touch screen that provides for one embodiment of the invention operates, it may further comprise the steps:
In step S101, obtain the operation interface in application program that sets in advance and carry out the coordinate information that needs the button of shielding in the slide process.
In embodiments of the present invention, when receiving the application program open command, obtain the operation interface in application program that sets in advance and carry out the coordinate information that needs the button of shielding in the slide process.Wherein, the coordinate information of the described button that need shield is system default, or, after receiving the user instruction being set, according to the user instruction is set and sets in advance different application programs and carry out the coordinate information that needs the button of shielding in slide process at its operation interface.Yet, be understandable that the coordinate information of the described button that need shield can be the coordinate figure of button correspondence on touch screen.
In step S102, obtain the trajectory coordinates information that slide produces.
In step S103, judge whether described trajectory coordinates information comprises the coordinate information of the button that needs shielding.
In embodiments of the present invention, the described button that need shield has the coordinate figure of correspondence in touch screen, if when including the coordinate figure of the button correspondence on touch screen that needs shielding in the trajectory coordinates information, then thinks to have touched the described button that need shield.
In step S104, if then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
See also Fig. 2, the realization flow of the disposal route that the touch screen that provides for another embodiment of the present invention operates, it may further comprise the steps:
In step S201, obtain the operation interface in application program that sets in advance and carry out the key information that needs shielding in the slide process.
In embodiments of the present invention, can set in advance different application programs according to customer requirements and carry out the key information that needs shielding in the slide process at its operation interface.Yet, be understandable that the described key information that needs to shield can be the coordinate figure of button title or button correspondence on touch screen.
In step S202, when when the operation interface of described application program is carried out touch operation, obtain the trajectory coordinates information that this touch operation produces.
In step S203, judge whether slide of described touch operation according to described trajectory coordinates information.
In step S204, be slide if judge described touch operation, then further judge according to described trajectory coordinates information whether described slide touches the described key information that needs shielding.
In embodiments of the present invention, the described button that need shield has the coordinate figure of correspondence in touch screen, if when including the coordinate figure of the button correspondence on touch screen that needs shielding in the trajectory coordinates information, then thinks to have touched the described button that need shield.
In step S205, touch the described key information that needs shielding if judge described slide, then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
Optionally, see also Fig. 3, the realization flow of the disposal route that the touch screen that provides for another embodiment of the present invention operates, the disposal route of described touch screen operation is further comprising the steps of:
In step S206, do not touch the described key information that needs shielding if judge described slide, then carry out slide.
In step S207, not slide if judge described touch operation, then carry out button clicking operation corresponding to this trajectory coordinates.
In embodiments of the present invention, on the function setting interface of each application program, set in advance at the operation interface of each application program and carry out the key information that needs shielding in the slide process.Be understandable that, for different application programs, can this operation interface is carried out needs shielding in the slide process key information be set according to customer requirements.
In embodiments of the present invention, in order to solve the false touch action that causes because of the slip gesture, distinguish the touch of whether sliding during to the touch event of screen in process user, the buttons such as Home or back have been touched if slide in the process that touches and slide, think that so then this is the result of user's false touch, then disregards the event that the buttons such as this Home or back report to this situation.The user can call onTouchEvent when touch-screen is carried out touch operation, concrete realization can be in Android the onTouchEvent event of view object in the touch operation carried out at the operation interface of application program of judgement ACTION_DOWN (push) whether, among ACTION_MOVE (slide) or the ACTION_UP (lifting action) which kind of, if ACTION_MOVE so a marker bit isGlideGasture be set to true, this isGlideGasture is used for the mark user at the execution slide, and when sliding, meet HOME or BACK button, so after this key reported event and to detect isGlideGasture value be true, so then disregard the reported event of this button, and if the user directly clicks this button, so then process according to normal condition.
Below by son for example the effect that the disposal route of the touch screen operation that the embodiment of the invention provides is brought is described.
Implement scene one: at first, the user is arranged on and carries out on the operation interface of this browser that to need the button of shielding in the slide process be home, back, and menu key on the function setting interface of browser application.When the user when using the browser browsing page or seeing e-book, carry out page turn over operation by sliding up and down gesture, at this moment, the user carries out and has touched home when sliding up and down gesture, back, or during the menu key, carrying out the button that needs in the slide process to shield according to the operation interface at this browser that sets in advance is home, back, with the menu key, can not carry out home, back this moment, or corresponding the turning back to main interface or withdraw from application or the operation of opening master menu of menu key, only carry out sliding up and down page turn over operation corresponding to gesture.
Implement scene two: at first, the user is arranged on and carries out on the operation interface of this game that to need the button of shielding in the slide process be the back key on the function setting interface of game application.When the user when playing games with touch-screen mobile phone, for example at present popular game " the fruit person of bearing ", the user will cut by slidably reciprocating at screen the fruit that rises or fall, at this moment, the user accidentally runs into the back key, but owing to the button that is provided with need shielding in the operation interface execution slide process of this game is the back key.Therefore, can not carry out this back key corresponding withdraw from application, the user then can experience game heartily like this, and need not worry to touch because of carelessness the misgivings of back key when cutting the fruit that rises or fall owing to slidably reciprocate at screen.
See also Fig. 4, the structure of the touch control device that provides for the embodiment of the invention.For convenience of explanation, only show the part relevant with the embodiment of the invention.Described touch control device mainly comprises: touch-screen, touch screen induction device and processor.
Described touch screen induction device comprises: shielding button acquiring unit 101, coordinate acquiring unit 102.
Described processor comprises: touching judging unit 104 and execution control module 105.
Shielding button acquiring unit is used for obtaining the operation interface in application program that sets in advance and carries out the coordinate information that the slide process needs the button of shielding.
The coordinate acquiring unit is used for obtaining the trajectory coordinates information that slide produces.
The touching judging unit is used for judging whether described trajectory coordinates information comprises the coordinate information of the button that needs shielding.
Carry out control module, if be used for judging the coordinate information that comprises the button that needs shielding, then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
In embodiments of the present invention
Described shielding button acquiring unit when specifically being used for receiving the application program open command, obtaining the operation interface in application program that sets in advance and carries out the coordinate information that needs the button of shielding in the slide process.
As another embodiment of the present invention, described processor also comprises:
Setting unit after being used for receiving the user instruction being set, arranges instruction according to the user and sets in advance different application programs and carry out the coordinate information that needs the button of shielding in slide process at its operation interface.
See also Fig. 5, the structure of the touch control device that provides for the embodiment of the invention.For convenience of explanation, only show the part relevant with the embodiment of the invention.Described touch control device mainly comprises: touch-screen, touch screen induction device and processor.
Described touch screen induction device comprises: shielding button acquiring unit 201, coordinate acquiring unit 202.
Described processor comprises: slide judging unit 203, touching judging unit 204 and execution control module 205.
Shielding button acquiring unit 201 is used for obtaining the operation interface in application program that sets in advance and carries out the key information that the slide process needs shielding.
Coordinate acquiring unit 202 is used for obtaining the trajectory coordinates information that this touch operation produces when when the operation interface of described application program is carried out touch operation.
Slide judging unit 203 is used for judging whether slide of described touch operation according to described trajectory coordinates information.
Touching judging unit 204 is slide if be used for judging described touch operation, then further judges according to described trajectory coordinates information whether described slide touches the described key information that needs shielding.
Carry out control module 205, touch the described key information that needs shielding if be used for judging described slide, then do not carry out described operation corresponding to button that needs shielding, and carry out slide.
Optionally, carry out control module 205, do not touch the described button that needs shielding if also be used for judging described slide, then carry out slide; And if to be used for judging described touch operation be not slide, then carry out button clicking operation corresponding to this trajectory coordinates.
As one embodiment of the invention, if described touching judging unit 204 when specifically including the coordinate figure of the button correspondence on touch screen that needs shielding for trajectory coordinates information, is then thought to have touched the described button that need shield.
As another embodiment of the present invention, described processor also comprises: setting unit.
Described setting unit is used at the function setting interface of each application program, is arranged on the operation interface of each application program and carries out the key information that needs shielding in the slide process.
Be understandable that, for different application programs, can this operation interface is carried out needs shielding in the slide process key information be set according to customer requirements.
In sum, the embodiment of the invention is because when the operation interface of application program is carried out touch operation, can judge in advance whether slide of described touch operation, if slide then further judges whether touch the button that needs shielding in the slide process, in case user's false touch is to these buttons that need shield, and belong to the false touch of sliding and causing, so then disregard the event that the button of the need shielding of this moment reports, if the direct click keys of user is so then processed by normal flow; So just, reduced the unnecessary trouble that maloperation brings to the user.Hence one can see that, and the scheme of the embodiment of the invention can effectively reduce the unnecessary trouble that the operation error because of the user brings, and brings better experience to the user.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in the computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.