WO2015106516A1 - 一种实现悬浮输入的方法、装置和计算机存储介质 - Google Patents

一种实现悬浮输入的方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2015106516A1
WO2015106516A1 PCT/CN2014/078331 CN2014078331W WO2015106516A1 WO 2015106516 A1 WO2015106516 A1 WO 2015106516A1 CN 2014078331 W CN2014078331 W CN 2014078331W WO 2015106516 A1 WO2015106516 A1 WO 2015106516A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
coordinates
input
height
determined
Prior art date
Application number
PCT/CN2014/078331
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 中兴通讯股份有限公司
Priority to EP14878746.8A priority Critical patent/EP3086223A4/en
Priority to US15/112,554 priority patent/US20160335240A1/en
Publication of WO2015106516A1 publication Critical patent/WO2015106516A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • 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]
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0414Vertical resolution change
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0421Horizontal resolution change
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • G09G2340/0471Vertical positioning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • G09G2340/0478Horizontal positioning

Definitions

  • the present invention relates to the field of mobile communications, and more particularly to a method, apparatus and computer storage medium for implementing a floating input.
  • the input method panel can float and freely drag the position, but the default pop-up position will also block the input box.
  • the method can manually solve the problem that the input box is occluded by the user manually dragging the input method panel, the user is required to participate, which is easy to cause the user to operate incorrectly, and the user experience is not very good.
  • an embodiment of the present invention provides a method, a device, and a computer storage medium for implementing a floating input, which are applied to a mobile terminal having a split screen function, which can avoid the input frame not being blocked by the input method panel, and avoiding Causes users to misuse, thereby improving the user experience.
  • an embodiment of the present invention provides a method for implementing a floating input, including:
  • the default pop-up position of the input method panel on the screen is determined based on the obtained location information.
  • the determining, according to the obtained location information, a default pop-up position of the input method panel in the screen includes:
  • the obtained position information is one or more of coordinates of the upper left corner of the input box, coordinates of the upper right corner, coordinates of the lower left corner, and coordinates of the lower right corner.
  • the coordinate origin is taken as an upper left corner or an upper right corner of the screen, and determining, according to the obtained location information, that a default popup position of the input method panel in the screen includes : half of the height;
  • the default pop-up position is determined to be the upper half of the screen.
  • the method further includes:
  • the default pop-up position is determined to be the lower half of the screen.
  • the coordinate origin is taken as the lower left corner or the upper left corner of the screen
  • the determining the default pop-up position of the input method panel in the screen according to the obtained location information includes: :
  • the default pop-up position is determined to be the right half of the screen.
  • the method further includes:
  • the default pop-up position is determined to be the left half of the screen.
  • the method further includes:
  • the embodiment of the invention further provides an apparatus for implementing a floating input, which at least includes:
  • Obtaining a module configured to obtain position information of the input box on the screen
  • the determination module is configured to determine a default pop-up position of the input method panel on the screen based on the obtained location information.
  • the determining module is further configured to:
  • the obtained position information is one or more of coordinates of the upper left corner of the input box, coordinates of the upper right corner, coordinates of the lower left corner, and coordinates of the lower right corner.
  • the method further comprises:
  • a determining module configured to determine that the mode of the screen is a portrait mode
  • the determining module is set to be half of a height: determining that the default pop-up position is the upper half of the screen.
  • the determining module is further configured as: half of the determining that the default pop-up position is the lower half of the screen.
  • the method further comprises:
  • the determining module is further configured to determine that the mode of the screen is a landscape mode
  • the determining module is set to:
  • the determining module is further configured to:
  • the method further comprises:
  • the adjustment module is set to increase the height of the window in which the input box is located, and to reduce the height of the other window by the same size.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform any of the methods for implementing floating input as described above.
  • the embodiment of the present invention includes: obtaining position information of the input box in the screen and a resolution of the screen; determining a default pop-up position of the input method panel in the screen according to the obtained position information and resolution.
  • the solution of the embodiment of the present invention achieves that the input box is not blocked by the input method panel, and the user is prevented from operating by mistake, thereby improving the user experience.
  • FIG. 1 is a flowchart of a method for implementing a floating input according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an embodiment of an input method panel popping up in a lower half screen in a portrait mode according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an embodiment of adjusting two half screen heights in a portrait mode according to an embodiment of the present invention
  • FIG. 4( a ) is a schematic diagram of an embodiment of an input method panel popping up on a left half screen in a horizontal screen mode according to an embodiment of the present invention
  • 4(b) is a schematic diagram showing an embodiment of an input method panel popping up on a right half screen in a horizontal screen mode according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a device for implementing a floating input according to an embodiment of the present invention.
  • 1 is the first application
  • 2 is the input box
  • 3 is the input method panel
  • 4 is the second application.
  • an embodiment of the present invention provides a method for implementing a floating input, which is applied to a mobile terminal having a split screen function, and the method includes:
  • Step 100 Obtain location information of the input box on the screen.
  • the position information may be one or more of the coordinates of the four vertices of the input box (the coordinates of the upper left corner, the coordinates of the upper right corner, the coordinates of the lower left corner, and the coordinates of the lower right corner), through the four vertices.
  • the coordinates of the coordinates also give the coordinates of the center point.
  • the coordinates include the abscissa and the ordinate.
  • the abscissa and the ordinate vary with the mode of the screen and the origin of the coordinates.
  • the origin of the coordinates is determined according to the actual situation and can be taken as a fixed point on the screen or as the mode of the screen changes.
  • the origin of the coordinate can be taken as the upper left corner, and the coordinates of the point can be expressed as (m, ⁇ ), that is, m is the abscissa and n is the ordinate;
  • the origin of the coordinate can be taken as the lower left corner.
  • the coordinates of the point can be expressed as (n, m), that is, ⁇ is the abscissa and m is the ⁇ slave coordinate.
  • Step 101 Determine, according to the obtained location information, a default pop-up position of the input method panel on the screen.
  • the obtained position information can be compared with the preset value, and the default pop-up position of the input method panel on the screen is determined according to the comparison result.
  • the preset value can be determined according to the size of the screen. If the input method panel occupies half of the screen, the preset value can be taken as half of the resolution height; if the input method panel accounts for one-third of the screen, the preset value can be taken as the height of the resolution. One, wait.
  • the height of the resolution is the number of pixels on the long side of the screen, and the width is the number of pixels on the short side, and does not change with the mode of the screen. How to get the resolution of the screen belongs to the related technology and cannot be used to limit The scope of protection of the embodiments of the present invention is made.
  • the preset height of the resolution can be taken as half the height of the resolution.
  • the origin of the coordinate is taken as the upper left corner or the upper right corner of the screen. If it is determined that the ordinate of the coordinates of the upper left corner or the upper right corner is not less than half of the height of the resolution, the default popup is determined. The position is the upper half of the screen.
  • the coordinates of the upper left corner of the input method panel on the screen can be (W-a, H-b).
  • H is the height of the resolution of the screen
  • W is the width of the resolution of the screen
  • b is the height of the rectangular area of the input method panel
  • a is the width of the rectangular area of the input method panel.
  • the default pop-up position is determined to be the lower half of the screen.
  • the coordinates of the upper left corner of the input method panel on the screen can be (W-a, H/2-b).
  • the default pop-up position is the upper half or lower half of the screen.
  • the input box is in the upper half of the screen. After clicking the input box, it is judged that the default pop-up position of the input method board should be the lower half screen.
  • the split screen function of the mobile terminal divides the screen into two windows, a window of the upper half screen and a window of the lower half screen.
  • the origin of the coordinate may be taken as the lower left corner or the upper left corner of the screen, as shown in FIG. 4( a ), if the coordinates of the coordinates of the upper left corner or the lower left corner are determined.
  • the coordinates are not less than half the height of the resolution, and the default pop-up position is determined to be the left half of the screen.
  • the coordinates of the upper left corner of the input method panel on the screen can be (H/2-b, Wa).
  • the abscissa in the coordinates of the upper right corner or the lower right corner is not more than half of the height of the resolution, it is determined that the default popup position is the right half screen of the screen.
  • the coordinates of the upper left corner of the input method panel on the screen can be (H-b, W-a). If it is determined that the abscissa in the coordinates of the upper left corner or the lower left corner is less than half of the height of the resolution, and the abscissa in the coordinates of the upper right corner or the lower right corner is greater than half of the height of the resolution, it is determined that the default popup position is the screen Left half screen or right half screen.
  • the mode of the judgment screen belongs to the related art and cannot be used to limit the protection range of the embodiment of the present invention.
  • a gravity sensor can be used to determine the mode of the screen. When the ordinate of the gravity sensor output is -5, it is judged as the portrait mode; when the abscissa output of the gravity sensor is -5, it is judged as the landscape mode.
  • an embodiment of the present invention further provides an apparatus for implementing a floating input, which at least includes: an acquiring module configured to acquire position information of an input box in a screen and a resolution of the screen; and a determining module, configured to obtain according to the obtained Location information and resolution determine the default pop-up position of the input method panel on the screen.
  • the obtained position information is one or more of coordinates of the upper left corner of the input box, coordinates of the upper right corner, coordinates of the lower left corner, and coordinates of the lower right corner.
  • the method further includes:
  • a judging module configured to determine that the mode of the screen is a portrait mode
  • the default pop-up position is determined to be the upper half of the screen.
  • the determining module is further configured to: determine that the default pop-up position is the lower half of the screen.
  • the determining module is further configured to:
  • the method further includes:
  • a judging module configured to determine that the mode of the screen is a landscape mode
  • the determining module is further configured to:
  • the abscissa in the coordinates of the upper right corner or the lower right corner is not more than half of the height of the resolution, and the default popup position is determined to be the left half of the screen.
  • the determining module is further configured to:
  • the abscissa in the coordinates of the upper left corner or the lower left corner is less than half of the height of the resolution
  • the abscissa in the coordinates of the upper right corner or the lower right corner is greater than half of the height of the resolution
  • the default popup position is determined as the left half of the screen. Screen or right half screen.
  • the method further includes:
  • the adjustment module is set to increase the height of the window in which the input box is located, and to reduce the height of the other window by the same size.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform any of the methods for implementing floating input as described above.
  • the embodiment of the invention achieves that the input box is not blocked by the input method panel, and the user is prevented from operating by mistake, thereby improving the user experience.
  • the embodiment of the present invention includes: acquiring location information of the input box in the screen and resolution of the screen; determining a default pop-up position of the input method panel in the screen according to the obtained location information and resolution.
  • the solution of the embodiment of the invention achieves that the input box is not blocked by the input method panel, and the user is prevented from operating by mistake, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种实现悬浮输入的方法和装置,包括:获取输入框在屏幕中的位置信息和屏幕的分辨率;根据获得的位置信息和分辨率确定输入法面板在屏幕中的默认弹出位置。实现了在输入框不被输入法面板遮挡的同时,避免了引起用户误操作,从而提高了用户体验。

Description

一种实现悬浮输入的方法、 装置和计算机存储介质
技术领域
本发明涉及移动通讯领域, 尤指一种实现悬浮输入的方法、 装置和计算 机存储介质。
背景技术
大屏多核的移动终端上的分屏和悬浮屏功能已经成为一种趋势, 越来越 多的移动终端厂家开始研发这种新的技术, 从而充分发挥大屏多核移动终端 的多任务处理能力, 目前中兴、 三星、 酷派等移动终端已经实现了这种分屏 功能, 但是由于移动终端在分屏后屏幕的窗口被缩小了, 在需要输入字符的 时候, 弹出的输入法面板占满半个屏幕, 如果输入框正好在屏幕的下半边, 输入框被输入法面板遮挡, 给用户带来不便, 从而导致用户体验很不好。
相关解决输入法面板遮档输入框的方法是: 将输入法面板固定在一个位 置, 将输入法面板等比例缩小, 最大限度的减小遮挡。 该方法没有完全解决 输入框被遮挡的问题, 反而在输入法面板缩小后, 给用户输入带来不便。
或者, 允许输入法面板悬浮并可以随意拖动位置, 但是默认弹出的位置 同样会遮挡输入框。 该方法虽然可以通过用户手动拖动输入法面板, 解决输 入框被遮挡的问题, 但是需要用户参与, 容易引起用户误操作, 用户体验也 不是很好。
发明内容
为了解决上述问题, 本发明实施例提出了一种实现悬浮输入的方法、 装 置和计算机存储介质, 应用于具有分屏功能的移动终端, 能够实现在输入框 不被输入法面板遮挡的同时, 避免引起用户误操作, 从而提高用户体验。
为了达到上述目的, 本发明实施例提出了一种实现悬浮输入的方法, 包 括:
获取输入框在屏幕中的位置信息; 根据获得的位置信息确定输入法面板在屏幕中的默认弹出位置。
优选地, 所述根据获得的位置信息确定输入法面板在屏幕中的默认弹出 位置包括:
比较所述获得的位置信息和预设值的大小, 根据比较结果确定所述输入 法面板在屏幕中的默认弹出位置。
优选地, 所述获得的位置信息为所述输入框左上角的坐标、 右上角的坐 标、 左下角的坐标和右下角的坐标中的一个或多个。
优选地, 当判断出所述屏幕的模式为竖屏模式时, 取坐标原点为所述屏 幕的左上角或右上角, 所述根据获得的位置信息确定输入法面板在屏幕中的 默认弹出位置包括: 的高度的一半;
确定所述默认弹出位置为所述屏幕的上半屏。 辨率的高度的一半时, 所述方法还包括:
确定所述默认弹出位置为所述屏幕的下半屏。
优选地, 当判断出所述屏幕的模式为横屏模式时, 取坐标原点为所述屏 幕的左下角或左上角, 所述根据获得的位置信息确定输入法面板在屏幕中的 默认弹出位置包括:
判断出所述左上角或左下角的坐标中的横坐标不小于所述屏幕的分辨率 的高度的一半;
确定所述默认弹出位置为所述屏幕的右半屏。
优选地, 当判断出所述右上角或右下角的坐标中的横坐标不大于所述分 辨率的高度的一半时, 所述方法还包括:
确定所述默认弹出位置为所述屏幕的左半屏。
优选地, 所述方法还包括:
增大所述输入框所在的窗口的高度, 并按相同尺寸缩小另一个窗口的高 度。
本发明实施例还提出一种实现悬浮输入的装置, 至少包括:
获取模块, 设置为获取输入框在屏幕中的位置信息;
确定模块, 设置为根据获得的位置信息确定输入法面板在屏幕中的默认 弹出位置。
优选地, 所述确定模块, 还设置为:
比较所述获得的位置信息和预设值的大小, 根据比较结果确定所述输入 法面板在屏幕中的默认弹出位置。
优选地, 所述获得的位置信息为所述输入框左上角的坐标、 右上角的坐 标、 左下角的坐标和右下角的坐标中的一个或多个。
优选地, 还包括:
判断模块, 设置为判断出所述屏幕的模式为竖屏模式;
所述确定模块, 是设置为: 的高度的一半; 确定所述默认弹出位置为所述屏幕的上半屏。
优选地, 所述确定模块还设置为: 的一半, 确定所述默认弹出位置为所述屏幕的下半屏。
优选地, 还包括:
判断模块, 还设置为判断出所述屏幕的模式为横屏模式;
所述确定模块, 是设置为:
判断出所述左上角或左下角的坐标中的横坐标不小于所述屏幕的分辨率 的高度的一半; 确定所述默认弹出位置为所述屏幕的右半屏。
优选地, 所述确定模块还设置为:
判断出所述右上角或右下角的坐标中的横坐标不大于所述分辨率的高度 的一半, 确定所述默认弹出位置为所述屏幕的左半屏。 优选地, 还包括:
调整模块, 设置为增大所述输入框所在的窗口的高度, 并按相同尺寸缩 小另一个窗口的高度。
本发明实施例还提出了一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令设置为执行以上所述的任意 一种实现悬浮输入的方法。
与相关技术相比, 本发明实施例包括: 获取输入框在屏幕中的位置信息 和屏幕的分辨率; 根据获得的位置信息和分辨率确定输入法面板在屏幕中的 默认弹出位置。 通过本发明实施例的方案, 实现了在输入框不被输入法面板 遮挡的同时, 避免了引起用户误操作, 从而提高了用户体验。
附图概述
下面对本发明实施例中的附图进行说明, 实施例中的附图是用于对本发 明实施例的进一步理解, 与说明书一起用于解释本发明实施例, 并不构成对 本发明实施例保护范围的限制。
图 1为本发明实施例实现悬浮输入的方法流程图;
图 2为本发明实施例竖屏模式下输入法面板在下半屏弹出的实施例示意 图;
图 3为本发明实施例竖屏模式下调整两个半屏高度的实施例示意图; 图 4 ( a )为本发明实施例横屏模式下输入法面板在左半屏弹出的实施例 示意图;
图 4 ( b )为本发明实施例横屏模式下输入法面板在右半屏弹出的实施例 示意图;
图 5为本发明实施例实现悬浮输入的装置的结构组成示意图;
图中, 1为第一应用程序, 2为输入框, 3为输入法面板, 4为第二应用 程序。 本发明的较佳实施方式
下面结合附图对本发明作进一步的描述, 并不能用来限制本发明实施例 的保护范围。
参见图 1 , 本发明实施例提出了一种实现悬浮输入的方法, 应用于具有 分屏功能的移动终端, 该方法包括:
步骤 100、 获取输入框在屏幕中的位置信息。
本步骤中, 如何获取输入框在屏幕中的位置信息属于相关技术, 不能用 来限制本发明实施例的保护范围。
本步骤中, 位置信息可以是输入框四个顶点的坐标(分别为: 左上角的 坐标、 右上角的坐标、 左下角的坐标和右下角的坐标) 中的一个或多个, 通 过四个顶点的坐标还可以获得中心点的坐标。
本步骤中, 坐标包括横坐标和纵坐标。
其中, 横坐标和纵坐标随屏幕的模式和坐标原点的变化而变化。 坐标原 点根据实际情况确定, 可以取为屏幕上一个固定点, 也可以随屏幕的模式的 变化而变化。
对应屏幕上的一点, 当屏幕的模式为横屏模式时, 可以取坐标原点为左 上角, 该点的坐标可表示为 (m, η ) , 即 m为横坐标, n为纵坐标; 当屏幕 的模式为竖屏模式时, 可以取坐标原点为左下角, 该点的坐标可表示为 (n, m ) , 即 η为横坐标, m为 έ从坐标。
步骤 101、 根据获得的位置信息确定输入法面板在屏幕中的默认弹出位 置。
本步骤中, 可以将获得的位置信息和预设值进行比较, 根据比较结果确 定输入法面板在屏幕中的默认弹出位置。
其中,预设值可以根据屏幕的大小来确定。 如输入法面板占屏幕的一半, 则预设值可以取为分辨率的高度的一半; 如输入法面板占屏幕的三分之一, 则预设值可以取为分辨率的高度的三分之一, 等等。
分辨率的高度为屏幕长边的像素数, 宽度为短边的像素数, 并且不随屏 幕的模式的变化而变化。 如何获取屏幕的分辨率属于相关技术, 不能用来限 制本发明实施例的保护范围。
例如, 可以取分辨率的高度的预设值为分辨率的高度的一半。 当判断出 屏幕的模式为竖屏模式时, 取坐标原点为屏幕的左上角或右上角, 如果判断 出左上角或右上角的坐标的纵坐标不小于分辨率的高度的一半, 则确定默认 弹出位置为屏幕的上半屏。
其中, 可以使输入法面板的左上角在屏幕中的坐标为 (W-a , H-b ) 。 其中, H为屏幕的分辨率的高度, W为屏幕的分辨率的宽度, b为输入法面 板的矩形区的高度, a为输入法面板的矩形区的宽度。
半, 则确定默认弹出位置为屏幕的下半屏。
其中, 可以使输入法面板的左上角在屏幕中的坐标为 (W-a, H/2-b ) 。
默认弹出位置为屏幕的上半屏或下半屏。
如图 2所示, 输入框在上半屏, 那么点击输入框后, 判断得到输入法面 板的默认弹出位置应该为下半屏。
本步骤中, 如图 3所示, 当判断出屏幕的模式为竖屏模式时, 还可以增 大输入框所在的窗口的高度, 并按相同尺寸缩小另一个窗口的高度。 这里认 为移动终端的分屏功能将屏幕分为两个窗口, 分别是上半屏的窗口和下半屏 的窗口。
例如, 可以将输入框所在的窗口的高度增大为 H/2+a, 将另一个窗口的 高度缩小为 H/2-a。 那么可以使输入法面板的左上角在屏幕中的坐标为 (0, H/2 ) 。
本步骤中, 当判断出屏幕的模式为横屏模式时, 可以取坐标原点为屏幕 的左下角或左上角, 如图 4 ( a )所示, 如果判断出左上角或左下角的坐标的 横坐标不小于分辨率的高度的一半的大小, 则确定默认弹出位置为屏幕的左 半屏。
其中, 可以使输入法面板的左上角在屏幕中的坐标为 (H/2-b, W-a ) 。 如图 4 ( b )所示, 如果判断出右上角或右下角的坐标中的横坐标不大于 分辨率的高度的一半, 则确定默认弹出位置为屏幕的右半屏。
其中, 可以使输入法面板的左上角在屏幕中的坐标为 (H-b, W-a ) 。 如果判断出左上角或左下角的坐标中的横坐标小于分辨率的高度的一 半, 且右上角或右下角的坐标中的横坐标大于分辨率的高度的一半, 则确定 默认弹出位置为屏幕的左半屏或右半屏。
其中, 判断屏幕的模式属于相关技术, 不能用来限制本发明实施例的保 护范围。 例如, 可以釆用重力感应器来判断屏幕的模式, 当重力感应器输出 的纵坐标为 -5时, 判断为竖屏模式; 当重力感应器输出的横坐标为 -5时, 判 断为横屏模式。
参见图 5 , 本发明实施例还提出了一种实现悬浮输入的装置, 至少包括: 获取模块, 设置为获取输入框在屏幕中的位置信息和屏幕的分辨率; 确定模块, 设置为根据获得的位置信息和分辨率确定输入法面板在屏幕 中的默认弹出位置。
本发明实施例的装置中, 获得的位置信息为输入框左上角的坐标、 右上 角的坐标、 左下角的坐标和右下角的坐标中的一个或多个。
本发明实施例的装置中, 还包括:
判断模块, 设置为判断出屏幕的模式为竖屏模式;
确定模块, 是设置为:
判断出左上角或右上角的坐标中的纵坐标不小于分辨率的高度的一半; 确定默认弹出位置为屏幕的上半屏。
本发明实施例的装置中, 确定模块还设置为: 确定默认弹出位置为屏幕的下半屏。
本发明实施例的装置中, 确定模块还设置为:
判断出左上角或右上角的坐标中的纵坐标小于分辨率的高度的一半, 且 位置为屏幕的上半屏或下半屏。
本发明实施例的装置中, 还包括:
判断模块, 设置为判断出屏幕的模式为横屏模式;
确定模块, 是设置为:
判断出左上角或左下角的坐标中的横坐标不小于分辨率的高度的一半; 确定默认弹出位置为屏幕的右半屏。 本发明实施例的装置中, 确定模块还设置为:
判断出右上角或右下角的坐标中的横坐标不大于分辨率的高度的一半, 确定默认弹出位置为屏幕的左半屏。
本发明实施例的装置中, 确定模块还设置为:
判断出左上角或左下角的坐标中的横坐标小于分辨率的高度的一半, 且 右上角或右下角的坐标中的横坐标大于分辨率的高度的一半, 确定默认弹出 位置为屏幕的左半屏或右半屏。
本发明实施例的装置中, 还包括:
调整模块, 设置为增大输入框所在的窗口的高度, 并按相同尺寸缩小另 一个窗口的高度。 本发明实施例还提出了一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令设置为执行以上所述的任意 一种实现悬浮输入的方法。
本发明实施例实现了在输入框不被输入法面板遮挡的同时, 避免了引起 用户误操作, 从而提高了用户体验。
以上所述的实施例仅是为了便于本领域的技术人员理解而已, 并不用于 限制本发明实施例的保护范围,在不脱离本发明实施例的发明构思的前提下, 本发明实施例的保护范围之内。
工业实用性 与相关技术相比, 本发明实施例包括: 获取输入框在屏幕中的位置信息 和屏幕的分辨率; 根据获得的位置信息和分辨率确定输入法面板在屏幕中的 默认弹出位置。 通过本发明实施例的方案, 实现了在输入框不被输入法面板 遮挡的同时, 避免了引起用户误操作, 从而提高了用户体验。

Claims

权 利 要 求 书
1、 一种实现悬浮输入的方法, 包括:
获取输入框在屏幕中的位置信息; 根据获得的位置信息确定输入法面板在屏幕中的默认弹出位置。
2、 根据权利要求 1所述的方法, 其中, 所述根据获得的位置信息确定输 入法面板在屏幕中的默认弹出位置包括:
比较所述获得的位置信息和预设值的大小, 根据比较结果确定所述输入 法面板在屏幕中的默认弹出位置。
3、 根据权利要求 1所述的方法, 其中, 所述获得的位置信息为所述输入 框左上角的坐标、 右上角的坐标、 左下角的坐标和右下角的坐标中的一个或 多个。
4、 根据权利要求 3所述的方法, 其中, 当判断出所述屏幕的模式为竖屏 模式时, 取坐标原点为所述屏幕的左上角或右上角, 所述根据获得的位置信 息确定输入法面板在屏幕中的默认弹出位置包括: 的高度的一半;
确定所述默认弹出位置为所述屏幕的上半屏。
5、 根据权利要求 4所述的方法, 其特征在于, 当判断出所述左下角或右 下角的坐标中的纵坐标不大于所述分辨率的高度的一半时,所述方法还包括: 确定所述默认弹出位置为所述屏幕的下半屏。
6、 根据权利要求 3所述的方法, 其中, 当判断出所述屏幕的模式为横屏 模式时, 取坐标原点为所述屏幕的左下角或左上角, 所述根据获得的位置信 息确定输入法面板在屏幕中的默认弹出位置包括:
判断出所述左上角或左下角的坐标中的横坐标不小于所述屏幕的分辨率 的高度的一半;
确定所述默认弹出位置为所述屏幕的右半屏。
7、 根据权利要求 6所述的方法, 其特征在于, 当判断出所述右上角或右 下角的坐标中的横坐标不大于所述分辨率的高度的一半时,所述方法还包括: 确定所述默认弹出位置为所述屏幕的左半屏。
8、 根据权利要求 4或 5所述的方法, 所述方法还包括:
增大所述输入框所在的窗口的高度, 并按相同尺寸缩小另一个窗口的高 度。
9、 一种实现悬浮输入的装置, 至少包括:
获取模块, 设置为获取输入框在屏幕中的位置信息;
确定模块, 设置为根据获得的位置信息确定输入法面板在屏幕中的默认 弹出位置。
10、 根据权利要求 9所述的装置, 其中, 所述确定模块, 是设置为: 比较所述获得的位置信息和预设值的大小, 根据比较结果确定所述输入 法面板在屏幕中的默认弹出位置。
11、 根据权利要求 9所述的装置, 其中, 所述获得的位置信息为所述输 入框左上角的坐标、 右上角的坐标、 左下角的坐标和右下角的坐标中的一个 或多个。
12、 根据权利要求 11所述的装置, 还包括:
判断模块, 设置为判断出所述屏幕的模式为竖屏模式;
所述确定模块, 是设置为: 的高度的一半; 确定所述默认弹出位置为所述屏幕的上半屏。
13、 根据权利要求 12所述的装置, 其中, 所述确定模块还设置为: 的一半, 确定所述默认弹出位置为所述屏幕的下半屏。
14、 根据权利要求 11所述的装置, 还包括:
判断模块, 设置为判断出所述屏幕的模式为横屏模式; 所述确定模块, 是设置为:
判断出所述左上角或左下角的坐标中的横坐标不小于所述屏幕的分辨率 的高度的一半; 确定所述默认弹出位置为所述屏幕的右半屏。
15、 根据权利要求 14所述的装置, 其中, 所述确定模块还设置为: 判断出所述右上角或右下角的坐标中的横坐标不大于所述分辨率的高度 的一半, 确定所述默认弹出位置为所述屏幕的左半屏。
16、 根据权利要求 12或 13所述的装置, 还包括:
调整模块, 设置为增大所述输入框所在的窗口的高度, 并按相同尺寸缩 小另一个窗口的高度。
17、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执行 指令, 所述计算机可执行指令设置为执行权利要求 1至 8所述的实现悬浮输 入的方法。
PCT/CN2014/078331 2014-01-20 2014-05-23 一种实现悬浮输入的方法、装置和计算机存储介质 WO2015106516A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14878746.8A EP3086223A4 (en) 2014-01-20 2014-05-23 UNLOCKED INPUT METHOD, DEVICE AND COMPUTER MEMORY MEDIUM
US15/112,554 US20160335240A1 (en) 2014-01-20 2014-05-23 Suspended Input Method, Apparatus, and Computer Storage Medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410025962.2A CN104793923A (zh) 2014-01-20 2014-01-20 一种实现悬浮输入的方法和装置
CN201410025962.2 2014-01-20

Publications (1)

Publication Number Publication Date
WO2015106516A1 true WO2015106516A1 (zh) 2015-07-23

Family

ID=53542344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078331 WO2015106516A1 (zh) 2014-01-20 2014-05-23 一种实现悬浮输入的方法、装置和计算机存储介质

Country Status (4)

Country Link
US (1) US20160335240A1 (zh)
EP (1) EP3086223A4 (zh)
CN (1) CN104793923A (zh)
WO (1) WO2015106516A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018109813A (ja) * 2016-12-28 2018-07-12 富士ゼロックス株式会社 表示装置、画像形成装置及びプログラム
CN107391007A (zh) * 2017-04-20 2017-11-24 阿里巴巴集团控股有限公司 一种虚拟键盘的交互方法及装置
CN107526494B (zh) 2017-09-06 2021-02-09 北京小米移动软件有限公司 键盘显示方法、装置、终端及存储介质
CN107833566B (zh) 2017-09-30 2019-11-22 明基智能科技(上海)有限公司 调整显示影像长宽比例的方法以及显示系统
CN110740478A (zh) * 2018-07-18 2020-01-31 成都鼎桥通信技术有限公司 视频分辨率的协商方法和装置
CN109375983B (zh) * 2018-12-20 2022-01-07 广东金赋科技股份有限公司 终端内输入法窗口自动调整的方法
CN111381765B (zh) * 2020-03-11 2023-06-27 汉海信息技术(上海)有限公司 文本框的显示方法、装置、计算机设备及存储介质
CN111782062B (zh) * 2020-07-01 2021-11-05 广州朗国电子科技有限公司 软输入法位置调整方法、装置、存储介质及大屏一体机
CN117806744A (zh) * 2022-09-30 2024-04-02 华为技术有限公司 控件显示方法及电子设备
CN117492609B (zh) * 2023-12-29 2024-05-17 荣耀终端有限公司 一种显示方法、可读存储介质、程序产品及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809863A (zh) * 2003-05-16 2006-07-26 纯深有限公司 显示控制系统
CN101609387A (zh) * 2008-06-20 2009-12-23 宏碁股份有限公司 在屏幕上显示多个窗口的方法及计算机可读取媒体
WO2013067073A1 (en) * 2011-11-01 2013-05-10 Microsoft Corporation Adjusting content to avoid occlusion by a virtual input panel
CN103336650A (zh) * 2013-06-05 2013-10-02 百度在线网络技术(北京)有限公司 一种用于移动终端的调整输入法面板的方法与装置
CN103399711A (zh) * 2013-08-21 2013-11-20 珠海市魅族科技有限公司 一种弹出式窗口的显示控制方法及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7081887B2 (en) * 2002-12-19 2006-07-25 Intel Corporation Method and apparatus for positioning a software keyboard
TW589577B (en) * 2003-01-03 2004-06-01 Tatung Co Method to display software keyboard
KR101636570B1 (ko) * 2009-10-28 2016-07-20 엘지전자 주식회사 출력표시영역 제어 장치 및 방법
KR101615964B1 (ko) * 2009-11-09 2016-05-12 엘지전자 주식회사 이동 단말기 및 그 표시방법
US8972892B2 (en) * 2010-01-05 2015-03-03 Qualcomm Incorporated Notification in immersive applications
US8769431B1 (en) * 2013-02-28 2014-07-01 Roy Varada Prasad Method of single-handed software operation of large form factor mobile electronic devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809863A (zh) * 2003-05-16 2006-07-26 纯深有限公司 显示控制系统
CN101609387A (zh) * 2008-06-20 2009-12-23 宏碁股份有限公司 在屏幕上显示多个窗口的方法及计算机可读取媒体
WO2013067073A1 (en) * 2011-11-01 2013-05-10 Microsoft Corporation Adjusting content to avoid occlusion by a virtual input panel
CN103336650A (zh) * 2013-06-05 2013-10-02 百度在线网络技术(北京)有限公司 一种用于移动终端的调整输入法面板的方法与装置
CN103399711A (zh) * 2013-08-21 2013-11-20 珠海市魅族科技有限公司 一种弹出式窗口的显示控制方法及终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3086223A4 *

Also Published As

Publication number Publication date
EP3086223A4 (en) 2016-12-21
CN104793923A (zh) 2015-07-22
US20160335240A1 (en) 2016-11-17
EP3086223A1 (en) 2016-10-26

Similar Documents

Publication Publication Date Title
WO2015106516A1 (zh) 一种实现悬浮输入的方法、装置和计算机存储介质
WO2017097097A1 (zh) 触摸控制方法、用户设备、输入处理方法、移动终端及智能终端
US9436379B2 (en) Control method and electronic device
CN108476301B (zh) 显示装置及其控制方法
US20130135228A1 (en) Device and method for displaying object in terminal
EP2816545A2 (en) Method and apparatus for protecting eyesight
CN104461301B (zh) 基于世界坐标实现屏幕窗口自动对齐的方法
JP2013092942A (ja) スクロール制御装置、端末装置およびスクロール制御方法
CN104915173A (zh) 双屏互动控制方法
WO2015154338A1 (zh) 一种基于手势操作调整终端窗口显示的方法及装置
TW201443764A (zh) 裝置中控制螢幕的設備及其方法
KR101932718B1 (ko) 화면 상의 디스플레이창의 크기를 변경하는 디바이스 및 방법
TW201137722A (en) Electronic apparatus and screen unlocking method thereof
EP3021572A1 (en) Display apparatus and control method thereof
CN104035664A (zh) 一种应用程序用户界面的显示方法及装置
WO2022007934A1 (zh) 应用图标控制方法、装置及电子设备
WO2015165013A1 (zh) 一种在屏幕上显示数据的方法及显示控制装置
TWI547853B (zh) 使用者介面顯示系統及方法
CN103793137A (zh) 一种显示方法及电子设备
CN107148776B (zh) 获取视频数据的方法、装置、系统及计算机可读存储介质
CN111026297A (zh) 屏幕画面旋转方法、控制装置、存储介质和计算机设备
AU2014201249A1 (en) Method for controlling display function and an electronic device thereof
CN105630329A (zh) 在照相机的取景界面中生成下拉悬停工具栏的方法及系统
US10705698B2 (en) Executing functions associated with icons having overlapping areas
WO2014026623A1 (zh) 一种调整小部件的方法、装置及终端

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: 14878746

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014878746

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014878746

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15112554

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE