Summary of the invention
The object of the present invention is to provide a kind of disposal route and touch control device of contact action, be intended to solve the user existed in prior art and easily touch other membrane keyboards when carrying out touch screen operation, thus cause maloperation, to the problem that user operation is made troubles.
The present invention is achieved in that a kind of disposal route of contact action, said method comprising the steps of:
Obtain the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set;
Obtain the trajectory coordinates information that slide produces;
Judge whether described trajectory coordinates information comprises the coordinate information of the button that need shield;
If so, then do not perform operation corresponding to the described button that need shield, and perform 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, for obtaining the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set;
Coordinate acquiring unit, for obtaining the trajectory coordinates information that slide produces;
Touching judging unit, for judging whether described trajectory coordinates information comprises the coordinate information of the button that need shield;
Perform control module, if for judging the coordinate information comprising the button that need shield, then do not perform the operation that the described button that need shield is corresponding, and perform slide.
In the present invention, during owing to performing touch operation on the operation interface of application program, can judge whether described touch operation is slide in advance, if slide then judges whether touch the button that need shield further in slide process, once the button that user's false touch need shield to these, and belong to the false touch of sliding and causing, the event that the button so then disregarding need shielding now reports, if the direct click keys of user so then processes by normal flow; So just, decrease the unnecessary trouble that maloperation brings to user.It can thus be appreciated that the scheme of the embodiment of the present invention can effectively reduce the unnecessary trouble that the operation error because of user brings, and brings better experience to user.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearly understand, 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, be not intended to limit the present invention.
Refer to Fig. 1, the realization flow of the disposal route of the contact action provided for one embodiment of the invention, it comprises the following steps:
In step S101, obtain the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set.
In embodiments of the present invention, when receiving application program open command, obtain the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set.Wherein, the coordinate information of the described button that need shield is system default, or, receive after user arranges instruction, instruction is set according to user and pre-sets different application programs and perform the coordinate information needing the button shielded in slide process at its operation interface.But be understandable that, the coordinate information of the described button that need shield can be the coordinate figure that button is corresponding in touch screen.
In step s 102, the trajectory coordinates information that slide produces is obtained.
In step s 103, judge whether described trajectory coordinates information comprises the coordinate information of the button that need shield.
In embodiments of the present invention, the described button that need shield has corresponding coordinate figure in touch screen, if when including the coordinate figure of button correspondence in touch screen that need shield in trajectory coordinates information, then think and touched the described button that need shield.
In step S104, if so, then do not perform operation corresponding to the described button that need shield, and perform slide.
Refer to Fig. 2, the realization flow of the disposal route of the contact action provided for another embodiment of the present invention, it comprises the following steps:
In step s 201, what acquisition pre-set performs in slide process the key information needing to shield on the operation interface of application program.
In embodiments of the present invention, can require that pre-setting different application programs performs the key information needing in slide process to shield at its operation interface according to user.But be understandable that, the described key information that need shield can be the coordinate figure that button title or button are corresponding in touch screen.
In step S202, when the operation interface in described application program performs touch operation, obtain the trajectory coordinates information that this touch operation produces.
In step S203, judge whether described touch operation is slide according to described trajectory coordinates information.
In step S204, if judge that described touch operation is slide, then judge whether described slide touches the described key information that need shield according to described trajectory coordinates information further.
In embodiments of the present invention, the described button that need shield has corresponding coordinate figure in touch screen, if when including the coordinate figure of button correspondence in touch screen that need shield in trajectory coordinates information, then think and touched the described button that need shield.
In step S205, if judge that described slide touches the described key information that need shield, then do not perform the operation that the described button that need shield is corresponding, and perform slide.
Optionally, refer to Fig. 3, the realization flow of the disposal route of the contact action provided for another embodiment of the present invention, the disposal route of described contact action is further comprising the steps of:
In step S206, if judge that described slide does not touch the described key information that need shield, then perform slide.
In step S207, if judge that described touch operation is not slide, then perform the button clicking operation that this trajectory coordinates is corresponding.
In embodiments of the present invention, on the function setting interface of each application program, the operation interface being set in advance in each application program performs in slide process the key information needing to shield.Be understandable that, for different application programs, can require that arranging this operation interface performs the key information needing in slide process to shield according to user.
In embodiments of the present invention, in order to solve the false touch action because slip gesture causes, whether distinguish when processing the touch event of user to screen is slide to touch, touch if slide and touched the buttons such as Home or back in the process of sliding, so then think that this is the result of user's false touch, this situation is then disregarded to the event that the buttons such as this Home or back report.User can call onTouchEvent when carrying out touch operation to touch-screen, whether concrete realization can the touch operation that performs on the operation interface of application program of the judgement in the onTouchEvent event of view object in Android be ACTION_DOWN (push), in ACTION_MOVE (slide) or ACTION_UP (lifting action) which kind of, if a marker bit isGlideGasture is so set to true by ACTION_MOVE, this isGlideGasture is used for mark user at execution slide, and HOME or BACK button is encountered in time sliding, so detect that isGlideGasture value is for true after this key reported event, so then disregard the reported event of this button, and if user directly clicks this button, so then process according to normal condition.
The effect that the disposal route describing the contact action that the embodiment of the present invention provides below by citing is brought.
Implement scene one: first, user, on the function setting interface of browser application, the operation interface being arranged on this browser performs in slide process and needs the button shielded to be home, back, and menu key.When user is when using browser browse webpage or see e-book, page turn over operation is performed by sliding up and down gesture, now, user performs when sliding up and down gesture and has touched home, back, or during menu key, the button shielded is needed to be home according to performing on the operation interface of this browser in slide process of pre-setting, back, with menu key, now home can not be performed, back, or corresponding the turning back to main interface or exit the operation of applying or opening master menu of menu key, only perform and slide up and down page turn over operation corresponding to gesture.
Implement scene two: first, user, on the function setting interface of game application, the operation interface being arranged on this game performs in slide process and needs the button shielded to be back key.When user is when playing games with touch-screen mobile phone, such as popular at present game " the fruit person of bearing ", user will by the fruit cutting and rise or fall that slidably reciprocates on screen, now, user accidentally encounters back key, but needs the button shielded to be back key owing to being provided with to perform in slide process on the operation interface of this game.Therefore, can not perform this back key corresponding exit application, such user then can experience game heartily, and need not worry due to slidably reciprocate on screen the fruit cutting and rise or fall time touch the misgivings of back key because of carelessness.
Referring to Fig. 4, is the structure of the touch control device that the embodiment of the present invention provides.For convenience of explanation, illustrate only the part relevant to the embodiment of the present 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, for obtaining the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set.
Coordinate acquiring unit, for obtaining the trajectory coordinates information that slide produces.
Touching judging unit, for judging whether described trajectory coordinates information comprises the coordinate information of the button that need shield.
Perform control module, if for judging the coordinate information comprising the button that need shield, then do not perform the operation that the described button that need shield is corresponding, and perform slide.
In embodiments of the present invention
Described shielding button acquiring unit, during specifically for receiving application program open command, obtains the coordinate information performing in slide process the button needing shielding on the operation interface of application program pre-set.
As another embodiment of the present invention, described processor also comprises:
Setting unit, for receiving after user arranges instruction, arranging instruction according to user and pre-setting different application programs and perform the coordinate information needing the button shielded in slide process at its operation interface.
Referring to Fig. 5, is the structure of the touch control device that the embodiment of the present invention provides.For convenience of explanation, illustrate only the part relevant to the embodiment of the present 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, for obtain pre-set on the operation interface of application program, perform in slide process the key information needing to shield.
Coordinate acquiring unit 202, for when the operation interface in described application program performs touch operation, obtains the trajectory coordinates information that this touch operation produces.
According to described trajectory coordinates information, slide judging unit 203, for judging whether described touch operation is slide.
According to described trajectory coordinates information, touching judging unit 204, if for judging that described touch operation is slide, then judges whether described slide touches the described key information that need shield further.
Perform control module 205, if for judging that described slide touches the described key information that need shield, then do not perform the operation that the described button that need shield is corresponding, and perform slide.
Optionally, control module 205 is performed, if also for judging that described slide does not touch the described button that need shield, then perform slide; And if for judging that described touch operation is not slide, then perform the button clicking operation that this trajectory coordinates is corresponding.
As one embodiment of the invention, described touching judging unit 204, if specifically for including the coordinate figure corresponding in touch screen of the button that need shield in trajectory coordinates information time, then think and touched the described button that need shield.
As another embodiment of the present invention, described processor also comprises: setting unit.
Described setting unit, for the function setting interface in each application program, the operation interface being arranged on each application program performs in slide process the key information needing to shield.
Be understandable that, for different application programs, can require that arranging this operation interface performs the key information needing in slide process to shield according to user.
In sum, when the embodiment of the present invention owing to performing touch operation on the operation interface of application program, can judge whether described touch operation is slide in advance, if slide then judges whether touch the button that need shield further in slide process, once the button that user's false touch need shield to these, and belong to the false touch of sliding and causing, the event that the button so then disregarding need shielding now reports, if the direct click keys of user so then processes by normal flow; So just, decrease the unnecessary trouble that maloperation brings to user.It can thus be appreciated that the scheme of the embodiment of the present invention can effectively reduce the unnecessary trouble that the operation error because of user brings, and brings better experience to user.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.