WO2017185264A1 - Interface element selection method and apparatus, and terminal - Google Patents

Interface element selection method and apparatus, and terminal Download PDF

Info

Publication number
WO2017185264A1
WO2017185264A1 PCT/CN2016/080375 CN2016080375W WO2017185264A1 WO 2017185264 A1 WO2017185264 A1 WO 2017185264A1 CN 2016080375 W CN2016080375 W CN 2016080375W WO 2017185264 A1 WO2017185264 A1 WO 2017185264A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface element
interface
pressing
staying
range
Prior art date
Application number
PCT/CN2016/080375
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2016/080375 priority Critical patent/WO2017185264A1/en
Priority to CN201680059609.3A priority patent/CN108351717B/en
Publication of WO2017185264A1 publication Critical patent/WO2017185264A1/en

Links

Images

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Abstract

An interface element selection method and apparatus, and a terminal. The method comprises: obtaining a pressing operation inputted by a user on a terminal display interface; obtaining, according to the pressing operation, the location of a pressing point of the pressing operation and a vertical vector that is formed at the pressing point by the pressing operation and that is perpendicular to the terminal display interface; determining an action range of the pressing operation on the terminal display interface according to the location of the pressing point and the magnitude of the vertical vector; determining a stay location of the interface element according to the location of the pressing point; controlling an interface element in the action range to move toward the stay location of the interface element, and controlling that at most one interface element stays in the stay location at the same time point; and receiving an off-screen operation triggered by the user in the stay location in which a to-be-selected target interface element stays, and operating the target interface element, so that the user can select the interface element when not able to touch the display location of the interface element.

Description

一种选取界面元素的方法、装置及终端Method, device and terminal for selecting interface elements 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种选取界面元素的方法、装置及终端。The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal for selecting an interface element.
背景技术Background technique
随着通信技术的发展,用户对终端能够实现的功能要求越来越高。With the development of communication technology, the functional requirements that users can achieve on the terminal are getting higher and higher.
用户在使用终端时,经常需要先选取终端界面上显示的界面元素,然后才可进行相应功能的操作。界面元素泛指终端显示界面上任何会响应用户操作并以用户可识别的外观形式标识出来的元素,所述元素包括但不限于应用图标和运行控件等,比如桌面图标按钮、列表的列表项、相册预览的缩略图(因为点击缩略图会打开原图)等等。目前,用户若要选取终端显示界面上显示的界面元素,通常是通过用户在界面元素显示位置处进行诸如点击等操作,才可实现界面元素的选取,若用户不能触碰到界面元素的显示位置,则就无法选取待选取的界面元素。When a user uses a terminal, it is often necessary to select an interface element displayed on the terminal interface before the corresponding function can be performed. An interface element generally refers to any element on the terminal display interface that responds to a user operation and is identified by a user-recognizable appearance, including but not limited to an application icon and a running control, such as a desktop icon button, a list item of a list, The thumbnail of the album preview (because clicking on the thumbnail will open the original image) and so on. At present, if the user wants to select the interface element displayed on the terminal display interface, the user usually selects the interface element by performing operations such as clicking on the interface element display position, and if the user cannot touch the display position of the interface element. , you can not select the interface elements to be selected.
发明内容Summary of the invention
本发明实施例提供一种选取界面元素的方法、装置及终端,以在用户不能触碰到界面元素显示位置的情况下,实现界面元素的选取。Embodiments of the present invention provide a method, device, and terminal for selecting an interface element, so as to implement selection of an interface element when the user cannot touch the display position of the interface element.
第一方面,提供一种选取界面元素的方法,用户在终端显示界面上输入按压操作,终端获取用户在终端显示界面上输入的按压操作,依据所述按压操作控制终端显示界面上在所述垂直向量作用范围内的界面元素朝向所述按压点运动,在待选取的目标界面元素运动到用户能够触碰到的位置时,用户触发离屏操作实现目标界面元素的选取,并由终端执行界面元素被选定的相应功能,实现在用户不能触碰到界面元素显示位置的情况下,选取界面元素。In a first aspect, a method for selecting an interface element is provided. a user inputs a pressing operation on a terminal display interface, and the terminal acquires a pressing operation input by the user on the terminal display interface, and controls the terminal to display the vertical position according to the pressing operation. The interface element in the range of the vector action moves toward the pressing point. When the target interface element to be selected moves to a position that the user can touch, the user triggers the off-screen operation to realize the selection of the target interface element, and the interface element is executed by the terminal. The corresponding function is selected to select the interface element if the user cannot touch the display position of the interface element.
一种可能的设计中,终端依据所述按压操作获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面 的垂直向量,依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围,其中,所述作用范围用于确定向所述按压点所在方向运动的界面元素。终端依据所述按压点所处位置,确定所述界面元素的停留位置,控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素。终端接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作,并运行所述目标界面元素。In a possible design, the terminal acquires a position of the pressing point of the pressing operation according to the pressing operation, and is formed by the pressing operation at the pressing point and perpendicular to the terminal display interface. a vertical vector, determining a range of action of the pressing operation on the display interface of the terminal according to a position of the pressing point and a size of the vertical vector, wherein the working range is used to determine the pressing point Interface elements that move in the direction. Determining, by the terminal, the staying position of the interface element according to the location of the pressing point, controlling the interface element located in the working range to move to the staying position of the interface element, and controlling the staying position to stay at the same time at the same time An interface element. The terminal receives an off-screen operation triggered by the user at a stay position where the target interface element to be selected stays, and runs the target interface element.
其中,依据所述按压点所处位置,确定所述界面元素的停留位置,包括:将所述按压点所处位置,确定为所述界面元素的停留位置。或者将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。所述作用范围内的界面元素的数量为至少两个,所述停留区域的数量为至少两个。The determining the position of the interface element according to the location of the pressing point includes: determining a location of the pressing point as a stopping position of the interface element. Or determining a staying area at a distance from the position where the pressing point is located is less than or equal to a set threshold position as a staying position of the interface element. The number of interface elements in the range of action is at least two, and the number of the staying areas is at least two.
其中,依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围,包括:The action range of the pressing operation on the display interface of the terminal is determined according to the location of the pressing point and the size of the vertical vector, including:
依据所述垂直向量的大小,确定半径;以所述按压点所处位置为圆心,依据所述半径确定圆形范围;将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。Determining a radius according to the size of the vertical vector; determining a circular range according to the radius at a position where the pressing point is located; determining the determined circular range as the pressing operation at the terminal Display the scope of the interface.
其中,所述控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The controlling the movement of the interface element located in the active range to the staying position of the interface element includes:
控制所述界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置:获取所述界面元素前一时刻的位置坐标以及当前时刻的位置坐标;在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图。Controlling, during the movement of the interface element to the staying position of the interface element, performing the following steps until the interface element moves to the staying position: acquiring a position coordinate of a moment before the interface element and a position coordinate of a current moment; Drawing the interface element at the position coordinates of the current time, and canceling the drawing of the interface element at the position coordinate of the previous time.
其中,位于所述作用范围内的界面元素的数量为至少两个;所述控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The number of the interface elements in the range of the action is at least two; the controlling the movement of the interface element in the range of the action to the stop position of the interface element includes:
确定所述至少两个界面元素中每一界面元素的初始运动速度;确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离; 依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的时间;调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同;将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度;控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。Determining an initial motion speed of each of the at least two interface elements; determining a distance between each of the at least two interface elements and a staying position of the interface element; Determining, according to the distance between each interface element and the staying position of the interface element, and the initial moving speed of each interface element, the time at which each interface element reaches the staying position of the interface element; adjusting the interface with the same arrival time The moving speed of the element is such that the time at which each interface element reaches the resting position of the interface element is different; the adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the unadjusted moving speed. a speed of movement of the interface element; controlling each of the at least two interface elements to move to a stop position of the interface element at a speed of motion corresponding to the interface element.
本发明实施例中,获取所述作用范围内的运动界面元素运动后的位置;在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素;若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素;若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处,实现控制所述停留位置处同一时刻停留最多一个界面元素,以避免用户选择界面元素时出现多义性。In the embodiment of the present invention, the position of the motion interface element in the range of motion is obtained; if the position of the motion interface element coincides with the stop position, it is determined whether the stop position has been stopped. Having an interface element; if the interface element has been left at the stop position, replacing the already-used interface element with the motion interface element; if there is no existing interface element at the stop position, the The moving interface element stays at the staying position, and controls at least one interface element at the same time at the stop position to avoid ambiguity when the user selects the interface element.
另一种可能的设计中,利用所述运动界面元素替换所述已经停留的界面元素后,在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素,以避免该界面元素再次朝向按压点运动。In another possible design, after the interface element has been replaced by the motion interface element, the interface element that has been replaced and has stayed at the stop position is no longer placed within the scope of the action, Avoid moving the interface element towards the pressing point again.
再一种可能的设计中,可设置退出区域,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域,在界面元素运动到所述停留位置处,且获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素,以避免用户在触发离屏操作时,选取了不需要选取的界面元素。In another possible design, an exit area may be set, where the exit area is an area that triggers an off-screen operation when the user does not need to select an interface element, and the interface element moves to the stop position, and the user is acquired. In the case of the off-screen operation triggered by the exit area, the interface element at the stop position is not operated, so as to avoid the user selecting an interface element that does not need to be selected when the off-screen operation is triggered.
第二方面,提供一种选取界面元素的方法,该方法中终端检测用户在终端显示界面输入的按压操作,控制界面元素朝向所述按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置,在待选取目标界面元素运动到预设停留位置处,且检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素,以实现在 按压点附近选取界面元素,方便用户操作。In a second aspect, a method for selecting an interface element is provided, in which a terminal detects a pressing operation input by a user on a terminal display interface, and controls a position of the interface element toward a pressing point of the pressing operation, wherein the interface element The position on the terminal display interface is different from the position where the pressing point is located, and when the target interface element to be selected is moved to the preset stay position, and the user is detected to trigger the off-screen operation at the stop position, the operation is performed. The target interface element to achieve The interface element is selected near the pressing point to facilitate user operation.
其中,所述预设停留位置包括所述按压点所处位置;或者所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。所述界面元素的数量为至少两个情况下,所述停留区域的数量为至少两个。The preset stay position includes a position where the pressing point is located; or the preset stay position includes a stay area at a distance from a position where the pressing point is located less than or equal to a set threshold position. In the case where the number of the interface elements is at least two, the number of the staying areas is at least two.
一种可能的设计中,确定所述界面元素的运动速度和运动方向,所述运动方向为所述界面元素所处位置到所述预设停留位置的射线方向。控制所述界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。In a possible design, the moving speed and the moving direction of the interface element are determined, and the moving direction is a ray direction in which the interface element is located to the preset staying position. The interface element is controlled to move at a position corresponding to the pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position of the interface element to the preset stopping position.
另一种可能的设计中,所述界面元素包括第一界面元素和第二界面元素。其中,所述第一界面元素到达所述预设停留位置的时间为第一时间;所述第二界面元素到达所述预设停留位置的时间为第二时间;所述第一时间与所述第二时间不同。In another possible design, the interface element includes a first interface element and a second interface element. The time when the first interface element reaches the preset stay position is a first time; the time when the second interface element reaches the preset stay position is a second time; the first time and the first time The second time is different.
又一种可能的设计中,其中,所述预设停留位置处同一时刻停留最多一个界面元素。In yet another possible design, wherein the preset stop position stays at most one interface element at the same time.
所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。The position of the interface element on the display interface of the terminal is located in a circular range of the terminal display interface with the position where the pressing point is located as a center.
又一种可能的设计中,在界面元素运动到预设停留位置处,且检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素;其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域,进而可实现触发了离屏操作,但没有选取界面元素,以避免用户在触发离屏操作时,选取了不需要选取的界面元素。In another possible design, when the interface element moves to the preset stay position, and detects that the user triggers the off-screen operation in the exit area, the interface element at the preset stop position is not operated; The exit area is an area where the user triggers the off-screen operation without selecting the interface element, thereby triggering the off-screen operation, but the interface element is not selected, so as to avoid the user not selecting the off-screen operation. Selected interface elements.
第三方面,提供一种选取界面元素的装置,该选取界面元素的装置具有实现上述第一方面涉及的选取界面元素的方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。例如,所述选取界面元素的装置包括获取单元和处理单元,所述获取单元,用于获取用户在终端显示界面输入的按压操 作,以及接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作。所述处理单元,用于依据所述获取单元获取的所述按压操作,获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量;依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围;依据所述按压点所处位置,确定所述界面元素的停留位置;控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素;在所述获取单元接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素。In a third aspect, there is provided an apparatus for selecting an interface element, the apparatus for selecting an interface element having a function of implementing the method of selecting an interface element related to the first aspect. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above. For example, the device for selecting an interface element includes an obtaining unit and a processing unit, and the obtaining unit is configured to acquire a pressing operation input by the user on the terminal display interface. And receiving an off-screen operation triggered by the user at a stay position where the target interface element to be selected stays. The processing unit is configured to acquire, according to the pressing operation acquired by the acquiring unit, a location of a pressing point of the pressing operation, and a pressing operation formed at the pressing point and perpendicular to the terminal display interface a vertical vector; determining a range of action of the pressing operation on the display interface of the terminal according to a location of the pressing point and a size of the vertical vector; determining the interface element according to a location of the pressing point a stop position; controlling an interface element located within the range of action to move to a stop position of the interface element, and controlling at the same time at the stop position to stay at most one interface element; receiving, at the acquisition unit, the user is to be selected The target interface element is run when the off-screen operation triggered at the dwell position where the target interface element stays.
第四方面,提供一种选取界面元素的装置,该选取界面元素的装置具有实现上述第二方面涉及的选取界面元素的方法中的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。例如,所述选取界面元素的装置包括检测单元和控制单元,所述检测单元,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作。所述控制单元,用于控制界面元素朝向所述输入单元检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置;在待选取目标界面元素运动到预设停留位置处,且所述输入单元检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。In a fourth aspect, an apparatus for selecting an interface element is provided, the apparatus for selecting an interface element having a function in a method for implementing the selected interface element related to the second aspect. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above. For example, the device for selecting an interface element includes a detecting unit and a control unit, and the detecting unit is configured to detect a pressing operation input by the user on the terminal display interface, and detect that the user triggers at a parking position where the target interface element to be selected moves to Off-screen operation. The control unit is configured to control a position motion of the pressing point of the pressing operation of the interface element detected by the input unit, wherein a position of the interface element on the terminal display interface is different from a position of the pressing point The target interface element is run when the target interface element to be selected is moved to a preset stay position, and the input unit detects that the user triggers an off-screen operation at the stop position.
第五方面,提供一种终端,该终端具有实现上述第一方面涉及的选取界面元素的方法中的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。例如,所述终端包括输入设备、输出设备、处理器、存储器和总线,其中,所述输入设备、所述输出设备、所述存储器均通过所述总线与所述处理器连接,其中,所述存储器,用于存储所述处理器执行的程序代码。所述输入设备,用于获取用户在终端显示界面输入的按压操作,以及接收用户在待选取 目标界面元素所停留的停留位置处触发的离屏操作。In a fifth aspect, a terminal is provided, the terminal having a function in a method for implementing the selected interface element related to the first aspect. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above. For example, the terminal includes an input device, an output device, a processor, a memory, and a bus, wherein the input device, the output device, and the memory are all connected to the processor through the bus, wherein a memory for storing program code executed by the processor. The input device is configured to obtain a pressing operation input by the user on the terminal display interface, and the receiving user is to be selected The off-screen operation triggered at the dwell position where the target interface element stays.
所述输出设备,用于输出所述界面元素。所述处理器,用于调用所述存储器存储的程序,依据所述输入设备获取到的所述按压操作;获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量;依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围;依据所述按压点所处位置,确定所述界面元素的停留位置;控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素;在所述输入设备接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素。The output device is configured to output the interface element. The processor, configured to invoke a program stored in the memory, according to the pressing operation acquired by the input device; acquiring a location of a pressing point of the pressing operation, and at the pressing point by the a pressing operation forms a vertical vector perpendicular to the display interface of the terminal; determining, according to the position of the pressing point and the size of the vertical vector, a range of action of the pressing operation on the display interface of the terminal; Positioning, determining a staying position of the interface element; controlling an interface element located within the active range to move to a stop position of the interface element, and controlling at least one interface element at the same time at the stop position; When the input device receives the off-screen operation triggered by the user at the stay position where the target interface element to be selected stays, the target interface element is run.
第六方面,提供一种终端,该终端具有实现上述第二方面涉及的选取界面元素的方法中的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。例如,所述终端包括包括输入设备、输出设备、处理器、存储器和总线,其中,所述输入设备、所述输出设备、所述存储器均通过所述总线与所述处理器连接,其中,所述存储器,用于存储所述处理器执行的程序代码。所述输入设备,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作。所述输出设备,用于输出所述界面元素。所述处理器,用于控制界面元素朝向所述输入设备检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置;在待选取目标界面元素运动到预设停留位置处,且所述输入设备检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。In a sixth aspect, a terminal is provided, the terminal having a function in a method for implementing the selected interface element related to the second aspect. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above. For example, the terminal includes an input device, an output device, a processor, a memory, and a bus, wherein the input device, the output device, and the memory are all connected to the processor through the bus, wherein a memory for storing program code executed by the processor. The input device is configured to detect a pressing operation input by the user on the terminal display interface, and detect an off-screen operation triggered by the user at a parking position to which the target interface element to be selected moves. The output device is configured to output the interface element. The processor is configured to control a position motion of a pressing point of the pressing operation of the interface element detected by the input device, where a position of the interface element on the terminal display interface is different from a position of the pressing point The target interface element is run when the target interface element to be selected is moved to a preset stay position, and the input device detects that the user triggers an off-screen operation at the stop position.
附图说明DRAWINGS
图1为本发明实施例提供的选取界面元素的方法实现流程图;FIG. 1 is a flowchart of a method for selecting an interface element according to an embodiment of the present invention;
图2为本发明实施例提供的垂直向量确定示意图; 2 is a schematic diagram of determining a vertical vector according to an embodiment of the present invention;
图3为本发明实施例提供的作用范围为圆形区域时圆形半径确定示意图;3 is a schematic diagram of determining a circular radius when a range of action is a circular area according to an embodiment of the present invention;
图4为本发明实施例停留位置为按压点时两个界面元素运动过程第一示意图;4 is a first schematic diagram showing a motion process of two interface elements when a stop position is a pressing point according to an embodiment of the present invention;
图5为本发明实施例停留位置为按压点时两个界面元素运动过程第二示意图;FIG. 5 is a second schematic diagram showing the movement process of two interface elements when the stop position is a pressing point according to an embodiment of the present invention; FIG.
图6为本发明实施例停留位置为按压点时两个界面元素运动过程第三示意图;6 is a third schematic diagram showing the motion process of two interface elements when the stop position is a pressing point according to an embodiment of the present invention;
图7为本发明实施例停留位置为按压点时四个界面元素运动过程第一示意图;FIG. 7 is a first schematic diagram showing the movement process of four interface elements when the stop position is a pressing point according to an embodiment of the present invention; FIG.
图8为本发明实施例停留位置为按压点时四个界面元素运动过程第二示意图;FIG. 8 is a second schematic diagram showing the movement process of four interface elements when the stop position is a pressing point according to an embodiment of the present invention; FIG.
图9为本发明实施例停留位置为按压点时四个界面元素运动过程第三示意图;FIG. 9 is a third schematic diagram showing the movement process of four interface elements when the stop position is a pressing point according to an embodiment of the present invention; FIG.
图10为本发明实施例停留位置为预设区域时界面元素运动过程第一示意图;FIG. 10 is a first schematic diagram showing a motion process of an interface element when a stop position is a preset area according to an embodiment of the present invention; FIG.
图11为本发明实施例停留位置为预设区域时界面元素运动过程第二示意图;11 is a second schematic diagram of a motion process of an interface element when a stop position is a preset area according to an embodiment of the present invention;
图12为本发明实施例停留位置为预设区域时界面元素运动过程第三示意图;12 is a third schematic diagram of a motion process of an interface element when a stop position is a preset area according to an embodiment of the present invention;
图13为本发明实施例停留位置为预设区域时界面元素运动过程第四示意图;FIG. 13 is a fourth schematic diagram of a motion process of an interface element when a stop position is a preset area according to an embodiment of the present invention; FIG.
图14为本发明实施例按压操作持续时间内终端实现控制界面元素运动实现时序图;14 is a timing diagram of implementing a control interface element motion by a terminal during a duration of a pressing operation according to an embodiment of the present invention;
图15为本发明实施例终端接收到用户触发离屏操作后的控制时序图;FIG. 15 is a timing diagram of control after a terminal receives an off-screen operation triggered by a user according to an embodiment of the present invention;
图16为本发明实施例提供的一种选取界面元素的装置的结构示意图;FIG. 16 is a schematic structural diagram of an apparatus for selecting an interface element according to an embodiment of the present disclosure;
图17为本发明实施例提供的另一种选取界面元素的装置的结构示意图;FIG. 17 is a schematic structural diagram of another apparatus for selecting an interface element according to an embodiment of the present disclosure;
图18为本发明实施例提供的终端结构示意图。 FIG. 18 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述。The technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention.
本发明实施例提供的选取界面元素的方法、装置及终端,可应用于用户需要选取界面元素但不能触碰到界面元素显示位置的场景,例如用户需要通过手指选取具有触摸屏的终端显示界面上的界面元素,但手中同时持有终端和其他物体(比如一手同时拿钱包和终端,或者拿终端的手同时提着东西),或者屏幕过大难于触碰到需要选取的目标界面元素,再或者终端显示界面上的目标界面元素在手指触碰范围之外的任何其他情形。The method, device, and terminal for selecting an interface element provided by the embodiment of the present invention can be applied to a scenario in which a user needs to select an interface element but cannot touch a display position of the interface element. For example, the user needs to select a terminal display interface with a touch screen through a finger. Interface elements, but the terminal and other objects in the hand (such as holding a wallet and terminal at the same time, or holding the terminal at the same time), or the screen is too large to touch the target interface elements that need to be selected, or the terminal Displays any other situation in which the target interface element on the interface is outside the range of the finger touch.
本发明实施例中,用户在终端显示界面上输入按压操作,在按压点处形成垂直于终端显示界面的垂直向量,终端根据该垂直向量控制终端显示界面上在所述垂直向量作用范围内的界面元素朝向所述按压点运动,在待选取的目标界面元素运动到用户能够触碰到的位置时,用户触发离屏操作,进而实现目标界面元素的选取,并由终端执行界面元素被选定的相应功能。In the embodiment of the present invention, the user inputs a pressing operation on the terminal display interface, and forms a vertical vector perpendicular to the terminal display interface at the pressing point, and the terminal controls the interface in the vertical vector range of the terminal display interface according to the vertical vector. The element moves toward the pressing point, and when the target interface element to be selected moves to a position that the user can touch, the user triggers an off-screen operation, thereby implementing selection of the target interface element, and the interface element is selected by the terminal. The corresponding function.
图1所示为本发明实施例提供的选取界面元素的方法实现流程图,图1所示方法的执行主体为终端(Terminal)。需要理解的是,本发明实施例中涉及的终端,还可称之为移动终端(Mobile Terminal)、移动台(Mobile Station,MS)、用户设备(User Equipment,UE)等,该终端可以经无线接入网(Radio Access Network,RAN)与一个或不止一个核心网进行通信,例如,终端可以是移动电话(或称为蜂窝电话)、具有移动终端的计算机等,例如,终端还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语音和/或数据。FIG. 1 is a flowchart of a method for selecting an interface element according to an embodiment of the present invention. The execution body of the method shown in FIG. 1 is a terminal. It is to be understood that the terminal involved in the embodiment of the present invention may also be referred to as a mobile terminal, a mobile station (MS), a user equipment (UE), etc., and the terminal may be wireless. A Radio Access Network (RAN) communicates with one or more core networks. For example, the terminal may be a mobile phone (or a cellular phone), a computer with a mobile terminal, etc., for example, the terminal may also be portable. Pocket, handheld, computer built-in or in-vehicle mobile devices that exchange voice and/or data with a wireless access network.
如图1所示,本发明实施例提供的选取界面元素的方法,包括:As shown in FIG. 1 , a method for selecting an interface element according to an embodiment of the present invention includes:
S101:检测并获取用户在终端显示界面输入的按压操作。S101: Detect and acquire a pressing operation input by the user on the terminal display interface.
本发明实施例中用户在终端显示界面上输入按压操作的位置不作限定,但为了避免触发终端执行其它不必要的响应程序,通常将该输入按压操作的 位置选取在终端显示界面上无定义响应动作的位置。In the embodiment of the present invention, the location where the user inputs the pressing operation on the terminal display interface is not limited, but in order to avoid triggering the terminal to execute other unnecessary response procedures, the input pressing operation is usually performed. The location is selected in the terminal display interface where there is no defined response action.
S102:依据所述按压操作获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量。S102: Acquire a position where the pressing point of the pressing operation is located according to the pressing operation, and a vertical vector formed by the pressing operation and perpendicular to the terminal display interface at the pressing point.
本发明实施例中用户输入按压操作后,终端的输入设备(例如触摸屏)可以检测并获取到用户输入按压操作的按压点所处位置,得到按压点的坐标(X0,Y0)。In the embodiment of the present invention, after the user inputs the pressing operation, the input device (for example, the touch screen) of the terminal can detect and acquire the position of the pressing point of the user input pressing operation, and obtain the coordinates (X0, Y0) of the pressing point.
同样的,终端的输入设备可以获取到用户输入的按压操作在所述按压点处形成的垂直于终端显示界面的垂直向量。Similarly, the input device of the terminal can acquire a vertical vector formed at the pressing point and pressed perpendicular to the terminal display interface by a pressing operation input by the user.
本发明实施例中,所述向量是指三维空间的向量,用于描述方向垂直于终端屏幕所在平面并具有大小的几何对象,比如具有压感(Force touch)功能的触摸屏可以获取垂直作用于屏幕平面的压力,这个压力就是一个三维向量,垂直于屏幕表面且具有大小程度,例如图2所示中,在Force touch条件下,垂直于屏幕的向量y就是按压操作的压力。In the embodiment of the present invention, the vector refers to a vector of a three-dimensional space, and is used to describe a geometric object whose direction is perpendicular to the plane of the terminal screen and has a size. For example, a touch screen with a pressure touch function can obtain a vertical action on the screen. The pressure of the plane, this pressure is a three-dimensional vector, perpendicular to the surface of the screen and has a size. For example, in the case of Force touch, the vector y perpendicular to the screen is the pressure of the pressing operation.
需要说明的是,本发明实施包括但不限于使用force touch的压力作为按压操作形成的垂直于终端显示界面的向量,任何可以作为或者理解为按压操作垂直于终端显示界面的向量的触屏因素都属于本发明实施例保护的范畴。It should be noted that the implementation of the present invention includes, but is not limited to, using the pressure of the force touch as a vector formed by the pressing operation perpendicular to the terminal display interface, and any touch screen factor that can be used or understood as a vector of the pressing operation perpendicular to the terminal display interface It belongs to the protection scope of the embodiments of the present invention.
S103:依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围。S103: Determine a range of action of the pressing operation on the display interface of the terminal according to a location of the pressing point and a size of the vertical vector.
本发明实施例中,所述作用范围用于确定向所述按压点所在方向运动的界面元素。In an embodiment of the invention, the range of action is used to determine an interface element that moves in the direction in which the pressed point is located.
本发明实施例中依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围,可采用如下方式:In the embodiment of the present invention, according to the location of the pressing point and the size of the vertical vector, determining the range of the pressing operation on the display interface of the terminal, the following manner may be adopted:
依据所述垂直向量的大小,确定半径r,所述r满足r=|y|/tan a,其中,y为所述垂直向量,|y|为所述垂直向量的值,a为预设的角度。例如图3所示,水平线代表屏幕表面,设定按压点的作用范围是以按压点为圆心,并局限于当前界面内的圆形范围。设定预设角度值a,用a和垂直向量y的值|y|来决定作用范围的半径r,则r=|y|/tan a。以所述按压点所处位置为圆心,以半径大 小为r确定圆形范围。将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。Determining a radius r according to the size of the vertical vector, where r satisfies r=|y|/tan a, where y is the vertical vector, |y| is the value of the vertical vector, and a is a preset angle. For example, as shown in FIG. 3, the horizontal line represents the surface of the screen, and the range of the pressing point is set to be centered on the pressing point and limited to the circular range in the current interface. Set the preset angle value a, and use the value of a and the vertical vector y |y| to determine the radius r of the range of action, then r=|y|/tan a. Taking the position of the pressing point as the center of the circle, with a large radius Small is r to determine the circular range. The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
本发明实施例中所述作用范围可具有不同的形状,本发明实施例不作限定,例如可以是上述涉及的圆形,也可以是矩形。比如已知按压点所处位置坐标为(X0,Y0),则可确定在X0+L,X0–L,Y0+M,Y0–M之间的矩形区域为作用范围。The scope of the present invention may have different shapes, which are not limited in the embodiment of the present invention, and may be, for example, a circular shape as described above or a rectangular shape. For example, if the position coordinates of the known pressing point are (X0, Y0), it can be determined that the rectangular area between X0+L, X0-L, Y0+M, Y0-M is the range of action.
S104:依据所述按压点所处位置,确定所述界面元素的停留位置。S104: Determine a staying position of the interface element according to a location where the pressing point is located.
本发明实施例中终端可控制界面元素朝向所述按压操作的按压点所处位置运动,以方便用户能够触碰到界面元素。In the embodiment of the present invention, the terminal can control the position of the interface element toward the pressing point of the pressing operation to facilitate the user to touch the interface element.
本发明实施例中可设置界面元素运动后的停留位置,该停留位置设定的原则是设置在方便用户能够触碰到的位置。本发明实施例中可将所述按压点所处位置,确定为所述界面元素的停留位置。也可将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。其中,所述停留区域的数量可以不止一个,特别是在所述界面元素的数量为多个的情况时,可设置多个停留区域,各个停留区域可相互独立,每个停留区域停留一个界面元素,当然各个停留区域也可连贯成一整片停留区域,以在一个停留区域内停留容纳多个元素。本发明实施例中停留区域在终端显示界面上可以具有设定的形状,该形状不作限定。In the embodiment of the present invention, the stay position after the movement of the interface element can be set, and the principle of the stop position setting is set at a position convenient for the user to touch. In the embodiment of the present invention, the position where the pressing point is located may be determined as the staying position of the interface element. The staying area at a position where the distance between the pressed point and the position of the pressed point is less than or equal to the set threshold position may also be determined as the staying position of the interface element. Wherein, the number of the staying areas may be more than one, especially when the number of the interface elements is multiple, a plurality of staying areas may be set, and each of the staying areas may be independent of each other, and each staying area is occupied by one interface element. Of course, each of the stay areas can also be coherent into a whole area of stay to accommodate multiple elements in one stop area. In the embodiment of the present invention, the stay area may have a set shape on the terminal display interface, and the shape is not limited.
S105:控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素。S105: Control an interface element located in the range of action to move to a stop position of the interface element, and control at least one interface element to stay at the same time at the stop position.
本发明实施例中,终端可以通过遍历当前终端显示界面上所有界面元素的坐标,确定每一个位于按压点作用范围之内的界面元素(Xi,Yi)。In the embodiment of the present invention, the terminal can determine each interface element (Xi, Yi) located within the range of the pressing point by traversing the coordinates of all interface elements on the current terminal display interface.
一般的,位于作用范围内的界面元素可以是一个,也可以是多个(至少两个)。本发明实施例中可确定位于所述作用范围内每一界面元素的运动速度,确定位于所述作用范围内每一界面元素的运动方向,所述运动方向为界面元素所处位置到所述界面元素的停留位置的射线方向,控制所述作用范围内每一界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到 所述界面元素的停留位置的射线方向,向所述界面元素的停留位置运动。Generally, the interface elements located in the range of action may be one or multiple (at least two). In the embodiment of the present invention, a motion speed of each interface element located in the range of the action may be determined, and a motion direction of each interface element located in the range of the action is determined, where the motion direction is a position where the interface element is located to the interface. The ray direction of the dwell position of the element controls each interface element in the range of action, with the corresponding moving speed of the interface element, along the position of the interface element The ray direction of the resting position of the interface element moves toward the resting position of the interface element.
需要说明的是,本发明实施例中终端控制所述界面元素向所述界面元素的停留位置运动,即实现一种界面元素朝向所述按压操作的按压点所处位置运动的效果。It should be noted that, in the embodiment of the present invention, the terminal controls the movement of the interface element to the parking position of the interface element, that is, the effect of moving the interface element toward the position where the pressing point of the pressing operation is located.
本发明实施例中并不限定界面元素向停留位置运动的运动轨迹,本发明实施例中仅以运动轨迹是界面元素所处位置到所述界面元素的停留位置的直线为例进行说明,任何其它运动轨迹均在本发明范畴内。In the embodiment of the present invention, the trajectory of the movement of the interface element to the stop position is not limited. In the embodiment of the present invention, only the line whose motion trajectory is the position where the interface element is located to the stop position of the interface element is taken as an example, and any other The motion trajectory is within the scope of the invention.
本发明实施例中控制所述停留位置处同一时刻停留最多一个界面元素,以避免用户选择界面元素时出现多义性。In the embodiment of the present invention, at least one interface element is stopped at the same time at the stop position to avoid ambiguity when the user selects the interface element.
S106:接收用户在待选取目标界面元素所停留的停留位置处输入的离屏操作,实现目标界面元素的选取。S106: Receive an off-screen operation input by the user at a stay position where the target interface element to be selected stays, and implement selection of the target interface element.
本发明实施例中,当待选取的目标界面元素运动到预设停留位置处,或者与停留位置之间的距离小于等于设定阈值的情况下,用户可在所述目标界面元素所停留的停留位置处触发离屏操作,实现目标界面元素的选取,终端运行所述目标界面元素。例如,若停留位置为按压点所处位置,则可在目标界面元素运动到按压点位置处,用户直接松开按压触摸屏的手指,实现目标界面元素的选取。若停留位置为按压点附近的停留区域,则可在目标界面元素运动到停留区域时,用户按压住终端界面不松手并将手指移动到目标元素停留的停留区域后松开手指,实现目标界面元素的选取。In the embodiment of the present invention, when the target interface element to be selected is moved to the preset stay position, or the distance between the stop position is less than or equal to the set threshold, the user may stay at the target interface element. The off-screen operation is triggered at the location to select the target interface element, and the terminal runs the target interface element. For example, if the stop position is the position where the pressing point is located, the target interface element can be moved to the position of the pressing point, and the user directly releases the finger pressing the touch screen to realize the selection of the target interface element. If the stop position is a stay area near the pressing point, when the target interface element moves to the stay area, the user presses the terminal interface and does not release the finger and moves the finger to the stay area where the target element stays, then releases the finger to realize the target interface. The selection of elements.
本发明实施例中通过控制界面元素朝向用户输入按压操作的按压点位置运动,并在界面元素运动到按压点附近时,触发离屏操作,实现界面元素的选取,实现在按压点附近选取界面元素的方法,方便用户操作。In the embodiment of the present invention, the pressing point position movement of the pressing operation is input to the user by the control interface element, and when the interface element moves to the vicinity of the pressing point, the off-screen operation is triggered to realize the selection of the interface element, and the interface element is selected near the pressing point. The method is convenient for the user to operate.
本发明实施例以下将结合实际应用,着重对上述实施例中S105和S106步骤进行举例说明。Embodiments of the Invention Hereinafter, the steps S105 and S106 in the above embodiment will be exemplified in combination with practical applications.
本发明实施例中可为当前终端显示界面上位于依据垂直向量作用范围内的每一界面元素都赋予一个朝向停留位置的向心运动的运动速度,该运动速度可依据垂直变量的大小来确定,例如可用公式Vi=|y|*Ki来确定界面元素 的运动速度,其中,y为所述垂直向量,|y|为所述垂直向量的值,Ki为正常数,Vi为第i个界面元素的运动速度。In the embodiment of the present invention, each interface element located on the current terminal display interface according to the vertical vector action range is given a motion speed of a centripetal motion toward the stop position, and the motion speed can be determined according to the size of the vertical variable. For example, the formula Vi=|y|*Ki can be used to determine the interface elements. The speed of motion, where y is the vertical vector, |y| is the value of the vertical vector, Ki is a normal number, and Vi is the motion speed of the i-th interface element.
需要说明的是,本发明实施例中是设定界面元素的运动速度为匀速运动且直接与垂直向量成正比,但并不引以为限,例如可以让运动速度成为各种变加速运动,而且可以给界面元素赋给优先级权值,根据不同优先级来设置不同的运动速度。It should be noted that, in the embodiment of the present invention, the motion speed of the interface element is set to be uniform motion and directly proportional to the vertical vector, but is not limited thereto. For example, the motion speed may be changed into various acceleration motions, and Interface elements can be assigned priority weights, and different speeds can be set according to different priorities.
可选的,本发明实施例中为保证在同一时刻至多有一个界面元素运动到停留位置,可将按照上述公式确定的运动速度作为初始运动速度,然后确定所述作用范围内的每一界面元素与所述界面元素的停留位置之间的距离Li,该距离Li可通过终端获取到的停留位置坐标与界面元素的坐标来确定,再依据每一界面元素与所述界面元素的停留位置之间的距离Li、以及每一界面元素的初始运动速度Vi,确定每一界面元素到达所述界面元素的停留位置的时间Ti,其中,Ti=Li/Vi。通过确定出的各个界面元素到达停留位置的时间,可确定是否存在到达停留位置时间相同的界面元素,若存在,本发明实施例中可调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同,即,假设所述界面元素包括第一界面元素和第二界面元素,其中,所述第一界面元素到达所述预设停留位置的时间为第一时间,所述第二界面元素到达所述预设停留位置的时间为第二时间,则所述第一时间与所述第二时间不同。Optionally, in the embodiment of the present invention, to ensure that at most one interface element moves to the stop position at the same time, the motion speed determined according to the above formula may be used as the initial motion speed, and then each interface element in the scope of the action is determined. a distance Li from the dwell position of the interface element, the distance Li being determined by the dwell position coordinates acquired by the terminal and the coordinates of the interface element, and then according to the dwell position of each interface element and the interface element The distance Li, and the initial velocity of motion Vi of each interface element, determines the time Ti at which each interface element reaches the resting position of the interface element, where Ti = Li / Vi. By determining the time when each interface element reaches the stop position, it can be determined whether there is an interface element having the same time to reach the stop position. If present, the motion speed of the interface element with the same arrival time can be adjusted in the embodiment of the present invention, so that each interface The time at which the element reaches the staying position of the interface element is different, that is, the interface element includes a first interface element and a second interface element, wherein the time at which the first interface element reaches the preset stay position is At a time, the time when the second interface element reaches the preset stay position is the second time, and the first time is different from the second time.
本发明实施例中可采用如下方式调整到达时间相同的界面元素的运动速度:In the embodiment of the present invention, the motion speed of the interface element with the same arrival time can be adjusted as follows:
假设确有k个界面元素预期到达停留位置的时间相等,则可为这k个界面元素进行编号,例如设这k个界面元素的编号为1,2,3,…,k,则有T1=T2=T3=…=Tk,为了避免这些界面元素同一时刻到达停留位置,终端可为这k个界面元素随机排序,具体的排序规则本发明实施例不做限定,然后调整这k个界面元素的速度Vi,按照排序后的次序,使它们按此次序先后到达按压点。首先终端确定一个速度减小幅度单位u,例如设u=1/k。然后根据 随机排序结果,把排序后第k个界面元素的运动速度调整为Vi′=Vi*(1–u*k),其中,Vi′为调整后的运动速度,所述Vi为第i个界面元素的初始运动速度,u为预设的运动速度减小幅度量,k为确定出到达时间相同的界面元素的数量。如果发现某界面元素调整速度后,又与其它界面元素再次具有相同的预期到达时间,则把这些界面元素再次按前述方式综合调整速度,直至每个界面元素达到按压点的预期时间都不相同。Assuming that there are indeed k interface elements expected to reach the same position for the same time, the k interface elements can be numbered. For example, if the number of the k interface elements is 1, 2, 3, ..., k, then T1 = T2=T3=...=Tk, in order to prevent the interface elements from reaching the stop position at the same time, the terminal can randomly sort the k interface elements. The specific sorting rule is not limited in the embodiment of the present invention, and then the k interface elements are adjusted. The speed Vi, in order of sorting, causes them to reach the pressing point in this order. First, the terminal determines a speed reduction amplitude unit u, for example, u=1/k. Then according to Randomly sorting results, adjusting the motion speed of the kth interface element after sorting to Vi'=Vi*(1–u*k), where Vi′ is the adjusted motion speed, and Vi is the i-th interface element The initial motion speed, u is the preset motion speed reduction magnitude, and k is the number of interface elements that determine the same arrival time. If an interface element is found to have the same expected arrival time again after adjusting the speed, the interface elements are again adjusted in the same manner as described above until the expected time for each interface element to reach the pressing point is different.
需要说明的是,本发明实施例中并不限定为避免多个界面元素同时到达停留位置的运动速度调整方案,包括但不限于上述描述的方案。It should be noted that, in the embodiment of the present invention, the motion speed adjustment scheme for avoiding multiple interface elements simultaneously reaching the parking position is not limited, including but not limited to the foregoing description.
本发明实施例中将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度。In the embodiment of the present invention, the adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element without adjusting the moving speed.
本发明实施例中确定了作用范围之内每一界面元素的运动速度和方向后,终端可控制作用范围内的每一界面元素按照各界面元素对应的运动速度和运动方向向停留位置运动,并在终端显示界面上显示。本发明实施例中位于所述作用范围内的界面元素向所述界面元素的停留位置运动过程中,每个界面元素在所述终端显示界面上显示的位置坐标满足公式:After determining the motion speed and direction of each interface element within the scope of the action in the embodiment of the present invention, each interface element in the range controllable by the terminal moves to the stop position according to the motion speed and the motion direction corresponding to each interface element, and Displayed on the terminal display interface. In the embodiment of the present invention, the position coordinates of the interface elements displayed on the terminal display interface satisfy the formula during the movement of the interface elements in the range of the action to the stop position of the interface elements:
(Xi,Yi)=(Xit-1,Yit-1)+Tunit*(Vixt-1,Viyt-1);(Xi, Yi) = (Xi t-1 , Yi t-1 ) + Tunit * (Vix t-1 , Viy t-1 );
其中,(Xi,Yi)为第i个界面元素在t时刻在所述终端显示界面上显示的位置坐标,(Xit-1,Yit-1)为第i个界面元素在t-1时刻在所述终端显示界面上显示的位置坐标,Tunit为相邻时刻之间的时间差,Vixt-1为第i个界面元素在x轴方向上的速度分量,Viyt-1为第i个界面元素在y轴方向上的速度分量,所述x轴和y轴是以所述第i个界面元素在所述终端显示界面上原始显示位置坐标为原点,在所述终端显示界面所在平面上建立的水平坐标系的x轴和y轴。Where (Xi, Yi) is the position coordinate of the i-th interface element displayed on the terminal display interface at time t, (Xi t-1 , Yi t-1 ) is the i-th interface element at time t-1 The position coordinate displayed on the terminal display interface, Tunit is the time difference between adjacent moments, Vix t-1 is the velocity component of the i-th interface element in the x-axis direction, and Viy t-1 is the i-th interface a velocity component of the element in the y-axis direction, wherein the x-axis and the y-axis are based on an original display position coordinate of the i-th interface element on the terminal display interface, and are established on a plane where the terminal display interface is located The horizontal coordinate system is the x-axis and the y-axis.
优选的,本发明实施例中在每一新时刻都按照上述方式确定每一界面元素的坐标,并对界面元素的运动速度进行调整,以防在相邻时刻之间各界面元素之间再产生新的冲突(同时到达停留位置),还可以防止按压点变化导致的停留位置的变化。 Preferably, in the embodiment of the present invention, the coordinates of each interface element are determined in the above manner at each new moment, and the motion speed of the interface element is adjusted to prevent re-generation between interface elements between adjacent moments. The new conflict (while reaching the stop position) also prevents changes in the stop position caused by the change in the press point.
特别的,若在某一时刻系统检测到的按压操作形成的垂直变量的大小变小了,导致前一时刻处于按压点作用范围内的界面元素在当前时刻不再处于按压点作用范围内,则本发明实施例中可在按压操作存续期间,让这些前一时刻处于按压点作用范围内单在当前时刻不再处于按压点作用范围内的界面元素,保持在当前到达的位置不动。当然,本发明实施例包含但不限于上述处理方式。In particular, if the size of the vertical variable formed by the pressing operation detected by the system becomes smaller at a certain moment, the interface element in the range of the pressing point at the previous moment is no longer within the range of the pressing point at the current moment, In the embodiment of the present invention, during the pressing operation, the previous moments are within the range of the pressing point, and the interface elements that are no longer within the action range of the pressing point at the current moment remain in the currently arriving position. Of course, the embodiments of the present invention include, but are not limited to, the foregoing processing manners.
本发明实施例中为实现控制所述停留位置处同一时刻停留最多一个界面元素,除按照上述方式调整界面元素的运动速度外,还要对已停留在停留位置处的界面元素进行控制。In the embodiment of the present invention, in order to control at most one interface element at the same time at the stop position, in addition to adjusting the motion speed of the interface element according to the above manner, the interface element that has stayed at the stop position is also controlled.
本发明实施例中各个被赋予上述运动的界面元素由于到停留位置的距离和速度不同,会按照依次先后顺序到达停留位置,使后到者在停留位置处替换先到者,使得停留位置处每一时刻至多只有一个界面元素,具体实现过程如下:获取所述作用范围内的运动界面元素运动后的位置;在运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素;若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素;若所述停留位置处不存在已经停留的界面元素,则将所述界面元素停留在所述停留位置处。In the embodiment of the present invention, each of the interface elements assigned to the motion may arrive at the stop position in sequence according to the distance and speed to the stop position, so that the latter arrives at the stop position at the stop position, so that each stop position is At most, there is only one interface element at a time. The specific implementation process is as follows: obtaining the position of the motion interface element in the range of motion after the motion; and determining the stay after the position of the motion interface element is coincident with the stop position. Whether the interface element has been stayed at the location; if the interface element has been stayed at the location, the interface element has been replaced by the interface element; if there is no interface element that has stayed at the stop location And leaving the interface element at the stop position.
可选的,利用所述运动界面元素替换所述已经停留的界面元素后,可在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素,以防止已经停留过的界面元素再次运动到停留位置。Optionally, after the interface element has been replaced by the motion interface element, the interface element that has been replaced and has stayed at the stop position may not be placed within the scope of the action to prevent the already staying The interface element has moved to the stop position again.
本发明实施例中,当非目标的界面元素到达停留位置时,用户可以按住原位置不放,让它被后来的界面元素替换掉;当目标界面元素到达停留位置时,用户可以在停留位置处放开按压动作(即触发离屏操作),实现目标界面元素的选取,终端接收到该离屏操作时,执行该界面元素被选取的功能的响应效果。In the embodiment of the present invention, when the non-target interface element reaches the staying position, the user can hold the original position and let it be replaced by the subsequent interface element; when the target interface element reaches the staying position, the user can stay at the stop position. The pressing action is released (ie, the off-screen operation is triggered), and the selection of the target interface element is achieved, and when the terminal receives the off-screen operation, the response effect of the selected function of the interface element is performed.
本发明实施例中依据停留位置为按压点所处位置,或是在按压点所处位置设置的多个停留区域可有不同的停留方式。 In the embodiment of the present invention, the stop position is the position where the pressing point is located, or the plurality of staying areas set at the position where the pressing point is located may have different stopping modes.
图4至图6所示为停留位置为按压点,两个界面元素运动过程示意图。FIG. 4 to FIG. 6 are schematic diagrams showing the movement process of two interface elements when the stop position is a pressing point.
图4中,用户手指在终端显示界面上输入按压操作,表现的是以按压点为圆心、按压点的垂直向量决定按压点作用范围的半径,从而形成按压点的作用范围,处于此范围内的界面元素1和界面元素2被赋予朝向按压点、分别以速度V1和V2的匀速直线运动。界面元素3不在按压点作用范围内,所以不做运动。图5中界面元素2先到达按压点并停留在按压点,界面元素1还在向按压点运动。图6中界面元素1到达按压点,则原已在按压点的界面元素2被替换并消失。In FIG. 4, the user's finger inputs a pressing operation on the terminal display interface, and the vertical distance vector of the pressing point is determined by the pressing point as the center of the pressing point, thereby forming a range of the pressing point, and the range of the pressing point is within the range. The interface element 1 and the interface element 2 are linearly moved at a constant speed toward the pressing point at speeds V1 and V2, respectively. The interface element 3 is not within the range of the pressing point, so no motion is performed. In Fig. 5, the interface element 2 first reaches the pressing point and stays at the pressing point, and the interface element 1 is still moving toward the pressing point. When the interface element 1 reaches the pressing point in Fig. 6, the interface element 2 that has been at the pressing point is replaced and disappears.
图7至图9所示为停留位置为按压点,四个界面元素运动过程示意图。FIG. 7 to FIG. 9 are schematic diagrams showing the movement process of four interface elements when the stop position is a pressing point.
图7中,用户手指在终端显示界面上输入按压操作,形成以按压点为中心、设定长度和宽度的矩形作用范围,处于此范围内的界面元素1、界面元素2、界面元素4和界面元素5被赋予朝向按压点、分别以各自对应速度做匀速直线运动的运动。界面元素3不在按压点作用范围内,所以不做运动。图8中界面元素4先到达按压点并停留在按压点,作用范围内的其余界面元素继续向按压点所处位置运动。图9中界面元素5到达按压点,则原已在按压点的界面元素4被替换并消失,界面元素1和界面元素2继续运动。In FIG. 7, the user's finger inputs a pressing operation on the terminal display interface to form a rectangular action range centering on the pressing point, setting the length and the width, and the interface element 1, the interface element 2, the interface element 4, and the interface within the range. The element 5 is given a motion of moving toward a pressing point and performing a uniform linear motion at respective speeds. The interface element 3 is not within the range of the pressing point, so no motion is performed. In Fig. 8, the interface element 4 first reaches the pressing point and stays at the pressing point, and the remaining interface elements in the range of motion continue to move to the position where the pressing point is located. When the interface element 5 reaches the pressing point in FIG. 9, the interface element 4 that has been at the pressing point is replaced and disappears, and the interface element 1 and the interface element 2 continue to move.
本发明实施例中,若目标界面元素运动到按压点所处位置处或距离按压点所处位置小于设定值,则用户可直接松开手指,实现目标界面元素的选取。In the embodiment of the present invention, if the target interface element moves to the position where the pressing point is located or the position where the pressing point is located is less than the set value, the user can directly release the finger to achieve the selection of the target interface element.
本发明实施例中可在按压点所处位置的周围预设有限个互不重叠的停留区域,将这些停留区域作为界面元素的停留位置,并给这些停留区域编号以确定次序,当有界面元素的坐标中心离停留区域的坐标中心小于设定阈值时,即认为界面元素已到达停留区域,将到达的界面元素置入空闲的停留区域中编号最小的那一个;如果没有任何停留区空闲,则新到界面元素替换在编号最小的停留区中停留的界面元素。In the embodiment of the present invention, a limited number of non-overlapping stay areas may be preset around the position where the pressing point is located, and the staying areas are used as the staying positions of the interface elements, and the staying areas are numbered to determine the order, when there are interface elements. If the coordinate center is smaller than the set threshold from the coordinate center of the staying area, the interface element is considered to have reached the staying area, and the arriving interface element is placed in the smallest number of the idle staying area; if no staying area is idle, then The new arrival interface element replaces the interface element that stays in the lowest numbered stay area.
图10至图13所示为停留位置是预设在按压点附近的停留区域,界面元素的运动过程示意图。FIG. 10 to FIG. 13 are schematic diagrams showing the movement process of the interface element by the staying position being preset in the staying area near the pressing point.
图10中,按压点附近设置两个停留区域,分别为停留区域1和停留区域 2,界面元素1向停留区域运动。图11中,界面元素到达停留区域后,停留在编号较小的空闲停留区域,例如图11中的停留区域1。图12中,停留区域中都已停留有界面元素,即停留区域1停留有界面元素1,停留区域2停留有界面元素2,此时还有其它界面元素(界面元素3、界面元素4和界面元素5)向停留区域运动。图13中,界面元素3和界面元素4到达停留区域,界面元素5继续运动,则界面元素3停留在停留区域1并替换界面元素1,界面元素4停留在停留区域2并替换界面元素2。In Fig. 10, two staying areas are set near the pressing point, which are the staying area 1 and the staying area, respectively. 2. The interface element 1 moves toward the staying area. In FIG. 11, after the interface element reaches the stay area, it stays in the idle stay area with a smaller number, such as the stay area 1 in FIG. In Figure 12, there are interface elements in the stay area, that is, the stay area 1 has the interface element 1, and the stay area 2 has the interface element 2, and there are other interface elements (interface element 3, interface element 4, and interface). Element 5) moves towards the dwell area. In FIG. 13, the interface element 3 and the interface element 4 reach the staying area, and the interface element 5 continues to move. Then the interface element 3 stays in the staying area 1 and replaces the interface element 1, and the interface element 4 stays in the staying area 2 and replaces the interface element 2.
本发明实施例中,若目标界面元素运动到停留区域,则用户可按住终端显示界面不放并短距离移动按压点,把按压点移动到目标元素停留的停留区域,然后松开手指,实现目标界面元素的选取。In the embodiment of the present invention, if the target interface element moves to the staying area, the user can press and hold the terminal display interface and move the pressing point in a short distance, move the pressing point to the staying area where the target element stays, and then release the finger to realize The selection of the target interface element.
本发明实施例中采用在按压点所处位置的周围预设有限个互不重叠的停留区域,可以实现有多个界面元素同时停留在按压点附近,还可以使留区域停留的界面元素不被按压点上的手指挡住,使用户可以清晰识别出停留区域停留的界面元素。In the embodiment of the present invention, a limited number of non-overlapping parking areas are preset around the position where the pressing point is located, and multiple interface elements may be stayed at the same time near the pressing point, and the interface elements staying in the remaining area may not be The finger on the pressing point is blocked, so that the user can clearly recognize the interface element where the staying area stays.
需要说明的是,无论采用按压点所处位置作为停留位置,还是采用停留区域作为停留位置,如果按压点不在任何界面元素所在的停留位置上放开(触发离屏操作),则本次按压过程不选定任何界面元素。It should be noted that, regardless of whether the position of the pressing point is used as the stopping position or the staying area is used as the stopping position, if the pressing point is not released at the stopping position where any interface element is located (triggering the off-screen operation), the pressing process is performed. Do not select any interface elements.
可选的,当目标界面元素被选取后,所有向停留位置做向心运动的界面元素可各归原位。若任何界面元素都没有被选取,则所有运动了的界面元素也各归原位。Optionally, when the target interface element is selected, all interface elements that perform centripetal motion to the resting position may be returned to each other. If any of the interface elements are not selected, all of the moved interface elements are also home.
可选的,本发明实施例中可根据实际应用场景,在终端显示界面上设置退出区域,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域,以避免用户在触发离屏操作时,选取了不需要选取的界面元素。Optionally, in the embodiment of the present invention, an exit area may be set on the terminal display interface according to an actual application scenario, where the exit area is an area that triggers an off-screen operation when the user does not need to select an interface element, so as to avoid the user being When the offscreen operation is triggered, the interface elements that do not need to be selected are selected.
例如,在进行列表项选取时,每一个列表项即是一个界面元素,因此按住屏幕最底部或最顶部的列表项,在其上形成按压点,则处于按压点作用范围内的列表项都会向按压点所在方向运动,并依次经过按压点,即在按压点位置上总是有且只有一个列表项出现,为了避免用户在触发离屏操作时,选 取了不需要选取的界面元素,可以在按压点附近设置一个退出区域,按压点挪到退出区域中再触发离屏操作,终端在接收到用户在退出区域触发的离屏操作情况下,执行界面元素未被选取的功能,则可实现触发了离屏操作,但没有选定列表项。For example, when a list item is selected, each list item is an interface element. Therefore, when the list item at the bottom or top of the screen is pressed and a press point is formed thereon, the list items in the range of the press point will be Moving in the direction of the pressing point, and passing through the pressing point in turn, that is, there is always one and only one list item appearing at the pressing point position, in order to prevent the user from selecting the off-screen operation, After taking the interface element that does not need to be selected, an exit area can be set near the pressing point, and the pressing point is moved to the exit area to trigger the off-screen operation. When the terminal receives the off-screen operation triggered by the user in the exit area, the execution interface is executed. The function that the element is not selected can trigger the off-screen operation, but the list item is not selected.
本发明实施例以下将对终端实现上述实施例涉及的选取界面元素的内部实现过程进行说明。The following is a description of the internal implementation process of the selected interface element involved in the foregoing embodiment.
图14所示为本发明实施例中一次按压操作持续时间内终端实现控制界面元素运动实现时序图,本发明实施例中涉及的终端包括有输入设备(例如触摸屏)、处理器和输出设备(例如屏幕),如图4所示包括:FIG. 14 is a timing diagram of implementing a control interface element motion in a terminal during a duration of a pressing operation according to an embodiment of the present invention. The terminal involved in the embodiment of the present invention includes an input device (eg, a touch screen), a processor, and an output device (eg, Screen), as shown in Figure 4, includes:
S201:终端的处理器获取终端显示界面上每一界面元素的坐标。S201: The processor of the terminal acquires coordinates of each interface element on the terminal display interface.
S202:终端的处理器获取当前时刻用户通过输入设备输入按压操作的按压点坐标和垂直于终端显示界面的向量。S202: The processor of the terminal acquires a pressing point coordinate of the pressing operation input by the user through the input device at the current time and a vector perpendicular to the display interface of the terminal.
本发明实施例中允许按压点在一次按压过程中移动,所以允许和上一时刻不同,故本发明实施例中终端的处理器需实时获取按压点坐标和垂直于终端显示界面的向量。In the embodiment of the present invention, the pressing point is allowed to move in a single pressing process, so that the processor of the terminal needs to acquire the pressing point coordinate and the vector perpendicular to the terminal display interface in real time in the embodiment of the present invention.
需要说明的是,本发明实施例中可在终端显示界面上绘制按压点的可见外观当然也可不绘制。It should be noted that, in the embodiment of the present invention, the visible appearance of the pressing point on the terminal display interface may or may not be drawn.
S203:根据按压点当前时刻垂直于终端显示界面的向量计算按压点的作用范围,并控制处于这一作用范围内的界面元素向停留位置运动。S203: Calculate the action range of the pressing point according to the vector of the pressing point current perpendicular to the terminal display interface, and control the interface element in the active range to move to the parking position.
S204:判断界面元素在t时刻的坐标,与t-1时刻的坐标是否相同,若不相同,说明界面元素相对于上一时刻发生了运动,因此为界面元素在t时刻的坐标处重新绘制界面元素并通过终端的输出设备输出,在终端显示界面上显示,所述重新绘制界面元素包括取消上一位置的元素绘图和在当前位置绘制元素绘图,即实现界面元素向停留位置的运动过程。S204: determining whether the coordinates of the interface element at time t are the same as the coordinates at time t-1. If they are different, the interface element moves relative to the previous moment, so the interface element is redrawn at the coordinates of time t. The element is outputted through the output device of the terminal and displayed on the terminal display interface. The redrawing the interface element includes canceling the element drawing of the previous position and drawing the element drawing at the current position, that is, realizing the motion process of the interface element to the staying position.
本发明实施例中并不限定界面元素运动过程中取消界面元素原始位置处元素绘图的实现方式,例如,可以为处在按压点作用范围内的界面元素创建一个代表物(比如界面元素的一个虚影),使得界面元素或者其代表物二者中 只有一个向按压点方向运动,另一个留在原地以提示用户。The embodiment of the present invention does not limit the implementation of the element drawing at the original position of the interface element during the movement of the interface element. For example, a representative object may be created for the interface element within the range of the pressing point (such as a virtual element of the interface element). Shadow), making the interface element or its representative Only one moves in the direction of the pressing point and the other stays in place to prompt the user.
S205:判断界面元素中是否存在t时刻的坐标与停留位置的坐标相同的运动界面元素,若存在运动界面元素且运动界面元素前一时刻坐标不等于停留位置坐标,表示该运动界面元素是当前时刻才运动到停留位置的,则继续判断所述停留位置处是否已经停留有界面元素,如果确定停留位置处已停留有界面元素,则将已停留的界面元素的绘图取消,并在停留位置处绘制运动界面元素的绘图,实现后到停留位置的界面元素替换先到停留位置的界面元素的过程。S205: determining whether there is a motion interface element with the same coordinates of the stop time and the coordinates of the stop position in the interface element. If the motion interface element exists and the coordinate of the previous time of the motion interface element is not equal to the stop position coordinate, indicating that the motion interface element is the current time After moving to the parking position, it is further determined whether the interface element has been stopped at the parking position, and if it is determined that the interface element has been stopped at the parking position, the drawing of the stopped interface element is canceled and drawn at the parking position. The drawing of the motion interface element, the process of replacing the interface element with the stop position to the interface element after the stop position.
本发明实施例中对于每一个到过按压点且被替换的元素,其坐标暂时设为一个空值,表示它在本次按压动作存在期间不再出现在界面上。In the embodiment of the present invention, for each element that has passed the pressed point and is replaced, the coordinate is temporarily set to a null value, indicating that it no longer appears on the interface during the present pressing action.
S206:为作用范围内的每一界面元素计算和设定t+1时刻的坐标,并将t+1时刻各界面元素的坐标作为S201中获取的界面元素的坐标,循环执行上述步骤,直至终端的处理器接收到用户通过输入设备触发的离屏操作。S206: Calculate and set the coordinates of the time t+1 for each interface element in the range, and use the coordinates of the interface elements at the time t+1 as the coordinates of the interface element acquired in S201, and perform the above steps cyclically until the terminal The processor receives an off-screen operation triggered by the user through the input device.
其中,t+1时刻中各界面元素的坐标,是依据t时刻的界面元素的坐标,按照公式(Xi t+1,Yi t+1)=(Xit,Yi t)+Tunit*(Vixt,Viyt)计算出来的。其中,其中,(Xi t+1,Yi t+1)为第i个界面元素在t+1时刻在所述终端显示界面上显示的位置坐标,(Xit,Yi t)为第i个界面元素在t时刻在所述终端显示界面上显示的位置坐标,Tunit为相邻时刻之间的时间差,Vixt为第i个界面元素在t时刻在x轴方向上的速度分量,Viyt为第i个界面元素在t时刻在y轴方向上的速度分量。Wherein, the coordinates of each interface element in time t+1 are the coordinates of the interface element according to time t, according to the formula (Xi t+1, Yi t+1)=(Xit,Yi t)+Tunit*(Vixt, Viyt ) Calculated. Where (Xi t+1, Yi t+1) is the position coordinate displayed by the i-th interface element on the terminal display interface at time t+1, and (Xit, Yi t) is the i-th interface element. The position coordinate displayed on the terminal display interface at time t, Tunit is the time difference between adjacent moments, Vixt is the velocity component of the i-th interface element in the x-axis direction at time t, Viyt is the i-th interface The velocity component of the element in the y-axis direction at time t.
需要说明的是,本发明实施例中对于停留位置处的界面元素的运动速度约定为0,其在t+1时刻坐标保持和t时刻一样。It should be noted that, in the embodiment of the present invention, the motion speed of the interface element at the stop position is 0, and the coordinate hold is the same as the time t at the time t+1.
把前述计算结果设置为元素的下一时刻坐标,供循环回到第一步时使用。Set the aforementioned calculation result as the next time coordinate of the element for use when looping back to the first step.
图15所示为终端接收到用户触发离屏操作后的控制时序图。FIG. 15 is a timing diagram of control after the terminal receives the user's triggered off-screen operation.
S301:用户通过终端的输入设备触发离屏操作,输入设备给处理器发送离屏操作信息。S301: The user triggers an off-screen operation through an input device of the terminal, and the input device sends off-screen operation information to the processor.
S302:终端的处理器获取前一时刻按压点所处位置坐标,也就是按压点 离屏前最后一个坐标。S302: The processor of the terminal acquires the position coordinates of the pressing point at the previous moment, that is, the pressing point The last coordinate before the screen.
S303:将当前时刻所有界面元素的坐标与S102中获取到的按压点所处位置坐标进行比较。S303: Compare the coordinates of all interface elements at the current time with the position coordinates of the pressed points acquired in S102.
S304:如果发现存在界面元素的当前坐标与S102中按压点坐标相等,执行该元素被选定时的预定操作;如果不存在界面元素的当前坐标与第二步中按压点坐标相等的界面元素,则不执行任何界面元素被选定的操作。S304: If it is found that the current coordinate of the interface element is equal to the pressing point coordinate in S102, perform a predetermined operation when the element is selected; if there is no interface element whose current coordinate of the interface element is equal to the pressing point coordinate in the second step, Then no operation is performed for any interface elements being selected.
S305:如果S304中有界面元素被选定,则向输出设备输出该元素被选定的对应动作的显示效果。S305: If an interface element is selected in S304, outputting a display effect of the corresponding action selected by the element to the output device.
S306:若终端显示界面未切换,则控制所有界面元素回归原位。S306: If the terminal display interface is not switched, control all interface elements to return to the original position.
本发明实施例中,终端显示界面未切换有两种可能,一种可能是,S304中有界面元素被选定并执行该界面元素被选定的对应动作效果后界面仍然保持在执行界面元素选取前的终端显示界面。另一种可能是S304中没有界面元素被选定,因此保持在执行界面元素选取前的终端显示界面。In the embodiment of the present invention, there are two possibilities for the terminal display interface not to be switched. One possibility is that after the interface element is selected in S304 and the corresponding action effect of the interface element is selected, the interface remains in the execution interface element selection. The front terminal display interface. Another possibility is that no interface elements are selected in S304, so the terminal display interface before the execution of the interface element selection is maintained.
本发明实施例中通过上述实施方式中涉及的界面元素的选取方法,通过控制界面元素向停留位置运动,实现一种类似模拟引力的效果,其中引力点为停留位置所在位置处,并在界面元素运动到停留位置附近时,触发离屏操作,实现界面元素的选取,实现在按压点附近选取界面元素的方法,方便用户操作。In the embodiment of the present invention, by the method for selecting an interface element involved in the foregoing embodiment, an effect similar to the simulated gravitation is achieved by controlling the interface element to move to the rest position, wherein the gravitation point is the position of the stop position, and the interface element is When moving to the vicinity of the stop position, the off-screen operation is triggered to realize the selection of the interface elements, and the method of selecting the interface elements near the pressing point is realized, which is convenient for the user to operate.
上述方法可应用在用户手指够不到目标界面元素的场景,比如手中提着东西又拿着移动设备或移动设备是大屏幕等等,通过模拟引力效果,让界面元素向用户手指(即形成引力点的位置)移动,避免目标近在咫尺却够不着的尴尬,提升用户体验,并且还可带来一定的操作趣味。The above method can be applied to a scene in which the user's finger cannot reach the target interface element, such as holding something in the hand and holding the mobile device or the mobile device is a large screen, etc., by simulating the gravitational effect, the interface element is directed to the user's finger (ie, forming gravity) The position of the point) moves, avoiding the target that is close at hand but not enough, enhances the user experience, and can also bring certain operational interest.
基于上述实施例提供的选取界面元素的方法,本发明实施例还提供一种选取界面元素的装置100,图16所示为本发明实施例提供的选取界面元素的装置100的结构示意图,如图16所示,选取界面元素的装置100包括获取单元101和处理单元102。Based on the method for selecting an interface element provided by the foregoing embodiment, the embodiment of the present invention further provides an apparatus 100 for selecting an interface element, and FIG. 16 is a schematic structural diagram of an apparatus 100 for selecting an interface element according to an embodiment of the present invention. As shown in FIG. 16, the apparatus 100 for selecting an interface element includes an acquisition unit 101 and a processing unit 102.
获取单元101,用于获取用户在终端显示界面输入的按压操作,以及接收 用户在待选取目标界面元素所停留的停留位置处触发的离屏操作。The obtaining unit 101 is configured to acquire a pressing operation input by the user on the terminal display interface, and receive The off-screen operation triggered by the user at the dwell position where the target interface element is to be selected.
处理单元102,用于依据所述获取单元101获取的所述按压操作,获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量。依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围。依据所述按压点所处位置,确定所述界面元素的停留位置。控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素。在所述获取单元101接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素。The processing unit 102 is configured to acquire, according to the pressing operation acquired by the acquiring unit 101, a location where the pressing point of the pressing operation is located, and a pressing operation formed at the pressing point and perpendicular to the terminal display interface Vertical vector. Determining a range of action of the pressing operation on the display interface of the terminal according to a location of the pressing point and a size of the vertical vector. The staying position of the interface element is determined according to the location of the pressing point. Controlling an interface element located within the range of action to move to a stop position of the interface element, and controlling at most one interface element at the same time at the stop position. The target interface element is executed when the obtaining unit 101 receives an offscreen operation triggered by the user at a stay position where the target interface element to be selected stays.
其中,所述作用范围用于确定向所述按压点所在方向运动的界面元素。Wherein, the range of action is used to determine an interface element that moves in the direction in which the pressing point is located.
可选的,所述处理单元102,具体采用如下方式依据所述按压点所处位置,确定所述界面元素的停留位置:Optionally, the processing unit 102 determines the staying position of the interface element according to the location of the pressing point according to the following manner:
将所述按压点所处位置,确定为所述界面元素的停留位置。或将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。The position at which the pressing point is located is determined as the resting position of the interface element. Or determining a staying position at a distance from the position where the pressing point is located is less than or equal to a set threshold position as a staying position of the interface element.
可选的,所述作用范围内的界面元素的数量为至少两个情况下,所述处理单元102确定的所述停留区域为至少两个。Optionally, in the case where the number of interface elements in the range of action is at least two, the staying area determined by the processing unit 102 is at least two.
可选的,所述处理单元102,具体采用如下方式依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围:Optionally, the processing unit 102 determines, according to the location of the pressing point and the size of the vertical vector, the scope of the pressing operation on the display interface of the terminal according to the following manner:
依据所述垂直向量的大小,确定半径。以所述按压点所处位置为圆心,依据所述半径确定圆形范围。将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。The radius is determined according to the size of the vertical vector. The circular range is determined according to the radius, with the position where the pressing point is located as a center. The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
可选的,所述处理单元102,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动:Optionally, the processing unit 102 specifically controls, by using the following manner, an interface element located in the active range to move to a stop position of the interface element:
控制在所述作用范围内的界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置: Controlling the movement of the interface element within the range of action to the dwell position of the interface element performs the following steps until the interface element moves to the dwell position:
获取所述作用范围内的界面元素前一时刻的位置坐标以及当前时刻的位置坐标。在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图。Obtaining the position coordinates of the previous moment of the interface element in the range of action and the position coordinates of the current time. Drawing the interface element at the position coordinates of the current time, and canceling the drawing of the interface element at the position coordinate of the previous time.
可选的,所述作用范围内的界面元素的数量为至少两个。所述处理单元102,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:Optionally, the number of interface elements in the range of action is at least two. The processing unit 102 specifically controls the movement of the interface element located in the working range to the staying position of the interface element, including:
确定所述至少两个界面元素中每一界面元素的初始运动速度。确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离。依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的时间。调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同。将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度。控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。Determining an initial speed of motion of each of the at least two interface elements. A distance between each of the at least two interface elements and a dwell position of the interface element is determined. The time at which each interface element reaches the stop position of the interface element is determined according to the distance between each interface element and the dwell position of the interface element, and the initial movement speed of each interface element. The speed of movement of the interface elements having the same arrival time is adjusted such that the time at which each interface element reaches the position of the interface element is different. The adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element having no adjusted moving speed. Controlling each of the at least two interface elements to move to a dwell position of the interface element at a speed of motion corresponding to the interface element.
可选的,所述处理单元102,具体采用如下方式控制所述停留位置处同一时刻停留最多一个界面元素,包括:Optionally, the processing unit 102 specifically controls, by using the following manner, a maximum of one interface element at the same time at the stop position, including:
获取所述作用范围内的运动界面元素运动后的位置。在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素。若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素。若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处。Obtaining the position of the motion interface element in the range of motion after the motion. In a case where the position after the motion interface element moves coincides with the stop position, it is determined whether an interface element has been stayed at the stop position. If the interface element has been retained at the stop position, the already-interested interface element is replaced with the motion interface element. If there is no interface element that has stayed at the stop position, the motion interface element stays at the stop position.
可选的,所述处理单元102,还用于:利用所述运动界面元素替换所述已经停留的界面元素后,在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素。Optionally, the processing unit 102 is further configured to: after replacing the already-used interface element by using the motion interface element, no longer be placed in the scope of the replacement and has been stopped at the staying position Interface elements.
可选的,所述获取单元101还用于获取用户在退出区域触发的离屏操作。Optionally, the obtaining unit 101 is further configured to acquire an off-screen operation triggered by the user in the exit area.
所述处理单元102,还用于:在界面元素运动到所述停留位置处,且所述 获取单元101获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素。其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The processing unit 102 is further configured to: move the interface element to the staying position, and the The obtaining unit 101 acquires the interface element at the stop position without acquiring the off-screen operation triggered by the user in the exit area. The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
本发明实施例提供的选取界面元素的装置100具有实现上述方法实施例中涉及的界面元素选取过程中的所有功能,其具体实现过程可参阅上述实施例及附图的相关描述,在此不再赘述。The apparatus 100 for selecting an interface element provided by the embodiment of the present invention has all the functions in the process of selecting the interface element involved in the foregoing method embodiment. For the specific implementation process, refer to the related descriptions of the foregoing embodiment and the drawings, and no longer Narration.
基于上述实施例提供的界面元素的方法,本发明实施例提供一种选取界面元素的装置200,图17所示为本发明实施例提供的选取界面元素的装置200的结构示意图,如图17所示,本发明实施例提供的选取界面元素的装置200包括检测单元201和控制单元202。Based on the method for providing an interface element, the embodiment of the present invention provides an apparatus 200 for selecting an interface element, and FIG. 17 is a schematic structural diagram of an apparatus 200 for selecting an interface element according to an embodiment of the present invention. The apparatus 200 for selecting an interface element provided by the embodiment of the present invention includes a detecting unit 201 and a control unit 202.
检测单元201,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作。The detecting unit 201 is configured to detect a pressing operation input by the user on the terminal display interface, and detect an off-screen operation triggered by the user at the stopping position to which the target interface element to be selected moves.
控制单元202,用于控制界面元素朝向所述检测单元201检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置。在待选取目标界面元素运动到预设停留位置处,且所述检测单元201检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。The control unit 202 is configured to control a position motion of the pressing point of the pressing operation of the interface element detected by the detecting unit 201, wherein a position of the interface element on the terminal display interface is different from a position of the pressing point . The target interface element is operated when the target interface element to be selected is moved to a preset stay position, and the detecting unit 201 detects that the user triggers an off-screen operation at the stay position.
可选的,所述预设停留位置包括所述按压点所处位置。或者所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。Optionally, the preset stay position includes a location where the pressing point is located. Or the preset stay position includes a stay area at a distance from a position where the press point is located less than or equal to a set threshold position.
可选的,所述界面元素的数量为至少两个,所述停留区域的数量为至少两个。Optionally, the number of the interface elements is at least two, and the number of the staying areas is at least two.
可选的,所述控制单元202具体采用如下方式控制界面元素朝向所述按压操作的按压点所处位置运动:Optionally, the control unit 202 specifically controls the position of the interface element toward the pressing point of the pressing operation in the following manner:
确定朝向所述按压操作的按压点所处位置运动的至少一个界面元素。确定所述至少一个界面元素的运动速度。确定所述至少一个界面元素的运动方向,所述运动方向为界面元素所处位置到所述预设停留位置的射线方向。控 制所述每一界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。At least one interface element that moves toward a position at which the pressing point of the pressing operation is located is determined. A speed of movement of the at least one interface element is determined. Determining a direction of motion of the at least one interface element, the direction of motion being a ray direction from where the interface element is located to the predetermined dwell position. Control Each interface element is moved at a position corresponding to a pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position of the interface element to the preset stopping position.
可选的,所述界面元素包括第一界面元素和第二界面元素。其中,所述第一界面元素到达所述预设停留位置的时间为第一时间。所述第二界面元素到达所述预设停留位置的时间为第二时间。所述第一时间与所述第二时间不同。Optionally, the interface element includes a first interface element and a second interface element. The time when the first interface element reaches the preset stay position is the first time. The time when the second interface element reaches the preset stay position is the second time. The first time is different from the second time.
可选的,所述预设停留位置处同一时刻停留最多一个界面元素。Optionally, at the same time, the preset staying position stays at most one interface element.
可选的,所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。Optionally, the position of the interface element on the terminal display interface is located in a circular range of the terminal display interface with the position where the pressing point is located as a center.
可选的,所述检测单元201,还用于获取用户在退出区域触发的离屏操作。Optionally, the detecting unit 201 is further configured to acquire an off-screen operation triggered by the user in the exit area.
所述控制单元202,还用于:在界面元素运动到所述预设停留位置处,且所述检测单元201检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素。其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The control unit 202 is further configured to: when the interface element moves to the preset stay position, and the detecting unit 201 detects that the user triggers the off-screen operation in the exit area, does not run the preset stay Interface element at the location. The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
本发明实施例提供的选取界面元素的装置200具有实现上述方法实施例中涉及的界面元素选取过程中的所有功能,其具体实现过程可参阅上述实施例及附图的相关描述,在此不再赘述。The apparatus 200 for selecting an interface element provided by the embodiment of the present invention has all the functions in the process of selecting the interface element involved in the foregoing method embodiment. For the specific implementation process, reference may be made to the related description of the foregoing embodiment and the drawings, and no longer Narration.
基于上述实施例提供的选取界面元素的方法,本发明实施例还提供一种终端300,图18所示为本发明实施例提供的终端300的结构示意图。如图18所示,本发明实施例提供的终端300包括输入设备301、输出设备302、处理器303、存储器304和总线305,其中,所述输入设备301、所述输出设备302、所述存储器304均通过所述总线305与所述处理器303连接。Based on the method for selecting an interface element provided by the foregoing embodiment, the embodiment of the present invention further provides a terminal 300, and FIG. 18 is a schematic structural diagram of the terminal 300 according to an embodiment of the present invention. As shown in FIG. 18, the terminal 300 provided by the embodiment of the present invention includes an input device 301, an output device 302, a processor 303, a memory 304, and a bus 305, wherein the input device 301, the output device 302, and the memory are 304 is coupled to the processor 303 via the bus 305.
所述输入设备301可以是触摸屏。The input device 301 can be a touch screen.
所述输出设备302可以是终端的屏幕。The output device 302 can be the screen of the terminal.
所述处理器303可以是一个通用中央处理器(CPU),微处理器,特定应用集成电路application-specific integrated circuit(ASIC),或一个或多个用于 控制本发明方案程序执行的集成电路。计算机系统中包括的一个或多个存储器,可以是只读存储器read-only memory(ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器random access memory(RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是磁盘存储器。这些存储器通过总线与处理器相连接。The processor 303 can be a general purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more An integrated circuit that controls the execution of the program of the present invention. One or more memories included in the computer system, which may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM) or Other types of dynamic storage devices that store information and instructions may also be disk storage. These memories are connected to the processor via a bus.
所述存储器304,如RAM,保存有操作系统和执行本发明方案的程序。操作系统是用于控制其他程序运行,管理系统资源的程序。The memory 304, such as a RAM, holds an operating system and a program for executing the inventive arrangements. The operating system is a program that controls the running of other programs and manages system resources.
所述总线305,可包括一通路,在计算机各个部件之间传送信息。The bus 305 can include a path for communicating information between various components of the computer.
一种可能的设计中,所述存储器304,用于存储所述处理器303执行的程序代码。In a possible design, the memory 304 is configured to store program code executed by the processor 303.
所述输入设备301,用于获取用户在终端显示界面输入的按压操作,以及接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作。The input device 301 is configured to acquire a pressing operation input by the user on the terminal display interface, and receive an off-screen operation triggered by the user at a stay position where the target interface element to be selected is located.
所述输出设备302,用于输出所述界面元素。The output device 302 is configured to output the interface element.
所述处理器303,用于调用所述存储器304存储的程序,依据所述输入设备301获取到的所述按压操作。获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量。依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围。依据所述按压点所处位置,确定所述界面元素的停留位置。控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素。在所述输入设备301接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素。The processor 303 is configured to invoke a program stored in the memory 304 according to the pressing operation acquired by the input device 301. Obtaining a position at which the pressing point of the pressing operation is located, and a vertical vector formed by the pressing operation at the pressing point and perpendicular to the terminal display interface. Determining a range of action of the pressing operation on the display interface of the terminal according to a location of the pressing point and a size of the vertical vector. The staying position of the interface element is determined according to the location of the pressing point. Controlling an interface element located within the range of action to move to a stop position of the interface element, and controlling at most one interface element at the same time at the stop position. The target interface element is run when the input device 301 receives an off-screen operation triggered by the user at a stay position where the target interface element to be selected stays.
可选的,所述处理器303,具体采用如下方式依据所述按压点所处位置,确定所述界面元素的停留位置:Optionally, the processor 303 determines the staying position of the interface element according to the location of the pressing point according to the following manner:
将所述按压点所处位置,确定为所述界面元素的停留位置。或将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。 The position at which the pressing point is located is determined as the resting position of the interface element. Or determining a staying position at a distance from the position where the pressing point is located is less than or equal to a set threshold position as a staying position of the interface element.
其中,所述作用范围内的界面元素的数量为至少两个。所述处理器303确定的所述停留区域为至少两个。The number of interface elements in the range of action is at least two. The staying area determined by the processor 303 is at least two.
其中,所述处理器303,具体采用如下方式依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围:The processor 303 is specifically configured to determine, according to the location of the pressing point and the size of the vertical vector, the scope of the pressing operation on the display interface of the terminal:
依据所述垂直向量的大小,确定半径。以所述按压点所处位置为圆心,依据所述半径确定圆形范围。将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。The radius is determined according to the size of the vertical vector. The circular range is determined according to the radius, with the position where the pressing point is located as a center. The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
其中,所述处理器303,控制在所述作用范围内的界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置:获取所述作用范围内的界面元素前一时刻的位置坐标以及当前时刻的位置坐标。在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图,以控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动。The processor 303 is configured to perform the following steps during the movement of the interface element in the range of action to the staying position of the interface element, until the interface element moves to the staying position: obtaining the range of action The position coordinates of the interface element at the previous moment and the position coordinates of the current time. Re-rendering the drawing of the interface element at the position coordinate of the current moment, and canceling the drawing of the interface element at the position coordinate of the previous moment to control the interface element located within the scope of the interface to the interface element The position of the stop movement.
其中,所述作用范围内的界面元素的数量为至少两个。The number of interface elements in the range of action is at least two.
所述处理器303,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:确定所述至少两个界面元素中每一界面元素的初始运动速度。确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离。依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的时间。调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同。将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度。控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。The processor 303 specifically controls, by using the following manner, the movement of the interface element located in the working range to the staying position of the interface element, including: determining an initial moving speed of each of the at least two interface elements. A distance between each of the at least two interface elements and a dwell position of the interface element is determined. The time at which each interface element reaches the stop position of the interface element is determined according to the distance between each interface element and the dwell position of the interface element, and the initial movement speed of each interface element. The speed of movement of the interface elements having the same arrival time is adjusted such that the time at which each interface element reaches the position of the interface element is different. The adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element having no adjusted moving speed. Controlling each of the at least two interface elements to move to a dwell position of the interface element at a speed of motion corresponding to the interface element.
其中,所述处理器303,具体采用如下方式控制所述停留位置处同一时刻停留最多一个界面元素,包括:获取所述作用范围内的运动界面元素运动后 的位置。在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素。若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素。若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处。The processor 303 is configured to control at most one interface element at the same time at the stop position, including: acquiring the motion interface element in the range of motion s position. In a case where the position after the motion interface element moves coincides with the stop position, it is determined whether an interface element has been stayed at the stop position. If the interface element has been retained at the stop position, the already-interested interface element is replaced with the motion interface element. If there is no interface element that has stayed at the stop position, the motion interface element stays at the stop position.
可选的,所述处理器303,还用于:利用所述运动界面元素替换所述已经停留的界面元素后,在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素。Optionally, the processor 303 is further configured to: after replacing the already-used interface element by using the motion interface element, no longer be placed in the scope of the replacement and has been stopped at the staying position Interface elements.
可选的,所述输入设备301还用于获取用户在退出区域触发的离屏操作。Optionally, the input device 301 is further configured to acquire an off-screen operation triggered by the user in the exit area.
所述处理器303,还用于:在界面元素运动到所述停留位置处,且所述输入设备301获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素。其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The processor 303 is further configured to: when the interface element moves to the staying position, and the input device 301 acquires an off-screen operation triggered by the user in the exit area, does not run the stop position Interface element. The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
另一种可能的设计中,所述存储器304,用于存储所述处理器303执行的程序代码。In another possible design, the memory 304 is configured to store program code executed by the processor 303.
所述输入设备301,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作。The input device 301 is configured to detect a pressing operation input by the user on the terminal display interface, and detect an off-screen operation triggered by the user at a parking position to which the target interface element to be selected moves.
所述输出设备302,用于输出所述界面元素。The output device 302 is configured to output the interface element.
所述处理器303,用于控制界面元素朝向所述输入设备301检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置。在待选取目标界面元素运动到预设停留位置处,且所述输入设备301检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。The processor 303 is configured to control a position motion of a pressing point of the pressing operation of the interface element detected by the input device 301, where a position of the interface element on the terminal display interface is different from the pressing point Location. The target interface element is run when the target interface element to be selected is moved to a preset stay position, and the input device 301 detects that the user triggers an off-screen operation at the stop position.
其中,所述预设停留位置包括所述按压点所处位置。或者所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。Wherein the preset stay position includes a location where the pressing point is located. Or the preset stay position includes a stay area at a distance from a position where the press point is located less than or equal to a set threshold position.
其中,所述界面元素的数量为至少两个,所述停留区域的数量为至少两 个。Wherein the number of the interface elements is at least two, and the number of the staying areas is at least two One.
其中,所述处理器303具体采用如下方式控制界面元素朝向所述按压操作的按压点所处位置运动:The processor 303 specifically controls the position of the interface element toward the pressing point of the pressing operation in the following manner:
确定朝向所述按压操作的按压点所处位置运动的至少一个界面元素。确定所述至少一个界面元素的运动速度。确定所述至少一个界面元素的运动方向,所述运动方向为界面元素所处位置到所述预设停留位置的射线方向。控制所述每一界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。At least one interface element that moves toward a position at which the pressing point of the pressing operation is located is determined. A speed of movement of the at least one interface element is determined. Determining a direction of motion of the at least one interface element, the direction of motion being a ray direction from where the interface element is located to the predetermined dwell position. The interface element is controlled to move at a position corresponding to the pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position where the interface element is located to the preset stopping position.
其中,所述界面元素包括第一界面元素和第二界面元素。所述第一界面元素到达所述预设停留位置的时间为第一时间。所述第二界面元素到达所述预设停留位置的时间为第二时间。所述第一时间与所述第二时间不同。The interface element includes a first interface element and a second interface element. The time when the first interface element reaches the preset stay position is the first time. The time when the second interface element reaches the preset stay position is the second time. The first time is different from the second time.
其中,所述预设停留位置处同一时刻停留最多一个界面元素。Wherein, at the same time, the preset staying position stays at most one interface element.
其中,所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。The position of the interface element on the display interface of the terminal is located in a circular range of the terminal display interface with the position of the pressing point as a center.
可选的,所述输入设备301,还用于获取用户在退出区域触发的离屏操作。Optionally, the input device 301 is further configured to acquire an off-screen operation triggered by the user in the exit area.
所述处理器303,还用于在界面元素运动到所述预设停留位置处,且所述输入设备301检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素。其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The processor 303 is further configured to: when the interface element moves to the preset stay position, and the input device 301 detects that the user triggers the off-screen operation in the exit area, the preset stop position is not operated. Interface element at the place. The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
本发明实施例提供的选取界面元素的装置300具有实现上述方法实施例中涉及的界面元素选取过程中的所有功能,其具体实现过程可参阅上述实施例及附图的相关描述,在此不再赘述。The apparatus 300 for selecting an interface element provided by the embodiment of the present invention has all the functions in the process of selecting the interface element involved in the foregoing method embodiment. For the specific implementation process, refer to the related descriptions of the foregoing embodiment and the drawings, and no longer Narration.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令处理器完成,所述的程序可以存储于计算机可读存储介质中,所述存储介质是非短暂性(英文:non-transitory)介质,例如随机存取存储器,只读存储器,快闪存储器,硬盘,固态硬盘,磁带(英文:magnetic  tape),软盘(英文:floppy disk),光盘(英文:optical disc)及其任意组合。It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be performed by a program, and the program may be stored in a computer readable storage medium, which is non-transitory ( English: non-transitory) media, such as random access memory, read-only memory, flash memory, hard disk, solid state disk, tape (English: magnetic Tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
本发明是参照本发明实施例的方法和设备各自的流程图和方框图来描述的。应理解可由计算机程序指令实现流程图和方框图中的每一流程和方框、以及流程图和方框图中的流程和方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to the respective flowcharts and block diagrams of the method and apparatus of the embodiments of the invention. It will be understood that each flow and block of the flowchart illustrations. FIG. 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. A device that implements the functions specified in one or more blocks of a flowchart or a plurality of flows and block diagrams.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (51)

  1. 一种选取界面元素的方法,其特征在于,包括:A method for selecting an interface element, comprising:
    获取用户在终端显示界面输入的按压操作;Obtaining a pressing operation input by the user on the terminal display interface;
    依据所述按压操作获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量;Acquiring a position at which the pressing point of the pressing operation is located according to the pressing operation, and a vertical vector formed by the pressing operation and perpendicular to the terminal display interface at the pressing point;
    依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围,其中,所述作用范围用于确定向所述按压点所在方向运动的界面元素;Determining a range of action of the pressing operation on the terminal display interface according to a position of the pressing point and a size of the vertical vector, wherein the acting range is used to determine moving in a direction of the pressing point Interface element
    依据所述按压点所处位置,确定所述界面元素的停留位置;Determining a staying position of the interface element according to a location of the pressing point;
    控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素;Controlling an interface element located within the range of action to move to a stop position of the interface element, and controlling at most one interface element at the same time at the stop position;
    接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作,并运行所述目标界面元素。Receiving an offscreen operation triggered by the user at a stay position where the target interface element to be selected stays, and running the target interface element.
  2. 如权利要求1所述的方法,其特征在于,依据所述按压点所处位置,确定所述界面元素的停留位置,包括:The method according to claim 1, wherein determining the staying position of the interface element according to the location of the pressing point comprises:
    将所述按压点所处位置,确定为所述界面元素的停留位置;或Determining a position at which the pressing point is located as a resting position of the interface element; or
    将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。A staying area at a position that is less than or equal to a set threshold position from a position at which the pressed point is located is determined as a staying position of the interface element.
  3. 如权利要求2所述的方法,其特征在于,所述作用范围内的界面元素的数量为至少两个;The method according to claim 2, wherein the number of interface elements in the range of action is at least two;
    所述停留区域的数量为至少两个。The number of the staying areas is at least two.
  4. 如权利要求1至3任一项所述的方法,其特征在于,依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围,包括:The method according to any one of claims 1 to 3, wherein the action range of the pressing operation on the display interface of the terminal is determined according to the position of the pressing point and the size of the vertical vector, include:
    依据所述垂直向量的大小,确定半径;Determining a radius according to the size of the vertical vector;
    以所述按压点所处位置为圆心,依据所述半径确定圆形范围; Taking a position of the pressing point as a center, determining a circular range according to the radius;
    将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
  5. 如权利要求1至4任一项所述的方法,其特征在于,所述控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The method according to any one of claims 1 to 4, wherein the controlling the movement of the interface element located in the range of action to the rest position of the interface element comprises:
    控制所述界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置:The following steps are performed during the movement of the interface element to the dwell position of the interface element until the interface element moves to the dwell position:
    获取所述界面元素前一时刻的位置坐标以及当前时刻的位置坐标;Obtaining a position coordinate of a moment before the interface element and a position coordinate of the current time;
    在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图。Drawing the interface element at the position coordinates of the current time, and canceling the drawing of the interface element at the position coordinate of the previous time.
  6. 如权利要求1至5任一项所述的方法,其特征在于,位于所述作用范围内的界面元素的数量为至少两个;The method according to any one of claims 1 to 5, wherein the number of interface elements located within the range of action is at least two;
    所述控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The controlling the movement of the interface element located in the range of action to the staying position of the interface element comprises:
    确定所述至少两个界面元素中每一界面元素的初始运动速度;Determining an initial motion speed of each of the at least two interface elements;
    确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离;Determining a distance between each of the at least two interface elements and a dwell position of the interface element;
    依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的时间;Determining, according to a distance between each interface element and a staying position of the interface element, and an initial moving speed of each interface element, a time at which each interface element reaches a staying position of the interface element;
    调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同;Adjusting the speed of movement of the same interface elements at the same time of arrival, so that the time at which each interface element reaches the stop position of the interface elements is different;
    将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度;The adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element without adjusting the moving speed;
    控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。Controlling each of the at least two interface elements to move to a dwell position of the interface element at a speed of motion corresponding to the interface element.
  7. 如权利要求1至6任一项所述的方法,其特征在于,所述控制所述停留位置处同一时刻停留最多一个界面元素,包括: The method according to any one of claims 1 to 6, wherein said controlling said staying position to stay at most one interface element at the same time comprises:
    获取所述作用范围内的运动界面元素运动后的位置;Obtaining a position of the motion interface element in the range of motion;
    在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素;In a case where the position after the motion interface element moves coincides with the stop position, it is determined whether an interface element has been stayed at the stop position;
    若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素;If the interface element has been stayed at the stop position, replacing the already staying interface element with the motion interface element;
    若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处。If there is no interface element that has stayed at the stop position, the motion interface element stays at the stop position.
  8. 如权利要求7所述的方法,其特征在于,利用所述运动界面元素替换所述已经停留的界面元素后,所述方法还包括:The method of claim 7, wherein after the replacing the interface element that has stayed with the motion interface element, the method further comprises:
    在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素。Interface elements that have been replaced and have stayed at the dwelling position are no longer placed within the scope of action.
  9. 如权利要求1至8任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1 to 8, wherein the method further comprises:
    在界面元素运动到所述停留位置处,且获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素;When the interface element moves to the staying position, and the user obtains the off-screen operation triggered by the exit area, the interface element at the stop position is not operated;
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
  10. 一种选取界面元素的方法,其特征在于,包括:A method for selecting an interface element, comprising:
    检测用户在终端显示界面输入的按压操作;Detecting a pressing operation input by the user on the terminal display interface;
    控制界面元素朝向所述按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置;Controlling an interface element to move toward a position where the pressing point of the pressing operation is located, wherein a position of the interface element on the terminal display interface is different from a position where the pressing point is located;
    在待选取目标界面元素运动到预设停留位置处,且检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。The target interface element is run when the target interface element to be selected is moved to a preset stay position and the user is detected to trigger an off-screen operation at the stop position.
  11. 如权利要求10所述的方法,其特征在于,所述预设停留位置包括所述按压点所处位置;或者The method of claim 10 wherein said predetermined dwell position comprises a location at which said press point is located; or
    所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。The preset stay position includes a stay area at a distance from a position where the press point is located less than or equal to a set threshold position.
  12. 如权利要求11所述的方法,其特征在于,所述界面元素的数量为至 少两个;The method of claim 11 wherein the number of interface elements is Less than two;
    所述停留区域的数量为至少两个。The number of the staying areas is at least two.
  13. 如权利要求10至12任一项所述的方法,其特征在于,所述控制界面元素朝向所述按压操作的按压点所处位置运动,包括:The method according to any one of claims 10 to 12, wherein the movement of the control interface element toward the pressing point of the pressing operation comprises:
    确定所述界面元素的运动速度;Determining a speed of movement of the interface element;
    确定所述界面元素的运动方向,所述运动方向为所述界面元素所处位置到所述预设停留位置的射线方向;Determining a direction of motion of the interface element, the direction of motion being a ray direction from a position where the interface element is located to the preset stay position;
    控制所述界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。The interface element is controlled to move at a position corresponding to the pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position of the interface element to the preset stopping position.
  14. 如权利要求10至13任一项所述的方法,其特征在于,所述界面元素包括第一界面元素和第二界面元素;The method according to any one of claims 10 to 13, wherein the interface element comprises a first interface element and a second interface element;
    其中,所述第一界面元素到达所述预设停留位置的时间为第一时间;The time when the first interface element reaches the preset stay position is the first time;
    所述第二界面元素到达所述预设停留位置的时间为第二时间;The time when the second interface element reaches the preset stay position is a second time;
    所述第一时间与所述第二时间不同。The first time is different from the second time.
  15. 如权利要求10至14任一项所述的方法,其特征在于,所述预设停留位置处同一时刻停留最多一个界面元素。The method according to any one of claims 10 to 14, wherein at the same time, the preset staying position stays at most one interface element.
  16. 如权利要求10至15任一项所述的方法,其特征在于,所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。The method according to any one of claims 10 to 15, wherein a position of the interface element on the terminal display interface is located on the terminal display interface with the position of the pressing point as a center Within the circular range.
  17. 如权利要求10至16任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 10 to 16, wherein the method further comprises:
    在界面元素运动到预设停留位置处,且检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素;When the interface element moves to the preset stay position, and detects that the user triggers the off-screen operation in the exit area, the interface element at the preset stop position is not operated;
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。 The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
  18. 一种选取界面元素的装置,其特征在于,包括:A device for selecting an interface element, comprising:
    获取单元,用于获取用户在终端显示界面输入的按压操作,以及接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作;An obtaining unit, configured to acquire a pressing operation input by the user on the terminal display interface, and receive an off-screen operation triggered by the user at a staying position where the target interface element to be selected stays;
    处理单元,用于依据所述获取单元获取的所述按压操作,获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量;依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围;依据所述按压点所处位置,确定所述界面元素的停留位置;控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素;在所述获取单元接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素;a processing unit, configured to acquire, according to the pressing operation acquired by the acquiring unit, a location where the pressing point of the pressing operation is located, and a vertical direction formed by the pressing operation and perpendicular to the terminal display interface at the pressing point Determining, according to the location of the pressing point and the size of the vertical vector, the range of action of the pressing operation on the display interface of the terminal; determining the stay of the interface element according to the location of the pressing point Positioning: controlling an interface element located in the range of action to move to a stop position of the interface element, and controlling at least one interface element at the same time at the stop position; receiving, at the acquisition unit, a target interface to be selected by the user Running the target interface element when the off-screen operation triggered by the dwell position where the element stays;
    其中,所述作用范围用于确定向所述按压点所在方向运动的界面元素。Wherein, the range of action is used to determine an interface element that moves in the direction in which the pressing point is located.
  19. 如权利要求18所述的装置,其特征在于,所述处理单元,具体采用如下方式依据所述按压点所处位置,确定所述界面元素的停留位置:The device according to claim 18, wherein the processing unit determines the staying position of the interface element according to the position of the pressing point according to the following manner:
    将所述按压点所处位置,确定为所述界面元素的停留位置;或Determining a position at which the pressing point is located as a resting position of the interface element; or
    将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。A staying area at a position that is less than or equal to a set threshold position from a position at which the pressed point is located is determined as a staying position of the interface element.
  20. 如权利要求19所述的装置,其特征在于,所述作用范围内的界面元素的数量为至少两个;The device according to claim 19, wherein the number of interface elements in the range of action is at least two;
    所述处理单元确定的所述停留区域为至少两个。The staying area determined by the processing unit is at least two.
  21. 如权利要求18至20任一项所述的装置,其特征在于,所述处理单元,具体采用如下方式依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围:The device according to any one of claims 18 to 20, wherein the processing unit determines that the pressing operation is in accordance with the position of the pressing point and the size of the vertical vector in the following manner. The scope of the terminal display interface:
    依据所述垂直向量的大小,确定半径;Determining a radius according to the size of the vertical vector;
    以所述按压点所处位置为圆心,依据所述半径确定圆形范围;Taking a position of the pressing point as a center, determining a circular range according to the radius;
    将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。 The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
  22. 如权利要求18至21任一项所述的装置,其特征在于,所述处理单元,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动:The apparatus according to any one of claims 18 to 21, wherein the processing unit specifically controls the movement of the interface element located in the range of action to the staying position of the interface element in the following manner:
    控制在所述作用范围内的界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置:Controlling the movement of the interface element within the range of action to the dwell position of the interface element performs the following steps until the interface element moves to the dwell position:
    获取所述作用范围内的界面元素前一时刻的位置坐标以及当前时刻的位置坐标;Obtaining a position coordinate of a moment before the interface element in the range of action and a position coordinate of the current moment;
    在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图。Drawing the interface element at the position coordinates of the current time, and canceling the drawing of the interface element at the position coordinate of the previous time.
  23. 如权利要求18至22任一项所述的装置,其特征在于,所述作用范围内的界面元素的数量为至少两个;The apparatus according to any one of claims 18 to 22, wherein the number of interface elements in the range of action is at least two;
    所述处理单元,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The processing unit specifically controls the movement of the interface element located in the working range to the staying position of the interface element, including:
    确定所述至少两个界面元素中每一界面元素的初始运动速度;Determining an initial motion speed of each of the at least two interface elements;
    确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离;Determining a distance between each of the at least two interface elements and a dwell position of the interface element;
    依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的时间;Determining, according to a distance between each interface element and a staying position of the interface element, and an initial moving speed of each interface element, a time at which each interface element reaches a staying position of the interface element;
    调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同;Adjusting the speed of movement of the same interface elements at the same time of arrival, so that the time at which each interface element reaches the stop position of the interface elements is different;
    将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度;The adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element without adjusting the moving speed;
    控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。Controlling each of the at least two interface elements to move to a dwell position of the interface element at a speed of motion corresponding to the interface element.
  24. 如权利要求18至23任一项所述的装置,其特征在于,所述处理单元,具体采用如下方式控制所述停留位置处同一时刻停留最多一个界面元素, 包括:The device according to any one of claims 18 to 23, wherein the processing unit specifically controls to stay at most one interface element at the same time at the staying position, as follows. include:
    获取所述作用范围内的运动界面元素运动后的位置;Obtaining a position of the motion interface element in the range of motion;
    在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素;In a case where the position after the motion interface element moves coincides with the stop position, it is determined whether an interface element has been stayed at the stop position;
    若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素;If the interface element has been stayed at the stop position, replacing the already staying interface element with the motion interface element;
    若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处。If there is no interface element that has stayed at the stop position, the motion interface element stays at the stop position.
  25. 如权利要求24所述的装置,其特征在于,所述处理单元,还用于:The device according to claim 24, wherein the processing unit is further configured to:
    利用所述运动界面元素替换所述已经停留的界面元素后,在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素。After replacing the already existing interface element with the motion interface element, no interface elements that have been replaced and have stayed at the stop position are no longer placed within the scope of action.
  26. 如权利要求18至25任一项所述的装置,其特征在于,所述获取单元还用于获取用户在退出区域触发的离屏操作;The device according to any one of claims 18 to 25, wherein the obtaining unit is further configured to acquire an off-screen operation triggered by the user in the exit area;
    所述处理单元,还用于:The processing unit is further configured to:
    在界面元素运动到所述停留位置处,且所述获取单元获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素;When the interface element moves to the staying position, and the acquiring unit acquires an off-screen operation triggered by the user in the exit area, the interface element at the staying position is not operated;
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
  27. 一种选取界面元素的装置,其特征在于,包括:A device for selecting an interface element, comprising:
    检测单元,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作;a detecting unit, configured to detect a pressing operation input by the user on the terminal display interface, and detect an off-screen operation triggered by the user at a parking position to which the target interface element to be selected moves to;
    控制单元,用于控制界面元素朝向所述检测单元检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置;在待选取目标界面元素运动到预设停留位置处,且所述检测单元检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。a control unit, configured to control a positional motion of the pressing point of the interface element toward the pressing operation detected by the detecting unit, wherein a position of the interface element on the terminal display interface is different from a position of the pressing point; The target interface element is run when the selected target interface element moves to a preset stay position, and the detecting unit detects that the user triggers the off-screen operation at the stay position.
  28. 如权利要求27所述的装置,其特征在于,所述预设停留位置包括所 述按压点所处位置;或者The device of claim 27 wherein said predetermined dwell position comprises Describe the location of the compression point; or
    所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。The preset stay position includes a stay area at a distance from a position where the press point is located less than or equal to a set threshold position.
  29. 如权利要求28所述的装置,其特征在于,所述界面元素的数量为至少两个,所述停留区域的数量为至少两个。The apparatus according to claim 28, wherein said number of interface elements is at least two, and said number of said staying areas is at least two.
  30. 如权利要求27至29任一项所述的装置,其特征在于,所述控制单元具体采用如下方式控制界面元素朝向所述按压操作的按压点所处位置运动:The device according to any one of claims 27 to 29, wherein the control unit specifically controls the positional movement of the interface element toward the pressing point of the pressing operation in the following manner:
    确定朝向所述按压操作的按压点所处位置运动的至少一个界面元素;Determining at least one interface element moving toward a position at which the pressing point of the pressing operation is located;
    确定所述至少一个界面元素的运动速度;Determining a speed of movement of the at least one interface element;
    确定所述至少一个界面元素的运动方向,所述运动方向为界面元素所处位置到所述预设停留位置的射线方向;Determining a direction of motion of the at least one interface element, the direction of motion being a ray direction from a position where the interface element is located to the preset stay position;
    控制所述每一界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。The interface element is controlled to move at a position corresponding to the pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position where the interface element is located to the preset stopping position.
  31. 如权利要求27至30任一项所述的装置,其特征在于,所述界面元素包括第一界面元素和第二界面元素;The apparatus according to any one of claims 27 to 30, wherein the interface element comprises a first interface element and a second interface element;
    其中,所述第一界面元素到达所述预设停留位置的时间为第一时间;The time when the first interface element reaches the preset stay position is the first time;
    所述第二界面元素到达所述预设停留位置的时间为第二时间;The time when the second interface element reaches the preset stay position is a second time;
    所述第一时间与所述第二时间不同。The first time is different from the second time.
  32. 如权利要求27至31任一项所述的装置,其特征在于,所述预设停留位置处同一时刻停留最多一个界面元素。The apparatus according to any one of claims 27 to 31, wherein at least one interface element is stopped at the same time at the preset stay position.
  33. 如权利要求27至32任一项所述的装置,其特征在于,所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。The device according to any one of claims 27 to 32, wherein the location of the interface element on the terminal display interface is located on the terminal display interface with the position of the pressing point as a center Within the circular range.
  34. 如权利要求27至33任一项所述的装置,其特征在于,A device according to any one of claims 27 to 33, wherein
    所述检测单元,还用于获取用户在退出区域触发的离屏操作; The detecting unit is further configured to acquire an off-screen operation triggered by the user in the exit area;
    所述控制单元,还用于:The control unit is further configured to:
    在界面元素运动到所述预设停留位置处,且所述检测单元检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素;Moving the interface element to the preset stay position, and the detecting unit detects that the user triggers the off-screen operation in the exit area, and does not run the interface element at the preset stay position;
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
  35. 一种终端,其特征在于,包括输入设备、输出设备、处理器、存储器和总线,其中,所述输入设备、所述输出设备、所述存储器均通过所述总线与所述处理器连接,其中,A terminal, comprising: an input device, an output device, a processor, a memory, and a bus, wherein the input device, the output device, and the memory are all connected to the processor through the bus, wherein ,
    所述存储器,用于存储所述处理器执行的程序代码;The memory is configured to store program code executed by the processor;
    所述输入设备,用于获取用户在终端显示界面输入的按压操作,以及接收用户在待选取目标界面元素所停留的停留位置处触发的离屏操作;The input device is configured to acquire a pressing operation input by the user on the terminal display interface, and receive an off-screen operation triggered by the user at a stay position where the target interface element to be selected is located;
    所述输出设备,用于输出所述界面元素;The output device is configured to output the interface element;
    所述处理器,用于调用所述存储器存储的程序,依据所述输入设备获取到的所述按压操作;获取所述按压操作的按压点所处位置,以及在所述按压点处由所述按压操作形成并垂直于终端显示界面的垂直向量;依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围;依据所述按压点所处位置,确定所述界面元素的停留位置;控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,并控制所述停留位置处同一时刻停留最多一个界面元素;在所述输入设备接收到用户在待选取目标界面元素所停留的停留位置处触发的离屏操作时,运行所述目标界面元素。The processor, configured to invoke a program stored in the memory, according to the pressing operation acquired by the input device; acquiring a location of a pressing point of the pressing operation, and at the pressing point by the a pressing operation forms a vertical vector perpendicular to the display interface of the terminal; determining, according to the position of the pressing point and the size of the vertical vector, a range of action of the pressing operation on the display interface of the terminal; Positioning, determining a staying position of the interface element; controlling an interface element located within the active range to move to a stop position of the interface element, and controlling at least one interface element at the same time at the stop position; When the input device receives the off-screen operation triggered by the user at the stay position where the target interface element to be selected stays, the target interface element is run.
  36. 如权利要求35所述的终端,其特征在于,所述处理器,具体采用如下方式依据所述按压点所处位置,确定所述界面元素的停留位置:The terminal according to claim 35, wherein the processor determines the staying position of the interface element according to the location of the pressing point in the following manner:
    将所述按压点所处位置,确定为所述界面元素的停留位置;或Determining a position at which the pressing point is located as a resting position of the interface element; or
    将与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域,确定为所述界面元素的停留位置。A staying area at a position that is less than or equal to a set threshold position from a position at which the pressed point is located is determined as a staying position of the interface element.
  37. 如权利要求36所述的终端,其特征在于,所述作用范围内的界面元 素的数量为至少两个;The terminal according to claim 36, wherein the interface element in the range of action The number of primes is at least two;
    所述处理器确定的所述停留区域为至少两个。The stay area determined by the processor is at least two.
  38. 如权利要求35至37任一项所述的终端,其特征在于,所述处理器,具体采用如下方式依据所述按压点所处位置以及所述垂直向量的大小,确定所述按压操作在所述终端显示界面上的作用范围:The terminal according to any one of claims 35 to 37, wherein the processor determines, according to the position of the pressing point and the size of the vertical vector, the pressing operation in the following manner. The scope of the terminal display interface:
    依据所述垂直向量的大小,确定半径;Determining a radius according to the size of the vertical vector;
    以所述按压点所处位置为圆心,依据所述半径确定圆形范围;Taking a position of the pressing point as a center, determining a circular range according to the radius;
    将确定的所述圆形范围,确定为所述按压操作在所述终端显示界面上的作用范围。The determined circular range is determined as the range of action of the pressing operation on the terminal display interface.
  39. 如权利要求35至38任一项所述的终端,其特征在于,所述处理器,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动:The terminal according to any one of claims 35 to 38, wherein the processor specifically controls the movement of the interface element located in the range of action to the staying position of the interface element in the following manner:
    控制在所述作用范围内的界面元素向所述界面元素的停留位置运动过程中执行以下步骤,直至所述界面元素运动至所述停留位置:Controlling the movement of the interface element within the range of action to the dwell position of the interface element performs the following steps until the interface element moves to the dwell position:
    获取所述作用范围内的界面元素前一时刻的位置坐标以及当前时刻的位置坐标;Obtaining a position coordinate of a moment before the interface element in the range of action and a position coordinate of the current moment;
    在所述当前时刻的位置坐标处重新绘制所述界面元素的绘图,并取消前一时刻的位置坐标处所述界面元素的绘图。Drawing the interface element at the position coordinates of the current time, and canceling the drawing of the interface element at the position coordinate of the previous time.
  40. 如权利要求35至39任一项所述的终端,其特征在于,所述作用范围内的界面元素的数量为至少两个;The terminal according to any one of claims 35 to 39, wherein the number of interface elements in the range of action is at least two;
    所述处理器,具体采用如下方式控制位于所述作用范围内的界面元素向所述界面元素的停留位置运动,包括:The processor specifically controls the movement of the interface element located in the range of action to the staying position of the interface element, including:
    确定所述至少两个界面元素中每一界面元素的初始运动速度;Determining an initial motion speed of each of the at least two interface elements;
    确定所述至少两个界面元素中每一界面元素与所述界面元素的停留位置之间的距离;Determining a distance between each of the at least two interface elements and a dwell position of the interface element;
    依据每一界面元素与所述界面元素的停留位置之间的距离、以及每一界面元素的初始运动速度,确定每一界面元素到达所述界面元素的停留位置的 时间;Determining, according to a distance between each interface element and a staying position of the interface element, and an initial moving speed of each interface element, determining a dwelling position of each interface element reaching the interface element time;
    调整到达时间相同的界面元素的运动速度,使每一界面元素到达所述界面元素的停留位置的时间不同;Adjusting the speed of movement of the same interface elements at the same time of arrival, so that the time at which each interface element reaches the stop position of the interface elements is different;
    将调整后的运动速度作为被调整运动速度的界面元素的运动速度,将初始运动速度作为没有调整运动速度的界面元素的运动速度;The adjusted moving speed is taken as the moving speed of the interface element of the adjusted moving speed, and the initial moving speed is taken as the moving speed of the interface element without adjusting the moving speed;
    控制所述至少两个界面元素中每一界面元素,以该界面元素对应的运动速度,向所述界面元素的停留位置运动。Controlling each of the at least two interface elements to move to a dwell position of the interface element at a speed of motion corresponding to the interface element.
  41. 如权利要求35至40任一项所述的终端,其特征在于,所述处理器,具体采用如下方式控制所述停留位置处同一时刻停留最多一个界面元素,包括:The terminal according to any one of claims 35 to 40, wherein the processor, in particular, controls at least one interface element at the same time at the stop position, including:
    获取所述作用范围内的运动界面元素运动后的位置;Obtaining a position of the motion interface element in the range of motion;
    在所述运动界面元素运动后的位置与所述停留位置重合的情况下,判断所述停留位置处是否已经停留有界面元素;In a case where the position after the motion interface element moves coincides with the stop position, it is determined whether an interface element has been stayed at the stop position;
    若所述停留位置处已经停留有界面元素,则利用所述运动界面元素替换所述已经停留的界面元素;If the interface element has been stayed at the stop position, replacing the already staying interface element with the motion interface element;
    若所述停留位置处不存在已经停留的界面元素,则将所述运动界面元素停留在所述停留位置处。If there is no interface element that has stayed at the stop position, the motion interface element stays at the stop position.
  42. 如权利要求41所述的终端,其特征在于,所述处理器,还用于:The terminal according to claim 41, wherein the processor is further configured to:
    利用所述运动界面元素替换所述已经停留的界面元素后,在所述作用范围内不再放置被替换且已经在所述停留位置处停留过的界面元素。After replacing the already existing interface element with the motion interface element, no interface elements that have been replaced and have stayed at the stop position are no longer placed within the scope of action.
  43. 如权利要求35至42任一项所述的终端,其特征在于,所述输入设备还用于获取用户在退出区域触发的离屏操作;The terminal according to any one of claims 35 to 42, wherein the input device is further configured to acquire an off-screen operation triggered by the user in the exit area;
    所述处理器,还用于:The processor is further configured to:
    在界面元素运动到所述停留位置处,且所述输入设备获取到用户在退出区域触发的离屏操作的情况下,不运行所述停留位置处的界面元素;When the interface element moves to the staying position, and the input device acquires an off-screen operation triggered by the user in the exit area, the interface element at the stop position is not operated;
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。 The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
  44. 一种终端,其特征在于,包括输入设备、输出设备、处理器、存储器和总线,其中,所述输入设备、所述输出设备、所述存储器均通过所述总线与所述处理器连接,其中,A terminal, comprising: an input device, an output device, a processor, a memory, and a bus, wherein the input device, the output device, and the memory are all connected to the processor through the bus, wherein ,
    所述存储器,用于存储所述处理器执行的程序代码;The memory is configured to store program code executed by the processor;
    所述输入设备,用于检测用户在终端显示界面输入的按压操作,以及检测用户在待选取目标界面元素运动到的停留位置处触发的离屏操作;The input device is configured to detect a pressing operation input by the user on the terminal display interface, and detect an off-screen operation triggered by the user at a parking position to which the target interface element to be selected moves to;
    所述输出设备,用于输出所述界面元素;The output device is configured to output the interface element;
    所述处理器,用于控制界面元素朝向所述输入设备检测到的按压操作的按压点所处位置运动,其中,所述界面元素在终端显示界面上的位置不同于所述按压点所处位置;在待选取目标界面元素运动到预设停留位置处,且所述输入设备检测到用户在所述停留位置处触发离屏操作的情况下,运行所述目标界面元素。The processor is configured to control a position motion of a pressing point of the pressing operation of the interface element detected by the input device, where a position of the interface element on the terminal display interface is different from a position of the pressing point The target interface element is run when the target interface element to be selected is moved to a preset stay position, and the input device detects that the user triggers an off-screen operation at the stop position.
  45. 如权利要求44所述的终端,其特征在于,所述预设停留位置包括所述按压点所处位置;或者The terminal according to claim 44, wherein said preset stay position includes a position at which said press point is located; or
    所述预设停留位置包括与所述按压点所处位置之间距离小于等于设定阈值位置处的停留区域。The preset stay position includes a stay area at a distance from a position where the press point is located less than or equal to a set threshold position.
  46. 如权利要求45所述的终端,其特征在于,所述界面元素的数量为至少两个,所述停留区域的数量为至少两个。The terminal according to claim 45, wherein the number of the interface elements is at least two, and the number of the staying areas is at least two.
  47. 如权利要求44至46任一项所述的终端,其特征在于,所述处理器具体采用如下方式控制界面元素朝向所述按压操作的按压点所处位置运动:The terminal according to any one of claims 44 to 46, wherein the processor specifically controls the positional movement of the interface element toward the pressing point of the pressing operation in the following manner:
    确定朝向所述按压操作的按压点所处位置运动的至少一个界面元素;Determining at least one interface element moving toward a position at which the pressing point of the pressing operation is located;
    确定所述至少一个界面元素的运动速度;Determining a speed of movement of the at least one interface element;
    确定所述至少一个界面元素的运动方向,所述运动方向为界面元素所处位置到所述预设停留位置的射线方向;Determining a direction of motion of the at least one interface element, the direction of motion being a ray direction from a position where the interface element is located to the preset stay position;
    控制所述每一界面元素,以该界面元素对应的运动速度,沿该界面元素所处位置到所述预设停留位置的射线方向,朝向所述按压操作的按压点所处位置运动。 The interface element is controlled to move at a position corresponding to the pressing point of the pressing operation at a moving speed corresponding to the interface element along a ray direction of the position where the interface element is located to the preset stopping position.
  48. 如权利要求44至47任一项所述的终端,其特征在于,所述界面元素包括第一界面元素和第二界面元素;The terminal according to any one of claims 44 to 47, wherein the interface element comprises a first interface element and a second interface element;
    其中,所述第一界面元素到达所述预设停留位置的时间为第一时间;The time when the first interface element reaches the preset stay position is the first time;
    所述第二界面元素到达所述预设停留位置的时间为第二时间;The time when the second interface element reaches the preset stay position is a second time;
    所述第一时间与所述第二时间不同。The first time is different from the second time.
  49. 如权利要求44至48任一项所述的终端,其特征在于,所述预设停留位置处同一时刻停留最多一个界面元素。The terminal according to any one of claims 44 to 48, wherein at the same time, the preset staying position stays at most one interface element.
  50. 如权利要求44至49任一项所述的终端,其特征在于,所述界面元素在所述终端显示界面上所处位置,位于所述终端显示界面上以所述按压点所处位置为圆心的圆形范围内。The terminal according to any one of claims 44 to 49, wherein the location of the interface element on the terminal display interface is located on the terminal display interface with the position of the pressing point as a center Within the circular range.
  51. 如权利要求44至50任一项所述的终端,其特征在于,A terminal according to any one of claims 44 to 50, characterized in that
    所述输入设备,还用于获取用户在退出区域触发的离屏操作;The input device is further configured to acquire an off-screen operation triggered by the user in the exit area;
    所述处理器,还用于在界面元素运动到所述预设停留位置处,且所述输入设备检测到用户在退出区域触发离屏操作的情况下,不运行所述预设停留位置处的界面元素;The processor is further configured to: when the interface element moves to the preset stay position, and the input device detects that the user triggers the off-screen operation in the exit area, does not run the preset stop position Interface element
    其中,所述退出区域为用户在不需要选取界面元素的情况下触发离屏操作的区域。 The exit area is an area where the user triggers an off-screen operation without selecting an interface element.
PCT/CN2016/080375 2016-04-27 2016-04-27 Interface element selection method and apparatus, and terminal WO2017185264A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/080375 WO2017185264A1 (en) 2016-04-27 2016-04-27 Interface element selection method and apparatus, and terminal
CN201680059609.3A CN108351717B (en) 2016-04-27 2016-04-27 Method, device and terminal for selecting interface elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/080375 WO2017185264A1 (en) 2016-04-27 2016-04-27 Interface element selection method and apparatus, and terminal

Publications (1)

Publication Number Publication Date
WO2017185264A1 true WO2017185264A1 (en) 2017-11-02

Family

ID=60160646

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080375 WO2017185264A1 (en) 2016-04-27 2016-04-27 Interface element selection method and apparatus, and terminal

Country Status (2)

Country Link
CN (1) CN108351717B (en)
WO (1) WO2017185264A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048361B (en) * 2022-06-24 2024-04-12 荣耀终端有限公司 Interaction method, readable storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662573A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method and terminal for obtaining options by pressing
US20140071049A1 (en) * 2012-09-11 2014-03-13 Samsung Electronics Co., Ltd Method and apparatus for providing one-handed user interface in mobile device having touch screen
CN104252303A (en) * 2013-06-27 2014-12-31 福建省辉锐材料科技有限公司 Method and system for operating games based on pressure sensitive information
CN105159505A (en) * 2015-09-29 2015-12-16 广东欧珀移动通信有限公司 Interface operation method and terminal
CN105302455A (en) * 2015-09-29 2016-02-03 广东欧珀移动通信有限公司 Interface operation method and terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080098331A1 (en) * 2005-09-16 2008-04-24 Gregory Novick Portable Multifunction Device with Soft Keyboards
CN100498701C (en) * 2007-03-21 2009-06-10 腾讯科技(深圳)有限公司 Method and system for dynamically adjusting user interface elements
JP4533943B2 (en) * 2008-04-28 2010-09-01 株式会社東芝 Information processing apparatus, display control method, and program
CN105159574A (en) * 2010-08-19 2015-12-16 上海博泰悦臻电子设备制造有限公司 Method and apparatus for controlling device operation through gesture on screen of electronic device
KR101753588B1 (en) * 2011-05-25 2017-07-04 엘지전자 주식회사 Mobile terminal and method for controlling thereof
US9116611B2 (en) * 2011-12-29 2015-08-25 Apple Inc. Devices, methods, and graphical user interfaces for providing multitouch inputs and hardware-based features using a single touch input
CN102760043B (en) * 2012-06-19 2016-01-27 华为终端有限公司 A kind of icon management method of user interface and touch control device
CN103713809B (en) * 2012-09-29 2017-02-01 中国移动通信集团公司 Dynamic generating method and dynamic generating device for annular menu of touch screen
CN104219714B (en) * 2014-08-22 2019-01-04 小米科技有限责任公司 The flow control methods and device of mobile router

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662573A (en) * 2012-03-24 2012-09-12 上海量明科技发展有限公司 Method and terminal for obtaining options by pressing
US20140071049A1 (en) * 2012-09-11 2014-03-13 Samsung Electronics Co., Ltd Method and apparatus for providing one-handed user interface in mobile device having touch screen
CN104252303A (en) * 2013-06-27 2014-12-31 福建省辉锐材料科技有限公司 Method and system for operating games based on pressure sensitive information
CN105159505A (en) * 2015-09-29 2015-12-16 广东欧珀移动通信有限公司 Interface operation method and terminal
CN105302455A (en) * 2015-09-29 2016-02-03 广东欧珀移动通信有限公司 Interface operation method and terminal

Also Published As

Publication number Publication date
CN108351717B (en) 2020-07-07
CN108351717A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US10786733B2 (en) Information processing method, terminal, and computer storage medium for releasing virtual skill object based on user gesture
EP3285156B1 (en) Information processing method and terminal, and computer storage medium
EP3273334A1 (en) Information processing method, terminal and computer storage medium
JP2023171885A (en) Virtual object control method and related apparatus
CN108064360A (en) The control method and device of unmanned plane
CN106020592A (en) Split screen display method and device
CN107885417A (en) Object localization method, device and computer-readable recording medium in virtual environment
WO2016179912A1 (en) Application program control method and apparatus, and mobile terminal
US20150234469A1 (en) Input device, input method, and storage medium
CN105955765A (en) Method and device for application preloading
CN106527887B (en) Dummy object choosing method, device and VR systems
WO2015000393A1 (en) Screen sharing method and device
CN105739817B (en) A kind of method, device and mobile terminal of icon hiding
EP2887191A1 (en) Picture display processing method and device
CN110102044B (en) Game control method based on smart band, smart band and storage medium
CN110022363A (en) Motion state modification method, device, equipment and the storage medium of virtual objects
US20240066404A1 (en) Perspective rotation method and apparatus, device, and storage medium
CN106303652A (en) The method for drafting of a kind of interface element and device
CN106325650A (en) 3D dynamic display method based on human-computer interaction and mobile terminal
CN105278825A (en) Screen capturing method and mobile terminal
CN113692520A (en) Method for controlling portable device and portable device
WO2017185264A1 (en) Interface element selection method and apparatus, and terminal
EP2958079A1 (en) Method for the representation of geographically located virtual environments and mobile device
CN106325648A (en) Icon setting method and mobile terminal
CN104378576B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16899777

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16899777

Country of ref document: EP

Kind code of ref document: A1