Automatically software and the method for display interface of mobile phone is regulated based on right-hand man
Technical field
The present invention relates to mobile phone display control technology field, particularly relate to a kind of software and the method that automatically regulate display interface of mobile phone based on right-hand man.
Background technology
Along with the fast development of smart mobile phone is with universal, smart mobile phone has become indispensable a kind of basic tool in people's life.Smart mobile phone, except being a kind of communication tool, is also a kind of amusement and Relexing device.People have more and more got used to using smart mobile phone to surf the Net, play games, use various fresh interesting application program etc.People are when using mobile phone to play games, seeing video, large-screen mobile phone can bring better experience, but also there is shortcoming in large-screen mobile phone, during as one-handed performance, we want to click rightmost virtual key, but in fact our finger tripe has touched leftmost virtual key, will perform the operation that some are not our original ideas this time, if the position of virtual key now automatically can be changed, so just this problem can be solved well.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of software and the method that automatically regulate display interface of mobile phone based on right-hand man are provided, automatically can detect user current is left-handed operation or right-hand operated, and adjusts the distributing position of icon and virtual key on touch-screen.
The object of the invention is to be achieved through the following technical solutions: the software automatically regulating display interface of mobile phone based on right-hand man, comprises data acquisition module, gradient detection module, the first judge module, the second judge module, deflection angle detection module, processing module and execution module;
Described data acquisition module, gathers user's slip data on the touchscreen;
Described gradient detection module, calculates slip slope according to slip data;
Described first judge module, judges user's left-handed operation or right-hand operated according to slip slope, obtains the first judged result;
Described deflection angle detection module, gathers deflection angle during user operation mobile phone;
Described second judge module, judges user's left-handed operation or right-hand operated according to deflection angle, obtains the second judged result;
Described processing module, calculates final judged result according to the first judged result and the second judged result;
Described execution module, according to the final judged result adjustment icon of touch-screen and the position of virtual key.
Further, also comprise and judge that proportion arranges module, the first judged result and the second judged result proportion separately when calculating final judged result for arranging.
Further, also comprise interface and module is set, the distributing position of each icon and virtual key on touch-screen during for arranging left-handed operation and right-hand operated.
Automatically regulate the method for display interface of mobile phone based on right-hand man, comprise the following steps:
S1. the coordinate system of handset touch panel is set up, with the touch-screen upper right corner for touching initial point, the touch-screen lower left corner is touch-screen ultimate resolution point, and user carries out repeatedly slide on the touchscreen, gathers the coordinate data that user carries out repeatedly slide on the touchscreen;
S2. calculate repeatedly the slope of slide according to the coordinate data of repeatedly slide, and try to achieve repeatedly the arithmetic mean of the slope of slide;
If the arithmetic mean S3. in step S2 is greater than zero, being then right-hand operated, if arithmetic mean is less than zero, is then left-handed operation, if arithmetic mean is zero or infinitely great, then user slides touch-screen in vertical or horizontal direction, obtains the first judged result;
S4. deflection angle during multi collect user operation mobile phone;
S5. judge user's left-handed operation or right-hand operated according to deflection angle, obtain the second judged result;
S6. according to the first judged result, the second judged result and the first judged result and the second judged result separately proportion calculate final judged result;
S7. according to the final judged result adjustment icon of touch-screen and the position of virtual key.
Described step S5 comprises following sub-step:
S51. according to the angle thresholding relative discern left-handed operation of deflection angle and setting or right-hand operated and stored count;
If S52. described stored count exceedes the corresponding count threshold of setting, obtain the second judged result.
The step that the first judged result and the second judged result proportion separately when calculating final judged result are set also is comprised before step S6.
The step of the distributing position of each icon and virtual key on touch-screen when left-handed operation and right-hand operated are set also is comprised before step S7.
The invention has the beneficial effects as follows:
(1) the present invention can detect user current is automatically left-handed operation or right-hand operated, and adjusts icon and void on touch-screen
Intend the distributing position of button;
(2) icon and virtual key on touch-screen when user can arrange left-handed operation and right-hand operated according to the use habit of oneself
Distributing position;
(3) by slip slope detection and deflection angle detect two kinds of methods combine judge user's left-handed operation or the right hand behaviour
Do, improve the accuracy rate of judgement.
Accompanying drawing explanation
Fig. 1 the present invention is based on the structured flowchart that right-hand man regulates the software of display interface of mobile phone automatically;
Fig. 2 the present invention is based on the process flow diagram that right-hand man regulates the method for display interface of mobile phone automatically.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to the following stated.
As shown in Figure 1, automatically regulate the software of display interface of mobile phone based on right-hand man, comprise data acquisition module, gradient detection module, the first judge module, the second judge module, deflection angle detection module, processing module and execution module; Described data acquisition module, gathers user's slip data on the touchscreen; Described gradient detection module, calculates slip slope according to slip data; Described first judge module, judges user's left-handed operation or right-hand operated according to slip slope, obtains the first judged result; Described deflection angle detection module, gather deflection angle during user operation mobile phone, deflection angle detection module is built-in gyroscope or angle displacement sensor; Described second judge module, judges user's left-handed operation or right-hand operated according to deflection angle, obtains the second judged result; Described processing module, calculates final judged result according to the first judged result and the second judged result; Described execution module, according to the final judged result adjustment icon of touch-screen and the position of virtual key.
Further, also comprise and judge that proportion arranges module, the first judged result and the second judged result proportion separately when calculating final judged result for arranging.
Further, also comprise interface and module is set, the distributing position of each icon and virtual key on touch-screen during for arranging left-handed operation and right-hand operated.
Further, also comprise startup module, for starting the software automatically regulating display interface of mobile phone based on right-hand man.
As shown in Figure 2, based on the method that right-hand man regulates display interface of mobile phone automatically, comprise the following steps:
S1. the coordinate system of handset touch panel is set up, with the touch-screen upper right corner for touching initial point, the touch-screen lower left corner is touch-screen ultimate resolution point, and user carries out repeatedly slide on the touchscreen, gathers the coordinate data that user carries out repeatedly slide on the touchscreen;
S2. calculate repeatedly the slope of slide according to the coordinate data of repeatedly slide, and try to achieve repeatedly the arithmetic mean of the slope of slide; By asking for repeatedly the arithmetic mean of the slope of slide, the accuracy of judgement can be improved.
If the arithmetic mean S3. in step S2 is greater than zero, being then right-hand operated, if arithmetic mean is less than zero, is then left-handed operation, if arithmetic mean is zero or infinitely great, then user slides touch-screen in vertical or horizontal direction, obtains the first judged result;
S4. deflection angle during multi collect user operation mobile phone;
S5. judge user's left-handed operation or right-hand operated according to deflection angle, obtain the second judged result;
Described step S5 comprises following sub-step:
S51. according to the angle thresholding relative discern left-handed operation of deflection angle and setting or right-hand operated and stored count;
If S52. described stored count exceedes the corresponding count threshold of setting, obtain the second judged result, and reset stored count.
S6. according to the first judged result, the second judged result and the first judged result and the second judged result separately proportion calculate final judged result;
S7. according to the final judged result adjustment icon of touch-screen and the position of virtual key, make it to match with user's current operation.
The step that the first judged result and the second judged result proportion separately when calculating final judged result are set also is comprised before step S6.User can according to oneself to the trusting degree of the first judged result and the second judged result arrange calculate final judged result time the first judged result and the second judged result proportion separately.The first judged result can be set to account for the 80%, second judged result and account for 20%, also can be set to the first judged result account for the 30%, second judged result and account for 70%, the first judged result can also be set to account for the 100%, second judged result and account for 0%, the first judged result can also be set to and account for the 0%, second judged result and account for 100%.If when the probability that final judged result is left-handed operation or right-hand operated is positioned at 40% ~ 60%, then do not adjust the icon of touch-screen and the distributing position of virtual key.
The step of the distributing position of each icon and virtual key on touch-screen when left-handed operation and right-hand operated are set also is comprised before step S7.The distributing position of each icon and virtual key on touch-screen when user can arrange left-handed operation and right-hand operated according to the use habit of oneself.Oneself conventional icon and virtual key can be arranged on from the position close to the hand of gripping mobile phone by user, the icon be of little use and virtual key are arranged on from the position away from the hand of gripping mobile phone, are user-friendly to mobile phone.