Summary of the invention
Provide a kind of method of adjustment and device of button identification area in the embodiment of the present invention, can maloperation be reduced, promote Consumer's Experience.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
First aspect, provides a kind of method of adjustment of button identification area, comprising:
Obtain user touch screen area on the touchscreen;
Judge whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen, the identified region of described button is used for whether clicking described button according to the position judgment user of user touch screen area;
If do not mate, then the size of the identified region of described button is adjusted to and matches with the size of described touch screen area.
In conjunction with above-mentioned first aspect, in the implementation that the first is possible, describedly judge whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen, specifically comprises:
Calculate the difference of the area of the area of described touch screen area and the identified region of described button;
Judge whether the absolute value of described difference is more than or equal to area threshold, if the absolute value of described difference is more than or equal to described area threshold, then the size of described touch screen area is not mated with the size of the identified region of described button, if the absolute value of described difference is less than described area threshold, then the size of described touch screen area is mated with the size of the identified region of described button.
In conjunction with above-mentioned first aspect, and/or the first possible implementation, in the implementation that the second is possible, the described size by the identified region of described button is adjusted to and matches with the size of described touch screen area, specifically comprises:
Adjust the size of the identified region of described button, make the absolute value of the area difference of the identified region of the area of described touch screen area and described button be less than described area threshold.
In conjunction with above-mentioned first aspect, and/or the first possible implementation, and/or the implementation that the second is possible, in the implementation that the third is possible, describedly judge whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen, specifically comprises:
Calculate the difference between the most long-diagonal of described touch screen area and the most long-diagonal of the identified region of described button;
Judge whether the absolute value of described difference is more than or equal to length threshold, if the absolute value of described difference is more than or equal to described length threshold, then the size of described touch screen area is not mated with the size of the identified region of described button, if the absolute value of described difference is less than described length threshold, then the size of described touch screen area is mated with the size of the identified region of described button.
In conjunction with above-mentioned first aspect, and/or the first possible implementation, and/or the implementation that the second is possible, and/or the third possible implementation, in the 4th kind of possible implementation, also comprise:
When the size of described touch screen area is not mated with the size of the identified region of described button, adjust the size of the viewing area of described button, wherein, the viewing area of described button expands with the expansion of the identified region of described button, and/or the viewing area of described button is with the reducing and reduce of identified region of described button.
Second aspect, provides a kind of adjusting gear of button identification area, comprising:
Area acquisition unit, obtains user touch screen area on the touchscreen;
Judging unit, for judging whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen, the identified region of described button is used for whether clicking described button according to the position judgment user of user touch screen area;
Adjustment unit, during for judging that the size of described touch screen area is not mated with the size of the identified region of button on described touch-screen when described judging unit, being adjusted to the size of the identified region of described button and matching with the size of described touch screen area.
In conjunction with above-mentioned second aspect, in the implementation that the first is possible, described judging unit comprises:
Computation subunit, for the difference of the area of the identified region of the area and described button that calculate described touch screen area;
Judgment sub-unit, for judging whether the absolute value of described difference is more than or equal to area threshold, if the absolute value of described difference is more than or equal to described area threshold, then the size of described touch screen area is not mated with the size of the identified region of described button, if the absolute value of described difference is less than described area threshold, then the size of described touch screen area is mated with the size of the identified region of described button.
In conjunction with above-mentioned second aspect, and/or the first possible implementation, in the implementation that the second is possible, described adjustment unit, specifically for adjusting the size of the identified region of described button, the absolute value of the area difference of the identified region of the area of described touch screen area and described button is made to be less than described area threshold.
In conjunction with above-mentioned second aspect, and/or the first possible implementation, and/or the implementation that the second is possible, in the implementation that the third is possible, described adjustment unit, also for when the size of described touch screen area is not mated with the size of the identified region of described button, adjust the size of the viewing area of described button, wherein, the viewing area of described button expands with the expansion of the identified region of described button, and/or the viewing area of described button is with the reducing and reduce of identified region of described button.
The third aspect, provides a kind of electronic equipment, comprises touch-screen, storer and processor, stores one section of program in described storer, and described processor, for reading the described program in described storer, performs following steps:
Obtain user touch screen area on the touchscreen;
Judge whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen, the identified region of described button is used for whether clicking described button according to the position judgment user of user touch screen area;
If do not mate, then the size of the identified region of described button is adjusted to and matches with the size of described touch screen area.
The embodiment of the present invention is by adjusting the identified region size of the button on touch-screen according to user's touch screen area size on the touchscreen, match to make touch screen area size and button identification area, when decreasing user's touch screen, the maloperation causing pushbutton recognition mistake to produce because touch screen area is excessive etc., thus improve Consumer's Experience.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, it is the method for adjustment process flow diagram of a kind of button identification area of the embodiment of the present invention.
Electronic equipment in the embodiment of the present invention has touch-screen, and user, can by all or part of manipulation of touch-sensitive screen contact button realization to this electronic equipment when using this electronic equipment.Wherein, user can form touch screen area with touch-screen when point touching shields.Each touchscreen button has its certain viewing area on screen, comprises size and the position of viewing area, and the viewing area of each touchscreen button is all not identical; The corresponding certain identified region of each touchscreen button, the identified region of button is used for whether clicking this button according to the position judgment user of user touch screen area, when the touch screen position of user is positioned at the identified region of a certain button, as being positioned at the identified region of button " transmission ", then confirm that this user clicks " transmission " button.The identified region of each touchscreen button can position different, size is identical, such as button identification area can be with the center of the viewing area of button for the center of circle, and take certain length as the circle of radius, the size of the circle corresponding to the identified region of each button is identical.The size of button identification area can set as required and change, and not immobilizes.
In the present embodiment, the method for adjustment of button identification area can comprise:
Step 101, obtains user touch screen area on the touchscreen.
This electronic equipment can obtain user's contact position on the touchscreen, and then determines user touch screen area on the touchscreen.The mean size of user and touch-screen contact area when the size representative of consumer of this touch screen area carries out tapping operation on the touchscreen, this touch screen area that different user taps formation is not of uniform size, such as man's finger is comparatively thick, and the touch screen area formed when tapping is greater than the touch screen area formed when Ms taps.This touch screen area that user is formed on the touchscreen can be positioned at the viewing area of button on touch-screen, also can be positioned at other positions on touch-screen.
Step 102, judges whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen.
After obtaining user touch screen area on the touchscreen, obtain the size of the identified region of the button of current setting in this electronic equipment, then judge whether the size of touch screen area mates with the size of button identification area, whether the size also namely comparing touch screen area is similar to the size of button identification area.
Concrete, the difference between difference between touch screen area and the most long-diagonal in button identification area two region or diameter can be calculated, wherein, diagonal line can refer to the line formed between any two points non-adjacent in each point on the border of this touch screen area (or button identification area); If the absolute value of difference is more than or equal to pre-set length threshold, then think that two regions are not mated, if the absolute value of difference is less than this pre-set length threshold, then think that two regions match.This determines that the method for whether mating in two regions is a lot, will not enumerate herein.
If the size of touch screen area is mated with the size of the identified region of button, then without the need to adjusting the size of current button identification area; If the size of touch screen area is not mated with the size of the identified region of button, then perform next step.
Step 103, matches the size of the size of the identified region of described button adjustment as described touch screen area.
If touch screen area is larger than the identified region of button, and two area size differ by more than threshold value, then the identified region of button can be tuned up, and match to make the size of button identification area and touch screen area.If the identified region of button is larger than touch screen area, and two area size differ by more than threshold value, then the identified region of button can be turned down, match to make the size of button identification area and touch screen area, certainly, generally can not cause maloperation in this situation, therefore also can not adjust the identified region of button.
The process of this adjustment button identification area can be according to the size of the touch screen area proportionate relationship according to the touch screen area size preset and button identification area size, the size of the identified region of real-time confirming button; Also can be in the size of the button identification area multiple for subsequent use preset, select a button identification area as electronic equipment immediate with touch screen area size.
The embodiment of the present invention is by adjusting the identified region size of the button on touch-screen according to user's touch screen area size on the touchscreen, match to make touch screen area size and button identification area, when decreasing user's touch screen, the maloperation causing pushbutton recognition mistake to produce because touch screen area is excessive etc., thus improve Consumer's Experience.
In another embodiment of the invention, as shown in Figure 2, this judges to comprise the process whether size of touch screen area mates with the size of the identified region of button on touch-screen:
Step 201, calculates the difference of the area of the area of touch screen area and the identified region of button.
Step 202, judges whether the absolute value of this difference is more than or equal to area threshold.
If the absolute value of the difference of the area of the area of touch screen area and button identification area is more than or equal to area threshold, then can determine that the size of touch screen area is not mated with the size of the identified region of button, now perform step 203.
If the absolute value of difference is less than area threshold, then can determine that the size of touch screen area is mated with the size of the identified region of button, now without the need to adjusting button identification area.
Wherein, area threshold is preset value, and concrete numerical value can be determined as required, does not limit herein.
Step 203, the size of the identified region of adjustment button, makes the absolute value of the area difference of the area of touch screen area and the identified region of button be less than area threshold.
If touch screen area area is much larger than the area of the identified region of button, both differences are more than or equal to area threshold, then very easily cause the maloperation of user, now can expand the identified region of button, increase its region area, thus the difference of the area of the area of touch screen area and the identified region of button can be made to be less than this area threshold, two regions can be matched.If the identified region area of button is much larger than the area of touch screen area, both differences are more than or equal to area threshold, now also can reduce the identified region of button, reduce its region area, thus the difference of the area of the identified region of button and the area of touch screen area can be made to be less than this area threshold, two regions can be matched.
In another embodiment of the invention, button display area can have certain incidence relation with the identified region of button, such as, the viewing area of button can expand with the expansion of the identified region of button, and/or the viewing area of button can reducing and reduce with the identified region of button, when the size of touch screen area is not mated with the size of the identified region of button, the method can also comprise:
The size of the viewing area of adjustment button.
The step of the viewing area of this adjustment button can be carried out simultaneously with the step of the identified region of adjustment button or successively carry out, and sequencing does not limit.
If the viewing area of electronic equipment is less, when being not suitable for expanding the viewing area of button, or in order to avoid button display area excessive and block other displaying contents of electronic equipment time, can the identified region of an expansion button; If the button display area of electronic equipment is unrestricted, also when adjusting the identified region of button, the viewing area of button can be adjusted simultaneously, such as, expands the identified region of button simultaneously, and the viewing area of button.
In another embodiment of the invention, after the identified region of adjustment button, the identified region size of the button after adjustment can also be preserved further, so that keep the size of the identified region of the button after this adjustment in the subsequent operation of this user always, and avoid the size of the touch screen area repeating to judge user whether to mate with the size of the identified region of button on touch-screen, and repeat the adjustment action of button identification area.
In another embodiment of the invention, when electronic apparatus application is in multi-user scene, before or after obtaining user touch screen area on the touchscreen, can also comprise: after receiving decision instruction, perform the above-mentioned the step whether size of touch screen area mates with the size of the identified region of the button on touch-screen that judges again, so that multiple user operation uses.
Be more than the description to the inventive method embodiment, below the device realizing said method be introduced.
See Fig. 3, it is the structural representation of the adjusting gear of a kind of button identification area of the embodiment of the present invention.
This device can comprise:
Area acquisition unit 301, obtains user touch screen area on the touchscreen.
Judging unit 302, for judging whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen.
Adjustment unit 303, for when described judging unit 302 judges that the size of described touch screen area is not mated with the size of the identified region of button on described touch-screen, is adjusted to the size of the identified region of described button and matches with the size of described touch screen area.
This device is by adjusting the identified region size of the button on touch-screen according to user's touch screen area size on the touchscreen, match to make touch screen area size and button identification area, when decreasing user's touch screen, the maloperation causing pushbutton recognition mistake to produce because touch screen area is excessive etc., thus improve Consumer's Experience.
In another embodiment of the invention, as shown in Figure 4, this judging unit 302 may further include again:
Computation subunit 401, for the difference of the area of the identified region of the area and described button that calculate described touch screen area;
Judgment sub-unit 402, for judging whether the absolute value of described difference is more than or equal to area threshold, if the absolute value of described difference is more than or equal to described area threshold, then the size of described touch screen area is not mated with the size of the identified region of described button, if the absolute value of described difference is less than described area threshold, then the size of described touch screen area is mated with the size of the identified region of described button.
In another embodiment, this adjustment unit, specifically may be used for the size of the identified region adjusting described button, makes the absolute value of the area difference of the identified region of the area of described touch screen area and described button be less than described area threshold.
Adjustment unit, can also be used for when the size of described touch screen area is not mated with the size of the identified region of described button, adjust the size of the viewing area of described button, wherein, the viewing area of described button expands with the expansion of the identified region of described button, and/or the viewing area of described button is with the reducing and reduce of identified region of described button.
The embodiment of the present invention additionally provides a kind of electronic equipment, comprises touch-screen, storer and processor, stores one section of program in described storer, and described processor, for reading the described program in described storer, performs following steps:
Obtain user touch screen area on the touchscreen;
Judge whether the size of described touch screen area mates with the size of the identified region of button on described touch-screen;
If do not mate, then the size of the identified region of described button is adjusted to and matches with the size of described touch screen area.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.