CN104834457A - Method and apparatus for automatically adjusting touch screen keyboard - Google Patents
Method and apparatus for automatically adjusting touch screen keyboard Download PDFInfo
- Publication number
- CN104834457A CN104834457A CN201410048186.8A CN201410048186A CN104834457A CN 104834457 A CN104834457 A CN 104834457A CN 201410048186 A CN201410048186 A CN 201410048186A CN 104834457 A CN104834457 A CN 104834457A
- Authority
- CN
- China
- Prior art keywords
- touch screen
- keyboard
- touch
- operation information
- screen keyboard
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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)
- Input From Keyboards Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种触摸屏键盘的自动调节方法,该方法包括:获取触摸屏上的当前触摸操作信息;根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别;根据所述当前触摸操作信息所属级别调整所述触摸屏键盘;本发明还公开了一种触摸屏键盘的自动调节装置,该装置包括:触摸屏显示模块、存储模块和调整控制模块。
The invention discloses an automatic adjustment method of a touch screen keyboard, the method comprising: acquiring current touch operation information on the touch screen; determining the level of the current touch operation information according to the touch operation information and the stored touch operation information threshold value interval; The touch screen keyboard is adjusted according to the level to which the current touch operation information belongs; the invention also discloses an automatic adjustment device for the touch screen keyboard, which includes: a touch screen display module, a storage module and an adjustment control module.
Description
技术领域technical field
本发明涉及键盘技术,尤其涉及一种触摸屏键盘的自动调节方法和装置。The invention relates to keyboard technology, in particular to an automatic adjustment method and device for a touch screen keyboard.
背景技术Background technique
在设置了触摸屏幕的电子设备上,用户可以通过触摸屏上的触摸屏键盘来与电子设备进行交互。触摸屏键盘的大小受限于触摸屏幕的大小,因此触摸屏键盘的大小往往与实际使用的需要不符,可能会在一些情况下导致触摸屏键盘输入错误。有些电子设备上的触摸屏键盘的大小不能根据使用者的需要进行相应的调节,在有些电子设备上,当需要调节触摸屏键盘的大小时,可以进入相应的设置菜单对键盘的高度进行设置,但是具体设置为多少才能与当前使用者相匹配,需要用户反复修改设置。On an electronic device provided with a touch screen, a user can interact with the electronic device through a touch screen keyboard on the touch screen. The size of the touch screen keyboard is limited by the size of the touch screen, so the size of the touch screen keyboard often does not match the needs of actual use, which may lead to input errors on the touch screen keyboard in some cases. The size of the touch screen keyboard on some electronic devices cannot be adjusted accordingly according to the needs of users. On some electronic devices, when the size of the touch screen keyboard needs to be adjusted, you can enter the corresponding setting menu to set the height of the keyboard, but the specific How much can be set to match the current user, and the user needs to modify the setting repeatedly.
发明内容Contents of the invention
为解决现有存在的技术问题,本发明主要提供一种触摸屏键盘的自动调节方法和装置。In order to solve the existing technical problems, the present invention mainly provides an automatic adjustment method and device for a touch screen keyboard.
本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:
本发明提供的一种触摸屏键盘的自动调节方法,该方法包括:A kind of automatic adjustment method of touch screen keyboard provided by the invention, this method comprises:
获取触摸屏上的当前触摸操作信息;Obtain the current touch operation information on the touch screen;
根据所述当前触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别;determining the level to which the current touch operation information belongs according to the current touch operation information and the stored touch operation information threshold interval;
根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。The touch screen keyboard is adjusted according to the level to which the current touch operation information belongs.
上述方案中,所述当前触摸操作信息包括用于判断触摸轨迹粗细的触摸面积。In the above solution, the current touch operation information includes a touch area for judging the thickness of the touch track.
上述方案中,所述调整触摸屏键盘包括:根据当前触摸屏信息和当前触摸屏键盘信息确定触摸屏键盘调节参数,根据所述触摸屏键盘调节参数和所述当前触摸操作信息所属级别调整所述触摸屏键盘。In the above scheme, the adjusting the touch screen keyboard includes: determining the touch screen keyboard adjustment parameters according to the current touch screen information and the current touch screen keyboard information, and adjusting the touch screen keyboard according to the touch screen keyboard adjustment parameters and the level to which the current touch operation information belongs.
上述方案中,所述当前触摸屏信息包括:触摸屏高度、触摸屏宽度、输入区域高度;In the above solution, the current touch screen information includes: touch screen height, touch screen width, input area height;
所述当前触摸屏键盘信息包括:触摸屏键盘高度、触摸屏键盘按键宽度、触摸屏键盘按键高度、触摸屏键盘按键水平间距、触摸屏键盘按键垂直间距、触摸屏键盘按键响应区域。The current touch screen keyboard information includes: touch screen keyboard height, touch screen keyboard key width, touch screen keyboard key height, touch screen keyboard key horizontal spacing, touch screen keyboard key vertical spacing, touch screen keyboard key response area.
上述方案中,所述调整触摸屏键盘包括:增加或减小触摸屏键盘的高度、扩大或者缩小触摸屏键盘按键的大小、扩大或者缩小触摸屏键盘按键的响应区域。In the above solution, the adjustment of the touch screen keyboard includes: increasing or reducing the height of the touch screen keyboard, expanding or reducing the size of the touch screen keyboard keys, expanding or reducing the response area of the touch screen keyboard keys.
上述方案中,在所述触摸屏键盘重新加载时调整所述触摸屏键盘。In the above solution, the touch screen keyboard is adjusted when the touch screen keyboard is reloaded.
本发明提供的一种触摸屏键盘的自动调节装置,改装置包括:触摸屏显示模块、存储模块和调整控制模块,其中:An automatic adjustment device for a touch screen keyboard provided by the present invention includes: a touch screen display module, a storage module and an adjustment control module, wherein:
触摸屏显示模块,用于显示触摸屏键盘和接收触摸屏上的当前触摸操作信息;The touch screen display module is used to display the touch screen keyboard and receive the current touch operation information on the touch screen;
存储模块,用于存储预置的触摸操作信息阈值区间;A storage module, configured to store preset touch operation information threshold intervals;
调整控制模块,用于根据所述当前触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别,根据当前触摸操作信息所属级别调整触摸屏键盘。An adjustment control module, configured to determine the level to which the current touch operation information belongs according to the current touch operation information and the stored touch operation information threshold interval, and adjust the touch screen keyboard according to the level to which the current touch operation information belongs.
上述方案中,所述存储模块,还用于存储当前触摸屏信息和当前触摸屏键盘信息;In the above solution, the storage module is also used to store current touch screen information and current touch screen keyboard information;
所述调整控制模块,还用于根据所述当前触摸屏信息和当前触摸屏键盘信息确定调节参数,根据所述调节参数和所述当前触摸操作信息所属级别调整所述触摸屏键盘。The adjustment control module is further configured to determine adjustment parameters according to the current touch screen information and current touch screen keyboard information, and adjust the touch screen keyboard according to the adjustment parameters and the level to which the current touch operation information belongs.
上述方案中,所述调整控制模块调整触摸屏键盘包括:增加或减小触摸屏键盘的高度、扩大或者缩小触摸屏键盘按键的大小、扩大或者缩小触摸屏键盘按键的响应区域。In the above solution, the adjusting control module adjusting the touch screen keyboard includes: increasing or reducing the height of the touch screen keyboard, expanding or reducing the size of the touch screen keyboard keys, expanding or reducing the touch screen keyboard key response area.
上述方案中,所述存储模块,还用于存储调整后的触摸屏键盘信息为当前触摸屏键盘信息。In the solution above, the storage module is further configured to store the adjusted touch screen keyboard information as current touch screen keyboard information.
本发明提供了一种触摸屏键盘的自动调节方法和装置,通过获取触摸屏上的当前触摸操作信息,根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别,根据所述当前触摸操作信息所属级别调整所述触摸屏键盘,实现了触摸屏键盘的自动准确设置,提高了触摸屏键盘的输入准确率。The present invention provides an automatic adjustment method and device for a touch screen keyboard. By acquiring the current touch operation information on the touch screen, the level of the current touch operation information is determined according to the touch operation information and the stored touch operation information threshold interval. According to the The level to which the current touch operation information belongs is adjusted to the touch screen keyboard, which realizes the automatic and accurate setting of the touch screen keyboard and improves the input accuracy rate of the touch screen keyboard.
附图说明Description of drawings
图1为本发明实施例提供的触摸屏键盘的自动调节方法的流程示意图;Fig. 1 is a schematic flow chart of an automatic adjustment method for a touch screen keyboard provided by an embodiment of the present invention;
图2为本发明实施例增加触摸屏键盘高度的示意图;Fig. 2 is a schematic diagram of increasing the height of the touch screen keyboard according to the embodiment of the present invention;
图3为本发明实施例扩大触摸屏键盘按键的示意图;Fig. 3 is the schematic diagram of enlarging touch screen keyboard key according to the embodiment of the present invention;
图4为本发明实施例扩大触摸屏键盘响应区域的示意图;FIG. 4 is a schematic diagram of expanding the response area of a touch screen keyboard according to an embodiment of the present invention;
图5为本发明实施例提供的触摸屏键盘的自动调节装置的结构示意图。FIG. 5 is a schematic structural diagram of an automatic adjustment device for a touch screen keyboard provided by an embodiment of the present invention.
具体实施方式Detailed ways
在本发明的各种实施例中,通过获取触摸屏上的当前触摸操作信息,根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别,根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。In various embodiments of the present invention, by acquiring the current touch operation information on the touch screen, the level to which the current touch operation information belongs is determined according to the touch operation information and the stored touch operation information threshold interval, and according to the Level adjustments on the touchscreen keyboard.
下面通过附图及具体实施例对本发明做进一步的详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明实现一种触摸屏键盘的自动调节方法,如图1所示,该方法包括以下几个步骤:The present invention realizes the automatic adjustment method of a kind of touch screen keyboard, as shown in Figure 1, this method comprises the following several steps:
步骤101:触摸屏获取当前触摸操作信息。Step 101: The touch screen acquires current touch operation information.
下面以安卓(Android)操作系统为例,对本发明做进一步的详细说明。Taking the Android (Android) operating system as an example below, the present invention will be further described in detail.
具体的,当用户使用触摸屏键盘时,触摸屏幕,Android操作系统对触摸事件进行解析。所述解析具体包括:安卓android层经过本地层框架Nativeframwork的事件集线器EventHub处理和Java层框架Java framework的键盘输入装置KeyInputDevice-->按键事件KeyEvent(滑动时为原始输入事件RawInputEvent-->移动事件MotionEvent)处理后,将触摸事件上报给应用程序,上报的形式为:按键按下onKeyDown/释放按键onKeyUp或者触摸事件onTouchEvent/轨迹球事件onTrackballEvent,并上报包含当前触摸操作信息的MotionEvent的对象。Specifically, when the user uses the touch screen keyboard, touches the screen, and the Android operating system analyzes the touch event. Described parsing specifically comprises: Andrews android layer is processed through event concentrator EventHub of local layer frame Nativeframwork and the keyboard input device KeyInputDevice of Java layer framework Java framework --> key event KeyEvent (be original input event RawInputEvent --> mobile event MotionEvent when sliding ) after processing, report the touch event to the application in the form of: key down onKeyDown/release key onKeyUp or touch event onTouchEvent/trackball event onTrackballEvent, and report the MotionEvent object containing the current touch operation information.
MotionEvent中包含所有当前触摸操作相关的信息,其中包括用于判断触摸轨迹的粗细的触摸面积的值。例如,使用size表示触摸轨迹的触摸面积,当触摸屏键盘的触摸屏键盘在处理触摸事件时,通过MotionEvent中的getSize()方法获取触摸面积size的值。MotionEvent contains all information related to the current touch operation, including the value of the touch area used to determine the thickness of the touch track. For example, use size to indicate the touch area of the touch track. When the touch screen keyboard of the touch screen keyboard is processing touch events, the value of the touch area size is obtained through the getSize() method in MotionEvent.
步骤102:处理器根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别。Step 102: The processor determines the level to which the current touch operation information belongs according to the touch operation information and the stored touch operation information threshold interval.
预先存储与size值相对应的阈值区间,例如,第一区间对应的size值为0-0.3,第二区间对应的size值为0.3-0.6,第三区间对应的size值为0.6-1。本实施例仅设置三个示例区间,在其他实施例中为避免触摸屏键盘区域超出触摸屏幕范围或触摸屏键盘区域覆盖文本输入区域的情况出现,可以根据不同的屏幕尺寸,以及调用触摸屏键盘的应用场景,增加或减少相应的阈值区间。The threshold intervals corresponding to the size values are stored in advance, for example, the size value corresponding to the first interval is 0-0.3, the size value corresponding to the second interval is 0.3-0.6, and the size value corresponding to the third interval is 0.6-1. This embodiment only sets three example intervals. In other embodiments, in order to avoid the situation that the touch screen keyboard area exceeds the touch screen range or the touch screen keyboard area covers the text input area, the touch screen keyboard can be called according to different screen sizes and application scenarios , to increase or decrease the corresponding threshold interval.
将在步骤101中获取到的size值与存储的阈值区间进行对比,确定当前size所在的区间,并根据当前size所在的区间确定触摸轨迹所属级别,例如,第一区间所对应的触摸轨迹为正常,用级别值1表示,第二区间所对应的触摸轨迹为较粗,用级别值2表示,第三区间所对应的触摸轨迹用级别值3表示,并保存所得到的确定结果。Compare the size value acquired in step 101 with the stored threshold interval, determine the interval where the current size is located, and determine the level of the touch track according to the interval where the current size is located, for example, the touch track corresponding to the first interval is normal , represented by a level value of 1, the touch track corresponding to the second interval is thicker, represented by a level value of 2, the touch track corresponding to the third interval is represented by a level value of 3, and the obtained determination result is saved.
步骤103:处理器根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。Step 103: The processor adjusts the touch screen keyboard according to the level to which the current touch operation information belongs.
当用户开始在触摸屏键盘输入,触摸屏键盘收到按键事件并进行处理,获取当前触摸屏信息和当前触摸屏键盘信息,根据当前触摸屏信息和当前触摸屏键盘信息确定触摸屏键盘调节参数,根据所述触摸屏键盘调节参数和步骤102中所获得的当前触摸操作信息所属级别对触摸屏键盘进行调整,调整的内容包括增加或减小键盘的高度、扩大或者缩小按键的大小、扩大或者缩小按键的响应区域等。When the user starts to input on the touch screen keyboard, the touch screen keyboard receives the key event and processes it, obtains the current touch screen information and the current touch screen keyboard information, determines the touch screen keyboard adjustment parameters according to the current touch screen information and the current touch screen keyboard information, and adjusts the parameters according to the touch screen keyboard Adjust the touch screen keyboard with the level of the current touch operation information obtained in step 102. The adjustment content includes increasing or decreasing the height of the keyboard, expanding or reducing the size of the keys, expanding or reducing the response area of the keys, etc.
下面,结合附图对调整触摸屏键盘进行详细说明。Below, the adjustment of the touch screen keyboard will be described in detail in conjunction with the accompanying drawings.
在Android系统中,触摸屏键盘配置文件内预置有触摸屏键盘高度keyboardHeight、按键宽度keyWidth、按键高度keyHeight、水平间距horizontalGap、垂直间距verticalGap等信息。这些信息的值可通过读取配置文件获取,例如,通过Android系统提供的资源实用工具中获取维度或分数的ResourceUtils.getDimensionOrFraction方法获取相应的配置值。从Android系统获取触摸屏高度screenHeight、触摸屏宽度screenWidth、输入区域高度inputHeight等当前触摸屏信息。根据获取的当前触摸屏信息和触摸屏键盘信息确定触摸屏键盘调节参数,根据所确定出的调节参数和步骤102中所确定的当前触摸操作信息所属级别调整触摸屏键盘。In the Android system, the touch screen keyboard configuration file is preset with touch screen keyboard height keyboardHeight, key width keyWidth, key height keyHeight, horizontal spacing horizontalGap, vertical spacing verticalGap and other information. The value of these information can be obtained by reading the configuration file, for example, the corresponding configuration value can be obtained through the ResourceUtils.getDimensionOrFraction method for obtaining dimensions or fractions in the resource utilities provided by the Android system. Obtain current touch screen information such as touch screen height screenHeight, touch screen width screenWidth, and input area height inputHeight from the Android system. The touch screen keyboard adjustment parameters are determined according to the acquired current touch screen information and touch screen keyboard information, and the touch screen keyboard is adjusted according to the determined adjustment parameters and the level of the current touch operation information determined in step 102 .
如图2所示,为本发明实施例增加触摸屏键盘高度的示意图。As shown in FIG. 2 , it is a schematic diagram of increasing the height of the keyboard of the touch screen according to the embodiment of the present invention.
获取存储在触摸屏键盘配置文件中的触摸屏键盘的高度为keyboardHeight,根据确定出的当前触摸轨迹对应级别值为2,即大于预置的触摸轨迹为正常的级别值1,确定需要对触摸屏键盘进行调节。Obtain the height of the touch screen keyboard stored in the touch screen keyboard configuration file as keyboardHeight. According to the determined current touch track corresponding level value is 2, that is, the touch track greater than the preset is a normal level value of 1. It is determined that the touch screen keyboard needs to be adjusted .
根据当前触摸屏键盘高度keyboardHeight、触摸屏高度screenHeight和输入区域高度inputHeight确定出触摸屏键盘调节参数,即触摸屏键盘可以增加的高度H2为:Determine the touch screen keyboard adjustment parameters according to the current touch screen keyboard height keyboardHeight, touch screen height screenHeight and input area height inputHeight, that is, the height H2 that the touch screen keyboard can increase is:
H2=screenHeight-keyboardHeight–inputHeightH2=screenHeight-keyboardHeight–inputHeight
调整触摸屏键盘高度为keyboardHeight+H2;Adjust the touch screen keyboard height to keyboardHeight+H2;
记录触摸屏键盘的新高度keyboardHeight=keyboardHeight+H2。Record the new height keyboardHeight=keyboardHeight+H2 of the touch screen keyboard.
当触摸屏键盘的可以增加高度H2的值为0,即根据当前触摸屏幕的总高度和输入区域的高度,已经没有空间再增加触摸屏幕的高度时,可以在保持原触摸屏键盘高度的情况下,扩大触摸屏键盘按键的大小来提高输入准确性,也可以在增加触摸屏键盘高度的同时扩大触摸屏键盘按键的大小。When the value of H2 that can increase the height of the touch screen keyboard is 0, that is, according to the current total height of the touch screen and the height of the input area, there is no room to increase the height of the touch screen, you can expand the height of the touch screen keyboard while maintaining the original height of the touch screen keyboard The size of the touch-screen keyboard keys can be used to improve the input accuracy, and the size of the touch-screen keyboard keys can also be enlarged while increasing the height of the touch-screen keyboard.
如图3所示,为本发明实施例扩大触摸屏键盘按键的示意图。As shown in FIG. 3 , it is a schematic diagram of expanding the keys of the touch screen keyboard according to the embodiment of the present invention.
扩大触摸屏键盘按键分为水平方向和垂直方向两种,其中触摸屏键盘垂直方向可扩大的总空间vertical可以使用Expand the touch screen keyboard keys are divided into two types: horizontal direction and vertical direction, among them, the total space that can be expanded vertically in the vertical direction of the touch screen keyboard can be used
vertical=keyboardHeight-((keyHeight*按键行数)+(verticalGap*按键行数))vertical=keyboardHeight-((keyHeight*key rows)+(verticalGap*key rows))
进行计算,其中keyboardHeight为当前触摸屏键盘的高度,keyHeight为当前触摸屏键盘按键的高度,verticalGap为当前触摸屏键盘按键之间的垂直间距。Calculate, where keyboardHeight is the height of the current touch screen keyboard, keyHeight is the height of the current touch screen keyboard keys, and verticalGap is the vertical distance between the current touch screen keyboard keys.
平均每个触摸按键垂直方向可以扩大的空间nvertical可以使用On average, the vertical space of each touch button can be expanded nvertical can be used
nvertical=vertical/按键行数nvertical=vertical/key row number
进行计算。Calculation.
相应的,每个触摸按键水平方向可以扩大的空间nhorizontal可以使用Correspondingly, the nhorizontal space that can be expanded horizontally for each touch button can be used
nhorizontal=horizontal/按键列数nhorizontal=horizontal/number of key columns
进行计算。Calculation.
其中,水平方向可扩大的总空间horizontal可以使用Among them, the horizontally expandable total space horizontal can be used
horizontal=keyboardWidth-((keyWidth*按键列数)+(horizontalGap*按键列数))horizontal=keyboardWidth-((keyWidth*key columns)+(horizontalGap*key columns))
进行计算,其中keyboardWidth为当前触摸屏键盘的宽度,keyWidth为当前触摸屏键盘按键的宽度,horizontalGap为当前触摸屏键盘按键之间的水平间距。Calculate, where keyboardWidth is the width of the current touch screen keyboard, keyWidth is the width of the current touch screen keyboard keys, and horizontalGap is the horizontal spacing between the current touch screen keyboard keys.
根据步骤102中的确定结果,例如,根据当前触摸面积确定出的触摸轨迹对应级别值为2,即大于预置的触摸轨迹为正常的级别值1,则对按键的高keyHeight、按键的宽keyWidth进行调整。具体地,调整按键的宽度nkeyWidth为:According to the determination result in step 102, for example, the corresponding level value of the touch track determined according to the current touch area is 2, that is, the level value greater than the preset touch track is normal level value 1, then the high keyHeight of the key, the wide keyWidth of the key Make adjustments. Specifically, adjust the width nkeyWidth of the key to:
nkeyWidth=keyWidth+nhorizontalnkeyWidth=keyWidth+nhorizontal
调整按键的高度nkeyHeight为:Adjust the height of the key nkeyHeight as:
nkeyHeight=keyHeight+nverticalnkeyHeight=keyHeight+nvertical
调整后,保存新的触摸屏键盘按键的宽度nkeyWidth和触摸屏键盘按键的高度nkeyHeight为当前触摸屏键盘按键的宽度和高度。After adjustment, save the new touch-screen keyboard key width nkeyWidth and touch-screen keyboard key height nkeyHeight as the current touch-screen keyboard key width and height.
图3中所示出的仅为扩大一个触摸屏按键的示例,在本发明的其他实施例中也可以同时调整多个或者全部触摸屏按键。What is shown in FIG. 3 is only an example of enlarging one touch screen key, and in other embodiments of the present invention, multiple or all touch screen keys may be adjusted simultaneously.
当触摸屏键盘按键的可扩大垂直或水平空间为0,即根据当前触摸屏高度、输入区域的高度和触摸屏键盘按键之间的间隔,已经没有空间再增加触摸屏键盘的高度或者扩大触摸屏键盘按键大小时,可以在保持原触摸屏键盘高度不变的情况下,扩大触摸屏键盘按键的响应区域来提高输入准确性,也可以在扩大触摸屏键盘按键大小的同时扩大触摸屏键盘按键的响应区域。When the expandable vertical or horizontal space of the touch screen keyboard keys is 0, that is, according to the current touch screen height, the height of the input area and the interval between the touch screen keyboard keys, there is no space to increase the height of the touch screen keyboard or expand the size of the touch screen keyboard keys, The input accuracy can be improved by expanding the response area of the touch screen keyboard keys while keeping the height of the original touch screen keyboard unchanged, or the response area of the touch screen keyboard keys can be expanded while expanding the size of the touch screen keyboard keys.
如图4所示,为本发明实施例扩大触摸屏键盘响应区域的示意图。As shown in FIG. 4 , it is a schematic diagram of expanding the response area of the touch screen keyboard according to the embodiment of the present invention.
根据步骤102中的确定结果,具体地,例如,根据图4中黑色点状阴影区域所示的当前触摸面积,确定出触摸轨迹对应级别值为3,即大于预置的触摸轨迹为正常的级别值1,则确定对图4中网状阴影区域所示的触摸屏键盘的原响应区域进行调整,例如,将图4中网状阴影区域所示的触摸屏键盘的原响应区域按照预先设置的比例扩大,具体地,结合步骤102中所确定出触摸轨迹对应级别值将触摸屏键盘的响应区域设置为原响应区域的130%、或原响应区域的150%、或原响应区域的200%等。调整后的触摸屏键盘响应区域如图4中斜线状阴影区域所示,从而使得触摸屏键盘能够更准确地响应手指较粗的用户的触摸按键输入,提高输入准确率和用户体验。According to the determination result in step 102, specifically, for example, according to the current touch area shown in the black dotted shaded area in FIG. If the value is 1, it is determined to adjust the original response area of the touch screen keyboard shown in the mesh shaded area in Figure 4, for example, to expand the original response area of the touch screen keyboard shown in the mesh shaded area in Figure 4 according to the preset ratio Specifically, the response area of the touch screen keyboard is set to 130% of the original response area, or 150% of the original response area, or 200% of the original response area in combination with the corresponding level value of the touch track determined in step 102. The adjusted touch screen keyboard response area is shown in the slanted shaded area in Figure 4, so that the touch screen keyboard can more accurately respond to the user's touch key input with thicker fingers, improving input accuracy and user experience.
如果在用户下次使用时,触摸轨迹发生变化,则按照新获取的size值确定相应的触摸轨迹级别,并根据确定出的值对触摸屏键盘进行调整。If the touch track changes when the user uses it next time, the corresponding touch track level is determined according to the newly acquired size value, and the touch screen keyboard is adjusted according to the determined value.
在本发明另一个实施例中,考虑到,如果在用户输入过程中调整触摸屏键盘,则可能会因为按键位置突然变化而导致输入错误的问题。为避免出现此情况,可以在触摸屏键盘重新加载时(例如,关闭触摸屏键盘后再次打开、横竖屏切换等)对触摸屏键盘进行自动调整。In another embodiment of the present invention, it is considered that if the touch screen keyboard is adjusted during the user input process, the problem of input errors may be caused due to sudden changes in key positions. In order to avoid this situation, the touch screen keyboard can be automatically adjusted when the touch screen keyboard is reloaded (for example, when the touch screen keyboard is turned off and then turned on again, the landscape and portrait screens are switched, etc.).
图2、图3、图4中所示键盘布局仅用于对本发明的部分实施例进行解释说明,本发明所应用的触摸屏键盘布局并不局限于图中所示出的键盘布局。The keyboard layouts shown in FIG. 2 , FIG. 3 , and FIG. 4 are only used to explain some embodiments of the present invention, and the touch screen keyboard layouts used in the present invention are not limited to the keyboard layouts shown in the figures.
本发明的另一个实施例中,提供了一种触摸屏键盘的自动调节装置,如图5所示,该触摸屏键盘的自动调节装置包括:触摸屏显示模块501、存储模块502和调整控制模块503,其中,触摸屏显示模块501,用于显示触摸屏键盘和接收触摸屏上的触摸操作信息;存储模块502,用于存储预置的触摸操作信息阈值区间;调整控制模块503,用于根据所述当前触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别,根据所述当前触摸操作信息所属级别调整触摸屏键盘。In another embodiment of the present invention, an automatic adjustment device for a touch screen keyboard is provided. As shown in FIG. , a touch screen display module 501, used for displaying a touch screen keyboard and receiving touch operation information on the touch screen; a storage module 502, used for storing a preset touch operation information threshold interval; an adjustment control module 503, used for according to the current touch operation information The level of the current touch operation information is determined based on the threshold interval of the stored touch operation information, and the touch screen keyboard is adjusted according to the level of the current touch operation information.
具体地,当用户使用触摸屏键盘时,触摸屏幕,触摸屏显示模块501获取当前触摸操作信息,所述当前触摸操作信息包括用于判断触摸轨迹的粗细的触摸面积。Specifically, when the user touches the screen by using the touch screen keyboard, the touch screen display module 501 acquires current touch operation information, and the current touch operation information includes the touch area used to determine the thickness of the touch track.
调整控制模块503根据获取的当前触摸操作信息,并根据读取的存储在存储模块502中的触摸操作信息阈值区间,确定当前触摸操作信息所属级别,并将确定结果保存到存储模块502中。The adjustment control module 503 determines the level to which the current touch operation information belongs according to the acquired current touch operation information and according to the read threshold interval of the touch operation information stored in the storage module 502 , and saves the determination result in the storage module 502 .
调整控制模块503从存储模块502中读取触摸屏高度、触摸屏宽度、输入区域高度等当前触摸屏信息,以及触摸屏键盘高度、触摸屏键盘按键宽度、触摸屏键盘按键高度、触摸屏键盘按键水平间距、触摸屏键盘按键垂直间距、触摸屏键盘按键响应区域等当前触摸屏键盘信息后,根据所述当前触摸屏信息和当前触摸屏键盘信息确定触摸屏键盘调节参数。调整控制模块503根据确定出的触摸屏键盘调节参数和所述当前触摸操作信息所属级别调整所述触摸屏键盘,调整的内容包括增加或减小键盘的高度、扩大或者缩小按键的大小、扩大或者缩小按键的响应区域等,并将调整后的触摸屏键盘信息保存到存储模块502中。Adjustment control module 503 reads current touch screen information such as touch screen height, touch screen width, input area height from memory module 502, and touch screen keyboard height, touch screen keyboard key width, touch screen keyboard key height, touch screen keyboard key horizontal spacing, touch screen keyboard key vertical After the current touch screen keyboard information such as distance, touch screen keyboard key response area, etc., determine the touch screen keyboard adjustment parameters according to the current touch screen information and the current touch screen keyboard information. The adjustment control module 503 adjusts the touch screen keyboard according to the determined touch screen keyboard adjustment parameters and the level to which the current touch operation information belongs. The response area of the touch screen and the like, and save the adjusted touch screen keyboard information in the storage module 502.
本发明实施例所述触摸屏键盘的自动调节方法如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式,所述存储介质包括但不限于U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁盘存储器、CD-ROM、光学存储器等。If the automatic adjustment method of the touch-screen keyboard described in the embodiment of the present invention is realized in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such understanding, those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes therein, including but not limited to USB flash drives, removable hard disks, read-only memory ( ROM, Read-Only Memory), disk storage, CD-ROM, optical storage, etc.
本申请是根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described according to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.
相应的,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的触摸屏键盘的自动调节方法。Correspondingly, an embodiment of the present invention also provides a computer storage medium, in which a computer program is stored, and the computer program is used to execute the method for automatically adjusting the touch screen keyboard according to the embodiment of the present invention.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410048186.8A CN104834457A (en) | 2014-02-11 | 2014-02-11 | Method and apparatus for automatically adjusting touch screen keyboard |
| PCT/CN2014/080008 WO2015120680A1 (en) | 2014-02-11 | 2014-06-16 | Automatic adjustment method and apparatus for touch screen keyboard, and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410048186.8A CN104834457A (en) | 2014-02-11 | 2014-02-11 | Method and apparatus for automatically adjusting touch screen keyboard |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104834457A true CN104834457A (en) | 2015-08-12 |
Family
ID=53799554
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410048186.8A Withdrawn CN104834457A (en) | 2014-02-11 | 2014-02-11 | Method and apparatus for automatically adjusting touch screen keyboard |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104834457A (en) |
| WO (1) | WO2015120680A1 (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107122120A (en) * | 2017-05-25 | 2017-09-01 | 深圳天珑无线科技有限公司 | A kind of processing method of dummy keyboard, device and terminal |
| CN107203313A (en) * | 2017-05-24 | 2017-09-26 | 维沃移动通信有限公司 | Adjust desktop and show object method, mobile terminal and computer-readable recording medium |
| CN107301765A (en) * | 2016-04-15 | 2017-10-27 | 零度智控(北京)智能科技有限公司 | Remote control thereof, device and terminal |
| CN107577388A (en) * | 2017-08-29 | 2018-01-12 | 苏州麦迪斯顿医疗科技股份有限公司 | The control method and device of inputting interface |
| CN108241459A (en) * | 2016-12-27 | 2018-07-03 | 华为技术有限公司 | The configuration method and device of a kind of interactive interface |
| CN109710156A (en) * | 2018-12-29 | 2019-05-03 | 联想(北京)有限公司 | A kind of display methods and electronic equipment |
| CN110704145A (en) * | 2019-08-30 | 2020-01-17 | 华为技术有限公司 | Hot area adjusting method and device, electronic equipment and storage medium |
| CN113377201A (en) * | 2021-06-24 | 2021-09-10 | 北京百度网讯科技有限公司 | Input method panel display method and device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1734392A (en) * | 2004-08-10 | 2006-02-15 | 株式会社东芝 | Electronic apparatus having universal human interface |
| CN101231554A (en) * | 2007-01-25 | 2008-07-30 | 环达电脑(上海)有限公司 | How to adjust the size of the soft keyboard |
| US20100141590A1 (en) * | 2008-12-09 | 2010-06-10 | Microsoft Corporation | Soft Keyboard Control |
| WO2010124574A1 (en) * | 2009-04-27 | 2010-11-04 | Weng Yinsong | Computer keyboard input device of improved touch-screen type and implementation method thereof |
| CN102063244A (en) * | 2010-05-26 | 2011-05-18 | 绩优科技(深圳)有限公司 | Method for controlling focus window on touch screen |
| CN103365569A (en) * | 2012-03-26 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Touch-keyboard display processing method and mobile terminal |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060077179A1 (en) * | 2004-10-08 | 2006-04-13 | Inventec Corporation | Keyboard having automatic adjusting key intervals and a method thereof |
| CN102117164A (en) * | 2009-12-30 | 2011-07-06 | 乐金电子(中国)研究开发中心有限公司 | Method and device for realizing virtual keyboard, and equipment |
| CN102541420A (en) * | 2010-12-31 | 2012-07-04 | 上海优熠电子科技有限公司 | Self-adaption virtual keyboard system |
| CN102279704B (en) * | 2011-07-22 | 2018-10-12 | 南京中兴软件有限责任公司 | A kind of interface control method, device and mobile terminal |
-
2014
- 2014-02-11 CN CN201410048186.8A patent/CN104834457A/en not_active Withdrawn
- 2014-06-16 WO PCT/CN2014/080008 patent/WO2015120680A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1734392A (en) * | 2004-08-10 | 2006-02-15 | 株式会社东芝 | Electronic apparatus having universal human interface |
| CN101231554A (en) * | 2007-01-25 | 2008-07-30 | 环达电脑(上海)有限公司 | How to adjust the size of the soft keyboard |
| US20100141590A1 (en) * | 2008-12-09 | 2010-06-10 | Microsoft Corporation | Soft Keyboard Control |
| WO2010124574A1 (en) * | 2009-04-27 | 2010-11-04 | Weng Yinsong | Computer keyboard input device of improved touch-screen type and implementation method thereof |
| CN102063244A (en) * | 2010-05-26 | 2011-05-18 | 绩优科技(深圳)有限公司 | Method for controlling focus window on touch screen |
| CN103365569A (en) * | 2012-03-26 | 2013-10-23 | 宇龙计算机通信科技(深圳)有限公司 | Touch-keyboard display processing method and mobile terminal |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107301765A (en) * | 2016-04-15 | 2017-10-27 | 零度智控(北京)智能科技有限公司 | Remote control thereof, device and terminal |
| CN108241459A (en) * | 2016-12-27 | 2018-07-03 | 华为技术有限公司 | The configuration method and device of a kind of interactive interface |
| CN107203313A (en) * | 2017-05-24 | 2017-09-26 | 维沃移动通信有限公司 | Adjust desktop and show object method, mobile terminal and computer-readable recording medium |
| CN107203313B (en) * | 2017-05-24 | 2020-04-17 | 维沃移动通信有限公司 | Method for adjusting desktop display object, mobile terminal and computer readable storage medium |
| CN107122120A (en) * | 2017-05-25 | 2017-09-01 | 深圳天珑无线科技有限公司 | A kind of processing method of dummy keyboard, device and terminal |
| CN107577388A (en) * | 2017-08-29 | 2018-01-12 | 苏州麦迪斯顿医疗科技股份有限公司 | The control method and device of inputting interface |
| CN107577388B (en) * | 2017-08-29 | 2020-06-16 | 苏州麦迪斯顿医疗科技股份有限公司 | Input interface control method and device |
| CN109710156A (en) * | 2018-12-29 | 2019-05-03 | 联想(北京)有限公司 | A kind of display methods and electronic equipment |
| US11042293B2 (en) | 2018-12-29 | 2021-06-22 | Lenovo (Beijing) Co., Ltd. | Display method and electronic device |
| CN110704145A (en) * | 2019-08-30 | 2020-01-17 | 华为技术有限公司 | Hot area adjusting method and device, electronic equipment and storage medium |
| CN110704145B (en) * | 2019-08-30 | 2021-11-19 | 华为技术有限公司 | Hot area adjusting method and device, electronic equipment and storage medium |
| CN113377201A (en) * | 2021-06-24 | 2021-09-10 | 北京百度网讯科技有限公司 | Input method panel display method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015120680A1 (en) | 2015-08-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104834457A (en) | Method and apparatus for automatically adjusting touch screen keyboard | |
| CN105117156B (en) | A kind of information processing method and electronic equipment | |
| US20160070437A1 (en) | Electronic device and method for displaying desktop icons | |
| KR101428365B1 (en) | Method and system for providing widget on home screen of mobile device | |
| EP3036742A1 (en) | Content-based video segmentation | |
| CN104765528B (en) | A kind of virtual keyboard display method and device | |
| US9305523B2 (en) | Method of editing contents and an electronic device therefor | |
| CN103809860B (en) | Display device and character correction method thereof | |
| CN103941958A (en) | Desktop management method and terminal device | |
| CN106201234A (en) | The inspection method of content of pages and device | |
| WO2016131207A1 (en) | Control method, control apparatus and electronic device | |
| US10216712B2 (en) | Web page display method and device | |
| CN103945127A (en) | Photographing method and terminal | |
| US8416345B2 (en) | Host computer with TV module and subtitle displaying method | |
| WO2019001318A1 (en) | Resource optimization and updating method, server, and device | |
| US11656761B2 (en) | Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device | |
| JP2015528150A (en) | Widget adjustment method, apparatus, terminal, program, and recording medium | |
| TWI610220B (en) | Automatic control device and method for displaying screen density | |
| CN108173864A (en) | Information verification mode adjusting method and device and storage medium | |
| US10083164B2 (en) | Adding rows and columns to a spreadsheet using addition icons | |
| US10139982B2 (en) | Window expansion method and associated electronic device | |
| US10635920B2 (en) | Information processing apparatus, information processing method and storage medium | |
| CN103677518A (en) | Method and device for responding to touch messages on mobile terminal | |
| US20120017169A1 (en) | System and method of dividing a window according to trail | |
| CN105653249B (en) | Character size adjusting method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20150812 |
|
| WW01 | Invention patent application withdrawn after publication |