WO2013182149A1 - 一种悬浮窗位置控制的方法及终端 - Google Patents

一种悬浮窗位置控制的方法及终端 Download PDF

Info

Publication number
WO2013182149A1
WO2013182149A1 PCT/CN2013/079710 CN2013079710W WO2013182149A1 WO 2013182149 A1 WO2013182149 A1 WO 2013182149A1 CN 2013079710 W CN2013079710 W CN 2013079710W WO 2013182149 A1 WO2013182149 A1 WO 2013182149A1
Authority
WO
WIPO (PCT)
Prior art keywords
floating window
coordinates
event
display screen
operation event
Prior art date
Application number
PCT/CN2013/079710
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 EP13801237.2A priority Critical patent/EP2835729A4/en
Priority to US14/398,992 priority patent/US20150143285A1/en
Publication of WO2013182149A1 publication Critical patent/WO2013182149A1/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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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

Definitions

  • the present invention relates to the field of processing technology for a terminal having a touch screen, and more particularly to a method and terminal for controlling a floating window position.
  • the embodiment of the invention provides a method and a terminal for controlling the position of the floating window, which solves the problem that the operation of the floating window is difficult due to the inconvenience of the user to change the position of the floating window.
  • An embodiment of the present invention provides a terminal, including: a display screen, a user operation receiving module, an event distribution module, a floating window control module, and a display control module;
  • the user operation receiving module is configured to: receive an operation event of the user and send the event to the event distribution module;
  • the event distribution module is configured to: send the received operation event to the floating window control module;
  • the floating window control module is configured to: determine that the received operation event is a preset floating window operation control event, use coordinates of the operation event as coordinates of a floating window, and use the floating window Coordinates are notified to the display control module;
  • the display control module is configured to: receive a coordinate of the floating window from the floating window control module and display the floating window on a display screen position corresponding to coordinates of the floating window.
  • the floating window control module is further configured to: before receiving the operation event, use coordinates of the floating window on the display screen as source coordinates, and use coordinates of the operation event as target coordinates to determine from the source coordinates N coordinates to the trajectory of the target coordinates, where N is an integer greater than zero; the N coordinates are sequentially used as coordinates of the floating window and notified to the display control module, and the operation is performed The coordinates of the event are used as coordinates of the floating window and notified to the display control module.
  • the trajectory of the source coordinate to the target coordinate is a line segment trajectory.
  • the floating window control module is further configured to: after receiving the operation event, when determining that a coordinate distance of a coordinate of the operation event from a boundary of the display screen is less than a half of a length of the floating window, correcting the The coordinates of the operational event on the display screen cause the coordinate of the operational event to be at a horizontal distance from the boundary of the display screen equal to or greater than half the length of the floating window; and when determining the coordinates of the operational event from the When the vertical distance of the boundary of the display screen is less than half of the width of the floating window, correcting the coordinates of the operation event on the display screen such that the vertical distance of the coordinate of the operation event from the boundary of the display screen is equal to or greater than Half of the width of the floating window.
  • the floating window operation control event refers to a long press operation event, a double click operation event, or a swipe operation event.
  • the embodiment of the invention further provides a method for controlling the position of the floating window, comprising:
  • the above method can also have the following characteristics:
  • the method further includes:
  • the coordinates of the floating window on the display screen are used as source coordinates, and the coordinates of the operation event on the display screen are used as target coordinates, and the source is determined from the source.
  • Coordinates to N coordinates on the trajectory of the target coordinates where N is an integer greater than zero; the N coordinates are sequentially used as the coordinates of the floating window and the display screen position corresponding to the coordinates of the floating window.
  • the floating window is displayed, and coordinates of the operation event on the display screen are used as coordinates of the floating window and the floating window is displayed on a display screen position corresponding to coordinates of the floating window.
  • the trajectory of the source coordinate to the target coordinate is a line segment trajectory.
  • the method further includes:
  • the terminal After the terminal receives the operation event, when it is determined that the horizontal distance of the coordinate of the operation event from the boundary of the display screen is less than half of the length of the floating window, correcting the operation event on the display screen Coordinates such that the horizontal distance of the coordinate of the operational event from the boundary of the display screen is equal to or greater than half the length of the floating window; and when determining the vertical distance of the coordinate of the operational event from the boundary of the display screen When less than half of the width of the floating window, correcting the coordinates of the operation event on the display screen such that the vertical distance of the coordinate of the operation event from the boundary of the display screen is equal to or greater than the width of the floating window half.
  • the floating window operation control event refers to a long press operation event, a double click operation event, or a swipe operation event.
  • the solution for moving the floating window and moving to the position required by the user can conveniently control the position of the floating window by using a button for the non-touch screen; for the touch screen, the user does not need to hold the floating window for dragging and dropping.
  • the floating frame is moved, the user directly touches any position of the touch screen, and the floating window can finally locate the specified position, so that the floating window can be placed according to the user's needs, thereby effectively realizing the ease of use of the terminal and improving the user experience.
  • FIG. 1 is a structural diagram of a terminal in an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a method for controlling a position of a floating window in the first embodiment of the present invention.
  • Embodiment 3 is a schematic diagram of a method for controlling a position of a floating window in Embodiment 2 of the present invention.
  • the terminal including the display screen 14 includes a user operation receiving module 10, an event distribution module 11, a floating window control module 12, and a display control module 13;
  • the user operation receiving module 10 is configured to: receive an operation event on the display screen and send it to the event distribution module 11;
  • the event distribution module 11 is configured to: send the received operation event to the floating window control module 12;
  • the floating window control module 12 is configured to: determine that the received operation event is a preset floating window operation control event, and take the coordinates of the operation event as Suspending the coordinates of the window, and notifying the coordinates of the floating window to the display control module 13;
  • the display control module 13 is configured to: receive the coordinates of the floating window from the floating window control module 12 and display the floating window at the display position corresponding to the coordinates of the floating window.
  • the terminal After receiving the operation event, the terminal can directly display the floating window from the original coordinate to the coordinate of the operation event, and can also display the process of the floating window movement along the trajectory of the original coordinate to the coordinate of the operation event.
  • the floating window control module 12 is further configured to: before receiving the operation event, use the coordinates of the floating window on the display screen as the source coordinates, the coordinates of the operation event as the target coordinates, and determine the N tracks on the trajectory from the source coordinates to the target coordinates. Coordinates, where N is an integer greater than zero; N coordinates are sequentially used as the coordinates of the floating window and notified to the display control module 13, and the coordinates of the operation event are taken as the coordinates of the floating window and notified to the display control module 13.
  • the track of the source coordinate to the target coordinate may be a line segment track or a preset type curve track.
  • the floating window control module 12 is further configured to: after receiving the operation event, when determining the operation event When the horizontal distance of the coordinate from the boundary of the display screen is less than half of the length of the floating window, the coordinate of the correction operation event on the display screen makes the horizontal distance of the coordinate of the operation event from the boundary of the display screen equal to or greater than half of the length of the floating window.
  • the floating window operation control event refers to the event that the user determines the target point by pressing the key.
  • the coordinate of the operation event is the coordinate of the target point on the display screen.
  • the floating window operation control event refers to a long press operation event, a double-click operation event, or a swipe operation event; The coordinates of the action event on the touch screen.
  • the terminal can conveniently position the floating window to the position desired by the user on the display screen, and then perform a shortcut operation, especially for the touch screen terminal, so that the user can conveniently obtain the floating window at any position on the display screen.
  • the method for controlling the floating window position of the terminal includes: receiving, by the terminal, an operation event of the user, determining that the received operation event is a preset floating window operation control event, and using the coordinate of the operation event on the display screen as the coordinate of the floating window, And displaying a floating window on the display screen position corresponding to the coordinates of the floating window.
  • the terminal can directly display the floating window from the original coordinate to the coordinate of the operation event, and can also display the process of moving the floating window along the trajectory of the original coordinate to the coordinate of the operation event.
  • the method further includes: before receiving the operation event, the terminal uses the coordinates of the floating window on the display screen as the source coordinates, and uses the coordinates of the operation event on the display screen as the target coordinates to determine the trajectory from the source coordinate to the target coordinate.
  • N coordinates where N is an integer greater than zero; N coordinates are used as the coordinates of the floating window and the floating window is displayed on the display position corresponding to the coordinates of the floating window, and the operation event is displayed on the display screen.
  • the coordinates are used as the coordinates of the floating window and the floating window is displayed on the display position corresponding to the coordinates of the floating window.
  • the floating window may not be completely displayed.
  • the method further includes: after the terminal receives the operation event, when determining the coordinate of the operation event When the horizontal distance of the boundary of the display screen is less than half of the length of the floating window, the coordinates of the correction operation event on the display screen are such that the horizontal distance of the coordinate of the operation event from the boundary of the display screen is equal to or greater than half the length of the floating window; When it is judged that the vertical distance of the coordinate of the operation event from the boundary of the display screen is less than half of the width of the floating window, the coordinate of the correction operation event on the display screen makes the vertical distance of the coordinate of the operation event from the boundary of the display screen equal to or greater than the suspension. Half the width of the window.
  • the floating window operation control event refers to the event that the user determines the target point by pressing the key.
  • the coordinate of the operation event is the coordinate of the target point on the display screen.
  • the floating window operation control event refers to a long press operation event, a double-click operation event, or a swipe operation event; The coordinates of the action event on the touch screen.
  • the long press operation is the set floating window operation
  • the long press operation may also be referred to as a summoning operation
  • the user right hand is holding the mobile phone, and the user wishes to use the shortcut module on the floating window.
  • the floating window is on the lower left side of the screen, such as S1 in Figure 2, which cannot be clicked.
  • the user performs a long press operation at the position on the upper right side of the screen, that is, S2 in FIG. 2, after the terminal acquires the long press event and the touched position coordinate, the floating window is directly displayed to the user touch.
  • the position of the point for example, S3 in Fig. 2. In this way, the floating window finally reaches the position where the user can operate the right hand, and the user can operate freely.
  • the long press operation is the set floating window operation
  • the long press operation may also be referred to as a summoning operation
  • the user right hand is holding the mobile phone, and the user wishes to use the shortcut module on the floating window.
  • the floating window is on the lower left side of the screen, for example, S1 in Figure 3, which cannot be clicked.
  • the user performs a long press operation at the position on the upper right side of the screen, that is, S2 in FIG. 3, after the terminal acquires the long press event and the position coordinate of the touch, the floating window is followed by a shortest straight line.
  • the trajectory is automatically moved to the position touched by the user, for example, S3 in Fig. 3.
  • the floating window finally reaches the position where the user can operate the right hand, and the user can operate freely.
  • the user does not need to hold the floating window to drag and drop to move the floating frame, and the user directly touches the arbitrary position of the touch screen, and the suspension is suspended.
  • the window can be finally positioned to the specified position, and the floating window can be placed according to the user's needs, so as to effectively realize the ease of use of the terminal and enhance the user experience.
  • the solution for moving the floating window and moving to the position required by the user can conveniently control the position of the floating window by using a button for the non-touch screen; for the touch screen, the user does not need to hold the floating window for dragging and dropping.
  • the floating frame is moved, the user directly touches any position of the touch screen, and the floating window can finally locate the specified position, so that the floating window can be placed according to the user's needs, thereby effectively realizing the ease of use of the terminal and improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种悬浮窗位置控制的方法及终端。所述终端包括:显示屏、用户操作接收模块、事件分发模块、悬浮窗控制模块、显示控制模块;其中,用户操作接收模块设置成:接收用户的操作事件并发送至事件分发模块;事件分发模块设置成:将接收的操作事件发送至悬浮窗控制模块;悬浮窗控制模块设置成:判断收到的操作事件是预设悬浮窗操作控制事件后,将操作事件的坐标作为悬浮窗的坐标,并将悬浮窗的坐标通知至所述显示控制模块;以及显示控制模块设置成:从悬浮窗控制模块接收悬浮窗的坐标并在所述悬浮窗的坐标对应的显示屏位置上显示所述悬浮窗。通过本发明实施例的方法及终端,可以使悬浮窗根据用户需求到位,有效实现终端的易用性,提升用户体验。

Description

一种悬浮窗位置控制的方法及终端
技术领域
本发明涉及具有触摸屏的终端的处理技术领域, 尤其涉及一种悬浮窗位 置控制的方法及终端。
背景技术
随着移动终端等进入智能时代, 大屏幕(尤其是触摸屏) 的终端越来越 普及, 此类终端上的悬浮式的设计也越来越多, 特别的一些悬浮窗能快速为 用户进行功能操作和应用导航, 且其形态多样, 操作灵活, 为用户带来全新 的使用体验。 由于一般的悬浮窗是在其他界面上的一个小窗口, 在保证显示 和可操作的情况下, 并不影响底部应用界面的显示和操作, 这样很多悬浮窗 都实现了可移动的功能。 而现阶段悬浮窗的移动方式大多都是通过用户按住 悬浮窗进行拖动。 如果悬浮窗较小或颜色与底部应用较相近, 会由于不太突 出导致用户在需要使用悬浮窗的时候较难发现, 另外对于大屏手机单手操作 的用户, 如果悬浮窗离操作的手指较远, 悬浮窗也较难操作。
发明内容
本发明实施例提供一种悬浮窗位置控制的方法及终端, 解决用户不方便 改变悬浮窗位置而导致的对悬浮窗操作困难的问题。
本发明实施例提供了一种终端, 包括: 显示屏、 用户操作接收模块、 事 件分发模块、 悬浮窗控制模块和显示控制模块; 其中,
所述用户操作接收模块设置成: 接收用户的操作事件并发送至所述事件 分发模块;
所述事件分发模块设置成: 将接收的所述操作事件发送至所述悬浮窗控 制模块;
所述悬浮窗控制模块设置成: 判断收到的所述操作事件是预设悬浮窗操 作控制事件后, 将所述操作事件的坐标作为悬浮窗的坐标, 并将所述悬浮窗 的坐标通知至所述显示控制模块; 以及
所述显示控制模块设置成: 从所述悬浮窗控制模块接收所述悬浮窗的坐 标并在所述悬浮窗的坐标对应的显示屏位置上显示所述悬浮窗。
上述终端还可以具有以下特点:
所述悬浮窗控制模块还设置成: 收到所述操作事件之前, 将所述悬浮窗 在显示屏上的坐标作为源坐标, 将所述操作事件的坐标作为目标坐标, 确定 从所述源坐标到所述目标坐标的轨迹上的 N个坐标, 其中, N为大于零的整 数;依次将所述 N个坐标作为所述悬浮窗的坐标并通知至所述显示控制模块, 以及将所述操作事件的坐标作为所述悬浮窗的坐标并通知至所述显示控制模 块。
上述终端还可以具有以下特点:
所述源坐标到所述目标坐标的轨迹为线段轨迹。
上述终端还可以具有以下特点:
所述悬浮窗控制模块还设置成: 收到所述操作事件后, 当判断所述操作 事件的坐标离所述显示屏的边界的水平距离小于所述悬浮窗的长度的一半 时, 修正所述操作事件在所述显示屏的坐标使所述操作事件的坐标离所述显 示屏的边界的水平距离等于或大于所述悬浮窗的长度的一半; 以及当判断所 述操作事件的坐标离所述显示屏的边界的垂直距离小于所述悬浮窗的宽度的 一半时, 修正所述操作事件在所述显示屏的坐标使所述操作事件的坐标离所 述显示屏的边界的垂直距离等于或大于所述悬浮窗的宽度的一半。
上述终端还可以具有以下特点:
当所述显示屏为触摸屏时,所述悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事件。 本发明实施例还提供了一种悬浮窗位置控制的方法, 包括:
终端接收用户的操作事件, 判断收到的所述操作事件是预设悬浮窗操作 控制事件后, 将所述操作事件在显示屏上的坐标作为悬浮窗的坐标, 并在所 述悬浮窗的坐标对应的显示屏位置上显示所述悬浮窗。
上述方法还可以具有以下特点: 所述方法还包括:
所述终端收到所述操作事件之前, 将所述悬浮窗在所述显示屏上的坐标 作为源坐标, 将所述操作事件在所述显示屏上的坐标作为目标坐标, 确定从 所述源坐标到所述目标坐标的轨迹上的 N个坐标,其中, N为大于零的整数; 依次将所述 N个坐标作为所述悬浮窗的坐标并在所述悬浮窗的坐标对应的显 示屏位置上显示所述悬浮窗, 以及将所述操作事件在所述显示屏上的坐标作 为所述悬浮窗的坐标并在所述悬浮窗的坐标对应的显示屏位置上显示所述悬 浮窗。
上述方法还可以具有以下特点:
所述源坐标到所述目标坐标的轨迹为线段轨迹。
上述方法还可以具有以下特点:
所述方法还包括:
所述终端收到所述操作事件后, 当判断所述操作事件的坐标离所述显示 屏的边界的水平距离小于所述悬浮窗的长度的一半时, 修正所述操作事件在 所述显示屏的坐标使所述操作事件的坐标离所述显示屏的边界的水平距离等 于或大于所述悬浮窗的长度的一半; 以及当判断所述操作事件的坐标离所述 显示屏的边界的垂直距离小于所述悬浮窗的宽度的一半时, 修正所述操作事 件在所述显示屏的坐标使所述操作事件的坐标离所述显示屏的边界的垂直距 离等于或大于所述悬浮窗的宽度的一半。
上述方法还可以具有以下特点:
当所述显示屏为触摸屏时,所述悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事件。
通过本发明实施例提供的使悬浮窗移动并且移动到用户需要的位置的方 案, 对于非触摸屏, 可以方便地通过按键控制悬浮窗的位置; 对于触摸屏, 不需要用户按住悬浮窗进行拖拽以进行悬浮框的移动, 用户直接碰触触摸屏 的任意位置, 悬浮窗就可以最终定位到指定的位置, 可以使悬浮窗根据用户 需求到位, 以有效实现终端的易用性, 提升用户体验。 附图概述
图 1是本发明实施例中终端的结构图。
图 2是本发明实施例一中悬浮窗位置的控制方法的示意图。
图 3是本发明实施例二中悬浮窗位置的控制方法的示意图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。
如图 1所示, 包括显示屏 14的终端中包括用户操作接收模块 10、 事件 分发模块 11、 悬浮窗控制模块 12、 以及显示控制模块 13; 其中,
用户操作接收模块 10设置成:接收对显示屏的操作事件并发送至事件分 发模块 11 ;
事件分发模块 11设置成: 将接收的操作事件发送至悬浮窗控制模块 12; 悬浮窗控制模块 12设置成:判断收到的操作事件是预设悬浮窗操作控制 事件后, 将操作事件的坐标作为悬浮窗的坐标, 并将悬浮窗的坐标通知至显 示控制模块 13; 以及
显示控制模块 13设置成: 从悬浮窗控制模块 12接收悬浮窗的坐标并在 悬浮窗的坐标对应的显示屏位置上显示悬浮窗。
本终端收到操作事件后, 可以直接将悬浮窗从原坐标处显示到操作事件 的坐标处, 还可以沿着原坐标到操作事件的坐标的轨迹显示悬浮窗移动的过 程。 悬浮窗控制模块 12还设置成: 收到操作事件之前, 将悬浮窗在显示屏上 的坐标作为源坐标, 将操作事件的坐标作为目标坐标, 确定从源坐标到目标 坐标的轨迹上的 N个坐标, 其中, N为大于零的整数; 依次将 N个坐标作为 悬浮窗的坐标并通知至显示控制模块 13 , 以及将操作事件的坐标作为悬浮窗 的坐标并通知至显示控制模块 13。 其中, 源坐标到目标坐标的轨迹可以是线 段轨迹, 也可以是预设类型的曲线轨迹。
考虑到用户操作事件的位置较靠近显示屏边界时可能导致悬浮窗无法完 整显示, 悬浮窗控制模块 12还设置成: 收到操作事件后, 当判断操作事件的 坐标离显示屏的边界的水平距离小于悬浮窗的长度的一半时, 修正操作事件 在显示屏的坐标使所述操作事件的坐标离显示屏的边界的水平距离等于或大 于悬浮窗的长度的一半; 以及当判断操作事件的坐标离显示屏的边界的垂直 距离小于悬浮窗的宽度的一半时, 修正操作事件在显示屏的坐标使所述操作 事件的坐标离显示屏的边界的垂直距离等于或大于悬浮窗的宽度的一半。
用户通过按键对终端进行操作时 , 悬浮窗操作控制事件是指用户通过按 键确定出目标点的事件, 操作事件的坐标即是目标点在显示屏上的坐标。
用户通过触摸屏对终端进行操作时, 即, 本实施例的所述显示屏为触摸 屏时, 悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事 件; 操作事件的坐标即是操作事件在触摸屏上的坐标。
本终端可以方便地将悬浮窗定位到显示屏上用户需要的位置, 然后进行 快捷操作, 尤其对于触摸屏终端可以使用户在显示屏的任何位置都方便的获 取到悬浮窗。
应用上述终端的悬浮窗位置控制的方法包括:终端接收用户的操作事件, 判断收到的操作事件是预设悬浮窗操作控制事件后, 将操作事件在显示屏上 的坐标作为悬浮窗的坐标, 并在所述悬浮窗的坐标对应的显示屏位置上显示 悬浮窗。
终端收到操作事件后, 可以直接将悬浮窗从原坐标处显示到操作事件的 坐标处,还可以沿着原坐标到操作事件的坐标的轨迹显示悬浮窗移动的过程。 所述方法还包括: 所述终端收到操作事件之前, 将悬浮窗在显示屏上的坐标 作为源坐标, 将操作事件在显示屏上的坐标作为目标坐标, 确定从源坐标到 目标坐标的轨迹上的 N个坐标, 其中, N为大于零的整数; 依次将 N个坐标 作为悬浮窗的坐标并在悬浮窗的坐标对应的显示屏位置上显示悬浮窗, 以及 将操作事件在显示屏上的坐标作为悬浮窗的坐标并在悬浮窗的坐标对应的显 示屏位置上显示悬浮窗。
考虑到用户触摸的位置较靠近显示屏边界时可能导致悬浮窗无法完整显 示, 所述方法还包括: 所述终端收到操作事件后, 当判断操作事件的坐标离 显示屏的边界的水平距离小于悬浮窗的长度的一半时, 修正操作事件在显示 屏的坐标使所述操作事件的坐标离显示屏的边界的水平距离等于或大于悬浮 窗的长度的一半; 以及当判断操作事件的坐标离显示屏的边界的垂直距离小 于悬浮窗的宽度的一半时, 修正操作事件在显示屏的坐标使所述操作事件的 坐标离显示屏的边界的垂直距离等于或大于悬浮窗的宽度的一半。
用户通过按键对终端进行操作时 , 悬浮窗操作控制事件是指用户通过按 键确定出目标点的事件, 操作事件的坐标即是目标点在显示屏上的坐标。
用户通过触摸屏对终端进行操作时, 即, 本实施例的所述显示屏为触摸 屏时, 悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事 件; 操作事件的坐标即是操作事件在触摸屏上的坐标。
下面通过具体实施例进行说明。
实施例一
如图 2所示, 假设长按操作是设定的悬浮窗操作, 则长按操作也可称为 召唤操作, 用户右手持手机使用中, 此时用户希望用到悬浮窗上的快捷模块, 而悬浮窗在在屏幕的左下侧, 如, 图 2中的 S1 , 无法点击到。 根据本发明实 施例的方案, 用户在屏幕右上侧的位置进行长按操作, 即, 图 2中的 S2 , 终 端获取到该长按事件和触摸的位置坐标后, 直接将悬浮窗显示到用户触摸点 的位置, 如, 图 2中的 S3。 这样悬浮窗最终到达用户右手可操作的位置, 用 户可进行自由操作。
实施例二
如图 3所示, 假设长按操作是设定的悬浮窗操作, 则长按操作也可称为 召唤操作, 用户右手持手机使用中, 此时用户希望用到悬浮窗上的快捷模块, 而悬浮窗在屏幕的左下侧, 如, 图 3中的 S1 , 无法点击到。 根据本发明实施 例的方案, 用户在屏幕右上侧的位置进行长按操作, 即, 图 3中的 S2 , 终端 获取到该长按事件和触摸的位置坐标后, 将悬浮窗按照一个最短的直线轨迹 自动移到到用户触摸点的位置, 如, 图 3中的 S3。 这样悬浮窗最终到达用户 右手可操作的位置, 用户可进行自由操作。 本发明实施例提供的使悬浮窗移动并且移动到用户方便触及到的位置的 方案中, 不需要用户按住悬浮窗进行拖拽以进行悬浮框的移动, 用户直接碰 触触摸屏的任意位置, 悬浮窗就可以最终定位到指定的位置, 可以使悬浮窗 根据用户需求到位, 以有效实现终端的易用性, 提升用户体验。
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明实施例不限 制于任何特定形式的硬件和软件的结合。
工业实用性
通过本发明实施例提供的使悬浮窗移动并且移动到用户需要的位置的方 案, 对于非触摸屏, 可以方便地通过按键控制悬浮窗的位置; 对于触摸屏, 不需要用户按住悬浮窗进行拖拽以进行悬浮框的移动, 用户直接碰触触摸屏 的任意位置, 悬浮窗就可以最终定位到指定的位置, 可以使悬浮窗根据用户 需求到位, 以有效实现终端的易用性, 提升用户体验。

Claims

权 利 要 求 书
1、 一种终端, 包括显示屏、 用户操作接收模块、 事件分发模块、 悬浮窗 控制模块和显示控制模块; 其中,
所述用户操作接收模块设置成: 接收用户的操作事件并发送至所述事件 分发模块;
所述事件分发模块设置成: 将接收的所述操作事件发送至所述悬浮窗控 制模块;
所述悬浮窗控制模块设置成: 判断收到的所述操作事件是预设悬浮窗操 作控制事件后, 将所述操作事件的坐标作为悬浮窗的坐标, 并将所述悬浮窗 的坐标通知至所述显示控制模块; 以及
所述显示控制模块设置成: 从所述悬浮窗控制模块接收所述悬浮窗的坐 标并在所述悬浮窗的坐标对应的显示屏位置上显示所述悬浮窗。
2、 如权利要求 1所述的终端, 其中,
所述悬浮窗控制模块还设置成: 收到所述操作事件之前, 将所述悬浮窗 在显示屏上的坐标作为源坐标, 将所述操作事件的坐标作为目标坐标, 确定 从所述源坐标到所述目标坐标的轨迹上的 N个坐标, 其中, N为大于零的整 数;依次将所述 N个坐标作为所述悬浮窗的坐标并通知至所述显示控制模块, 以及将所述操作事件的坐标作为所述悬浮窗的坐标并通知至所述显示控制模 块。
3、 如权利要求 2所述的终端, 其中,
所述源坐标到所述目标坐标的轨迹为线段轨迹。
4、 如权利要求 1、 2或 3所述的终端, 其中,
所述悬浮窗控制模块还设置成: 收到所述操作事件后, 当判断所述操作 事件的坐标离所述显示屏的边界的水平距离小于所述悬浮窗的长度的一半 时, 修正所述操作事件在所述显示屏的坐标使所述操作事件的坐标离所述显 示屏的边界的水平距离等于或大于所述悬浮窗的长度的一半; 以及当判断所 述操作事件的坐标离所述显示屏的边界的垂直距离小于所述悬浮窗的宽度的 一半时, 修正所述操作事件在所述显示屏的坐标使所述操作事件的坐标离所 述显示屏的边界的垂直距离等于或大于所述悬浮窗的宽度的一半。
5、 如权利要求 1、 2或 3所述的终端, 其中,
当所述显示屏为触摸屏时,所述悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事件。
6、 一种悬浮窗位置控制的方法, 包括:
终端接收用户的操作事件, 判断收到的所述操作事件是预设悬浮窗操作 控制事件后, 将所述操作事件在显示屏上的坐标作为悬浮窗的坐标, 并在所 述悬浮窗的坐标对应的显示屏位置上显示所述悬浮窗。
7、 如权利要求 6所述的方法, 还包括:
所述终端收到所述操作事件之前, 将所述悬浮窗在所述显示屏上的坐标 作为源坐标, 将所述操作事件在所述显示屏上的坐标作为目标坐标, 确定从 所述源坐标到所述目标坐标的轨迹上的 N个坐标,其中, N为大于零的整数; 依次将所述 N个坐标作为所述悬浮窗的坐标并在所述悬浮窗的坐标对应的显 示屏位置上显示所述悬浮窗, 以及将所述操作事件在所述显示屏上的坐标作 为所述悬浮窗的坐标并在所述悬浮窗的坐标对应的显示屏位置上显示所述悬 浮窗。
8、 如权利要求 7所述的方法, 其中,
所述源坐标到所述目标坐标的轨迹为线段轨迹。
9、 如权利要求 6、 7或 8所述的方法, 还包括:
所述终端收到所述操作事件后, 当判断所述操作事件的坐标离所述显示 屏的边界的水平距离小于所述悬浮窗的长度的一半时, 修正所述操作事件在 所述显示屏的坐标使所述操作事件的坐标离所述显示屏的边界的水平距离等 于或大于所述悬浮窗的长度的一半; 以及当判断所述操作事件的坐标离所述 显示屏的边界的垂直距离小于所述悬浮窗的宽度的一半时, 修正所述操作事 件在所述显示屏的坐标使所述操作事件的坐标离所述显示屏的边界的垂直距 离等于或大于所述悬浮窗的宽度的一半。
10、 如权利要求 6、 7或 8所述的方法, 其中,
当所述显示屏为触摸屏时,所述悬浮窗操作控制事件是指长按操作事件、 双击操作事件或划动操作事件。
PCT/CN2013/079710 2012-10-09 2013-07-19 一种悬浮窗位置控制的方法及终端 WO2013182149A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13801237.2A EP2835729A4 (en) 2012-10-09 2013-07-19 METHOD FOR CONTROLLING THE POSITION OF A FLOATING WINDOW AND TERMINAL
US14/398,992 US20150143285A1 (en) 2012-10-09 2013-07-19 Method for Controlling Position of Floating Window and Terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210379758.1A CN102929535B (zh) 2012-10-09 2012-10-09 一种悬浮窗位置控制的方法及终端
CN201210379758.1 2012-10-09

Publications (1)

Publication Number Publication Date
WO2013182149A1 true WO2013182149A1 (zh) 2013-12-12

Family

ID=47644350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079710 WO2013182149A1 (zh) 2012-10-09 2013-07-19 一种悬浮窗位置控制的方法及终端

Country Status (4)

Country Link
US (1) US20150143285A1 (zh)
EP (1) EP2835729A4 (zh)
CN (1) CN102929535B (zh)
WO (1) WO2013182149A1 (zh)

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929535B (zh) * 2012-10-09 2018-05-01 中兴通讯股份有限公司 一种悬浮窗位置控制的方法及终端
CN103150087B (zh) * 2013-03-26 2016-09-07 锤子科技(北京)股份有限公司 一种实现音频窗口定位的方法和装置
CN104102372A (zh) * 2013-04-10 2014-10-15 中兴通讯股份有限公司 一种触摸屏悬浮对象在触摸屏边缘的排布方法和系统
CN104346059A (zh) * 2013-08-05 2015-02-11 中兴通讯股份有限公司 屏幕区域缩放处理方法、装置及终端
CN103455590B (zh) * 2013-08-29 2017-05-31 百度在线网络技术(北京)有限公司 在触屏设备中进行检索的方法和装置
CN104618560B (zh) * 2013-11-05 2020-02-14 中兴通讯股份有限公司 一种移动终端来电提示处理方法及装置
CN104777988B (zh) * 2014-01-13 2018-12-14 联想(北京)有限公司 一种数据处理方法及电子设备
CN105373324A (zh) * 2014-08-29 2016-03-02 宇龙计算机通信科技(深圳)有限公司 图形界面显示方法、图形界面显示装置及终端
CN104281385B (zh) * 2014-09-17 2017-03-15 北京搜狗科技发展有限公司 输入法虚拟键盘的调整方法和输入法装置
US11567626B2 (en) * 2014-12-17 2023-01-31 Datalogic Usa, Inc. Gesture configurable floating soft trigger for touch displays on data-capture electronic devices
US10671277B2 (en) 2014-12-17 2020-06-02 Datalogic Usa, Inc. Floating soft trigger for touch displays on an electronic device with a scanning module
CN105808230B (zh) * 2014-12-31 2019-09-06 深圳Tcl新技术有限公司 移动悬浮图标的方法和装置
CN104571872A (zh) * 2015-01-27 2015-04-29 深圳市中兴移动通信有限公司 一种移动终端的分屏管理方法及装置
CN104765565A (zh) * 2015-04-21 2015-07-08 天脉聚源(北京)传媒科技有限公司 一种浮游控件的放置方法及装置
CN105138217A (zh) * 2015-07-08 2015-12-09 广州优蜜移动科技股份有限公司 一种用于智能终端的悬浮窗运行方法及系统
CN106547417B (zh) * 2015-09-21 2021-03-26 腾讯科技(深圳)有限公司 显示后台任务消息的方法和装置
CN105630279A (zh) * 2015-09-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 一种快捷操作程序处理方法及系统
CN105630294A (zh) * 2015-12-28 2016-06-01 广东欧珀移动通信有限公司 移动终端虚拟按键的调整方法、装置及移动终端
CN105786347A (zh) * 2016-02-25 2016-07-20 珠海格力电器股份有限公司 移动终端控制方法、装置和移动终端
CN106126075A (zh) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 控制浮标显示的方法及装置
CN106126071A (zh) * 2016-08-31 2016-11-16 维沃移动通信有限公司 一种应用悬浮窗位置的控制方法及移动终端
CN107193542B (zh) * 2017-03-30 2022-06-14 腾讯科技(深圳)有限公司 信息显示方法和装置
CN107124508B (zh) * 2017-04-18 2020-02-07 北京小米移动软件有限公司 悬浮控件的位置调整方法、装置及终端、可读存储介质
CN107362533A (zh) * 2017-07-12 2017-11-21 深圳市山弯科技有限公司 利用悬浮窗实现移动光标功能的游戏手柄系统
CN107562336A (zh) * 2017-08-01 2018-01-09 努比亚技术有限公司 一种控制悬浮球的方法、设备及计算机可读存储介质
CN108563374A (zh) * 2018-03-05 2018-09-21 维沃移动通信有限公司 一种界面显示方法及终端设备
JP6981326B2 (ja) * 2018-03-22 2021-12-15 富士通株式会社 情報処理装置、表示システム及びウィンドウ配置プログラム
CN108595085A (zh) * 2018-04-03 2018-09-28 Oppo广东移动通信有限公司 一种信息处理方法、电子设备及存储介质
CN110955379B (zh) * 2019-12-11 2022-03-25 上海传英信息技术有限公司 移动终端的控制方法、移动终端及存储介质
CN111552425A (zh) * 2020-04-24 2020-08-18 北京小米移动软件有限公司 一种控制小窗显示的方法、装置及存储介质
CN111913622B (zh) * 2020-07-29 2022-04-19 海信视像科技股份有限公司 屏幕界面交互显示方法及显示设备
CN111913621B (zh) * 2020-07-29 2022-04-19 海信视像科技股份有限公司 屏幕界面交互显示方法及显示设备
CN111949195B (zh) * 2020-09-02 2021-08-17 深圳市康冠智能科技有限公司 液晶电视的触控方法、装置、智能设备及存储介质
CN116974446B (zh) * 2023-09-18 2024-06-14 荣耀终端有限公司 一种动画效果的显示方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060022955A1 (en) * 2004-07-30 2006-02-02 Apple Computer, Inc. Visual expander
CN102314297A (zh) * 2010-07-07 2012-01-11 腾讯科技(深圳)有限公司 一种窗口对象惯性移动方法及实现装置
CN102662586A (zh) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 一种基于用户界面的操作触发方法、装置及终端设备
CN102929535A (zh) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 一种悬浮窗位置控制的方法及终端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8947460B2 (en) * 2008-04-22 2015-02-03 Htc Corporation Method and apparatus for operating graphic menu bar and recording medium using the same
JP2009284468A (ja) * 2008-04-23 2009-12-03 Sharp Corp 携帯情報端末、コンピュータ読取可能なプログラムおよび記録媒体
US7870496B1 (en) * 2009-01-29 2011-01-11 Jahanzeb Ahmed Sherwani System using touchscreen user interface of a mobile device to remotely control a host computer
KR101055924B1 (ko) * 2009-05-26 2011-08-09 주식회사 팬택 터치 기기에서의 유저 인터페이스 장치 및 방법
JP5218353B2 (ja) * 2009-09-14 2013-06-26 ソニー株式会社 情報処理装置、表示方法及びプログラム
US9542097B2 (en) * 2010-01-13 2017-01-10 Lenovo (Singapore) Pte. Ltd. Virtual touchpad for a touch device
US20130227476A1 (en) * 2012-02-24 2013-08-29 Nokia Corporation Method, apparatus and computer program product for management of information on a graphic user interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060022955A1 (en) * 2004-07-30 2006-02-02 Apple Computer, Inc. Visual expander
CN102314297A (zh) * 2010-07-07 2012-01-11 腾讯科技(深圳)有限公司 一种窗口对象惯性移动方法及实现装置
CN102662586A (zh) * 2012-03-31 2012-09-12 奇智软件(北京)有限公司 一种基于用户界面的操作触发方法、装置及终端设备
CN102929535A (zh) * 2012-10-09 2013-02-13 中兴通讯股份有限公司 一种悬浮窗位置控制的方法及终端

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN102929535A (zh) 2013-02-13
EP2835729A4 (en) 2015-07-01
US20150143285A1 (en) 2015-05-21
CN102929535B (zh) 2018-05-01
EP2835729A1 (en) 2015-02-11

Similar Documents

Publication Publication Date Title
WO2013182149A1 (zh) 一种悬浮窗位置控制的方法及终端
KR102255143B1 (ko) 벤디드 디스플레이를 구비한 휴대 단말기의 제어 방법 및 장치
CN103339593B (zh) 用以在触摸屏上呈现多个框的系统和方法
US9880697B2 (en) Remote multi-touch control
US9696849B1 (en) Method and system for trackpad input error mitigation
WO2016011568A1 (zh) 一种用于多点触摸终端的触摸控制方法与设备
JP6157885B2 (ja) 携帯端末装置の表示制御方法
US20150185953A1 (en) Optimization operation method and apparatus for terminal interface
KR20170076357A (ko) 사용자 단말 장치, 이의 스피커 장치의 음량을 조절하기 위한 모드 전환 방법 및 음향 시스템
KR20070113025A (ko) 터치스크린 장치 및 이의 작동방법
WO2015154338A1 (zh) 一种基于手势操作调整终端窗口显示的方法及装置
WO2013181881A1 (zh) 触摸屏幕的控制方法及装置
US20160202869A1 (en) User terminal device and method for controlling the same
WO2013182090A1 (zh) 一种桌面图标显示位置的控制方法及系统
WO2017185459A1 (zh) 一种图标移动方法以及装置
WO2017084470A1 (zh) 移动终端、输入处理方法及用户设备、计算机存储介质
WO2015192763A1 (zh) 一种触摸屏控制方法及装置
WO2015070590A1 (zh) 一种触摸系统及显示装置
US20130322709A1 (en) User identity detection on interactive surfaces
WO2019033655A1 (zh) 一种防误触的方法、装置、设备及存储介质
CN104035716A (zh) 触摸屏操作方法和装置以及终端
KR20160043393A (ko) 전자 펜 운용 방법 및 이를 지원하는 전자 장치
KR20120079285A (ko) 사용자 터치와 입김을 활용한 멀티 모달 인터페이스 지원 사용자 단말과 그 제어 방법
CN104317485B (zh) 电子黑板显示控制方法和装置
WO2015039434A1 (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: 13801237

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14398992

Country of ref document: US

Ref document number: 2013801237

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE