CN106648398B - Display control method and device - Google Patents
Display control method and device Download PDFInfo
- Publication number
- CN106648398B CN106648398B CN201510738006.3A CN201510738006A CN106648398B CN 106648398 B CN106648398 B CN 106648398B CN 201510738006 A CN201510738006 A CN 201510738006A CN 106648398 B CN106648398 B CN 106648398B
- Authority
- CN
- China
- Prior art keywords
- key
- sliding area
- sliding
- size
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The embodiment of the invention provides a display control method and a display control device, wherein the method comprises the following steps: when a virtual keyboard display request is received, capturing a sliding track of a terminal screen; determining a sliding area constructed by the boundary of the sliding track and the terminal screen; and displaying each key unit of the virtual keyboard in the sliding area. The invention can construct the sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal by one hand.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a display control method and device.
Background
With the development of communication technology, the use of terminals is becoming more and more widespread, especially large-screen terminals are favored by users, however, users often have some inconveniences in the process of using large-screen terminals, for example, when inputting characters using a virtual keyboard of a large-screen terminal, if a user uses a single-hand input, it is often very inconvenient because the existing virtual keyboard is usually displayed below the screen of the terminal, and if the user holds the upper left corner of the terminal with the left hand, each key unit of the virtual keyboard cannot be touched, so the use is very inconvenient.
Disclosure of Invention
The embodiment of the invention provides a display control method and device, which can construct a sliding area for displaying a virtual keyboard according to a sliding track of a user, and is convenient for the user to operate the virtual keyboard of a terminal with one hand.
A first aspect of the present invention provides a display control method, which may include:
when a virtual keyboard display request is received, capturing a sliding track of a terminal screen;
determining a sliding area constructed by the boundary of the sliding track and the terminal screen;
and displaying each key unit of the virtual keyboard in the sliding area.
A second aspect of the present invention provides a display control apparatus, which may include:
the capturing module is used for capturing the sliding track of the terminal screen when the virtual keyboard display request is received;
the determining module is used for determining a sliding area constructed by the sliding track and the boundary of the terminal screen;
and the display module is used for displaying each key unit of the virtual keyboard in the sliding area.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, when a virtual keyboard display request is received, the sliding track of the terminal screen is captured, the sliding area constructed by the boundary of the sliding track and the terminal screen is determined, and each key unit of the virtual keyboard is displayed in the sliding area. The method can construct a sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal with one hand.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a display control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another display control method according to an embodiment of the present invention;
fig. 3 is a schematic view illustrating a display flow of a virtual keyboard according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a sliding track according to an embodiment of the present invention;
FIG. 5 is a schematic view of a virtual keyboard according to an embodiment of the present invention;
fig. 6 is a schematic diagram of interface switching according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another interface switch provided in the embodiment of the present invention;
fig. 8 is a schematic diagram illustrating adjustment of the number of key units according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating key size adjustment according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a display control apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of another display control apparatus according to an embodiment of the present invention.
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 display control method according to the embodiment of the present invention will be described in detail with reference to fig. 1 to 9.
Fig. 1 is a flowchart of a display control method according to an embodiment of the present invention; the method may include the following steps S10-S12.
S10, when a virtual keyboard display request is received, capturing a sliding track of a terminal screen;
in a specific embodiment, the virtual keyboard display request may be a single-hand input mode starting instruction, and when the user needs to perform single-hand input, the single-hand input mode is started, that is, the virtual keyboard display request is sent. Specifically, the virtual keyboard display request may correspond to an operation of a user, and the terminal identifies the user operation and starts a one-handed input function, that is, captures a sliding trajectory of the terminal screen, when the operation is determined to be the virtual keyboard display request. Specifically, optionally, in the local configuration of the terminal, a certain specific operation is preset to be associated with the virtual keyboard display request, when the user executes the operation, the terminal identifies the user operation, determines that the operation corresponds to the virtual keyboard display request by querying the local configuration, and prompts the user to perform a stroke on the touch screen of the terminal on the screen to determine the virtual keyboard display area. After the user starts to stroke, the terminal captures the sliding track and displays the sliding track on the screen in real time, as shown in fig. 4.
After the user starts to stroke the fingers, the terminal collects and stores data of the stroke track, namely corresponding screen coordinate data, at regular intervals. The time interval of data acquisition is subject to the condition that the acquired data can ensure that the sliding track is identified and recovered with certain precision.
Judging whether the sliding track of the terminal screen is finished, specifically, the method for judging the end of the screen sliding comprises the following steps: and in a continuous time period, the coordinate data acquired by the terminal is empty, namely in the time period, the user does not perform the sliding operation on the touch screen by the finger, and the sliding track is determined to be finished. And after the terminal judges that the sliding is finished, feeding back confirmation information to prompt a user to confirm the sliding track. And if the user confirms, executing the step 101, otherwise, returning, and continuing to acquire the coordinate data.
S11, determining a sliding area constructed by the sliding track and the boundary of the terminal screen;
in a specific embodiment, a sliding area constructed by a sliding track of the terminal screen and a boundary of the terminal screen is determined, and optionally, the boundary of the terminal screen may be a certain side or two sides of the left side, the right side and the bottom side of the touch screen. As shown in fig. 4, the left and bottom edges of the touch screen are used as the boundaries of the terminal screen. The boundary between the sliding track and the terminal screen may constitute a sliding area, which may facilitate the one-handed operation of the user, as shown in fig. 4. It should be noted that, if the sliding track does not touch the boundary of the terminal screen, the sliding track may touch the boundary after analyzing and processing the coordinate data. The method can be realized by using methods such as data fitting, data prediction and the like in a mathematical modeling method.
And S12, displaying each key unit of the virtual keyboard in the sliding area.
In a specific embodiment, each key unit of the virtual keyboard is displayed in the sliding area, and optionally, the shape of the key unit may be a regular hexagon. The size of the key units can be set to be default size, and the number of the key units can be automatically adjusted by the terminal according to the size of the sliding area and the size of the key units. When the sliding area is large, the number of the key units is large correspondingly; when the sliding area is smaller, the number of the key units is less, so as to realize the maximum area coverage of different sliding areas. As shown in fig. 5, since the sliding area of the left screen is large, the number of key units is large, and the sliding area of the right screen is small, the number of key units is small.
Optionally, if the sliding area is small and one interface is not enough to display all the key units, as shown in fig. 6, the screen may be slid to the left, and the second interface is entered to display the rest key units; similarly, when the current screen is displayed as the second interface, as shown in fig. 7, the screen may be slid to the right, and the first interface is entered, and the two interfaces in the sliding area may be switched. It should be noted that the sliding switching described in this embodiment is only an optional implementation manner, and may also be another switching manner.
According to the embodiment of the invention, when a virtual keyboard display request is received, the sliding track of the terminal screen is captured, the sliding area constructed by the boundary of the sliding track and the terminal screen is determined, and each key unit of the virtual keyboard is displayed in the sliding area. The method can construct a sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal with one hand.
Fig. 2 is a flowchart of another display control method according to an embodiment of the present invention; the method may include the following steps S20-S25.
S20, when a virtual keyboard display request is received, capturing a sliding track of a terminal screen;
s21, determining a sliding area constructed by the sliding track and the boundary of the terminal screen;
referring to steps S10-S11 in fig. 1, steps S200-S201 in the embodiment of the present invention are not repeated herein.
S22, acquiring the area of the sliding area and the set size of the key unit in the virtual keyboard to be displayed;
in a specific embodiment, after the sliding region is determined, the area of the sliding region is calculated by a curve fitting method, and the set size of the key unit in the virtual keyboard to be displayed is obtained, where the set size may be a default size or a size set by a user.
S23, determining the target number of the key units displayed in the sliding area according to the area of the sliding area and the set size;
in an embodiment, the target number of the key units displayed in the sliding region can be calculated according to the area of the sliding region and the set size of the key units. Optionally, the specific calculation method may be that the area of the sliding region is divided by the set size, the target number is only the number of the key units that can be displayed in the sliding region preliminarily predicted, and the target number needs to be determined according to the arrangement mode of the key units during specific display.
S24, comparing the target number with the total number of the key units, and determining the target display mode of the virtual keyboard in the sliding area according to the comparison result;
in a specific embodiment, the calculated target number is compared with the total number of the key units, the total number of the key units is the number of all english characters plus some optional control characters, as shown in fig. 7, the "number" and "size" of the key units are respectively control characters, the "number" of the key units is used for adjusting the number of the key units displayed in the sliding area, and the "size" of the key units is used for adjusting the size of the key units.
Comparing the target number with the total number of the key units, and determining a target display mode of the virtual keyboard in the sliding area according to a comparison result; the target display mode of the virtual keyboard in the sliding area can have the following two alternative embodiments.
As an optional implementation manner, the determining, according to the comparison result, a target display manner in the sliding region includes:
and if the target number is larger than the total number, determining that the target display mode in the sliding area is that all key units of the virtual keyboard are displayed on the first interface of the sliding area in the set size.
In a specific embodiment, if the target number is greater than the total number of the key units, it is determined that the sliding region can accommodate all the key units, and the target display mode of the key units in the sliding region is determined as displaying all the key units of the virtual keyboard in the set size on the first interface in the sliding region.
As another optional implementation, the determining the target display mode in the sliding region according to the comparison result includes:
if the target number is smaller than the total number, determining that the target display mode in the sliding area is that the target number of key units are displayed on a first interface of the sliding area in the set size;
and when an interface switching display request is received, controlling the sliding area to be switched from the first interface to a second interface, and displaying all key units except the key unit displayed on the first interface in the second interface.
In a specific embodiment, if the target number is smaller than the total number of the key units, it is determined that the sliding region cannot completely display all the key units, and therefore the target display manner in the sliding region is determined to be that the target number of the key units are displayed on the first interface of the sliding region in the set size, when an interface switching display request is received, as shown in fig. 6, when the sliding region slides to the left, the sliding region is controlled to be switched from the first interface to the second interface, and the rest of the key units are displayed on the second interface. The control characters can display the first interface and the second interface, and operation by a user is facilitated. Further, as shown in fig. 7, when sliding to the right, the sliding region may be controlled to be switched from the second interface to the first interface.
In order to cover the maximum area of the sliding region, at the boundary of the sliding trajectory, if the area of any one of the key units exceeding the sliding region is smaller than 1/2 of the default size, the key unit is kept displayed on the first interface, and if the area of any one of the key units exceeding the sliding region is larger than 1/2 of the default size, the key unit is removed.
And S25, displaying each key unit of the virtual keyboard in the sliding area in the target display mode.
Optionally, the user may adjust the size of the key unit, and the method may include the following steps:
1) receiving a first adjusting instruction for adjusting the size of the key unit, wherein the first adjusting instruction carries the updating size of the pre-adjusted key unit;
in a specific embodiment, the first adjustment instruction may correspond to a user operation, the terminal identifies the user operation, and adjusts the size of the key unit when it is determined that the operation corresponds to the instruction for adjusting the size of the key unit. Optionally, in the local configuration of the terminal, a virtual key for adjusting the size of the key unit is preset, and when the user presses the virtual key, the key unit adjustment instruction is executed.
As shown in fig. 9, there are consecutive numbers on the number axis for the user to select. The minimum value gamma and the maximum value can be determined according to the actual situation and the setting of the current mature input method. In this embodiment, the setting of the function key "large" is only one of the implementation forms, and the function key corresponds to the key unit size adjustment instruction.
2) And re-determining the updating number of the key units displayed in the sliding area according to the updating size, and displaying the key units with the updating size in the sliding area according to the updating number.
In a specific embodiment, the updated number of the key units displayed in the sliding area may be determined again according to the updated size of the key units, and then the updated size of the key units is displayed in the sliding area according to the updated number, where the updated size is applicable to both the first interface and the second interface.
Optionally, the user may adjust the number of the keys, which may include the following steps:
1) receiving a second adjusting instruction for adjusting the number of the displayed key units in the sliding area, wherein the second adjusting instruction carries the updating number of the pre-adjusted key units;
in a specific embodiment, the second adjustment instruction may also correspond to a user operation, identify the user operation, and execute the key number adjustment instruction when it is determined that the operation corresponds to the adjustment of the number of key units. As shown in fig. 8, there are consecutive numbers on the number axis for the user to select. The minimum value alpha and the maximum value beta of the quantity can be determined according to the actual situation and the setting of the current mature input method. In this embodiment, the setting of the number of the function keys is only one implementation form, and the function keys correspond to the key number adjustment instructions.
2) And re-determining the updating size of the key units displayed in the sliding area according to the updating number, and displaying the key units with the updating size in the sliding area by the updating number.
In a specific embodiment, the update size of the key units displayed in the sliding region may be re-determined according to the update number of the key units, and then the updated size of the key units is displayed on the first interface of the sliding region according to the update number, where the update size is applicable to both the first interface and the second interface.
According to the embodiment of the invention, when a virtual keyboard display request is received, the sliding track of the terminal screen is captured, the sliding area constructed by the boundary of the sliding track and the terminal screen is determined, and each key unit of the virtual keyboard is displayed in the sliding area. The method can construct a sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal with one hand.
Referring to fig. 3, a schematic view of a display flow of a virtual keyboard according to an embodiment of the present invention is shown in the drawing:
In the local configuration of the mobile terminal, a certain specific operation is preset to be associated with the single-hand input function starting instruction, when a user executes the operation, the mobile terminal identifies the user operation, determines that the operation corresponds to the single-hand input function starting instruction by inquiring the local configuration, and then starts the single-hand input function.
Step 102: after confirming that the one-handed input function is turned on, the screen prompts the user to make a stroke on the touch screen to determine the virtual keyboard display area. And after the user starts to stroke, the mobile terminal identifies the sliding track and immediately displays the sliding track on the screen.
Step 103: after the user starts to swipe the finger, the mobile terminal performs data acquisition and storage on the sliding track, namely the screen coordinate data, at regular intervals.
Step 104: and judging whether the screen stroke is finished or not, and prompting a user to confirm the stroke track.
Here, the method for judging the end of the screen stroke is as follows: and in a continuous time period, the coordinate data acquired by the mobile terminal is empty, namely the finger of the user does not perform the swiping operation on the touch screen in the time period. And after the mobile terminal judges that the stroke is finished, feeding back confirmation information to prompt a user to confirm the track. If the user confirms, step 105 is executed, otherwise, the step 102 is executed.
Step 105: and performing curve fitting on the coordinate data, and judging the size of the sliding area.
In the local configuration of the mobile terminal, a curve fitting algorithm for processing coordinate data is preset, and the algorithm needs to meet the requirement of recovering the stroking track under a certain precision requirement.
Step 106: and automatically selecting a keyboard display mode according to the size of the sliding area. In the local configuration of the mobile terminal, a display mode of a key unit is preset, specifically: the size of the key unit is represented as the area of the plane thereof, and is set as a default value. Under the premise, the size of the sliding area is represented as the plane area of the sliding area and is matched with a certain number of key units.
Step 107: and identifying user operation and adjusting the number of keys when determining that the operation corresponds to the instruction for adjusting the number of keys.
Here, in the mobile terminal local configuration, a key number adjustment key is preset, and when the user presses this key, a key number adjustment instruction is executed.
Step 108: and identifying user operation and adjusting the size of the key when determining that the operation corresponds to the key size adjusting instruction.
In the local configuration of the mobile terminal, a key size adjustment key is preset, and when a user presses the key, a key size adjustment instruction is executed. Here, after the user completes the adjustment of the number and size of the keys, the screen feeds back the confirmation information. If the user confirms the adjustment information, step 109 is executed, otherwise, the number and size of the keys are readjusted. Here, in the mobile terminal local configuration, a key adjustment confirmation instruction is preset. It can be set as follows: and any area outside the keyboard display area is clicked or double-clicked, namely, the key adjustment is confirmed.
Step 109: and displaying the keyboard.
And after the user confirms the key adjustment, the touch screen displays the adjusted virtual keyboard.
Step 110: the one-handed input mode is turned off.
Here, in the local configuration of the mobile terminal, it is preset that a certain specific operation is associated with the above-mentioned one-handed input function closing instruction, when the user performs the operation, the mobile terminal recognizes the user operation, determines that the operation corresponds to the one-handed input function closing instruction by querying the local configuration, and closes the one-handed input function.
A display control apparatus according to an embodiment of the present invention will be described in detail with reference to fig. 10 to 11.
Fig. 10 is a schematic structural diagram of a display control apparatus according to an embodiment of the present invention; the apparatus may include: a capture module 100, a determination module 101, and a display module 102;
a capturing module 100, configured to capture a sliding track of a terminal screen when a virtual keyboard display request is received;
in a specific embodiment, the virtual keyboard display request may be a single-hand input mode starting instruction, and when the user needs to perform single-hand input, the single-hand input mode is started, that is, the virtual keyboard display request is sent. Specifically, the virtual keyboard display request may correspond to an operation of a user, and the terminal identifies the user operation and starts a one-handed input function when determining that the operation is the virtual keyboard display request, that is, the capture module 100 captures a sliding track of the terminal screen. Specifically, optionally, in the local configuration of the terminal, a certain specific operation is preset to be associated with the virtual keyboard display request, when the user executes the operation, the terminal identifies the user operation, determines that the operation corresponds to the virtual keyboard display request by querying the local configuration, and prompts the user to perform a stroke on the touch screen of the terminal on the screen to determine the virtual keyboard display area. After the user starts to stroke, the terminal captures the sliding track and displays the sliding track on the screen in real time, as shown in fig. 4.
After the user starts to stroke the fingers, the terminal collects and stores data of the stroke track, namely corresponding screen coordinate data, at regular intervals. The time interval of data acquisition is subject to the condition that the acquired data can ensure that the sliding track is identified and recovered with certain precision.
Judging whether the sliding track of the terminal screen is finished, specifically, the method for judging the end of the screen sliding comprises the following steps: and in a continuous time period, the coordinate data acquired by the terminal is empty, namely in the time period, the user does not perform the sliding operation on the touch screen by the finger, and the sliding track is determined to be finished. And after the terminal judges that the sliding is finished, feeding back confirmation information to prompt a user to confirm the sliding track. And if the user confirms, executing the step 101, otherwise, returning, and continuing to acquire the coordinate data.
A determining module 101, configured to determine a sliding region constructed by the sliding track and the boundary of the terminal screen;
in a specific embodiment, the determining module 101 determines a sliding area constructed by a sliding track of the terminal screen and a boundary of the terminal screen, and optionally, the boundary of the terminal screen may be one or two of a left side, a right side, and a bottom side of the touch screen as a boundary. As shown in fig. 4, the left and bottom edges of the touch screen are used as the boundaries of the terminal screen. The boundary between the sliding track and the terminal screen may constitute a sliding area, which may facilitate the one-handed operation of the user, as shown in fig. 4. It should be noted that, if the sliding track does not touch the boundary of the terminal screen, the sliding track may touch the boundary after analyzing and processing the coordinate data. The method can be realized by using methods such as data fitting, data prediction and the like in a mathematical modeling method.
And a display module 102, configured to display each key unit of the virtual keyboard in the sliding area.
In a specific embodiment, the display module 102 displays each key unit of the virtual keyboard in the sliding area, and optionally, the shape of the key unit may be a regular hexagon. The size of the key units can be set to be default size, and the number of the key units can be automatically adjusted by the terminal according to the size of the sliding area and the size of the key units. When the sliding area is large, the number of the key units is large correspondingly; when the sliding area is smaller, the number of the key units is less, so as to realize the maximum area coverage of different sliding areas. As shown in fig. 5, since the sliding area of the left screen is large, the number of key units is large, and the sliding area of the right screen is small, the number of key units is small.
Optionally, if the sliding area is small and one interface is not enough to display all the key units, as shown in fig. 6, the screen may be slid to the left, and the second interface is entered to display the rest key units; similarly, when the current screen is displayed as the second interface, as shown in fig. 7, the screen may be slid to the right, and the first interface is entered, and the two interfaces in the sliding area may be switched. It should be noted that the sliding switching described in this embodiment is only an optional implementation manner, and may also be another switching manner.
Optionally, the display module 102 may include an obtaining unit, a determining unit, a comparison determining unit, and a display unit;
the acquisition unit is used for acquiring the area of the sliding area and the set size of the key unit in the virtual keyboard to be displayed;
in a specific embodiment, after the sliding region is determined, the obtaining unit calculates the area of the sliding region by a curve fitting method, and obtains a set size of the key unit in the virtual keyboard to be displayed, where the set size may be a default size or a size set by a user.
The determining unit is used for determining the target number of the key units displayed in the sliding area according to the area of the sliding area and the set size;
in a specific embodiment, the determining unit may calculate the target number of the key units displayed in the sliding region according to the area of the sliding region and the set size of the key units. Optionally, the specific calculation method may be that the area of the sliding region is divided by the set size, the target number is only the number of the key units that can be displayed in the sliding region preliminarily predicted, and the target number needs to be determined according to the arrangement mode of the key units during specific display.
The comparison determination unit is used for comparing the target number with the total number of the key units and determining the target display mode of the virtual keyboard in the sliding area according to the comparison result;
in a specific embodiment, the calculated target number is compared with the total number of the key units, the total number of the key units is the number of all english characters plus some optional control characters, as shown in fig. 7, the "number" and "size" of the key units are respectively control characters, the "number" of the key units is used for adjusting the number of the key units displayed in the sliding area, and the "size" of the key units is used for adjusting the size of the key units.
Comparing the target number with the total number of the key units, and determining a target display mode of the virtual keyboard in the sliding area according to a comparison result; the target display mode of the virtual keyboard in the sliding area can have the following two alternative embodiments.
Specifically, the comparison determination unit may have two optional embodiments;
in a first optional implementation manner, the comparison determining unit is specifically configured to compare the target number with a total number of the key units, and if the target number is greater than the total number, determine that the target display manner in the sliding area is to display all the key units of the virtual keyboard in the set size on the first interface in the sliding area.
In a specific embodiment, if the target number is greater than the total number of the key units, it is determined that the sliding region can accommodate all the key units, and the target display mode of the key units in the sliding region is determined as displaying all the key units of the virtual keyboard in the set size on the first interface in the sliding region.
In a second optional implementation manner, the comparison determining unit is specifically configured to determine, if the target number is smaller than the total number, that the target display manner in the sliding area is to display the target number of key units in the first interface of the sliding area in the set size;
the comparison determination unit is further configured to control the sliding area to be switched from the first interface to a second interface when an interface switching display request is received, and display, on the second interface, the key units, except the key unit displayed on the first interface, in all the key units.
In a specific embodiment, if the target number is smaller than the total number of the key units, it is determined that the sliding region cannot completely display all the key units, and therefore the target display manner in the sliding region is determined to be that the target number of the key units are displayed on the first interface of the sliding region in the set size, when an interface switching display request is received, as shown in fig. 6, when the sliding region slides to the left, the sliding region is controlled to be switched from the first interface to the second interface, and the rest of the key units are displayed on the second interface. The control characters can display the first interface and the second interface, and operation by a user is facilitated. Further, as shown in fig. 7, when sliding to the right, the sliding region may be controlled to be switched from the second interface to the first interface.
In order to cover the maximum area of the sliding region, at the boundary of the sliding trajectory, if the area of any one of the key units exceeding the sliding region is smaller than 1/2 of the default size, the key unit is kept displayed on the first interface, and if the area of any one of the key units exceeding the sliding region is larger than 1/2 of the default size, the key unit is removed.
And the display unit is used for displaying each key unit of the virtual keyboard in the sliding area in the target display mode.
According to the embodiment of the invention, when a virtual keyboard display request is received, the sliding track of the terminal screen is captured, the sliding area constructed by the boundary of the sliding track and the terminal screen is determined, and each key unit of the virtual keyboard is displayed in the sliding area. The method can construct a sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal with one hand.
Fig. 11 is a schematic structural diagram of another display control apparatus according to an embodiment of the present invention; the apparatus may include: the capturing module 100, the determining module 101, the displaying module 102, the first receiving module 103, the first determining and displaying module 104, the second receiving module 105, and the second determining and displaying module 106, wherein the capturing module 100, the determining module 101, and the displaying module 102 please refer to the description mode of fig. 10, which is not described herein again.
A first receiving module 103, configured to receive a first adjustment instruction for adjusting the size of a key unit, where the first adjustment instruction carries an update size of a pre-adjusted key unit;
in a specific embodiment, the first adjustment instruction may correspond to a user operation, the terminal identifies the user operation, and adjusts the size of the key unit when it is determined that the operation corresponds to the instruction for adjusting the size of the key unit. Optionally, in the local configuration of the terminal, a virtual key for adjusting the size of the key unit is preset, and when the user presses the virtual key, the key unit adjustment instruction is executed.
As shown in fig. 9, there are consecutive numbers on the number axis for the user to select. The minimum value gamma and the maximum value can be determined according to the actual situation and the setting of the current mature input method. In this embodiment, the setting of the function key "large" is only one of the implementation forms, and the function key corresponds to the key unit size adjustment instruction.
The first determining and displaying module 104 is configured to re-determine the updated number of the key units displayed in the sliding area according to the updated size, and display the key units with the updated size in the sliding area according to the updated number.
In a specific embodiment, the updated number of the key units displayed in the sliding area may be determined again according to the updated size of the key units, and then the updated size of the key units is displayed in the sliding area according to the updated number, where the updated size is applicable to both the first interface and the second interface.
A second receiving module 105, configured to receive a second adjustment instruction for adjusting the number of the key units displayed in the sliding area, where the second adjustment instruction carries an updated number of the pre-adjusted key units;
in a specific embodiment, the second adjustment instruction may also correspond to a user operation, identify the user operation, and execute the key number adjustment instruction when it is determined that the operation corresponds to the adjustment of the number of key units. As shown in fig. 8, there are consecutive numbers on the number axis for the user to select. The minimum value alpha and the maximum value beta of the quantity can be determined according to the actual situation and the setting of the current mature input method. In this embodiment, the setting of the number of the function keys is only one implementation form, and the function keys correspond to the key number adjustment instructions.
And a second determining and displaying module 106, configured to re-determine the updated size of the key units displayed in the sliding region according to the updated number, and display the key units with the updated size in the sliding region by the updated number.
In a specific embodiment, the update size of the key units displayed in the sliding region may be re-determined according to the update number of the key units, and then the updated size of the key units is displayed on the first interface of the sliding region according to the update number, where the update size is applicable to both the first interface and the second interface.
According to the embodiment of the invention, when a virtual keyboard display request is received, the sliding track of the terminal screen is captured, the sliding area constructed by the boundary of the sliding track and the terminal screen is determined, and each key unit of the virtual keyboard is displayed in the sliding area. The method can construct a sliding area for displaying the virtual keyboard according to the sliding track of the user, and is convenient for the user to operate the virtual keyboard of the terminal with one hand.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to computer program instructions, where the program may be stored in a computer readable storage medium, and programs corresponding to the modules of the display control apparatus shown in fig. 10 to 11 may be stored in the computer readable storage medium of the display control apparatus and executed by at least one processor in the display control apparatus to implement the display control methods described above, where the methods include the processes described in the method embodiments in fig. 1 to 9. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (11)
1. A display control method, comprising:
when a virtual keyboard display request is received, capturing a sliding track of a terminal screen;
determining a sliding area constructed by the boundary of the sliding track and the terminal screen;
displaying each key unit of the virtual keyboard in the sliding area;
receiving a first adjusting instruction for adjusting the size of the key unit, wherein the first adjusting instruction carries the updating size of the pre-adjusted key unit, and determining the updating number of the key units displayed in the sliding area according to the updating size;
if the updated number is smaller than the total number of the key units, determining that the target display mode in the sliding area is that the updated number of the key units are displayed on a first interface in the sliding area in the updated size;
when an interface switching display request is received, controlling the sliding area to be switched from the first interface to a second interface, and displaying all key units except the key unit displayed on the first interface in the second interface; the key unit comprises a first key unit, and the first key unit is used for adjusting the number of the key units displayed in the sliding area;
receiving a second adjusting instruction which is triggered by the user through the first key unit and used for adjusting the number of the displayed key units in the sliding area, displaying a number axis, wherein the number axis is used for representing continuous numbers for the user to select, and determining the updating number of the pre-adjusted key units according to the selection operation of the user on the numbers on the number axis;
and re-determining the updating size of the key units displayed in the sliding area according to the updating number, and displaying the key units with the updating size in the sliding area by the updating number.
2. The method of claim 1, wherein said displaying each key element of a virtual keyboard in said sliding region comprises:
acquiring the area of the sliding area and the set size of a key unit in the virtual keyboard to be displayed;
determining the target number of the key units displayed in the sliding area according to the area of the sliding area and the set size;
comparing the target number with the total number of the key units, and determining a target display mode of the virtual keyboard in the sliding area according to a comparison result;
and displaying each key unit of the virtual keyboard in the sliding area in the target display mode.
3. The method of claim 2, wherein determining the target display mode in the sliding region according to the comparison result comprises:
and if the target number is larger than the total number, determining that the target display mode in the sliding area is that all key units of the virtual keyboard are displayed on the first interface of the sliding area in the set size.
4. The method of claim 2, wherein determining the target display mode in the sliding region according to the comparison result comprises:
if the target number is smaller than the total number, determining that the target display mode in the sliding area is that the target number of key units are displayed on a first interface of the sliding area in the set size;
and when an interface switching display request is received, controlling the sliding area to be switched from the first interface to a second interface, and displaying all key units except the key unit displayed on the first interface in the second interface.
5. The method of claim 3 or 4, wherein the key unit further comprises a second key unit, the second key unit being for resizing the key unit, the method further comprising:
receiving a first adjusting instruction which is triggered by a user through the second key unit and is used for adjusting the size of the key unit, wherein the first adjusting instruction carries the updating size of the pre-adjusted key unit;
and re-determining the updating number of the key units displayed in the sliding area according to the updating size, and displaying the key units with the updating size in the sliding area according to the updating number.
6. A display control apparatus, characterized by comprising:
the capturing module is used for capturing the sliding track of the terminal screen when the virtual keyboard display request is received;
the determining module is used for determining a sliding area constructed by the sliding track and the boundary of the terminal screen;
the display module is used for displaying each key unit of the virtual keyboard in the sliding area, the key units comprise first key units, and the first key units are used for adjusting the number of the key units displayed in the sliding area;
a first receiving module, configured to receive a first adjustment instruction for adjusting the size of a key unit, where the first adjustment instruction carries an update size of a pre-adjusted key unit, and determine, according to the update size, an update number of the key units displayed in the sliding region;
a first determining and displaying module, configured to determine, if the updated number is smaller than the total number of the key units, that the target display manner in the sliding area is to display the updated number of key units in the updated size on a first interface in the sliding area;
when an interface switching display request is received, controlling the sliding area to be switched from the first interface to a second interface, and displaying all key units except the key unit displayed on the first interface in the second interface; the key unit comprises a first key unit, and the first key unit is used for adjusting the number of the key units displayed in the sliding area;
the second receiving module is used for receiving a second adjusting instruction which is triggered by the user through the first key unit and is used for adjusting the number of the displayed key units in the sliding area, displaying a number axis, wherein the number axis is used for representing continuous numbers for the user to select, and determining the updating number of the pre-adjusted key units according to the selection operation of the user on the numbers on the number axis;
and the second determining and displaying module is used for re-determining the updating size of the key units displayed in the sliding area according to the updating number and displaying the key units with the updating size in the sliding area according to the updating number.
7. The apparatus of claim 6, wherein the display module comprises:
the acquisition unit is used for acquiring the area of the sliding area and the set size of the key unit in the virtual keyboard to be displayed;
the determining unit is used for determining the target number of the key units displayed in the sliding area according to the area of the sliding area and the set size;
the comparison determination unit is used for comparing the target number with the total number of the key units and determining the target display mode of the virtual keyboard in the sliding area according to the comparison result;
and the display unit is used for displaying each key unit of the virtual keyboard in the sliding area in the target display mode.
8. The apparatus of claim 7, wherein the comparison determining unit is specifically configured to compare the target number with a total number of the key units, and if the target number is greater than the total number, determine that the target display manner in the sliding area is to display all the key units of the virtual keyboard in the set size on the first interface in the sliding area.
9. The apparatus of claim 7, wherein the comparison determining unit is specifically configured to determine, if the target number is smaller than the total number, that the target display manner in the sliding area is to display the target number of key units in the set size on the first interface in the sliding area;
the comparison determination unit is further configured to control the sliding area to be switched from the first interface to a second interface when an interface switching display request is received, and display, on the second interface, the key units, except the key unit displayed on the first interface, in all the key units.
10. The apparatus of claim 8 or 9, wherein the key unit further comprises a second key unit for adjusting a size of the key unit, the apparatus further comprising:
the first receiving module is used for receiving a first adjusting instruction which is triggered by a user through the second key unit and is used for adjusting the size of the key unit, and the first adjusting instruction carries the updating size of the pre-adjusted key unit;
and the first determining and displaying module is used for re-determining the updating number of the key units displayed in the sliding area according to the updating size and displaying the key units with the updating size in the sliding area according to the updating number.
11. A computer-readable storage medium, characterized in that a program for executing the display control method according to any one of claims 1 to 5 is stored in the computer-readable storage medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738006.3A CN106648398B (en) | 2015-11-03 | 2015-11-03 | Display control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738006.3A CN106648398B (en) | 2015-11-03 | 2015-11-03 | Display control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648398A CN106648398A (en) | 2017-05-10 |
CN106648398B true CN106648398B (en) | 2020-08-14 |
Family
ID=58810540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510738006.3A Active CN106648398B (en) | 2015-11-03 | 2015-11-03 | Display control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648398B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107728921A (en) * | 2017-09-29 | 2018-02-23 | 努比亚技术有限公司 | Interface content intelligent display method, mobile terminal and computer-readable recording medium |
CN108304126A (en) * | 2017-12-20 | 2018-07-20 | 努比亚技术有限公司 | A kind of message notification display method, terminal and computer readable storage medium |
CN108108082B (en) * | 2017-12-29 | 2021-05-21 | 努比亚技术有限公司 | Information processing method, terminal and computer storage medium |
CN109101181B (en) * | 2018-08-17 | 2022-04-22 | 联想(北京)有限公司 | Data processing method and electronic equipment |
CN110083417B (en) * | 2019-04-04 | 2022-05-06 | 天津字节跳动科技有限公司 | User interface response method and device |
CN111026322A (en) * | 2019-12-02 | 2020-04-17 | 科大讯飞股份有限公司 | Keyboard layout method and device, electronic equipment and storage medium |
CN114296626B (en) * | 2020-09-22 | 2024-04-12 | 华为终端有限公司 | Display method and terminal of input interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750108A (en) * | 2012-08-03 | 2012-10-24 | 东莞宇龙通信科技有限公司 | Terminal and terminal control method |
CN103092512A (en) * | 2013-01-06 | 2013-05-08 | 东莞宇龙通信科技有限公司 | Terminal and position adjusting method of input panel |
CN103488400A (en) * | 2013-09-27 | 2014-01-01 | 京东方科技集团股份有限公司 | Method and device for building virtual keyboard |
CN104007917A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Control method for virtual keyboard and electronic device |
CN105653185A (en) * | 2015-12-23 | 2016-06-08 | 深圳市金立通信设备有限公司 | Keyboard control method and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4037378B2 (en) * | 2004-03-26 | 2008-01-23 | シャープ株式会社 | Information processing apparatus, image output apparatus, information processing program, and recording medium |
KR101213342B1 (en) * | 2005-03-18 | 2012-12-17 | 가부시키가이샤 야스카와덴키 | Teaching box used for robot, customize method, and robot system using the same |
CN102541426B (en) * | 2010-12-31 | 2014-11-05 | 联想(北京)有限公司 | Electronic equipment and object processing method thereof |
-
2015
- 2015-11-03 CN CN201510738006.3A patent/CN106648398B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750108A (en) * | 2012-08-03 | 2012-10-24 | 东莞宇龙通信科技有限公司 | Terminal and terminal control method |
CN103092512A (en) * | 2013-01-06 | 2013-05-08 | 东莞宇龙通信科技有限公司 | Terminal and position adjusting method of input panel |
CN104007917A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Control method for virtual keyboard and electronic device |
CN103488400A (en) * | 2013-09-27 | 2014-01-01 | 京东方科技集团股份有限公司 | Method and device for building virtual keyboard |
CN105653185A (en) * | 2015-12-23 | 2016-06-08 | 深圳市金立通信设备有限公司 | Keyboard control method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106648398A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648398B (en) | Display control method and device | |
US9983770B2 (en) | Screen capture method, apparatus, and terminal device | |
CN108021259B (en) | False touch prevention method and electronic equipment | |
CN110531920B (en) | Display method and device of sidebar, terminal and storage medium | |
US9007314B2 (en) | Method for touch processing and mobile terminal | |
EP3187990A1 (en) | Display method and mobile terminal | |
EP2835729A1 (en) | Method for controlling position of floating window and terminal | |
CN105159446A (en) | One-hand operation method and apparatus for terminal | |
CN106855806A (en) | A kind of method and device of the self-defined adjustment of interface layout | |
WO2017185459A1 (en) | Method and apparatus for moving icons | |
CN105159582B (en) | A kind of video area method of adjustment and terminal | |
US11604570B2 (en) | Method, device, apparatus, and storage medium for controlling touch operation mode | |
CN108920066B (en) | Touch screen sliding adjustment method and device and touch equipment | |
US11740754B2 (en) | Method for interface operation and terminal, storage medium thereof | |
CN106415471A (en) | Processing method for user interface of terminal, user interface and terminal | |
CN107592458B (en) | Shooting method and mobile terminal | |
CN104932821A (en) | Display method of operation interface of intelligent terminal and intelligent terminal | |
CN113655929A (en) | Interface display adaptation processing method and device and electronic equipment | |
CN105302459B (en) | Single-hand control method and device for terminal | |
WO2018059552A1 (en) | Screen display control method, device and mobile terminal, and computer storage medium | |
CN110876077A (en) | Control method of smart television, mobile terminal and computer readable storage medium | |
WO2016187930A1 (en) | Operation mode selection method, operation mode selection device, and terminal | |
CN106446643B (en) | Terminal control method and device | |
CN109445658A (en) | A kind of method, apparatus, mobile terminal and storage medium switching display pattern | |
US10318131B2 (en) | Method for scaling down effective display area of screen, and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |