The content of the invention
In view of the above-mentioned problems, being necessary to provide a kind of method for adjusting virtual keyboard position, this method can facilitate different hands
The user of type size enters row information input.
A kind of method for adjusting virtual keyboard position, including:
Point out user using left thumb in the left side of screen to the left, or using right thumb screen right side to the right
Slide, carry out unlocking screen;
Judge whether unblock succeeds;
If unlocking successfully, dummy keyboard is divided into two sub- keyboards;And
Described two sub-key disks are respectively displayed on screen two ends, and are slided according to the left thumb of user or right thumb on screen
The lateral length of dynamic two sub- keyboards of actual displacement relative set, and the lateral length of two sub- keyboards is equal.
A kind of method for adjusting virtual keyboard position, including:
Prompting user using two thumbs respectively in the left side of screen to the left, slide to the right in the right side of screen, enter
Row unlocking screen;
Judge whether unblock succeeds;
If unlocking successfully, dummy keyboard is divided into two sub- keyboards;And
Described two sub-key disks are respectively displayed on screen two ends, and the reality slided according to the left thumb of user in screen left side
Border displacement sets the lateral length for the sub-key disk for being shown in screen left side, and is slided according to the right thumb of user in screen right side
Dynamic actual displacement is corresponding and lateral length of the sub-key disk that is shown in screen right side.
The method of the adjustment virtual keyboard position, can make dummy keyboard be divided into two sub- keyboards and be located at screen respectively
Two ends, and the position of two sub- keyboards is adjusted according to the not homochirality size of user, different user can be better conformed to
Demand.Also, during by user to unlocking screen, you can the position of dummy keyboard is set, without carrying out extra setting, carry
The convenience that high user uses.
Embodiment
Referring to Fig. 1, Fig. 1 show the flow of the method for the adjustment virtual keyboard position of first embodiment of the invention
Figure.This method comprises the following steps:
Step S11:User is pointed out to carry out unlocking screen.Specifically, prompting user utilizes left thumb in the left side of screen
To the left, or the right side using right thumb in screen is slided to the right, unlocking screen is carried out.
Step S12:Whether interpretation unlocks success.If unlocking successfully, step S13 is performed;Otherwise return to step S11.
In the present embodiment, the left thumb of user is slided and left hand along the direction for being roughly parallel to the top of screen or bottom
The terminal that thumb is slided in screen left side edge, or user right thumb along the direction for being roughly parallel to the top of screen or bottom
The terminal that slip and right thumb are slided then is considered as and unlocked successfully in screen right side edge.
Step S13:Dummy keyboard is divided into two sub- keyboards.In the present embodiment, the key assignments of two sub- keyboards is common
Constitute the key assignments of a complete dummy keyboard.
Step S14:Judge whether the actual displacement that user's thumb is slided is more than or equal to a maximum preset value.If so, then
Perform step S15;Otherwise step S16 is performed.Wherein, the maximum preset value is less than or equal to the half of screen lateral length.
Step S15:Two sub- keyboards are shown in the two ends of screen, and the lateral length of two sub- keyboards of setting is
The maximum preset value.
Step S16:Judge whether the actual displacement that user's thumb is slided is more than a minimum preset value.If so, then performing step
Rapid S17;If not, i.e. if the actual displacement that user's thumb is slided is less than or equal to the minimum preset value, perform step S18.
Step S17:Two sub- keyboards are shown in the two ends of screen, and the lateral length of two sub- keyboards of setting is
The actual displacement value that user's thumb is slided.Flow terminates.
Step S18:Two sub- keyboards are shown in the two ends of screen, and the lateral length of two sub- keyboards of setting is
The minimum preset value.Flow terminates.
Refer to Fig. 2 and Fig. 3, Fig. 2 and Fig. 3 show second embodiment of the invention adjustment virtual keyboard position side
The flow chart of method.This method comprises the following steps:
Step S21:User is pointed out to carry out unlocking screen.Specifically, prompting user utilizes two thumbs respectively in screen
Left side is slided to the right to the left, in the right side of screen, carries out unlocking screen.
Step S22:Judge whether to unlock successfully.If unlocking successfully, step S23 is performed;Conversely, then return to step S21
With follow-up prompts user using two thumbs respectively screen left-half to the left, slided to the right in the right half part of screen,
Carry out unlocking screen.
In the present embodiment, two thumbs of user are slided along the direction for being roughly parallel to the top of screen or bottom, and
When the terminal that the terminal and hand thumb that left hand thumb is slided are slided is respectively screen left side edge and right side edge, then it is considered as solution
Lock successfully.
Step S23:Dummy keyboard is divided into two sub- keyboards, and two sub- keyboards key assignments collectively constitute one it is complete
The key assignments of dummy keyboard.Step S24 and step S29 is performed simultaneously.
Step S24:Judge whether the actual displacement that user slides in screen left side is more than or equal to a maximum preset value.
If so, then performing step S25;Otherwise step S26 is performed.Wherein, the maximum preset value is less than or equal to screen lateral length
Half.
Step S25:The lateral length for setting the sub-key disk for being shown in screen left side is the maximum preset value.Perform step
S34。
Step S26:Judge whether the actual displacement that user slides in screen left side is more than a minimum preset value.If so,
Then perform step S27;If not, i.e. if the actual displacement that user slides in screen left side is less than or equal to the minimum preset value,
Then perform step S28.
Step S27:The lateral length for the sub-key disk for being shown in screen left side is set to be slided for user in screen left side
Actual displacement.Perform step S34.
Step S28:The lateral length for setting the sub-key disk for being shown in screen left side is the minimum preset value.Perform step
S34。
Step S29:Judge whether user is more than or equal to the maximum preset value in the actual displacement of screen right side.When with
Family then performs step S30 when the actual displacement that screen right side is slided is more than or equal to the maximum preset value;Otherwise step is performed
Rapid S31.
Step S30:The lateral length for setting the sub-key disk for being shown in screen right side is the maximum preset value.Perform step
S34。
Step S31:Judge whether user is more than the minimum preset value in the actual displacement that screen right side is slided.If so,
Then perform step S32;If it is not, then performing step S33.
Step S32:The lateral length for the sub-key disk for being shown in screen right side is set to be slided for user in screen left side
Actual displacement.Perform step S34.
Step S33:The lateral length for setting the sub-key disk for being shown in screen left side is the minimum preset value.Perform step
S34。
Step S34:Two sub- keyboards are shown simultaneously, and two sub- keyboards are located at the two ends of screen respectively.Flow terminates.
, can be with this way, by above-mentioned first embodiment and the method for the adjustment virtual keyboard position of second embodiment
Dummy keyboard is divided into two sub- keyboards and be located at the two ends of screen respectively, and two are adjusted according to the not homochirality size of user
The position of individual sub- keyboard, can better conform to the demand of different user.Also, during by user to unlocking screen, you can set
The position of dummy keyboard, without carrying out extra setting, improves the convenience that user uses.