Disclosure of Invention
The invention provides a touch display screen adjusting method and a terminal, which are used for solving the problem that the prior art cannot meet the requirement of a user on the size of a touch display screen.
The invention provides a method for adjusting a touch display screen, which is characterized by comprising the following steps:
and acquiring a touch display screen adjusting instruction.
And determining the information of the touch control range of the touch control display screen according to the adjustment instruction of the touch control display screen.
Generating a touch area of the touch display screen according to the touch range information of the touch display screen, wherein the touch area comprises: at least one touch key.
Optionally, the obtaining of the touch display screen adjustment instruction includes: and receiving an adjustment triggering instruction.
And displaying an adjusting control according to the adjusting triggering instruction.
And receiving a touch display screen adjusting instruction transmitted through the adjusting control.
Further, the adjustment control comprises: a proportional adjustment scrollbar; alternatively, the adjustment control comprises: a lateral adjustment scroll bar and a longitudinal adjustment scroll bar.
Optionally, the obtaining of the touch display screen adjustment instruction includes: and receiving an adjustment triggering instruction.
And receiving gesture information transmitted by the current touch display screen.
And determining a preset gesture matched with the gesture information, and acquiring a touch display screen adjusting instruction corresponding to the preset gesture matched with the gesture information.
Further, the gesture information includes one or more of:
a single finger slide to indicate the scale adjustment.
For indicating a single finger swipe of a large or small size in a single direction.
For indicating a multi-finger slide of a large or small size in multiple directions.
Optionally, the obtaining of the touch display screen adjustment instruction includes: and displaying an adjustment information input window.
Acquiring a touch display screen adjusting instruction input through the input window, wherein the touch display screen adjusting instruction comprises one or more of the following items: adjusting size information, adjusting position information.
A second aspect of the present invention provides a terminal, including:
and the acquisition module is used for receiving the touch display screen adjustment instruction.
And the determining module is used for acquiring the information of the touch range of the touch display screen according to the adjusting instruction of the touch display screen.
A generating module, configured to generate a touchable area of the touch display screen according to the touchable range information of the touch display screen, where the touchable area includes: at least one touch key.
Optionally, the obtaining module is specifically configured to receive an adjustment triggering instruction; displaying an adjusting control according to the adjusting triggering instruction; and receiving a touch display screen adjusting instruction transmitted through the adjusting control.
Optionally, the obtaining module is specifically configured to receive an adjustment triggering instruction; receiving gesture information transmitted by a current touch display screen; and determining a preset gesture matched with the gesture information, and acquiring a touch display screen adjusting instruction corresponding to the preset gesture matched with the gesture information.
Optionally, the obtaining module is specifically configured to display an adjustment information input window; acquiring a touch display screen adjusting instruction input through the input window, wherein the touch display screen adjusting instruction comprises one or more of the following items: adjusting size information, adjusting position information.
According to the touch display screen adjusting method and the terminal, the touch display screen adjusting instruction is obtained; determining the information of the touch control range of the touch control display screen according to the adjustment instruction of the touch control display screen; and generating a touch area of the touch display screen according to the touch range information of the touch display screen. The size of the touch display screen on the mobile terminal can be adjusted through the touch display screen adjusting instruction according to the use requirements of a user in the use process, the mobile terminal determines the size of the touch display screen needing to be displayed according to the touch display screen adjusting instruction, then the touch display screen is adjusted and generated after adjustment, the requirements of the user on the size of the touch display screen are met, and the user experience is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solution of the present invention will be described in detail below with specific examples. These several specific embodiments may be combined with each other below, and details of the same or similar concepts or processes are not repeated in some embodiments.
Fig. 1 is a flowchart illustrating a touch display screen adjustment method according to an embodiment of the invention. The execution main body of the method can be a mobile terminal with a touch display screen, and specifically can be a mobile phone, a tablet computer and the like. As illustrated in fig. 1, the method comprises:
s101, obtaining a touch display screen adjusting instruction.
Specifically, the touch display screen is generally disposed on the mobile terminal, and the touch display screen is in communication connection with the mobile terminal. The user can send an instruction by touching the touch keys on the touch display screen to control the mobile terminal.
The user can trigger the touch display screen adjusting instruction to adjust the touch area of the touch display screen. In an initial state, the touch-enabled range is full, i.e., the entire touch-enabled display screen is a touch-enabled area, and the touch keys may be distributed at various positions of the touch-enabled area.
S102, determining the information of the touch range of the touch display screen according to the touch display screen adjusting instruction.
The touch display screen adjusting instruction can indicate information such as the position and the size of a touch range on the touch display screen, so that the mobile terminal can determine an area range in which a user wants to touch.
S103, generating a touch area of the touch display screen according to the touch range information of the touch display screen, wherein the touch area comprises: at least one touch key.
After the information of the touch control range of the touch control display screen is determined, the touch control area of the touch control display screen is generated, namely the original touch control area is switched to the touch control area corresponding to the information of the touch control range of the touch control display screen, and all the touch control keys on the original touch control display screen are moved to a new touch control area. For example, when the touch display screen is large, the user has a small hand size and wants to touch only a small area at the lower right corner, the user transmits information such as the position and the size of the area that she wants to touch through the touch display screen adjustment instruction, and the mobile terminal generates the touch area of the touch display screen again according to the user's requirement, that is, the touch keys are all moved to the new area, so that the user can operate the touch display screen conveniently.
In the embodiment, a touch display screen adjusting instruction is obtained; determining the information of the touch control range of the touch control display screen according to the adjustment instruction of the touch control display screen; and generating a touch area of the touch display screen according to the touch range information of the touch display screen. The size of the touch display screen on the mobile terminal can be adjusted through the touch display screen adjusting instruction according to the use requirements of a user in the use process, the mobile terminal determines the size of the touch display screen needing to be displayed according to the touch display screen adjusting instruction, then the touch display screen is adjusted and generated after adjustment, the requirements of the user on the size of the touch display screen are met, and the user experience is improved.
Optionally, before generating the touchable area of the touch display screen according to the touchable range information of the touch display screen, the mobile terminal may further determine whether the adjustment instruction of the touch display screen is correct, and make a corresponding response. For example, whether the touch display screen adjustment instruction is correct is judged according to preset touch display screen data:
and obtaining a touch control range of the touch control display screen according to the touch control display screen adjusting instruction, comparing the touch control range of the touch control display screen with the size of a preset touch control display screen, if the touch control range of the touch control display screen is larger than the size of the preset touch control display screen, the touch control display screen adjusting instruction is incorrect, the mobile terminal sends prompt information to remind a user that the touch control display screen adjusting instruction is wrong, and meanwhile, the size of the touch control display screen is not changed, so that the user can input the touch control display screen adjusting instruction again. And if the touch control range of the touch control display screen is smaller than or equal to the size of the preset touch control display screen, generating a touch control area of the touch control display screen according to the touch control range information of the touch control display screen.
Fig. 2 is a schematic view of a touch display screen interface in the touch display screen adjustment method according to an embodiment of the present invention.
Optionally, the obtaining of the touch display screen adjustment instruction may include: and receiving an adjusting trigger instruction, and displaying an adjusting control according to the adjusting trigger instruction. And receiving a touch display screen adjusting instruction transmitted through the adjusting control.
Specifically, the mobile terminal receives a touch display screen adjusting instruction, an adjusting control for adjusting the size of the touch display screen is displayed on the touch display screen, and a user can adjust the size of the touch display screen through the adjusting control.
Further, as shown in fig. 2, the adjustment control includes: the proportional adjustment scroll bar 3.
Specifically, the direction of the proportional control scroll bar 3 may be a diagonal direction of the touch display screen, or may be a certain edge of the screen in a horizontal or vertical direction.
Specifically, when the size of the touch display screen 2 is adjusted by the proportional adjustment scroll bar 3, a user touches the proportional adjustment scroll bar 3 and drags the proportional adjustment scroll bar 3 to move on the touch display screen 2, the mobile terminal detects the moving distance of the proportional adjustment scroll bar 3, calculates the reduction or enlargement ratio of the touch area, obtains the touch range of the adjusted touch display screen, and further generates a new touch area 6 of the touch display screen.
Optionally, the adjusting control includes: a lateral adjustment scroll bar 5 and a longitudinal adjustment scroll bar 4.
Specifically, in the using process, the size of the touch display screen can be adjusted by only using the horizontal adjusting scroll bar 5 or by only using the vertical adjusting scroll bar 4 through the horizontal adjusting scroll bar 5 and the vertical adjusting scroll bar 4, or by using both the horizontal adjusting scroll bar 5 and the vertical adjusting scroll bar 4.
When the size of the touch display screen 2 is adjusted only by the horizontal adjustment scroll bar 5 or the size of the touch display screen 2 is adjusted only by the vertical adjustment scroll bar 4, a proportional value (for example, a ratio of the horizontal size to the vertical size of the touch display screen 2, etc.) is preset, and when the proportional value is used for zooming in the horizontal direction, zooming in the vertical direction is carried out along with the proportional value, or when zooming in the vertical direction, zooming in the horizontal direction is carried out along with the proportional value. And the user touches and drags the transverse adjusting scroll bar 5 or the longitudinal adjusting scroll bar 4, the mobile terminal calculates the reduction or enlargement ratio of the touch area according to the moving distance of the transverse adjusting scroll bar 5 or the longitudinal adjusting scroll bar 4 and the ratio value, the adjusted touch range of the touch display screen is obtained, and then a new touch area 6 of the touch display screen 2 is generated.
When the size of the touch display screen 2 is adjusted by simultaneously adopting the transverse adjusting scroll bar 5 and the longitudinal adjusting scroll bar 4, and when a user touches the touch display screen 2, the transverse adjusting scroll bar 5 and the longitudinal adjusting scroll bar 4 are simultaneously displayed, the user touches and drags the transverse adjusting scroll bar 5, the transverse size of the touch display screen 2 is adjusted, the longitudinal adjusting scroll bar 4 is touched and dragged, the longitudinal size of the touch display screen 2 is adjusted, the mobile terminal obtains a reduced or enlarged area of a touch area according to the distance and direction dragged by the user, and then a new touch area 6 of the touch display screen 2 is generated. This approach does not require a preset ratio value.
Fig. 3 is a schematic view of a touch display screen interface in a touch display screen adjustment method according to another embodiment of the invention.
Optionally, the obtaining of the touch display screen adjustment instruction may include: receiving an adjustment triggering instruction; receiving gesture information transmitted by a current touch display screen; and determining a preset gesture matched with the gesture information, and acquiring a touch display screen adjusting instruction corresponding to the preset gesture matched with the gesture information.
When the size of the touch display screen is adjusted through the gesture information, in the adjusting process, the adjusting control is not displayed on the touch display screen on the mobile terminal, and a user directly operates on the touch display screen.
Specifically, the gesture information includes one or more of the following:
(1) a single finger slide to indicate a scale adjustment;
(2) a single finger slide for indicating a size in a single direction;
(3) for indicating a multi-finger slide of a large or small size in multiple directions.
In the case of the situation (1), as shown in fig. 3, the above-mentioned single-finger sliding for indicating the scale adjustment may be a movement of the touch display screen 2 in a diagonal direction, or may be in a certain edge of the screen in a horizontal or vertical direction. When the adjustment is started, the finger has an adjustment starting point 7 on the touch display screen 2, when the adjustment is finished, an adjustment end point 8 is adjusted, the mobile terminal obtains an adjustment sliding distance according to the adjustment starting point 7 and the adjustment end point 8, calculates the reduction or amplification proportion of the touch area, and also can obtain the position of the touch area according to the sliding direction, further obtain the touch range of the adjusted touch display screen, and generate a new touch area 6 of the touch display screen.
In the case of the (2) th case, the gesture information is a single finger slide indicating a size in a single direction. The size of the touch display screen 2 can be adjusted by sliding transversely or longitudinally according to a certain proportion value; or the lateral size can be adjusted by sliding laterally, the longitudinal size can be adjusted by adjusting longitudinally, and then the adjusted size of the whole touch display screen 2 is obtained.
In which, a ratio (for example, a ratio of the horizontal size to the vertical size of the touch display screen 2) is preset by adopting horizontal sliding or vertical sliding, and the ratio is used for scaling in the horizontal direction and then in the vertical direction, or scaling in the horizontal direction and the same scale in the vertical direction. When the adjustment is started, the finger has an adjustment starting point 7 on the touch display screen 2, when the adjustment is finished, an adjustment end point 8 is adjusted, the mobile terminal obtains an adjustment sliding distance according to the adjustment starting point 7 and the adjustment end point 8, the mobile terminal calculates the reduction or amplification proportion of the touch area according to the sliding distance and a preset proportion value, the position of the touch area can also be obtained according to the sliding direction, the adjusted touch area of the touch display screen is obtained, and a new touch area 6 of the touch display screen is generated.
Optionally, the horizontal sliding is only used for adjusting the horizontal size of the touch display screen 2, and the vertical sliding is only used for adjusting the vertical size of the touch display screen 2. In the process of adjusting the touch display screen 2, a user firstly slides on the touch display screen 2 in the transverse direction, the mobile terminal detects the transverse moving distance, determines the scale of reduction or amplification in the transverse direction, then slides on the touch display screen 2 in the longitudinal direction, detects the longitudinal moving distance, determines the scale of reduction or amplification in the longitudinal direction, and according to the scale of reduction or amplification in the transverse direction and the scale of reduction or amplification in the longitudinal direction, the position of a touch area can be obtained according to the sliding direction, so that the mobile terminal generates a new touch area 6 of the touch display screen 2. This approach does not require setting of the scale value.
For example, a finger slides to the right on the touch display screen 2 to reduce the touch area, and slides to the down to reduce the touch area, and the position at the lower right of the original touch area is calculated as a new touch area 6 according to the reduction ratio.
For the case (3), optionally, the gesture information is used to indicate a multi-finger sliding in multiple directions. Specifically, the multi-finger sliding for indicating the size in the multiple directions is performed, a user slides on the touch display screen 2 through the multi-finger (for example, two fingers) at the same time on the touch display screen 2, the mobile terminal detects the sliding distance of the multiple fingers on the touch display screen 2, calculates the reduction or enlargement ratio of the touch area, obtains the adjusted touch range of the touch display screen 2, and also obtains the position of the touch area according to the sliding direction, thereby generating a new touch area 6 of the touch display screen 2.
For example, two fingers slide on the touch display screen 2 towards the center of the touch display screen 2 along the diagonal direction of the display screen 2 at the same time, the processor calculates the size of the touch area 6 according to the sliding distance of the fingers and the reduction ratio, and displays a new touch area 6 in the middle of the original touch display screen 2.
Fig. 4 is a schematic view of a touch display screen interface in a touch display screen adjustment method according to another embodiment of the invention.
Optionally, the obtaining of the touch display screen adjustment instruction includes: displaying an adjustment information input window; acquiring a touch display screen adjusting instruction input through the input window, wherein the touch display screen adjusting instruction comprises one or more of the following items: adjusting size information, adjusting position information.
Specifically, as shown in fig. 4, the above-mentioned obtaining of the touch display screen adjustment instruction may be in a form of displaying an adjustment information input window, for example, displaying an input frame on the touch display screen 2, and inputting corresponding information in the input frame, such as adjusting size information, adjusting position information, and the like.
The size adjustment information may be a single input frame, such as the horizontal adjustment input frame 9 or the vertical adjustment input frame 10, and the mobile terminal calculates the reduction or enlargement ratio of the touchable area according to the input size, so as to generate a new touchable area 6 of the touch display screen 2.
Optionally, the user may input the adjustment size, and the reduction or enlargement direction may be preset, or may further input the adjustment position information. Specifically, a horizontal adjustment input frame 9 is displayed for inputting a horizontal adjustment size, and a vertical adjustment input frame 10 is displayed for inputting a vertical adjustment size, when the user adjusts the touch display screen 2, the user inputs the sizes in the horizontal adjustment input frame and the vertical adjustment input frame, and then the mobile terminal calculates the reduction or enlargement ratio of the touch area according to the input sizes, so that a new touch area 6 of the touch display screen 2 can be generated in a preset reduction or enlargement direction.
Further, the direction of zooming out or in, or the location of the touchable area is also determined by the user. Specifically, the adjusted position information is used to adjust the position information of the adjusted touchable area 6 on the touch display screen 2, and is used to input the position information parameter in the position adjustment input frame 11, and the mobile terminal displays the touchable area 6 according to the input position information parameter. Examples are as follows:
the display position of the touchable area 6 is determined by positioning the coordinate information of the touchable area 6 by the lateral position dimension and the longitudinal position dimension. Specifically, the user may input one or more of the following coordinate information with reference to the direction of the touch display screen towards the user: the distance between the left edge of the touch-enabled area 6 and the left edge of the display screen, the distance between the right edge of the touch-enabled area 6 and the right edge of the display screen, the distance between the top edge of the touch-enabled area 6 and the top edge of the display screen, and the distance between the bottom edge of the touch-enabled area 6 and the bottom edge of the display screen.
Or after the reduction and enlargement ratio of the touch area is determined, providing a display frame, and inputting new coordinate information (x, y) of the center point of the touch area by a user, wherein x identifies the abscissa of the center point and y identifies the ordinate of the center point.
It should be noted that, the "adjustment trigger instruction" is a "screen adjustment" function preset in the menu list of the mobile terminal, and the "adjustment trigger instruction" may be triggered by the user selecting the "screen adjustment" function in the menu list of the mobile terminal. Or, a 'screen adjustment' touch key is arranged on the touch display screen, and an 'adjustment trigger instruction' is triggered when the user touches the 'screen adjustment' touch key. The present embodiment is not limited.
Optionally, the touch display screen may include: and a preset position information adjusting button is displayed when the user touches the position adjusting input frame 11, and is used for adjusting the position information of the touch area 6 by pressing the position information adjusting button. The position information adjusting button may be: centering, left-right alignment, and up-down alignment.
Specifically, the direction of the touch display screen towards the user is taken as a reference.
Wherein, centering the button, the finger displays the touchable area 6 in the middle of the whole touch display screen 2.
And a left-right alignment button, which is touched by a user, and the left side of the touchable area 6 is overlapped with the left side of the touch display screen 2. The left and right alignment buttons are touched again, and the right side of the touchable area 6 coincides with the right side of the touch display screen 2.
And an up-down alignment button, which is touched by a user, and the lower side edge of the touchable area 6 is overlapped with the lower side edge of the touch display screen 2. When the up-down alignment button is touched again, the upper side of the touchable area 6 coincides with the upper side of the touch display screen 2.
Optionally, the left and right alignment buttons and the up and down alignment buttons are used simultaneously, so as to adjust the position of the touchable area 6.
Fig. 5 is a schematic diagram of a terminal according to an embodiment of the present invention.
As shown in fig. 5, the terminal 1 includes:
and the acquisition module 11 is used for receiving a touch display screen adjustment instruction.
And the determining module 12 is configured to obtain information of a touch range of the touch display screen according to the touch display screen adjusting instruction.
A generating module 13, configured to generate a touchable area of the touch display screen 2 according to the touchable range information of the touch display screen, where the touchable area includes: at least one touch key.
In the embodiment, a touch display screen adjusting instruction is obtained; determining the information of the touch control range of the touch control display screen according to the adjustment instruction of the touch control display screen; and generating a touch area of the touch display screen according to the touch range information of the touch display screen. The size of the touch display screen on the mobile terminal can be adjusted through the touch display screen adjusting instruction according to the use requirements of a user in the use process, the mobile terminal determines the size of the touch display screen needing to be displayed according to the touch display screen adjusting instruction, then the touch display screen is adjusted and generated after adjustment, the requirements of the user on the size of the touch display screen are met, and the user experience is improved.
Optionally, in an embodiment, the obtaining module 11 is specifically configured to receive an adjustment triggering instruction; displaying an adjusting control according to the adjusting triggering instruction; and receiving a touch display screen adjusting instruction transmitted through the adjusting control.
Wherein, optionally, the adjustment control comprises: a proportional adjustment scroll bar 3; or,
the adjustment control includes: a lateral adjustment scroll bar 5 and a longitudinal adjustment scroll bar 4.
Or, in another embodiment, the obtaining module 11 is specifically configured to receive an adjustment triggering instruction; receiving gesture information transmitted by a current touch screen; and determining a preset gesture matched with the gesture information, and acquiring a touch display screen adjusting instruction corresponding to the preset gesture matched with the gesture information.
Optionally, the gesture information includes one or more of:
a single finger slide to indicate a scale adjustment;
a single finger slide for indicating a size in a single direction;
for indicating a multi-finger slide of a large or small size in multiple directions.
In another embodiment, the obtaining module 11 is specifically configured to display an adjustment information input window; acquiring a touch display screen adjusting instruction input through the input window, wherein the touch display screen adjusting instruction comprises one or more of the following items: adjusting size information, adjusting position information.
The above-mentioned apparatus is used for executing the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium or a network medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, those skilled in the art will appreciate that; the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.