WO2015120680A1 - 一种触摸屏键盘的自动调节方法、装置和计算机存储介质 - Google Patents

一种触摸屏键盘的自动调节方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2015120680A1
WO2015120680A1 PCT/CN2014/080008 CN2014080008W WO2015120680A1 WO 2015120680 A1 WO2015120680 A1 WO 2015120680A1 CN 2014080008 W CN2014080008 W CN 2014080008W WO 2015120680 A1 WO2015120680 A1 WO 2015120680A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
screen keyboard
current
operation information
touch
Prior art date
Application number
PCT/CN2014/080008
Other languages
English (en)
French (fr)
Inventor
柳岸
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015120680A1 publication Critical patent/WO2015120680A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04886Interaction 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

Definitions

  • the present invention relates to keyboard technology, and more particularly to an automatic adjustment method, device and computer storage medium for a touch screen keyboard. Background technique
  • the user can interact with the electronic device through the 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 actual use requirements, which may lead to incorrect input of the touch screen keyboard in some cases.
  • the size of the touch screen keyboard on some electronic devices cannot be adjusted according to the needs of the user.
  • the corresponding setting menu can be entered to set the height of the keyboard, but specific Set to match the current user, requiring the user to modify the settings over and over again. Summary of the invention
  • embodiments of the present invention mainly provide a method, an apparatus, and a computer storage medium for automatically adjusting a touch screen keyboard.
  • the method for automatically adjusting a touch screen keyboard includes: acquiring current touch operation information on a touch screen;
  • An automatic adjustment device for a touch screen keyboard provided by an embodiment of the invention includes: A touch screen display module, a storage module, and an adjustment control module, wherein:
  • a touch screen display module configured to display a touch screen keyboard and receive current touch operation information on the touch screen
  • a storage module configured to store a preset touch operation information threshold interval
  • the adjustment control module is configured to determine a level of the current touch operation information 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 of the current touch operation information.
  • the embodiment of the invention further provides a computer storage medium, wherein a computer program for executing an automatic adjustment method of the touch screen keyboard is stored.
  • An embodiment of the present invention provides a method, an apparatus, and a computer storage medium for automatically adjusting a touch screen keyboard.
  • the current touch operation information on the touch screen is used to determine the current touch operation information according to the touch operation information and the threshold interval of the stored touch operation information.
  • the level is adjusted according to the level of the current touch operation information, the automatic and accurate setting of the touch screen keyboard is realized, and the input accuracy of the touch screen keyboard is improved.
  • FIG. 1 is a schematic flowchart of a method for automatically adjusting a touch screen keyboard according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of adding a height of a touch screen keyboard according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of expanding a touch screen keyboard button according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of expanding a response area of a touch screen keyboard according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an automatic adjusting device for a touch screen keyboard according to an embodiment of the present invention. detailed description
  • determining the level of the current touch operation information according to the touch operation information and the stored touch operation information threshold interval by acquiring the current touch operation information on the touch screen, according to the current touch operation information
  • the level adjusts the touch screen keyboard.
  • Step 101 The touch screen acquires current touch operation information.
  • the following is a detailed description of the present invention by taking an Android (Android) operating system as an example.
  • the Android operating system analyzes the touch event.
  • the parsing specifically includes: an Android android layer through a local layer framework Native framwork event hub EventHub processing and a Java layer framework Java framework keyboard input device KeylnputDevice -> button event KeyEvent (sliding time is the original input event RawInputEvent - -> moving event
  • the touch event is reported to the application in the form of: pressing the onKeyDown/release button onKeyUp or the touch event onTouchEvent/trackball event onTrackballEvent, and reporting the MotionEvent object containing the current touch operation information.
  • the MotionEvent contains information about all current touch operations, including the value of the touch area used to determine the thickness of the touch track. For example, using size indicates the touch area of the touch track, and when the touch screen keyboard of the touch screen keyboard processes the touch event, the value of the touch area size is obtained by the getSize() method in MotionEvent.
  • Step 102 The processor determines, according to the touch operation information and the stored touch operation information threshold interval, a level to which the current touch operation information belongs.
  • the threshold interval corresponding to the size value is stored in advance.
  • the size corresponding to the first interval is 0-0.3
  • the size corresponding to the second interval is 0.3-0.6
  • the size corresponding to the third interval is 0.6-1.
  • only three example intervals are set.
  • the screen size may be used according to different screen sizes, and the application scenario of the touch screen keyboard may be invoked. , increase or decrease the corresponding threshold interval.
  • the touch track corresponding to the first interval is normal. It is represented by a level value of 1, the touch trajectory corresponding to the second section is relatively thick, and is represented by a level value of 2. The touch trajectory corresponding to the third section is represented by a level value of 3, and the obtained determination result is saved.
  • Step 103 The processor adjusts the touch screen keyboard according to the level of the current touch operation information.
  • the touch screen keyboard receives the key event and processes, obtains the current touch screen information and the current touch screen keyboard information, determines the touch screen keyboard adjustment parameter according to the current touch screen information and the current touch screen keyboard information, and adjusts parameters according to the touch screen keyboard.
  • the touch screen keyboard is adjusted according to the level of the current touch operation information obtained in step 102, and the adjusted content includes increasing or decreasing the height of the keyboard, expanding or reducing the size of the button, expanding or reducing the response area of the button, and the like.
  • the touch screen keyboard configuration file is preset with a touch screen keyboard height keyboardHeight, a button width key Width, a button height keyHeight, a horizontal spacing horizontalGap, a vertical spacing verticalGap and the like.
  • the value of this information can be obtained by reading the configuration file.
  • the ResourceUtils.getDimensionOrFraction method that obtains the dimension or score in the resource utility provided by the Android system obtains the corresponding configuration value.
  • Get the current touch screen information such as touchscreen height screenHeight, touch screen width screen Width, input area height inputHeight, etc. from Android system.
  • the touch screen keyboard adjustment parameter is determined according to the obtained current touch screen information and the touch screen keyboard information, and the touch screen keyboard is adjusted according to the determined adjustment parameter and the level of the current touch operation information determined in step 102.
  • FIG. 2 a schematic diagram of increasing the height of a touch screen keyboard according to an embodiment of the present invention is shown.
  • the touch screen keyboard adjustment parameters are determined, that is, the height of the touch screen keyboard can be increased by H2:
  • H2 screenHeight - keyboardHeight - inputHeight
  • the touch screen keyboard can increase the height H2 to 0, that is, according to the total height of the current touch screen and the height of the input area, when there is no space to increase the height of the touch screen, the height of the original touch screen keyboard can be expanded.
  • the size of the touch screen keyboard keys increases the accuracy of the input, and the size of the touch screen keyboard keys can be increased while increasing the height of the touch screen keyboard.
  • FIG. 3 it is a schematic diagram of expanding a touch screen keyboard button according to an embodiment of the present invention.
  • Expanding the touch screen keyboard keys are divided into horizontal and vertical directions, wherein the touch screen keyboard can be enlarged in the vertical direction.
  • keyboardHeight is the height of the current touch screen keyboard
  • keyHeight is the height of the current touch screen keyboard keys
  • verticalGap is the vertical spacing between the current touch screen keyboard keys
  • nvertical vertical I
  • nhorizontal horizontal I button ⁇ 'J number
  • the total space horizontally expandable can be used
  • keyboardWidth is the width of the current touchscreen keyboard
  • keyWidth is the width of the current touchscreen keyboard button
  • horizontalGap is the horizontal spacing between the current touchscreen keyboard keys.
  • the touch track corresponding level value determined according to the current touch area is 2, that is, the preset touch track is greater than the normal level value 1, and the high keyHeight of the button and the wide keyWidth of the button Make adjustments. Specifically, adjust the width of the button nkeyWidth to:
  • nkeyWidth keyWidth + nhorizontal
  • nkeyHeight keyHeight + nvertical
  • nkeyWidth and the height of the touch screen keyboard button nkeyHeight is the width and height of the current touch screen keyboard button.
  • Shown in Figure 3 is merely an example of expanding one touch screen button, and multiple or all touch screen buttons may be simultaneously adjusted in other embodiments of the invention.
  • the adjustable vertical or horizontal space of the touch screen keyboard button 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 enlarge the size of the touch screen keyboard button.
  • the response area of the touch screen keyboard button can be enlarged to improve the input accuracy while maintaining the original touch screen keyboard height, and the response area of the touch screen keyboard button can be enlarged while expanding the size of the touch screen keyboard button.
  • FIG. 4 it is a schematic diagram of expanding a response area of a touch screen keyboard according to an embodiment of the present invention.
  • the determination result in step 102 specifically, for example, according to the current touch area indicated by the black dotted shadow area in FIG. 4, it is determined that the corresponding level of the touch track is 3, that is, greater than the preset.
  • the touch track is a normal level value of 1, and it is determined to adjust the original response area of the touch screen keyboard shown in the mesh shaded area in FIG. 4, for example, the original response of the touch screen keyboard shown in the mesh shaded area in FIG.
  • the area is expanded according to a preset ratio.
  • 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 the original response area, in combination with the corresponding level value of the touch track determined in step 102. 200% and so on.
  • the adjusted touch screen keyboard response area is shown in the shaded area of FIG. 4, so that the touch screen keyboard can more accurately respond to the touch key input of the user with a thicker finger, thereby improving the input accuracy and user experience.
  • the corresponding touch track level is determined according to the newly obtained size value, and the touch screen keyboard is adjusted according to the determined value.
  • the touch screen keyboard can be automatically adjusted when the touch screen keyboard is reloaded (for example, turning the touch screen keyboard off and then on again, horizontal and vertical screen switching, etc.).
  • an automatic adjustment device for a touch screen keyboard includes: a touch screen display module 501, a storage module 502, and an adjustment control module 503, wherein
  • the touch screen display module 501 is a touch screen screen configured to display the touch screen keyboard and receive touch operation information on the touch screen;
  • the storage module 502 is a memory configured to store a preset touch operation information threshold interval;
  • the adjustment control module 503 is a processor, configured In order to determine the level of the current touch operation information 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 of the current touch operation information.
  • the touch screen display module 501 Acquiring current touch operation information, where the current touch operation information includes a touch area for determining the thickness of the touch track.
  • the adjustment control module 503 determines the level of the current touch operation information according to the obtained 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 to the storage module 502.
  • the adjustment control module 503 reads the current touch screen information such as the touch screen height, the touch screen width, the input area height, and the touch screen keyboard height, the touch screen keyboard button width, the touch screen keyboard button height, the touch screen keyboard button horizontal spacing, and the touch screen keyboard button vertical from the storage module 502. After the current touch screen keyboard information, such as the pitch, the touch screen keyboard button response area, the touch screen keyboard adjustment parameter is determined 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 parameter and the level of the current touch operation information, and the adjusted content includes increasing or decreasing the height of the keyboard, expanding or reducing the size of the button, and expanding or reducing the button. The response area or the like, and the adjusted touch screen keyboard information is saved to the storage module 502.
  • the current touch screen information such as the touch screen height, the touch screen width, the input area height, and the touch screen keyboard height, the touch screen keyboard button width, the touch screen keyboard button height, the touch screen keyboard button horizontal spacing,
  • the automatic adjustment method of the touch screen keyboard according to the embodiment of the present invention can also be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product. Based on such understanding, those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the application can take the form of a complete hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer usable storage media having computer usable program code, including but not limited to a USB flash drive, a mobile hard drive, a read only memory (ROM, Read-Only Memory), disk storage, CD-ROM, optical storage, etc.
  • a USB flash drive a mobile hard drive
  • a read only memory ROM, Read-Only Memory
  • disk storage CD-ROM, optical storage, etc.
  • the present application is described in terms of flowcharts and/or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that the flow chart can be implemented by computer program instructions And/or a combination of the processes and/or blocks in the block diagrams, and the flowcharts and/or blocks in the flowcharts and/or block diagrams. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program for executing an automatic adjustment method of a touch screen keyboard according to an embodiment of the present invention is stored.
  • the automatic and accurate setting of the touch screen keyboard is realized, and the input accuracy of the touch screen keyboard is improved.

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

一种触摸屏键盘的自动调节方法,该方法包括:获取触摸屏上的当前触摸操作信息;根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别;根据所述当前触摸操作信息所属级别调整所述触摸屏键盘;一种触摸屏键盘的自动调节装置和计算机存储介质。

Description

一种触摸屏键盘的自动调节方法、 装置和计算机存储介质 技术领域
本发明涉及键盘技术, 尤其涉及一种触摸屏键盘的自动调节方法、 装 置和计算机存储介质。 背景技术
在设置了触摸屏幕的电子设备上, 用户可以通过触摸屏上的触摸屏键 盘来与电子设备进行交互。 触摸屏键盘的大小受限于触摸屏幕的大小, 因 此触摸屏键盘的大小往往与实际使用的需要不符, 可能会在一些情况下导 致触摸屏键盘输入错误。 有些电子设备上的触摸屏键盘的大小不能根据使 用者的需要进行相应的调节, 在有些电子设备上, 当需要调节触摸屏键盘 的大小时, 可以进入相应的设置菜单对键盘的高度进行设置, 但是具体设 置为多少才能与当前使用者相匹配, 需要用户反复修改设置。 发明内容
为解决现有存在的技术问题, 本发明实施例主要提供一种触摸屏键盘 的自动调节方法、 装置和计算机存储介质。
本发明实施例的技术方案是这样实现的:
本发明实施例提供的一种触摸屏键盘的自动调节方法, 该方法包括: 获取触摸屏上的当前触摸操作信息;
根据所述当前触摸操作信息和存储的触摸操作信息阈值区间确定当前 触摸操作信息所属级别;
根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。
本发明实施例提供的一种触摸屏键盘的自动调节装置, 该装置包括: 触摸屏显示模块、 存储模块和调整控制模块, 其中:
触摸屏显示模块, 配置为显示触摸屏键盘和接收触摸屏上的当前触摸 操作信息;
存储模块, 配置为存储预置的触摸操作信息阈值区间;
调整控制模块, 配置为根据所述当前触摸操作信息和存储的触摸操作 信息阈值区间确定当前触摸操作信息所属级别, 根据当前触摸操作信息所 属级别调整触摸屏键盘。
本发明实施例还提供一种计算机存储介质, 其中存储有计算机程序, 该计算机程序用于执行所述触摸屏键盘的自动调节方法。
本发明实施例提供了一种触摸屏键盘的自动调节方法、 装置和计算机 存储介质, 通过获取触摸屏上的当前触摸操作信息, 根据所述触摸操作信 息和存储的触摸操作信息阈值区间确定当前触摸操作信息所属级别 , 根据 所述当前触摸操作信息所属级别调整所述触摸屏键盘, 实现了触摸屏键盘 的自动准确设置, 提高了触摸屏键盘的输入准确率。 附图说明
图 1为本发明实施例提供的触摸屏键盘的自动调节方法的流程示意图; 图 2为本发明实施例增加触摸屏键盘高度的示意图;
图 3为本发明实施例扩大触摸屏键盘按键的示意图;
图 4为本发明实施例扩大触摸屏键盘响应区域的示意图;
图 5为本发明实施例提供的触摸屏键盘的自动调节装置的结构示意图。 具体实施方式
在本发明的各种实施例中, 通过获取触摸屏上的当前触摸操作信息, 根据所述触摸操作信息和存储的触摸操作信息阈值区间确定当前触摸操作 信息所属级别, 根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。 下面通过附图及具体实施例对本发明做进一步的详细说明。 本发明实施例实现一种触摸屏键盘的自动调节方法, 如图 1 所示, 该 方法包括以下几个步骤:
步骤 101 : 触摸屏获取当前触摸操作信息。
下面以安卓( Android )操作***为例, 对本发明做进一步的详细说明。 具体的, 当用户使用触摸屏键盘时, 触摸屏幕, Android操作***对触 摸事件进行解析。所述解析具体包括:安卓 android层经过本地层框架 Native framwork的事件集线器 EventHub处理和 Java层框架 Java framework的键 盘输入装置 KeylnputDevice- -〉按键事件 KeyEvent (滑动时为原始输入事件 RawInputEvent- -〉移动事件 MotionEvent )处理后, 将触摸事件上报给应用 程序, 上报的形式为: 按键按下 onKeyDown/释放按键 onKeyUp或者触摸 事件 onTouchEvent/轨迹球事件 onTrackballEvent,并上报包含当前触摸操作 信息的 MotionEvent的对象。
MotionEvent中包含所有当前触摸操作相关的信息, 其中包括用于判断 触摸轨迹的粗细的触摸面积的值。 例如, 使用 size表示触摸轨迹的触摸面 积, 当触摸屏键盘的触摸屏键盘在处理触摸事件时,通过 MotionEvent中的 getSize()方法获取触摸面积 size的值。
步骤 102:处理器根据所述触摸操作信息和存储的触摸操作信息阈值区 间确定当前触摸操作信息所属级别。
预先存储与 size值相对应的阈值区间, 例如, 第一区间对应的 size值 为 0-0.3 ,第二区间对应的 size值为 0.3-0.6,第三区间对应的 size值为 0.6-1。 本实施例仅设置三个示例区间, 在其他实施例中为避免触摸屏键盘区域超 出触摸屏幕范围或触摸屏键盘区域覆盖文本输入区域的情况出现, 可以根 据不同的屏幕尺寸, 以及调用触摸屏键盘的应用场景, 增加或减少相应的 阈值区间。 将在步骤 101 中获取到的 size值与存储的阈值区间进行对比, 确定当 前 size所在的区间 , 并 居当前 size所在的区间确定触摸轨迹所属级别 , 例如, 第一区间所对应的触摸轨迹为正常, 用级别值 1表示, 第二区间所 对应的触摸轨迹为较粗, 用级别值 2表示, 第三区间所对应的触摸轨迹用 级别值 3表示, 并保存所得到的确定结果。
步骤 103:处理器根据所述当前触摸操作信息所属级别调整所述触摸屏 键盘。
当用户开始在触摸屏键盘输入, 触摸屏键盘收到按键事件并进行处理, 获取当前触摸屏信息和当前触摸屏键盘信息 , 根据当前触摸屏信息和当前 触摸屏键盘信息确定触摸屏键盘调节参数, 根据所述触摸屏键盘调节参数 和步骤 102中所获得的当前触摸操作信息所属级别对触摸屏键盘进行调整, 调整的内容包括增加或减小键盘的高度、 扩大或者缩小按键的大小、 扩大 或者缩小按键的响应区域等。
下面, 结合附图对调整触摸屏键盘进行详细说明。
在 Android ***中, 触摸屏键盘配置文件内预置有触摸屏键盘高度 keyboardHeight , 按键宽度 key Width、 按键高度 keyHeight、 水平间距 horizontalGap,垂直间距 verticalGap等信息。这些信息的值可通过读取配置 文件获取,例如,通过 Android***提供的资源实用工具中获取维度或分数 的 ResourceUtils.getDimensionOrFraction方法获取相应的配置值。从 Android ***获取触摸屏高度 screenHeight、触摸屏宽度 screen Width、输入区域高度 inputHeight等当前触摸屏信息。 根据获取的当前触摸屏信息和触摸屏键盘 信息确定触摸屏键盘调节参数, 根据所确定出的调节参数和步骤 102 中所 确定的当前触摸操作信息所属级别调整触摸屏键盘。
如图 2所示, 为本发明实施例增加触摸屏键盘高度的示意图。
获取存储在触摸屏键盘配置文件中的触摸屏键盘的高度为 keyboardHeight, 根据确定出的当前触摸轨迹对应级别值为 2, 即大于预置 的触摸轨迹为正常的级别值 1 , 确定需要对触摸屏键盘进行调节。
根据当前触摸屏键盘高度 keyboardHeight、 触摸屏高度 screenHeight和 输入区域高度 inputHeight确定出触摸屏键盘调节参数, 即触摸屏键盘可以 增加的高度 H2为:
H2 = screenHeight - keyboardHeight - inputHeight
调整触摸屏键盘高度为 keyboardHeight + H2;
记录触摸屏键盘的新高度 keyboardHeight = keyboardHeight + H2。
当触摸屏键盘的可以增加高度 H2的值为 0, 即根据当前触摸屏幕的总 高度和输入区域的高度, 已经没有空间再增加触摸屏幕的高度时, 可以在 保持原触摸屏键盘高度的情况下, 扩大触摸屏键盘按键的大小来提高输入 准确性, 也可以在增加触摸屏键盘高度的同时扩大触摸屏键盘按键的大小。
如图 3所示, 为本发明实施例扩大触摸屏键盘按键的示意图。
扩大触摸屏键盘按键分为水平方向和垂直方向两种, 其中触摸屏键盘 垂直方向可扩大的总空间 vertical可以使用
vertical = keyboardHeight - ( ( keyHeight * 按键行数 ) + ( verticalGap * 按键行数))
进行计算, 其中 keyboardHeight为当前触摸屏键盘的高度, keyHeight 为当前触摸屏键盘按键的高度, verticalGap 为当前触摸屏键盘按键之间的 垂直间距。
平均每个触摸按键垂直方向可以扩大的空间 nvertical可以使用 nvertical = vertical I按键行数
进行计算。
相应的, 每个触摸按键水平方向可以扩大的空间 nhorizontal可以使用 nhorizontal = horizontal I按键歹 'J数
进行计算。 其中, 水平方向可扩大的总空间 horizontal可以使用
horizontal = keyboardWidth - ( ( keyWidth * 按键歹 'J数 ) + ( horizontalGap * 按键列数 ) )
进行计算, 其中 keyboardWidth 为当前触摸屏键盘的宽度, keyWidth 为当前触摸屏键盘按键的宽度, horizontalGap 为当前触摸屏键盘按键之间 的水平间距。
根据步骤 102 中的确定结果, 例如, 根据当前触摸面积确定出的触摸 轨迹对应级别值为 2, 即大于预置的触摸轨迹为正常的级别值 1 , 则对按键 的高 keyHeight、 按键的宽 keyWidth进行调整。 具体地, 调整按键的宽度 nkeyWidth为:
nkeyWidth = keyWidth + nhorizontal
调整按键的高度 nkeyHeight为:
nkeyHeight = keyHeight + nvertical
调整后, 保存新的触摸屏键盘按键的宽度 nkeyWidth和触摸屏键盘按 键的高度 nkeyHeight为当前触摸屏键盘按键的宽度和高度。
图 3 中所示出的仅为扩大一个触摸屏按键的示例, 在本发明的其他实 施例中也可以同时调整多个或者全部触摸屏按键。
当触摸屏键盘按键的可扩大垂直或水平空间为 0,即根据当前触摸屏高 度、 输入区域的高度和触摸屏键盘按键之间的间隔, 已经没有空间再增加 触摸屏键盘的高度或者扩大触摸屏键盘按键大小时, 可以在保持原触摸屏 键盘高度不变的情况下, 扩大触摸屏键盘按键的响应区域来提高输入准确 性, 也可以在扩大触摸屏键盘按键大小的同时扩大触摸屏键盘按键的响应 区域。
如图 4所示, 为本发明实施例扩大触摸屏键盘响应区域的示意图。 才艮据步骤 102中的确定结果, 具体地, 例如, 才艮据图 4中黑色点状阴 影区域所示的当前触摸面积, 确定出触摸轨迹对应级别值为 3 , 即大于预置 的触摸轨迹为正常的级别值 1 ,则确定对图 4中网状阴影区域所示的触摸屏 键盘的原响应区域进行调整, 例如, 将图 4 中网状阴影区域所示的触摸屏 键盘的原响应区域按照预先设置的比例扩大, 具体地, 结合步骤 102 中所 确定出触摸轨迹对应级别值将触摸屏键盘的响应区域设置为原响应区域的 130%、 或原响应区域的 150%、 或原响应区域的 200%等。 调整后的触摸屏 键盘响应区域如图 4 中斜线状阴影区域所示, 从而使得触摸屏键盘能够更 准确地响应手指较粗的用户的触摸按键输入, 提高输入准确率和用户体验。
如果在用户下次使用时, 触摸轨迹发生变化, 则按照新获取的 size值 确定相应的触摸轨迹级别 , 并根据确定出的值对触摸屏键盘进行调整。
在本发明另一个实施例中, 考虑到, 如果在用户输入过程中调整触摸 屏键盘, 则可能会因为按键位置突然变化而导致输入错误的问题。 为避免 出现此情况, 可以在触摸屏键盘重新加载时 (例如, 关闭触摸屏键盘后再 次打开、 横竖屏切换等)对触摸屏键盘进行自动调整。
图 2、 图 3、 图 4中所示键盘布局仅用于对本发明的部分实施例进行解 释说明 , 本发明所应用的触摸屏键盘布局并不局限于图中所示出的键盘布 局。
本发明的另一个实施例中, 提供了一种触摸屏键盘的自动调节装置, 如图 5所示, 该触摸屏键盘的自动调节装置包括: 触摸屏显示模块 501、 存 储模块 502和调整控制模块 503 ,其中,触摸屏显示模块 501为触摸屏屏幕, 配置为显示触摸屏键盘和接收触摸屏上的触摸操作信息; 存储模块 502为 存储器, 配置为存储预置的触摸操作信息阈值区间; 调整控制模块 503 为 处理器, 配置为根据所述当前触摸操作信息和存储的触摸操作信息阈值区 间确定当前触摸操作信息所属级别, 根据所述当前触摸操作信息所属级别 调整触摸屏键盘。
具体地, 当用户使用触摸屏键盘时, 触摸屏幕, 触摸屏显示模块 501 获取当前触摸操作信息, 所述当前触摸操作信息包括用于判断触摸轨迹的 粗细的触摸面积。
调整控制模块 503根据获取的当前触摸操作信息, 并根据读取的存储 在存储模块 502 中的触摸操作信息阈值区间, 确定当前触摸操作信息所属 级别, 并将确定结果保存到存储模块 502中。
调整控制模块 503从存储模块 502中读取触摸屏高度、 触摸屏宽度、 输入区域高度等当前触摸屏信息, 以及触摸屏键盘高度、 触摸屏键盘按键 宽度、 触摸屏键盘按键高度、 触摸屏键盘按键水平间距、 触摸屏键盘按键 垂直间距、 触摸屏键盘按键响应区域等当前触摸屏键盘信息后, 根据所述 当前触摸屏信息和当前触摸屏键盘信息确定触摸屏键盘调节参数。 调整控 制模块 503根据确定出的触摸屏键盘调节参数和所述当前触摸操作信息所 属级别调整所述触摸屏键盘, 调整的内容包括增加或减小键盘的高度、 扩 大或者缩小按键的大小、 扩大或者缩小按键的响应区域等, 并将调整后的 触摸屏键盘信息保存到存储模块 502中。
本发明实施例所述触摸屏键盘的自动调节方法如果以软件功能模块的 形式实现并作为独立的产品销售或使用时, 也可以存储在一个计算机可读 取存储介质中。 基于这样的理解, 本领域内的技术人员应明白, 本申请的 实施例可提供为方法、 ***、 或计算机程序产品。 因此, 本申请可采用完 全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本申请可采用在一个或多个其中包含有计算机可用程序代码的计算 机可用存储介质上实施的计算机程序产品的形式, 所述存储介质包括但不 限于 U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 磁盘存 储器、 CD-ROM、 光学存储器等。
本申请是根据本申请实施例的方法、 设备(***)、 和计算机程序产品 的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流 程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计 算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于 实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指 定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。
相应的, 本发明实施例还提供一种计算机存储介质, 其中存储有计算 机程序, 该计算机程序用于执行本发明实施例的触摸屏键盘的自动调节方 法。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性
通过本发明实施例的触摸屏键盘的自动调节方法, 实现了触摸屏键盘 的自动准确设置, 提高了触摸屏键盘的输入准确率。

Claims

权利要求书
1、 一种触摸屏键盘的自动调节方法, 该方法包括:
获取触摸屏上的当前触摸操作信息;
根据所述当前触摸操作信息和存储的触摸操作信息阈值区间确定当前 触摸操作信息所属级别;
根据所述当前触摸操作信息所属级别调整所述触摸屏键盘。
2、 根据权利要求 1所述的自动调节方法, 其中, 所述当前触摸操作信 息包括用于判断触摸轨迹粗细的触摸面积。
3、 根据权利要求 1所述的自动调节方法, 其中, 所述调整触摸屏键盘 包括: 根据当前触摸屏信息和当前触摸屏键盘信息确定触摸屏键盘调节参 数 , 根据所述触摸屏键盘调节参数和所述当前触摸操作信息所属级别调整 所述触摸屏键盘。
4、 根据权利要求 3所述的自动调节方法, 其中, 所述当前触摸屏信息 包括: 触摸屏高度、 触摸屏宽度、 输入区域高度;
所述当前触摸屏键盘信息包括: 触摸屏键盘高度、 触摸屏键盘按键宽 度、 触摸屏键盘按键高度、 触摸屏键盘按键水平间距、 触摸屏键盘按键垂 直间距、 触摸屏键盘按键响应区域。
5、 根据权利要求 1至 4任一所述的自动调节方法, 其中, 所述调整触 摸屏键盘包括: 增加或减小触摸屏键盘的高度、 扩大或者缩小触摸屏键盘 按键的大小、 扩大或者缩小触摸屏键盘按键的响应区域。
6、 根据权利要求 5所述的自动调节方法, 其中, 在所述触摸屏键盘重 新加载时调整所述触摸屏键盘。
7、 一种触摸屏键盘的自动调节装置, 该装置包括: 触摸屏显示模块、 存储模块和调整控制模块, 其中:
触摸屏显示模块, 配置为显示触摸屏键盘和接收触摸屏上的当前触摸 操作信息;
存储模块, 配置为存储预置的触摸操作信息阈值区间;
调整控制模块, 配置为根据所述当前触摸操作信息和存储的触摸操作 信息阈值区间确定当前触摸操作信息所属级别, 根据当前触摸操作信息所 属级别调整触摸屏键盘。
8、 根据权利要求 7所述的自动调节装置, 其中, 所述存储模块, 还配 置为存储当前触摸屏信息和当前触摸屏键盘信息;
所述调整控制模块, 还配置为根据所述当前触摸屏信息和当前触摸屏 键盘信息确定调节参数 , 根据所述调节参数和所述当前触摸操作信息所属 级别调整所述触摸屏键盘。
9、 根据权利要求 7或 8所述的自动调节装置, 其中, 所述调整控制模 块调整触摸屏键盘包括: 增加或减小触摸屏键盘的高度、 扩大或者缩小触 摸屏键盘按键的大小、 扩大或者缩小触摸屏键盘按键的响应区域。
10、 根据权利要求 9所述的自动调节装置, 其中, 所述存储模块, 还 配置为存储调整后的触摸屏键盘信息为当前触摸屏键盘信息。
11、 一种计算机存储介质, 其中存储有计算机程序, 该计算机程序用 于执行权利要求 1至 6任一项所述的触摸屏键盘的自动调节方法。
PCT/CN2014/080008 2014-02-11 2014-06-16 一种触摸屏键盘的自动调节方法、装置和计算机存储介质 WO2015120680A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410048186.8 2014-02-11
CN201410048186.8A CN104834457A (zh) 2014-02-11 2014-02-11 一种触摸屏键盘的自动调节方法和装置

Publications (1)

Publication Number Publication Date
WO2015120680A1 true WO2015120680A1 (zh) 2015-08-20

Family

ID=53799554

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080008 WO2015120680A1 (zh) 2014-02-11 2014-06-16 一种触摸屏键盘的自动调节方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN104834457A (zh)
WO (1) WO2015120680A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301765B (zh) * 2016-04-15 2021-11-30 北京远度互联科技有限公司 遥控方法、装置及终端
CN108241459A (zh) * 2016-12-27 2018-07-03 华为技术有限公司 一种交互界面的配置方法及装置
CN107203313B (zh) * 2017-05-24 2020-04-17 维沃移动通信有限公司 调整桌面显示对象方法、移动终端及计算机可读存储介质
CN107122120A (zh) * 2017-05-25 2017-09-01 深圳天珑无线科技有限公司 一种虚拟键盘的处理方法、装置及终端
CN107577388B (zh) * 2017-08-29 2020-06-16 苏州麦迪斯顿医疗科技股份有限公司 输入界面的控制方法及装置
CN109710156B (zh) 2018-12-29 2021-11-16 联想(北京)有限公司 一种显示方法及电子设备
CN110704145B (zh) * 2019-08-30 2021-11-19 华为技术有限公司 一种热区调整方法与装置、电子设备与存储介质
CN113377201A (zh) * 2021-06-24 2021-09-10 北京百度网讯科技有限公司 输入法面板展示方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
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 (zh) * 2009-12-30 2011-07-06 乐金电子(中国)研究开发中心有限公司 一种虚拟键盘的实现方法、装置和设备
CN102279704A (zh) * 2011-07-22 2011-12-14 中兴通讯股份有限公司 一种界面控制方法、装置和移动终端
CN102541420A (zh) * 2010-12-31 2012-07-04 上海优熠电子科技有限公司 一种自适应虚拟键盘***

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006053678A (ja) * 2004-08-10 2006-02-23 Toshiba Corp ユニバーサルヒューマンインタフェースを有する電子機器
CN101231554B (zh) * 2007-01-25 2010-10-20 环达电脑(上海)有限公司 调整软键盘大小的方法
US9041660B2 (en) * 2008-12-09 2015-05-26 Microsoft Technology Licensing, Llc Soft keyboard control
CN101714053A (zh) * 2009-04-27 2010-05-26 翁印嵩 一种改进的触摸显示屏式的计算机键盘输入设备及其实现方法
CN102063244A (zh) * 2010-05-26 2011-05-18 绩优科技(深圳)有限公司 一种解决焦点窗口在触摸屏上的控制方法
CN103365569A (zh) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 触摸键盘的显示处理方法和移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (zh) * 2009-12-30 2011-07-06 乐金电子(中国)研究开发中心有限公司 一种虚拟键盘的实现方法、装置和设备
CN102541420A (zh) * 2010-12-31 2012-07-04 上海优熠电子科技有限公司 一种自适应虚拟键盘***
CN102279704A (zh) * 2011-07-22 2011-12-14 中兴通讯股份有限公司 一种界面控制方法、装置和移动终端

Also Published As

Publication number Publication date
CN104834457A (zh) 2015-08-12

Similar Documents

Publication Publication Date Title
WO2015120680A1 (zh) 一种触摸屏键盘的自动调节方法、装置和计算机存储介质
US9965158B2 (en) Touch screen hover input handling
JP6063037B2 (ja) タッチスクリーンデバイスに用いられるユーザーインターフェースのインタラクション方法、装置、タッチスクリーンデバイス、プログラム、及び記録媒体
CN105373291B (zh) 一种界面切换方法及装置
US10042546B2 (en) Systems and methods to present multiple frames on a touch screen
WO2013189224A1 (zh) 光标显示位置的确定方法及装置
TW201606630A (zh) 在表單式視圖中呈現試算表的資料集
CN103019427A (zh) 控制方法及电子设备
KR101372122B1 (ko) 터치스크린에서의 벡터 기반 제스처를 보정하는 방법 및 그 장치
US9647908B2 (en) Method, apparatus and system for determining software performance
US9245101B2 (en) Electronic device and unlocking method thereof
WO2018233054A1 (zh) 功能控件的响应方法、电子装置及计算机可读存储介质
US20190087074A1 (en) Dynamic adjustment of haptic/audio feedback during scrolling operations
CN104898880A (zh) 一种控制方法及电子设备
US20170364233A1 (en) Operation processing method, electronic device, and computer storage medium
US11656761B2 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
WO2018218392A1 (zh) 触摸操作的处理方法和触摸键盘
WO2017114194A1 (zh) 一种移动终端的操作栏排布方法和装置
CN109150370B (zh) 一种传输块大小的确定方法及通信设备
CN104216625A (zh) 显示对象显示位置的调整方法和终端设备
WO2019060162A1 (en) DYNAMIC ADJUSTMENT OF MINIATURE MULTIMEDIA IMAGE SIZE BASED ON TOUCH SCREEN PRESSURE
US20120017169A1 (en) System and method of dividing a window according to trail
JP2016110604A (ja) ページめくりシステム及びページめくり方法
US9904402B2 (en) Mobile terminal and method for input control
US20130169552A1 (en) Electronic device and method for controlling rotation or zooming operations on touch screen

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14882686

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14882686

Country of ref document: EP

Kind code of ref document: A1