CN110489035A - Terminal and its control method and computer readable storage medium - Google Patents
Terminal and its control method and computer readable storage medium Download PDFInfo
- Publication number
- CN110489035A CN110489035A CN201910795130.1A CN201910795130A CN110489035A CN 110489035 A CN110489035 A CN 110489035A CN 201910795130 A CN201910795130 A CN 201910795130A CN 110489035 A CN110489035 A CN 110489035A
- Authority
- CN
- China
- Prior art keywords
- area
- terminal
- cursor
- movement
- display interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 230000004044 response Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 13
- 238000003032 molecular docking Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
本发明公开了一种终端的控制方法,所述终端的控制方法包括以下步骤:获取终端的显示界面中移动按钮的第一移动轨迹;根据所述第一移动轨迹控制所述显示界面中的光标移动。本发明还公开一种终端和计算机可读存储介质。本发明终端的控制简便。
The present invention discloses a method for controlling a terminal. The method for controlling a terminal includes the following steps: acquiring a first movement track of a moving button in a display interface of a terminal; and controlling cursor movement in the display interface according to the first movement track . The invention also discloses a terminal and a computer-readable storage medium. The control of the terminal of the present invention is simple and convenient.
Description
技术领域technical field
本发明涉及终端触控技术领域,尤其涉及一种终端及其控制方法和计算机可读存储介质。The present invention relates to the technical field of terminal touch control, and in particular, to a terminal, a control method thereof, and a computer-readable storage medium.
背景技术Background technique
便携式的终端已成为人们必不可少的生活用品。人们可以通过终端浏览网页以了解资讯,人们还可通过终端进行娱乐。终端的屏幕显示的内容能够直观的展示在人们面前,为了能够增强用户的体验感以及沉浸感,终端的屏幕的尺寸越来越大。Portable terminals have become indispensable daily necessities for people. People can browse web pages through the terminal to learn about information, and people can also use the terminal for entertainment. The content displayed on the screen of the terminal can be displayed in front of people intuitively. In order to enhance the user's sense of experience and immersion, the size of the screen of the terminal is getting larger and larger.
人们在不方便时,例如,乘坐公交或者地铁,只能腾出一只手对终端进行操作;但终端的屏幕较大,导致用户需要更换掌握终端的手势以对终端的显示界面的应用进行对应的操作,终端的控制繁琐。When it is inconvenient, for example, when taking a bus or subway, people can only use one hand to operate the terminal; however, the screen of the terminal is large, so that the user needs to change the gesture of grasping the terminal to correspond to the application of the display interface of the terminal operation, the control of the terminal is cumbersome.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solutions of the present invention, and does not mean that the above content is the prior art.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种终端及其控制方法和计算机可读存储介质,旨在解决终端的控制繁琐的问题。The main purpose of the present invention is to provide a terminal, a control method thereof, and a computer-readable storage medium, which aim to solve the problem of complicated control of the terminal.
为了达到上述目的,本发明提供一种终端的控制方法,所述终端的控制方法包括以下步骤:In order to achieve the above object, the present invention provides a method for controlling a terminal, and the method for controlling a terminal includes the following steps:
获取终端的显示界面中移动按钮的第一移动轨迹;obtaining the first movement track of the movement button in the display interface of the terminal;
根据所述第一移动轨迹控制所述显示界面中的光标移动。The cursor movement in the display interface is controlled according to the first movement track.
在一实施例中,所述根据所述第一移动轨迹控制所述显示界面中的光标移动的步骤包括:In one embodiment, the step of controlling the cursor movement in the display interface according to the first movement track includes:
根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹;determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory;
根据所述第二移动轨迹控制所述光标移动。The cursor movement is controlled according to the second movement track.
在一实施例中,所述根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹的步骤包括:In an embodiment, the step of determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory includes:
确定所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例;determining the size ratio between the first area where the move button is located and the second area where the cursor is located;
根据所述尺寸比例以及所述第一移动轨迹,确定所述光标的第二移动轨迹。A second movement trajectory of the cursor is determined according to the size ratio and the first movement trajectory.
在一实施例中,所述根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹的步骤包括:In an embodiment, the step of determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory includes:
获取所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例,并确定所述第一移动轨迹的终点;obtaining the size ratio between the first area where the moving button is located and the second area where the cursor is located, and determining the end point of the first moving track;
根据所述第一移动轨迹的终点以及所述尺寸比例,确定所述光标的终点;Determine the end point of the cursor according to the end point of the first movement track and the size ratio;
根据所述光标的起点以及所述光标的终点,确定所述光标的第二移动轨迹。A second movement track of the cursor is determined according to the starting point of the cursor and the ending point of the cursor.
在一实施例中,所述根据所述第一移动轨迹控制所述显示界面中的光标移动的步骤包括的步骤包括:In an embodiment, the step of controlling the cursor movement in the display interface according to the first movement track includes steps including:
根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹;determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory;
在所述第一移动轨迹与所述第二移动轨迹交叉时,根据所述第一移动轨迹或者所述第二移动轨迹控制所述光标移动;When the first movement track intersects the second movement track, controlling the cursor to move according to the first movement track or the second movement track;
在所述第一移动以及与所述第二移动轨迹不交叉时,根据所述第二移动轨迹控制所述光标移动。When the first movement does not intersect with the second movement track, the cursor is controlled to move according to the second movement track.
在一实施例中,所述移动按钮所在的第一区域与所述光标所在的第二区域至少部分重叠。In one embodiment, the first area where the move button is located and the second area where the cursor is located at least partially overlap.
在一实施例中,所述移动按钮所在的第一区域与所述光标所在的第二区域根据所述终端的屏幕方向确定,或者,所述第一区域以及所述第二区域通过用户设置。In an embodiment, the first area where the move button is located and the second area where the cursor is located are determined according to the screen orientation of the terminal, or the first area and the second area are set by a user.
在一实施例中,所述获取终端的显示界面中移动按钮的第一移动轨迹的步骤之前,还包括:In one embodiment, before the step of acquiring the first movement track of the moving button in the display interface of the terminal, the method further includes:
在检测到所述移动按钮的触发操作时,在终端的显示界面中确定第一区域以及第二区域;When detecting the trigger operation of the moving button, determine the first area and the second area in the display interface of the terminal;
在所述第一区域显示移动按钮,并根据所述移动按钮在所述第一区域的第一显示位置确定光标在所述第二区域的第二显示位置;Display a move button in the first area, and determine a second display position of the cursor in the second area according to the first display position of the move button in the first area;
在所述第二区域的所述第二显示位置显示光标。A cursor is displayed at the second display position of the second area.
在一实施例中,所述在终端的显示界面中确定第一区域以及第二区域的步骤包括:In one embodiment, the step of determining the first area and the second area in the display interface of the terminal includes:
在所述显示界面中确定空白区域或者停靠栏;determining a blank area or a docking bar in the display interface;
将所述空白区域或者所述停靠栏确定为第一区域,且将除所述空白区域的其他区域、除所述停靠栏的其他区域、或者所述显示界面确定为第二区域。The blank area or the dock bar is determined as the first area, and the other area except the blank area, the other area except the dock bar, or the display interface is determined as the second area.
在一实施例中,所述在终端的显示界面中确定第一区域以及第二区域的步骤包括:In one embodiment, the step of determining the first area and the second area in the display interface of the terminal includes:
获取所述终端显示所述移动按钮时用户在所述显示界面上的可触控区域,以作为目标区域;Acquiring the touchable area of the user on the display interface when the terminal displays the moving button, as a target area;
在所述显示界面上确定除所述目标区域的其他区域;Determine other areas except the target area on the display interface;
将所述目标区域确定为第一区域,且将除所述目标区域的其他区域或者所述显示界面确定为第二区域。The target area is determined as the first area, and other areas except the target area or the display interface are determined as the second area.
在一实施例中,所述光标为隐藏式光标,在所述光标移动至所述显示界面的应用图标时,将所述应用图像设置为选中状态,并在检测到所述移动按钮点击操作时,控制选中状态的所述应用图标对应的应用程序响应所述点击操作对应的指令。In one embodiment, the cursor is a hidden cursor, when the cursor moves to an application icon on the display interface, the application image is set to a selected state, and when a click operation of the move button is detected , controlling the application program corresponding to the application icon in the selected state to respond to the instruction corresponding to the click operation.
在一实施例中,所述光标为隐藏式光标,在所述光标移动至所述显示界面的应用图标时,显示所述光标。In one embodiment, the cursor is a hidden cursor, and the cursor is displayed when the cursor moves to an application icon on the display interface.
为实现上述目的,本发明还提供一种终端的控制方法,终端的显示界面包括至少一个第一区域以及至少一个第二区域,所述终端的控制方法包括以下步骤:In order to achieve the above object, the present invention also provides a control method for a terminal. The display interface of the terminal includes at least one first area and at least one second area, and the control method for the terminal includes the following steps:
获取所述第一区域的第一移动轨迹;obtaining a first movement trajectory of the first area;
根据所述第一移动轨迹确定所述第一区域对应的第二区域的第二移动轨迹;determining a second movement trajectory of the second area corresponding to the first area according to the first movement trajectory;
根据所述第一移动轨迹移动所述第二移动轨迹。The second movement trajectory is moved according to the first movement trajectory.
在一实施例中,在所述第一区域和所述第二区域中,至少有一个区域为可见区域。In an embodiment, at least one of the first area and the second area is a visible area.
在一实施例中,所述根据所述第一移动轨迹移动所述第二移动轨迹的步骤之后,还包括:In an embodiment, after the step of moving the second movement trajectory according to the first movement trajectory, the method further includes:
确定所述第二移动轨迹移动的目标位置以及所述目标位置触发的指令,并响应所述指令。A target position moved by the second movement trajectory and an instruction triggered by the target position are determined, and the instruction is responded to.
在一实施例中,所述第二移动轨迹与所述第一移动轨迹的移动方向相同。In one embodiment, the moving direction of the second movement track is the same as that of the first movement track.
在一实施例中,所述第二移动轨迹与所述第一移动轨迹的移动方向不相同。In one embodiment, the moving directions of the second movement track and the first movement track are different.
在一实施例中,所述第二移动轨迹的移动方向与所述第一移动轨迹的移动方向之间的角度为预设角度,其中,任意一条移动轨迹相对另一条移动轨迹旋转预设角度后得到的旋转移动轨迹的移动方向,与未旋转的移动轨迹的移动方向相同。In one embodiment, the angle between the movement direction of the second movement track and the movement direction of the first movement track is a preset angle, wherein after any one movement track is rotated by a preset angle relative to the other The movement direction of the obtained rotational movement trajectory is the same as the movement direction of the non-rotated movement trajectory.
在一实施例中,所述根据所述第一移动轨迹移动所述第二移动轨迹的步骤包括:In one embodiment, the step of moving the second movement trajectory according to the first movement trajectory includes:
在检测到所述第一移动轨迹移动至所述第一区域中的预设区域时,根据所述第一移动轨迹控制所述第二移动轨迹移动。When it is detected that the first movement trajectory moves to a preset area in the first area, the second movement trajectory is controlled to move according to the first movement trajectory.
在一实施例中,在所述第二移动轨迹移动至所述第二区域中的应用图标上时,至少显示经过所述应用图标的所述第二移动轨迹。In one embodiment, when the second movement trajectory moves to the application icon in the second area, at least the second movement trajectory passing through the application icon is displayed.
在一实施例中,在所述第二移动轨迹移动至所述第二区域中的应用图标上时,将所述应用图标设置为选中状态。In one embodiment, when the second movement track moves onto an application icon in the second area, the application icon is set to a selected state.
为实现上述目的,本发明还提供一种终端,所述终端包括显示屏、存储器、处理器以及存储在所述存储器并可在所述处理器上运行的终端的控制程序,所述显示屏与所述处理器连接,所述终端的控制程序被所述处理器执行时实现如上所述的终端的控制方法的各个步骤。In order to achieve the above object, the present invention also provides a terminal, the terminal includes a display screen, a memory, a processor, and a control program of the terminal stored in the memory and running on the processor, the display screen and the The processor is connected, and each step of the above-mentioned terminal control method is implemented when the control program of the terminal is executed by the processor.
为实现上述目的,本发明还提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有终端的控制程序,所述终端的控制程序被处理器执行时实现如上所述的终端的控制方法的各个步骤。To achieve the above object, the present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a control program of the terminal, and the control program of the terminal is executed by the processor to achieve the above-mentioned various steps of the terminal control method.
本发明提供的终端及其控制方法和计算机可读存储介质,终端获取显示界面中移动按钮的移动轨迹,进而根据移动轨迹控制显示界面中光标的移动,使得用户通过控制移动按钮移动,即可控制光标移动至显示界面上的对应位置以供用户进行操作,避免用户更换掌握终端的手势,终端的操作简便。In the terminal, the control method and the computer-readable storage medium provided by the present invention, the terminal obtains the movement track of the moving button in the display interface, and then controls the movement of the cursor in the display interface according to the movement track, so that the user can control the cursor by controlling the movement of the moving button. Move to the corresponding position on the display interface for the user to operate, avoid the user changing the gesture of grasping the terminal, and the terminal is easy to operate.
附图说明Description of drawings
附图说明用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the specification, and together with the embodiments of the present invention, are used to explain the present invention, and do not constitute a limitation to the present invention. In the attached image:
图1为本发明实施例方案涉及的终端的硬件结构示意图;1 is a schematic diagram of a hardware structure of a terminal involved in an embodiment of the present invention;
图2为本发明终端的控制方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of a first embodiment of a method for controlling a terminal according to the present invention;
图3为本发明终端中显示界面的第一区域与第二区域的一示意图;3 is a schematic diagram of a first area and a second area of a display interface in the terminal of the present invention;
图4为图2中步骤S200的细化流程示意图;FIG. 4 is a schematic diagram of the refinement process of step S200 in FIG. 2;
图5为图4中步骤S210的一细化流程示意图;FIG. 5 is a schematic diagram of a refinement process of step S210 in FIG. 4;
图6为图4中步骤S210的另一细化流程示意图;FIG. 6 is a schematic diagram of another refinement process of step S210 in FIG. 4;
图7为本发明终端的控制方法第二实施例的流程示意图;FIG. 7 is a schematic flowchart of a second embodiment of a method for controlling a terminal according to the present invention;
图8为图7中步骤S300的一细化流程示意图;FIG. 8 is a schematic diagram of a refinement process of step S300 in FIG. 7;
图9为图7中步骤S300的另一细化流程示意图;FIG. 9 is a schematic diagram of another refinement process of step S300 in FIG. 7;
图10为图7中步骤S500的细化流程示意图;FIG. 10 is a schematic diagram of the refinement process of step S500 in FIG. 7;
图11为本发明终端的控制方法第三实施例的流程示意图;11 is a schematic flowchart of a third embodiment of a method for controlling a terminal according to the present invention;
图12为本发明终端中显示界面的第一区域与第二区域的另一示意图FIG. 12 is another schematic diagram of the first area and the second area of the display interface in the terminal of the present invention
图13为本发明终端第一区域中第一移动轨迹与第二区域中第二移动轨迹的一示意图;13 is a schematic diagram of the first movement track in the first area of the terminal and the second movement track in the second area of the terminal according to the present invention;
图14为本发明终端第一区域中第一移动轨迹与第二区域中第二移动轨迹的另一示意图;14 is another schematic diagram of the first movement track in the first area of the terminal and the second movement track in the second area of the terminal according to the present invention;
图15为图11中步骤S800的细化流程示意图。FIG. 15 is a schematic diagram of the refinement flow of step S800 in FIG. 11 .
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
由于人们在不方便时,例如,乘坐公交或者地铁,只能腾出一只手对终端进行操作;但终端的屏幕较大,导致用户需要更换掌握终端的手势以对终端的显示界面的应用进行对应的操作,终端的控制繁琐。When people are inconvenient, such as taking a bus or subway, they can only use one hand to operate the terminal; however, the screen of the terminal is large, so the user needs to change the gesture of grasping the terminal to perform the application on the display interface of the terminal. Corresponding operations, the control of the terminal is cumbersome.
本发明提供一种解决方案,终端获取显示界面中移动按钮的移动轨迹,进而根据移动轨迹控制显示界面中光标的移动,使得用户通过控制移动按钮移动,即可控制光标移动至显示界面上的对应位置以供用户进行操作,避免用户更换掌握终端的手势,终端的操作简便。The present invention provides a solution. The terminal obtains the movement track of the mobile button in the display interface, and then controls the movement of the cursor in the display interface according to the movement track, so that the user can control the cursor to move to the corresponding position on the display interface by controlling the movement of the movement button. For the user to operate, the user can avoid changing the gesture of grasping the terminal, and the terminal is easy to operate.
如图1所示,图1是本发明实施例方案涉及终端的硬件结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a hardware structure of a terminal involved in an embodiment of the present invention.
参照图1,终端可以包括:处理器1001,例如CPU,存储器1002,通信总线1003,网络接口1004。其中,通信总线1003用于实现该装置中各组成部件之间的连接通信。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1002可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1002可选的还可以是独立于前述处理器1001的存储装置。如图1所示,作为一种计算机存储介质的存储器1002中可以包括操作系统、网络通信模块以及终端的控制程序。Referring to FIG. 1 , a terminal may include: a processor 1001 , such as a CPU, a memory 1002 , a communication bus 1003 , and a network interface 1004 . Among them, the communication bus 1003 is used to realize the connection and communication between the components in the device. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1002 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1002 may also be a storage device independent of the aforementioned processor 1001 . As shown in FIG. 1 , the memory 1002 as a computer storage medium may include an operating system, a network communication module, and a control program of the terminal.
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the device structure shown in FIG. 1 does not constitute a limitation to the device, and may include more or less components than the one shown, or combine some components, or arrange different components.
在图1所示的装置所涉及的硬件中处理器1001可以用于调用存储器1002中存储的终端的控制程序,并执行以下操作:In the hardware involved in the apparatus shown in FIG. 1, the processor 1001 can be used to call the control program of the terminal stored in the memory 1002, and perform the following operations:
获取终端的显示界面中移动按钮的第一移动轨迹;obtaining the first movement track of the movement button in the display interface of the terminal;
根据所述第一移动轨迹控制所述显示界面中的光标移动。The cursor movement in the display interface is controlled according to the first movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹;determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory;
根据所述第二移动轨迹控制所述光标移动。The cursor movement is controlled according to the second movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
确定所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例;determining the size ratio between the first area where the move button is located and the second area where the cursor is located;
根据所述尺寸比例以及所述第一移动轨迹,确定所述光标的第二移动轨迹。A second movement trajectory of the cursor is determined according to the size ratio and the first movement trajectory.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
获取所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例,并确定所述第一移动轨迹的终点;obtaining the size ratio between the first area where the moving button is located and the second area where the cursor is located, and determining the end point of the first moving track;
根据所述第一移动轨迹的终点以及所述尺寸比例,确定所述光标的终点;Determine the end point of the cursor according to the end point of the first movement track and the size ratio;
根据所述光标的起点以及所述光标的终点,确定所述光标的第二移动轨迹。A second movement track of the cursor is determined according to the starting point of the cursor and the ending point of the cursor.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹;determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory;
在所述第一移动轨迹与所述第二移动轨迹交叉时,根据所述第一移动轨迹或者所述第二移动轨迹控制所述光标移动;When the first movement track intersects the second movement track, controlling the cursor to move according to the first movement track or the second movement track;
在所述第一移动以及与所述第二移动轨迹不交叉时,根据所述第二移动轨迹控制所述光标移动。When the first movement does not intersect with the second movement track, the cursor is controlled to move according to the second movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述移动按钮所在的第一区域与所述光标所在的第二区域至少部分重叠。The first area where the move button is located and the second area where the cursor is located at least partially overlap.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述移动按钮所在的第一区域与所述光标所在的第二区域根据所述终端的屏幕方向确定,或者,所述第一区域以及所述第二区域通过用户设置。The first area where the move button is located and the second area where the cursor is located are determined according to the screen orientation of the terminal, or the first area and the second area are set by a user.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在检测到所述移动按钮的触发操作时,在终端的显示界面中确定第一区域以及第二区域;When detecting the trigger operation of the moving button, determine the first area and the second area in the display interface of the terminal;
在所述第一区域显示移动按钮,并根据所述移动按钮在所述第一区域的第一显示位置确定光标在所述第二区域的第二显示位置;Display a move button in the first area, and determine a second display position of the cursor in the second area according to the first display position of the move button in the first area;
在所述第二区域的所述第二显示位置显示光标。A cursor is displayed at the second display position of the second area.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在所述显示界面中确定空白区域或者停靠栏;determining a blank area or a docking bar in the display interface;
将所述空白区域或者所述停靠栏确定为第一区域,且将除所述空白区域的其他区域、除所述停靠栏的其他区域、或者所述显示界面确定为第二区域。The blank area or the dock bar is determined as the first area, and the other area except the blank area, the other area except the dock bar, or the display interface is determined as the second area.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
获取所述终端显示所述移动按钮时用户在所述显示界面上的可触控区域,以作为目标区域;Acquiring the touchable area of the user on the display interface when the terminal displays the moving button, as a target area;
在所述显示界面上确定除所述目标区域的其他区域;Determine other areas except the target area on the display interface;
将所述目标区域确定为第一区域,且将除所述目标区域的其他区域或者所述显示界面确定为第二区域。The target area is determined as the first area, and other areas except the target area or the display interface are determined as the second area.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述光标为隐藏式光标,在所述光标移动至所述显示界面的应用图标时,将所述应用图像设置为选中状态,并在检测到所述移动按钮点击操作时,控制选中状态的所述应用图标对应的应用程序响应所述点击操作对应的指令。The cursor is a hidden cursor. When the cursor moves to the application icon of the display interface, the application image is set to the selected state, and when the click operation of the moving button is detected, all the selected states are controlled. The application program corresponding to the application icon responds to the instruction corresponding to the click operation.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述光标为隐藏式光标,在所述光标移动至所述显示界面的应用图标时,显示所述光标。The cursor is a hidden cursor, and the cursor is displayed when the cursor moves to an application icon on the display interface.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
获取所述第一区域的第一移动轨迹;obtaining a first movement trajectory of the first area;
根据所述第一移动轨迹确定所述第一区域对应的第二区域的第二移动轨迹;determining a second movement trajectory of the second area corresponding to the first area according to the first movement trajectory;
根据所述第一移动轨迹移动所述第二移动轨迹。The second movement trajectory is moved according to the first movement trajectory.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在所述第一区域和所述第二区域中,至少有一个区域为可见区域。In the first area and the second area, at least one area is a visible area.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
确定所述第二移动轨迹移动的目标位置以及所述目标位置触发的指令,并响应所述指令。A target position moved by the second movement trajectory and an instruction triggered by the target position are determined, and the instruction is responded to.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述第二移动轨迹与所述第一移动轨迹的移动方向相同。The movement direction of the second movement track is the same as that of the first movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述第二移动轨迹与所述第一移动轨迹的移动方向不相同。The moving direction of the second movement track is different from that of the first movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
所述第二移动轨迹的移动方向与所述第一移动轨迹的移动方向之间的角度为预设角度,其中,任意一条移动轨迹相对另一条移动轨迹旋转预设角度后得到的旋转移动轨迹的移动方向,与未旋转的移动轨迹的移动方向相同。The angle between the movement direction of the second movement track and the movement direction of the first movement track is a preset angle, wherein any one of the movement tracks is rotated relative to the other movement track by a preset angle. The movement direction, which is the same as the movement direction of the non-rotated movement track.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在检测到所述第一移动轨迹移动至所述第一区域中的预设区域时,根据所述第一移动轨迹控制所述第二移动轨迹移动。When it is detected that the first movement trajectory moves to a preset area in the first area, the second movement trajectory is controlled to move according to the first movement trajectory.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在所述第二移动轨迹移动至所述第二区域中的应用图标上时,至少显示经过所述应用图标的所述第二移动轨迹。When the second movement trajectory moves onto the application icon in the second area, at least the second movement trajectory passing through the application icon is displayed.
在一实施例中,处理器1001可以用于调用存储器1002中存储的终端的控制程序,还执行以下操作:In one embodiment, the processor 1001 may be configured to call the control program of the terminal stored in the memory 1002, and further perform the following operations:
在所述第二移动轨迹移动至所述第二区域中的应用图标上时,将所述应用图标设置为选中状态。When the second movement track moves to the application icon in the second area, the application icon is set to a selected state.
基于上述终端的硬件构建,提出本发明终端的控制方法的实施例。Based on the hardware construction of the above-mentioned terminal, an embodiment of the control method of the terminal of the present invention is proposed.
参照图2,图2为本发明终端的控制方法的第一实施例,所述终端的控制方法包括:Referring to FIG. 2, FIG. 2 is a first embodiment of a method for controlling a terminal according to the present invention. The method for controlling a terminal includes:
步骤S100、获取终端的显示界面中移动按钮的第一移动轨迹;Step S100, acquiring the first movement track of the movement button in the display interface of the terminal;
在本实施例中,执行主体为具有显示屏的终端,终端通过显示屏显示运行界面,运行界面即为显示界面,显示界面中设有多个应用图标,每一个应用图标对应一个应用程序,在用户可对应用图标进行点击或者长按操作,也即显示屏为可触屏的显示屏。终端包括但不限于手机、Ipad、便携式笔记本电脑等。In this embodiment, the execution body is a terminal with a display screen, and the terminal displays an operation interface through the display screen, and the operation interface is the display interface. The display interface is provided with a plurality of application icons, each application icon corresponds to an application program, and The user can click or long-press the application icon, that is, the display screen is a touch screen display screen. Terminals include but are not limited to mobile phones, Ipads, portable notebook computers, and the like.
终端的显示界面包括两个区域,一个区域中设有移动按钮,另一个区域设置光标。为了便于描述,将设有移动按钮的区域定义为第一区域,将设有光标的区域定义为第二区域。移动按钮为虚拟按钮,用户可长按移动按钮以在第一区域中进行移动,在移动按钮移动时,光标随之在第二区域中移动。移动按钮以及光标均为可视状态,也即用户可在显示界面上识别出移动按钮以及光标。需要说明的是,第一区域为整个显示界面的一部分,而第二区域可以是整个显示界面,也可以是除第一区域之外的显示界面的其他区域,当然,第一区域与第二区域还可以是部分重叠,当然,第二区域与第一区域还可以完全重叠。参照图3,图3为本发明终端中显示界面的第一区域与第二区域的示意图,其中,图3中的a对应的终端的第一区域与第二区域构成整个显示界面(为了区别于第一区域与第二区域,a中第二区域与第一区域的边界并未与第一区域的边界重合);图3中的c对应的终端的第一区域是第二区域的一部分,第二区域为整个显示界面;图3中b对应的终端的第一区域与第二区域部分重叠。需要说明的是,图3中A、B、C、D、E、F、G、H均为应用图标。The display interface of the terminal includes two areas, one area is provided with a moving button, and the other area is provided with a cursor. For convenience of description, the area provided with the move button is defined as the first area, and the area provided with the cursor is defined as the second area. The move button is a virtual button, the user can long press the move button to move in the first area, and when the move button moves, the cursor moves in the second area accordingly. Both the moving button and the cursor are visible, that is, the user can recognize the moving button and the cursor on the display interface. It should be noted that the first area is a part of the entire display interface, while the second area may be the entire display interface or other areas of the display interface except the first area. Of course, the first area and the second area It can also be partially overlapped, and of course, the second area and the first area can also completely overlap. Referring to FIG. 3, FIG. 3 is a schematic diagram of the first area and the second area of the display interface in the terminal of the present invention, wherein, the first area and the second area of the terminal corresponding to a in FIG. 3 constitute the entire display interface (in order to distinguish it from The first area and the second area, the boundary between the second area and the first area in a does not coincide with the boundary of the first area); the first area of the terminal corresponding to c in FIG. 3 is a part of the second area, and the The second area is the entire display interface; the first area and the second area of the terminal corresponding to b in FIG. 3 partially overlap. It should be noted that A, B, C, D, E, F, G, and H in FIG. 3 are all application icons.
终端在检测到移动按钮移动时,获取移动按钮移动的轨迹,也即第一移动轨迹。When detecting the movement of the mobile button, the terminal acquires the trajectory of the movement of the mobile button, that is, the first movement trajectory.
步骤S200、根据所述第一移动轨迹控制所述显示界面中的光标移动。Step S200: Control the cursor movement in the display interface according to the first movement track.
终端在获取移动按钮的第一移动轨迹后,即可根据第一移动轨迹控制光标进行移动。After acquiring the first movement track of the moving button, the terminal can control the cursor to move according to the first movement track.
具体的,可将光标与移动按钮进行联动,移动按钮向左移动一个单位,光标也向左一个单位,因此,移动按钮的第一移动轨迹可视为光标的移动轨迹,终端按照第一移动轨迹对光标进行移动。或者,终端确定第一移动轨迹的起点以及终点,根据起点以及终点的坐标确定移动量,进而根据光标的起点以及移动量确定光标的终点,再将光标直接移动至终端;例如,移动量为向左移动5个单位,向下移动3个单位,若光标的坐标为(4,5),那么光标的终点的坐标即为(9,3)。Specifically, the cursor can be linked with the move button, the move button moves one unit to the left, and the cursor also moves one unit to the left. Therefore, the first movement track of the move button can be regarded as the movement track of the cursor, and the terminal follows the first movement track. Move the cursor. Alternatively, the terminal determines the start point and end point of the first movement track, determines the movement amount according to the coordinates of the start point and the end point, and then determines the end point of the cursor according to the start point and movement amount of the cursor, and then directly moves the cursor to the terminal; Move 5 units to the left and 3 units downward. If the coordinates of the cursor are (4, 5), the coordinates of the end point of the cursor are (9, 3).
此外,终端可设置x轴以及y轴的预设比例,在获得移动量后,根据预设比例对移动量进行修正,再根据修正的移动量以及光标的起点确定光标的终点。例如,移动量为向左移动5个单位,向下移动3个单位,x轴的预设比例为1:1,y轴的预设比例为1:3,则修正后的移动量为向左移动5个单位,向下移动9个单位,若光标的坐标为(4,5),那么光标的终点的坐标即为(9,-4)。In addition, the terminal can set a preset ratio of the x-axis and the y-axis, after obtaining the movement amount, correct the movement amount according to the preset ratio, and then determine the end point of the cursor according to the corrected movement amount and the starting point of the cursor. For example, if the movement amount is 5 units to the left and 3 units downward, the preset ratio of the x-axis is 1:1, and the preset ratio of the y-axis is 1:3, then the corrected movement amount is to the left Move 5 units and move down 9 units. If the coordinates of the cursor are (4, 5), then the coordinates of the end point of the cursor are (9, -4).
用户通过控制移动按钮进行移动,控制光标进行移动,从而使得用户可以对光标所在位置的应用图标所表征的应用程序进行对应的控制。用户可对光标进行点击操作以及长按操作,点击操作包括单击、双击、三击,不同的点击操作对应的不同的指令,例如,单击为选定指令,双击为打开指令;而长按操作对应的指令可为删除指令。用户还可对移动按钮进行点击操作,点击操作包括单击、双击、三击,用户对移动按钮的点击操作可视为对光标的点击操作。在本实施例,将光标的点击操作、光标的长按操作以及移动按钮的点击操作定义为预设操作,在检测到预设操作时,也即获取预设操作,确定光标所在位置对应的应用图标,从而控制应用图标对应的应用程序响应预设操作。当然,在光标所在位置为两个应用图标之间的空隙,视为光标所在位置不具备对应的应用图标,此时,终端不响应预设操作。The user moves by controlling the move button, and controls the cursor to move, so that the user can control the application program represented by the application icon at the position of the cursor correspondingly. The user can perform click operation and long-press operation on the cursor. Click operations include single-click, double-click, and triple-click. Different click operations correspond to different commands. For example, single-click is the selected command, and double-click is the open command; while long-pressing The instruction corresponding to the operation can be a delete instruction. The user can also perform a click operation on the move button, and the click operation includes single click, double click, and triple click. The user click operation on the move button can be regarded as a click operation on the cursor. In this embodiment, the click operation of the cursor, the long press operation of the cursor, and the click operation of the moving button are defined as preset operations. When the preset operation is detected, the preset operation is acquired, and the application corresponding to the position of the cursor is determined. icon, so as to control the application corresponding to the application icon to respond to the preset operation. Of course, if the position of the cursor is a gap between two application icons, it is considered that the position of the cursor does not have a corresponding application icon, and at this time, the terminal does not respond to the preset operation.
在本实施例提供的技术方案中,终端获取显示界面中移动按钮的移动轨迹,进而根据移动轨迹控制显示界面中光标的移动,使得用户通过控制移动按钮移动,即可控制光标移动至显示界面上的对应位置以供用户进行操作,避免用户更换掌握终端的手势,终端的操作简便。In the technical solution provided by this embodiment, the terminal acquires the movement track of the mobile button in the display interface, and then controls the movement of the cursor in the display interface according to the movement track, so that the user can control the cursor to move to the cursor on the display interface by controlling the movement of the movement button. The corresponding position is provided for the user to operate, so that the user can avoid changing the gesture of grasping the terminal, and the terminal is easy to operate.
参照图4,图4为图2中步骤S200的细化流程示意图,所述步骤S200包括:Referring to FIG. 4 , FIG. 4 is a schematic diagram of a refinement process of step S200 in FIG. 2 . The step S200 includes:
步骤S210,根据所述第一移动轨迹确定所述显示界面中的光标的第二移动轨迹;Step S210, determining a second movement trajectory of the cursor in the display interface according to the first movement trajectory;
步骤S220,根据所述第二移动轨迹控制所述光标移动。Step S220, controlling the cursor to move according to the second movement track.
在本实施例中,第一区域尺寸和第二区域的尺寸不同,故移动按钮单次移动的距离与光标单次移动的距离有所不同。对此,需要根据移动按钮的第一移动轨迹确定光标的第二移动轨迹。In this embodiment, the size of the first area and the size of the second area are different, so the single movement distance of the moving button is different from the single movement distance of the cursor. In this regard, the second movement trajectory of the cursor needs to be determined according to the first movement trajectory of the moving button.
终端中存储有第一区域与第二区域之间的尺寸比例,该尺寸比例即为预设尺寸比例。预设尺寸比例包括预设宽比例以及预设长比例。在终端得到第一移动轨迹后,即可根据预设宽比例以及预设长比例对第一移动轨迹进行修正,得到光标的第二移动轨迹。例如,第一区域与第二区域的预设宽比例为1:1.5,预设长比例为1:3,那么对第一移动轨迹进行横向放大1.5倍,并对第一移动轨迹进行纵向放大3倍,得到光标的第二移动轨迹。A size ratio between the first area and the second area is stored in the terminal, and the size ratio is a preset size ratio. The preset size ratio includes a preset width ratio and a preset length ratio. After the terminal obtains the first movement track, the first movement track can be corrected according to the preset width ratio and the preset length ratio, so as to obtain the second movement track of the cursor. For example, if the preset width ratio of the first area and the second area is 1:1.5, and the preset length ratio is 1:3, then the first movement track is horizontally enlarged by 1.5 times, and the first movement track is vertically enlarged by 3 times to get the second movement track of the cursor.
在确定光标的第二移动轨迹后,终端即控制光标按照第一移动轨迹进行移动。After determining the second movement track of the cursor, the terminal controls the cursor to move according to the first movement track.
在本实施例提供的技术方案中,终端根据移动按钮的第一移动轨迹确定光标的第二移动轨迹,进而根据第二移动轨迹控制光标准确的进行移动。In the technical solution provided in this embodiment, the terminal determines the second movement trajectory of the cursor according to the first movement trajectory of the moving button, and then controls the cursor to move accurately according to the second movement trajectory.
参照图5,图5为图4中步骤S210的一细化流程示意图,所述步骤S210包括:Referring to FIG. 5 , FIG. 5 is a schematic flow chart of a refinement of step S210 in FIG. 4 . The step S210 includes:
步骤S211,确定所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例;Step S211, determining the size ratio between the first area where the move button is located and the second area where the cursor is located;
步骤S212,根据所述尺寸比例以及所述第一移动轨迹,确定所述光标的第二移动轨迹。Step S212: Determine a second movement track of the cursor according to the size ratio and the first movement track.
第一区域与第二区域之间的尺寸比例较小时,表征移动按钮移动细微的距离,光标则移动一个较大的距离,用户需要对移动按钮进行细致的操作,使得光标移动至用户想要控制的应用程序。可以理解的是,在第一区域与第二区域之间的尺寸比例较小时,针对移动按钮的移动操作具有一定的要求。When the size ratio between the first area and the second area is small, it means that the mobile button moves a small distance, and the cursor moves a large distance. s application. It can be understood that, when the size ratio between the first area and the second area is small, there are certain requirements for the moving operation of the moving button.
对此,在本实施例中,终端提供第一区域的设定功能,用户可基于该设定功能设定第一区域的尺寸大小。在用户设定第一区域的尺寸大小后,终端确定第一区域与第二区域之间的尺寸比例,从而根据尺寸比例对第一移动轨迹进行修正,从而得到光标的第二移动轨迹,根据尺寸比例以及第一移动轨迹确定第二移动轨迹请参照上述描述,在此不再一一赘述。In this regard, in this embodiment, the terminal provides a setting function of the first area, and the user can set the size of the first area based on the setting function. After the user sets the size of the first area, the terminal determines the size ratio between the first area and the second area, so as to correct the first movement track according to the size ratio, thereby obtaining the second movement track of the cursor, according to the size Please refer to the above description for the ratio and the first movement trajectory to determine the second movement trajectory, which will not be repeated here.
需要说明的是,由于第一区域与第二区域部分重叠,故第一移动轨迹与第二移动轨迹会出现交叉的情况。对此,在确定第二移动轨迹后,终端确定第一移动轨迹与第二移动轨迹是否交叉,也即第一移动轨迹以及第二移动轨迹是否具有共同的坐标,若具有共同的坐标,即可判定第一移动轨迹与第二移动轨迹交叉。对此,终端可根据第一移动轨迹或者第二移动轨迹控制光标进行移动。而在当第一移动轨迹与第二移动轨迹不交叉时,则直接根据第二移动轨迹控制光标移动。It should be noted that since the first area and the second area partially overlap, the first movement track and the second movement track may intersect. In this regard, after determining the second movement trajectory, the terminal determines whether the first movement trajectory and the second movement trajectory intersect, that is, whether the first movement trajectory and the second movement trajectory have common coordinates. It is determined that the first movement trajectory and the second movement trajectory intersect. In this regard, the terminal may control the cursor to move according to the first movement track or the second movement track. When the first movement track and the second movement track do not intersect, the cursor movement is directly controlled according to the second movement track.
在本实施例提供的技术方案中,终端确定移动按钮所在第一区域以及光标所在第二区域之间的尺寸比例,根据尺寸比例以及第一移动轨迹准确的确定光标的第二移动轨迹。In the technical solution provided in this embodiment, the terminal determines the size ratio between the first area where the move button is located and the second area where the cursor is located, and accurately determines the second movement track of the cursor according to the size ratio and the first movement track.
参照图6,图6为图4中步骤S210的另一细化流程示意图,所述步骤S210包括:Referring to FIG. 6 , FIG. 6 is a schematic diagram of another detailed flow chart of step S210 in FIG. 4 . The step S210 includes:
步骤S213,获取所述移动按钮所在的第一区域与所述光标所在的第二区域之间的尺寸比例,并确定所述第一移动轨迹的终点;Step S213, obtaining the size ratio between the first area where the moving button is located and the second area where the cursor is located, and determining the end point of the first movement track;
步骤S214,根据所述第一移动轨迹的终点以及所述尺寸比例,确定所述光标的终点;Step S214, determining the end point of the cursor according to the end point of the first movement track and the size ratio;
步骤S215,根据所述光标的起点以及所述光标的终点,确定所述光标的第二移动轨迹。Step S215: Determine a second movement track of the cursor according to the starting point of the cursor and the ending point of the cursor.
在本实施例中,光标的第二移动轨迹与并不是严格按照移动按钮的第一轨迹确定的,也即第二移动轨迹并不是由第一移动轨迹经尺寸比例进行缩放后得到。终端仅需保证第二移动轨迹的终点是与第一移动轨迹的终点是相对应的即可,可以理解的是,光标的起点与终点之间的任何连线都可视为第二移动轨迹。In this embodiment, the second movement track of the cursor is not determined strictly according to the first track of the moving button, that is, the second movement track is not obtained by scaling the size of the first movement track. The terminal only needs to ensure that the end point of the second movement track corresponds to the end point of the first movement track. It can be understood that any connection between the start point and the end point of the cursor can be regarded as the second movement track.
对此,终端先获取第一区域与第二区域之间的尺寸比例,并确定第一移动轨迹的终点,第一移动轨迹的终点具有对应的坐标,该坐标经尺寸比例放缩后,即可得到光标的终点的坐标。终端再获取光标的起点,即可根据光标的起点以及终点构建第二移动轨迹,光标的终点以及起点之间的任意连线均为第二移动轨迹。In this regard, the terminal first obtains the size ratio between the first area and the second area, and determines the end point of the first movement track. The end point of the first movement track has corresponding coordinates. After the coordinates are scaled by the size ratio, you can Get the coordinates of the end point of the cursor. After the terminal obtains the starting point of the cursor, a second movement trajectory can be constructed according to the starting point and the ending point of the cursor, and any connection between the ending point and the starting point of the cursor is the second moving trajectory.
在本实施例提供的技术方案中,终端获取移动按钮所在第一区域与光标所在第二区域之间的尺寸比例,并确定第一移动轨迹的终点,从而根据第一移动轨迹的终点以及尺寸比例确定光标的终点,从而根据光标的终点以及起点确定光标的第二移动轨迹。In the technical solution provided by this embodiment, the terminal obtains the size ratio between the first area where the moving button is located and the second area where the cursor is located, and determines the end point of the first movement track, so as to determine the end point of the first movement track and the size ratio according to the size ratio The end point of the cursor is determined, so that the second movement track of the cursor is determined according to the end point and the start point of the cursor.
参照图7,图7为本发明终端的控制方法的第二实施例,基于上述实施例,所述步骤S100之前,还包括:Referring to FIG. 7, FIG. 7 is a second embodiment of a method for controlling a terminal according to the present invention. Based on the foregoing embodiment, before step S100, the method further includes:
步骤S300,在检测到所述移动按钮的触发操作时,在终端的显示界面中确定第一区域以及第二区域;Step S300, when detecting the triggering operation of the moving button, determine a first area and a second area in the display interface of the terminal;
步骤S400,在所述第一区域显示移动按钮,并根据所述移动按钮在所述第一区域的第一显示位置确定光标在所述第二区域的第二显示位置;Step S400, displaying a move button in the first area, and determining a second display position of the cursor in the second area according to the first display position of the move button in the first area;
步骤S500,在所述第二区域的所述第二显示位置显示光标。Step S500, displaying a cursor at the second display position of the second area.
在本实施例中,终端设有单手模式,在当终端运行单手模式时,终端的显示界面上显示移动按钮以及光标,单手模式即可视为移动按钮的触发操作。用户可摇晃预设次数的终端以启动单手模式;用户可以输出预设语音指令启动单手模式,预设语音指令可以是用户语音,也可以是预设铃声或者预设音乐;用户还可做出预设手势使得终端启动单手模式;当然,用户对终端显示的单手模式进行确定操作时,终端启动单手模式。可以理解的时,单手模式的触发操作包括对终端预设次数的摇晃操作、接收预设语音指令、接收预设手势以及单手模式的确定操作中至少一个。In this embodiment, the terminal is provided with a one-handed mode. When the terminal operates in the one-handed mode, a mobile button and a cursor are displayed on the display interface of the terminal, and the one-handed mode can be regarded as a triggering operation of the mobile button. The user can shake the terminal a preset number of times to activate the one-handed mode; the user can output a preset voice command to activate the one-handed mode, and the preset voice command can be the user's voice, preset ringtones or preset music; the user can also do A preset gesture causes the terminal to activate the one-handed mode; of course, when the user performs a determination operation on the one-handed mode displayed on the terminal, the terminal activates the one-handed mode. It can be understood that the triggering operation of the one-handed mode includes at least one of shaking the terminal for a preset number of times, receiving a preset voice command, receiving a preset gesture, and determining the one-handed mode.
在终端启动单手模式后,终端确定第一区域以及第二区域,并在第一区域中显示移动按钮,移动按钮可显示在第一区域中的任意位置,对此不做限定。移动按钮在第一区域的显示位置定义为第一显示位置,终端根据第一显示位置确定光标在第二区域的第二显示位置,也即光标在第二区域的显示位置需要根据移动按钮在第一区域的显示位置进行确定。第二显示位置也可根据尺寸比例以及第一显示位置确定。例如,第一显示位置为(4,5),第一区域与第二区域之间的宽比例为1:1,长比例为1:3,第二区域为整个显示界面,则第二显示位置为(4,15)。After the terminal starts the one-handed mode, the terminal determines the first area and the second area, and displays a move button in the first area, and the move button can be displayed at any position in the first area, which is not limited. The display position of the move button in the first area is defined as the first display position, and the terminal determines the second display position of the cursor in the second area according to the first display position. The display position of an area is determined. The second display position can also be determined according to the size ratio and the first display position. For example, if the first display position is (4,5), the width ratio between the first area and the second area is 1:1, the length ratio is 1:3, and the second area is the entire display interface, then the second display position is (4,15).
在确定第二显示位置后,即可在第二区域中的第二显示位置显示光标。After the second display position is determined, the cursor can be displayed at the second display position in the second area.
在本实施例中,在第一区域的第一显示位置显示移动按钮后,即可根据第一显示位置确定光标在第二区域的第二显示位置,使得移动按钮处于第一区域的边界时,光标处于第二区域的边界,也即使得光标能够在整个第二区域进行移动,而不会存在移动盲区。In this embodiment, after the move button is displayed at the first display position of the first area, the second display position of the cursor in the second area can be determined according to the first display position, so that when the move button is at the boundary of the first area, The cursor is located at the boundary of the second area, that is, the cursor can move in the entire second area without moving blind spots.
参照图8,图8为图7中步骤S300的一细化流程示意图,所述步骤S300包括:Referring to FIG. 8 , FIG. 8 is a schematic flow chart of a refinement of step S300 in FIG. 7 . The step S300 includes:
步骤S310,在所述显示界面中确定空白区域或者停靠栏;Step S310, determining a blank area or a dock in the display interface;
步骤S320,将所述空白区域或者所述停靠栏确定为第一区域,且将除所述空白区域的其他区域、除所述停靠栏的其他区域、或者所述显示界面确定为第二区域。Step S320, determining the blank area or the docking bar as the first area, and determining other areas except the blank area, other areas except the docking bar, or the display interface as the second area.
在本实施例中,停靠栏为dock栏,停靠栏为显示界面中最下方的区域,该区域中设有多个应用图标,在终端的显示界面进行切换时,停靠栏中的应用图标不会发生变化。In this embodiment, the dock bar is the dock bar, and the dock bar is the lowermost area in the display interface. There are multiple application icons in this area. When the display interface of the terminal is switched, the application icons in the dock bar will not be displayed. change.
由于停靠栏位于终端显示界面的最下方,便于用户的单手操作;且由于停靠栏中应用图标不会随着显示界面的切换进行变动,停靠栏的尺寸不会发生变化,因而可将停靠栏作为第一区域,并将显示界面上除第一区域的其他区域作为第二区域,第二区域以及第一区域构成整个显示界面,从而使得光标无需在停靠栏中进行移动,以避免光标和移动按钮重合,造成对光标和移动按钮同时进行点击操作。Because the docking bar is located at the bottom of the terminal display interface, it is convenient for users to operate with one hand; and since the application icon in the docking bar will not change with the switching of the display interface, the size of the docking bar will not change, so the docking bar can be As the first area, and other areas on the display interface except the first area are used as the second area, the second area and the first area constitute the entire display interface, so that the cursor does not need to be moved in the docking bar to avoid the cursor and movement The buttons overlap, resulting in the simultaneous click operation of the cursor and the move button.
此外,停靠栏的尺寸较小,不便于用户进行操作。对此,终端确定空白区域,以将空白区域作为第一区域,空白区域可以是用户自行设定的。空白区域中可含有应用图标,也可不含有应用图标。在空白区域中含有应用图标时,在进行移动按钮的滑动操作时,若滑动操作对应的移动轨迹经过应用图像时,应用图标对应的应用程序并不会进行响应,该应用程序仅会响应点击操作;故而,在第一区域中含有应用图标时,移动按钮显示在应用图标之间的空隙,并不会显示在应用图标上。此外,用户可还将空白区域的应用程序移动至第二区域。进一步的,终端可确定当前显示界面未设有应用图标的区域,将此区域设置为第一区域,其他区域设置为第二区域。In addition, the small size of the dock makes it inconvenient for the user to operate. In this regard, the terminal determines a blank area to use the blank area as the first area, and the blank area may be set by the user. The blank space may or may not contain an app icon. When there is an application icon in the blank area, when the sliding operation of the mobile button is performed, if the movement track corresponding to the sliding operation passes through the application image, the application corresponding to the application icon will not respond, and the application will only respond to the click operation. ; Therefore, when an application icon is contained in the first area, the move button is displayed in the space between the application icons, and will not be displayed on the application icon. In addition, the user can also move the application in the blank area to the second area. Further, the terminal may determine an area where the current display interface is not provided with an application icon, set this area as the first area, and set other areas as the second area.
当然,第二区域可以为整个显示界面,并不限定于除第一区域的其他区域。Of course, the second area may be the entire display interface, and is not limited to other areas except the first area.
在本实施例提供的技术方案中,终端在显示界面中确定空白区域或者停靠栏,并将停靠栏或者空白区域作为第一区域,且将除停靠栏之外的其他区域作为第二区域、除空白区域的其他区域或者显示界面作为第二区域。In the technical solution provided by this embodiment, the terminal determines a blank area or a dock bar in the display interface, and uses the dock bar or blank area as the first area, and uses other areas except the dock bar as the second area, except Other areas of the blank area or the display interface are used as the second area.
参照图9,图9为图7中步骤S300的另一细化流程示意图,所述步骤S300包括:Referring to FIG. 9 , FIG. 9 is another detailed flow chart of step S300 in FIG. 7 . The step S300 includes:
步骤S330,获取所述终端显示移动按钮时用户在所述显示界面上的可触控区域,以作为目标区域;Step S330, acquiring the touchable area of the user on the display interface when the terminal displays the move button, as the target area;
步骤S340,在所述显示界面上确定除所述目标区域的其他区域;Step S340, determining other areas except the target area on the display interface;
步骤S350,将所述目标区域确定为第一区域,且将除所述目标区域的其他区域或者所述显示界面确定为第二区域。Step S350, determining the target area as the first area, and determining other areas except the target area or the display interface as the second area.
在本实施例中,终端在运行单手模式时,也即终端在显示移动按钮时,终端可采集用户对显示屏的触控位置,进而根据各个触控位置描边以得到区域,该区域即为用户在单手模式下对显示界面的可触控的目标区域。终端可将目标区域确定为第一区域,将除目标区域的其他区域确定为第二区域,或者将整个显示界面作为第二区域。当然,用户可直接在终端上进行目标区域的设置。In this embodiment, when the terminal is running the one-handed mode, that is, when the terminal is displaying the move button, the terminal can collect the touch position of the user on the display screen, and then stroke the border according to each touch position to obtain the area, which is the It is the touchable target area of the display interface for the user in one-handed mode. The terminal may determine the target area as the first area, other areas except the target area as the second area, or the entire display interface as the second area. Of course, the user can directly set the target area on the terminal.
在本实施例提供的技术方案中,终端在运行单手模式时,获取用户在显示界面上的可触控区域,从而将可触控区域作为第一区域,将除可触控区域之外的其他区域作为第二区域或者将整个显示界面作为第二区域,使得终端生成符合用户操作习惯的第一区域。In the technical solution provided by this embodiment, when the terminal runs the one-handed mode, the terminal acquires the touchable area on the display interface of the user, so that the touchable area is used as the first area, and the touchable area other than the touchable area is used as the first area. Other areas are used as the second area or the entire display interface is used as the second area, so that the terminal generates the first area that conforms to the user's operating habits.
在一实施例中,用户启动终端的自动旋转功能,也即终端会自动更改屏幕的方向。对此,第一区域与第二区域根据终端的屏幕方向进行确定。也即终端在更换屏幕方向后,显示界面的横向以及纵向尺寸发生变化,应用图标在显示界面上重新排列,终端重新确定第一区域以及第二区域,第一区域与第二区域的确定可参照上述描述,在此不再一一赘述。In one embodiment, the user activates the automatic rotation function of the terminal, that is, the terminal automatically changes the orientation of the screen. In this regard, the first area and the second area are determined according to the screen orientation of the terminal. That is, after the terminal changes the screen orientation, the horizontal and vertical sizes of the display interface change, the application icons are rearranged on the display interface, and the terminal re-determines the first area and the second area. The determination of the first area and the second area can be referred to. The above descriptions are not repeated here.
参照图10,图10为图7中步骤S500的细化流程示意图,所述步骤S500包括:Referring to FIG. 10 , FIG. 10 is a schematic diagram of a refinement process of step S500 in FIG. 7 . The step S500 includes:
步骤S510,确定所述显示界面的显示背景以及显示亮度;Step S510, determining the display background and display brightness of the display interface;
步骤S520,根据所述显示背景以及所述显示亮度确定光标的颜色;Step S520, determining the color of the cursor according to the display background and the display brightness;
步骤S530,控制所述光标以确定的颜色在所述第二区域的所述第二显示位置显示。Step S530, controlling the cursor to display the determined color in the second display position of the second area.
在本实施例中,终端可对光标的颜色进行设置。具体的,终端确定显示界面的显示背景以及显示亮度,从而根据显示背景以及显示亮度确定光标的颜色,例如,在显示背景为黑色时,且显示亮度较小时,那么光标的颜色可为灰白色;在显示背景为白色,且显示亮度较大时,光标的颜色为黑色。可以理解的是,终端根据显示背景以及显示亮度确定光标的颜色,使得光标容易被用户所感知。当然,用户也可自定义光标的颜色。In this embodiment, the terminal can set the color of the cursor. Specifically, the terminal determines the display background and display brightness of the display interface, so as to determine the color of the cursor according to the display background and display brightness. For example, when the display background is black and the display brightness is low, the color of the cursor can be gray and white; When the display background is white and the display brightness is high, the color of the cursor is black. It can be understood that the terminal determines the color of the cursor according to the display background and the display brightness, so that the cursor can be easily perceived by the user. Of course, the user can also customize the color of the cursor.
在确定光标的颜色后,终端以确定的颜色在第二显示位置显示光标。After determining the color of the cursor, the terminal displays the cursor in the second display position in the determined color.
在本实施例提供的技术方案中,终端确定显示界面的显示背景以及显示亮度,从而根据显示背景以及显示亮度确定光标的颜色,最后控制光比以确定的颜色在第二显示位置进行显示,使得用户容易感知光标的位置。In the technical solution provided by this embodiment, the terminal determines the display background and the display brightness of the display interface, thereby determines the color of the cursor according to the display background and the display brightness, and finally controls the light ratio to display the determined color at the second display position, so that The user can easily perceive the position of the cursor.
在一实施例中,光标为隐藏式光标,隐藏式光标即为不可见光标。终端在根据第一移动轨迹或者第二移动轨迹移动隐藏式光标时,光标会经过应用图标,此时,应用图标被设置为选中状态,选中状态下的应用图标与未选中状态的图标不同。例如,选中状态下的应用图标相较于未选中的应用图标凸显于显示界面,或者,选中状态下的应用图标为预设颜色。可以理解的是,选中状态表征为应用图标被用户所感知以及注意的一种状态。In one embodiment, the cursor is a hidden cursor, and the hidden cursor is an invisible cursor. When the terminal moves the hidden cursor according to the first movement track or the second movement track, the cursor will pass the application icon. At this time, the application icon is set to the selected state, and the application icon in the selected state is different from the icon in the unselected state. For example, the application icon in the selected state is highlighted on the display interface compared to the unselected application icon, or the application icon in the selected state is a preset color. It can be understood that the selected state is represented as a state in which the application icon is perceived and noticed by the user.
在当应用图标处于选中状态且用户想启动该应用图标对应的应用程序,用户可对移动按钮进行点击操作,点击操作可分为单击、双击、三击等操作,不同次数的点击操作对应不同的指令。例如,单击操作为显示应用图标的功能选项、双击操作为应用图标对应的应用程序的启动指令,而三击操作为应用图标的删除指令。对此,终端在检测到移动按钮的点击操作时,控制选中状态下的应用图标对应的应用程序响应点击操作对应的指令。When the application icon is selected and the user wants to start the application corresponding to the application icon, the user can click the mobile button. The click operation can be divided into single click, double click, triple click and other operations. instruction. For example, the single-click operation is to display the function options of the application icon, the double-click operation is the startup instruction of the application corresponding to the application icon, and the triple-click operation is the deletion instruction of the application icon. In this regard, when the terminal detects the click operation of the move button, the terminal controls the application program corresponding to the application icon in the selected state to respond to the instruction corresponding to the click operation.
在一实施例中,光标为隐藏式光标。在当终端根据第一移动轨迹或者第二移动轨迹控制光标移动时,光标会经过某个应用图标,此时,终端将光标进行显示,从而指示用户光标所在位置对应的应用图标,以供用户判断是否对该应用图标进行对应的操作。In one embodiment, the cursor is a hidden cursor. When the terminal controls the cursor to move according to the first movement track or the second movement track, the cursor will pass an application icon. At this time, the terminal displays the cursor to indicate the application icon corresponding to the user's cursor position for the user to judge. Whether to perform the corresponding operation on the application icon.
本发明还提供一种终端的控制方法。The present invention also provides a terminal control method.
参照图11,图11为本发明终端的控制方法的第三实施例,终端的显示界面包括至少一个第一区域以及至少一个第二区域,所述终端的控制方法包括以下步骤:Referring to FIG. 11, FIG. 11 is a third embodiment of a terminal control method according to the present invention. The display interface of the terminal includes at least one first area and at least one second area, and the control method of the terminal includes the following steps:
步骤S600,获取所述第一区域的第一移动轨迹;Step S600, acquiring the first movement track of the first area;
在本实施例中,终端的显示界面包括至少一个第一区域以及至少一个第二区域,一个第一区域对应一个第二区域。在当终端的显示界面仅包括一个第一区域以及一个第二区域时,可参照图3所示的显示界面。在当终端的显示界面包括多个第一区域以及第二区域时,请参照图12。需要说明的是,第一区域以及第二区域为不可见状态。此外,由于用户可以设置第一区域以及第二区域,因此,可将第一区域、第二区域、或者、第一区域与第二区域设置为可见区域,可见区域指的是区域的边界线可见。In this embodiment, the display interface of the terminal includes at least one first area and at least one second area, and one first area corresponds to one second area. When the display interface of the terminal includes only one first area and one second area, reference may be made to the display interface shown in FIG. 3 . When the display interface of the terminal includes a plurality of first areas and second areas, please refer to FIG. 12 . It should be noted that the first area and the second area are invisible. In addition, since the user can set the first area and the second area, the first area, the second area, or the first area and the second area can be set as the visible area, and the visible area means that the boundary line of the area is visible .
步骤S700,根据所述第一移动轨迹确定所述第一区域对应的第二区域的第二移动轨迹;Step S700, determining a second movement trajectory of the second area corresponding to the first area according to the first movement trajectory;
用户可对第一区域进行对应的操作,操作可为移动操作,故而,第一区域具有对应的第一移动轨迹。终端在确定第一区域的第一移动轨迹后,确定第一区域对应的第二区域,从而根据第一移动轨迹确定第二区域的第二移动轨迹。第一移动轨迹以及第二移动轨迹的确定参照上述实施例,在此不再一一赘述。The user can perform a corresponding operation on the first area, and the operation can be a moving operation. Therefore, the first area has a corresponding first movement track. After determining the first movement trajectory of the first area, the terminal determines the second area corresponding to the first area, so as to determine the second movement trajectory of the second area according to the first movement trajectory. The determination of the first movement trajectory and the second movement trajectory refers to the above-mentioned embodiments, and details are not repeated here.
步骤S800,根据所述第一移动轨迹移动所述第二移动轨迹。Step S800, moving the second movement track according to the first movement track.
第一移动轨迹表征用户手指在第一区域的移动轨迹,而第二移动轨迹则可表征为虚拟不可见的用户的手指在第二区域的移动轨迹。因此,终端在确定第二移动轨迹后,根据第一移动轨迹的移动控制虚拟不可见的用户的手指在第二区域按照第二移动轨迹进行移动。The first movement trajectory represents the movement trajectory of the user's finger in the first area, and the second movement trajectory may represent the virtual invisible movement trajectory of the user's finger in the second area. Therefore, after determining the second movement trajectory, the terminal controls the virtual invisible user's finger to move according to the second movement trajectory in the second area according to the movement of the first movement trajectory.
第二移动轨迹为一条虚拟的路线,该虚拟的路线具有对应的目标位置。目标位置可为第二移动轨迹的终点所在的位置。目标位置可为应用图标,此时,目标位置对应的指令可为应用图标的打开指令。目标位置还可为菜单,此时,目标位置对应的指令为菜单打开指令。当然,第二移动轨迹可为某个应用的解锁方式,例如,终端将某个应用图标隐藏,该应用图标在进行显示时,需要在显示界面上输入轨迹。可以理解的是,第二移动轨迹本身可为触发某个指令,第二移动轨迹对应的目标位置也可触发某个指令,对此不做限定。The second movement track is a virtual route, and the virtual route has a corresponding target position. The target position may be the position where the end point of the second movement track is located. The target location may be an application icon, and in this case, the instruction corresponding to the target location may be an opening instruction of the application icon. The target position can also be a menu. In this case, the command corresponding to the target position is a menu opening command. Of course, the second movement track may be an unlocking method of an application. For example, the terminal hides an application icon. When the application icon is displayed, a track needs to be input on the display interface. It can be understood that the second movement track itself may trigger a certain instruction, and the target position corresponding to the second movement track may also trigger a certain command, which is not limited.
在本实施例提供的技术方案中,终端的显示界面包括至少一个第一区域以及至少一个第二区域,终端在获取第一区域的第一移动轨迹后,根据第一移动轨迹确定第一区域对应的第二区域的第二移动轨迹,进而根据第一移动轨迹移动第二移动轨迹,使得用户通过在第一区域进行操作,对第二区域中的应用程序进行操作,避免用户更换掌握终端的手势,终端的操作简便。In the technical solution provided by this embodiment, the display interface of the terminal includes at least one first area and at least one second area, and after acquiring the first movement track of the first area, the terminal determines the corresponding first area according to the first movement track The second movement trajectory of the second area in the second area, and then move the second movement trajectory according to the first movement trajectory, so that the user can operate the application program in the second area by operating in the first area, so as to prevent the user from changing the gesture of grasping the terminal , the terminal is easy to operate.
在一实施例中,第一移动轨迹与第二移动轨迹的移动方向相同。可以理解的是,第一移动轨迹的线路走向趋势与第二移动轨迹的线路走向趋势一致,例如,第一移动轨迹由先上升曲线以及后下降的曲线构成,那么第二移动轨迹也为先上升曲线以及后下降的曲线构成;第一移动轨迹为曲线,且曲线相对显示界面的下边界凸起,那么第二移动轨迹也为曲线且相对显示界面的下边界凸起。需要说明的是,在第一移动轨迹与第二移动轨迹的移动方向相同时,第一移动轨迹的起点相对第一区域的位置,与第二移动轨迹的起点相对第二区域的位置相同,例如,第一移动轨迹的起点靠近第一区域的左边界,那么第二移动轨迹的起点靠近第二区域的左边界。In one embodiment, the moving directions of the first movement track and the second movement track are the same. It can be understood that the trend of the line of the first movement track is consistent with the trend of the line of the second movement track. For example, if the first movement track is composed of a curve that rises first and then a curve that falls later, the second movement track is also rising first. The first movement trajectory is a curve, and the curve is convex relative to the lower boundary of the display interface, then the second movement trajectory is also a curve and is convex relative to the lower boundary of the display interface. It should be noted that when the moving directions of the first movement track and the second movement track are the same, the position of the starting point of the first movement track relative to the first area is the same as the position of the starting point of the second movement track relative to the second area, for example , the starting point of the first movement track is close to the left border of the first area, then the starting point of the second moving track is close to the left border of the second area.
参照图13,图13为本实施例中第一区域中第一移动轨迹与第二区域中第二移动轨迹的示意图,箭头指示为移动轨迹的移动方向。Referring to FIG. 13 , FIG. 13 is a schematic diagram of the first movement track in the first area and the second movement track in the second area in this embodiment, and the arrows indicate the movement directions of the movement tracks.
在一实施例中,第一移动轨迹的移动方向与第二移动轨迹的移动方向不相同,第一移动轨迹的线路走向趋势与第二移动轨迹的线路走向趋势不一致。具体的,第二区域可以理解为用户较难触控的显示区域,而终端一般情形下,只会控制第二移动轨迹终点所对应的应用图标,而不会控制第二移动轨迹经过的应用图标。因此,第二移动轨迹实则可以根据第一移动轨迹的起点以及终点进行确定,确定的流程请参照上述实施例的说明,在此不再一一赘述,故而第一移动轨迹与第二移动轨迹的移动方向可不相同,但第一移动轨迹的起点终点构成的直线线路走向,与第二移动轨迹的起点以及终点构成的直线线路走向一致。In one embodiment, the movement direction of the first movement track is different from the movement direction of the second movement track, and the line trend of the first movement track is inconsistent with the line trend trend of the second movement track. Specifically, the second area can be understood as a display area that is difficult for the user to touch. In general, the terminal will only control the application icon corresponding to the end point of the second movement track, but will not control the application icon that the second movement track passes through. . Therefore, the second movement trajectory can actually be determined according to the starting point and the end point of the first movement trajectory. Please refer to the description of the above-mentioned embodiment for the determination process, which will not be repeated here. Therefore, the difference between the first movement trajectory and the second movement trajectory is The moving directions may be different, but the direction of the straight line formed by the start and end points of the first movement track is consistent with the direction of the straight line formed by the start and end points of the second movement track.
此外,在第一移动轨迹的移动方向与第二移动轨迹的移动方向不相同时,第二移动轨迹的起点以及终点的直线线路走向与第一移动终端的起点以及终点之间的直线线路走向是相反的。可以理解的是,第一移动轨迹的走向(走向即可视为移动方向)在第一区域中是从左至右的路线,而第二移动轨迹在第二区域的走向即为从右至左。也即第一移动轨迹的移动方向与第二移动轨迹的移动方向可相反。可以理解的是,移动方向的相反是移动方向不同的特定例子,此时,以第一移动轨迹上任意一点为旋转点旋转180°得到的旋转移动轨迹的移动方向与第二移动轨迹的移动方向一致,或者,以第二移动轨迹上任意一点为旋转点旋转180°得到的旋转移动轨迹的移动方向与第一移动轨迹的移动方向一致,具体请参照图14。In addition, when the moving direction of the first moving track is different from the moving direction of the second moving track, the straight line direction between the starting point and the end point of the second moving track and the straight line direction between the starting point and the end point of the first mobile terminal is The opposite of. It can be understood that the direction of the first movement trajectory (the direction can be regarded as the movement direction) is a route from left to right in the first area, and the direction of the second movement trajectory in the second area is from right to left. . That is, the movement direction of the first movement track and the movement direction of the second movement track may be opposite. It can be understood that the opposite of the moving direction is a specific example of different moving directions. At this time, the moving direction of the rotational moving trajectory obtained by taking any point on the first moving trajectory as the rotation point and rotating 180° is the same as the moving direction of the second moving trajectory. The movement direction of the rotational movement trajectory obtained by taking any point on the second movement trajectory as the rotation point and rotated by 180° is consistent with the movement direction of the first movement trajectory. Please refer to FIG. 14 for details.
当然,终端还可设置第一移动轨迹的移动方向与第二移动轨迹移动方向呈一定的角度(预设角度),而不限于180°,例如,二者的移动方向之间的角度呈45°,那么任意一条移动轨迹相对另一条移动轨迹旋转45°后,旋转的移动轨迹的移动方向与未旋转的移动轨迹的移动方向一致。Of course, the terminal can also set the movement direction of the first movement track to form a certain angle (preset angle) with the movement direction of the second movement track, which is not limited to 180°, for example, the angle between the movement directions of the two is 45° , then after any one movement trajectory is rotated 45° relative to the other movement trajectory, the movement direction of the rotated movement trajectory is the same as the movement direction of the non-rotated movement trajectory.
在一实施例中,第二移动轨迹为虚拟不可见的,因此,用户无法得知第一区域的移动操作是否在第二区域选定了某个应用程序。对此,终端在检测到第二移动轨迹路经第二区域中的应用图标时,也即第二移动轨迹移动至第二区域的应用图标时,显示第二移动轨迹,或者显示经过应用图标的第二移动轨迹,通过显示的第二移动轨迹使得用户得知移动操作对应的第一移动轨迹在第二区域映射的第二移动轨迹,便于用户停止在第一区域的移动操作,以选定第二区域中第二移动轨迹当前路经的应用图标。第二移动轨迹移动至应用图标指的是第二移动轨迹的终点位于应用图标之上。此外,在当第二移动轨迹的终点位于应用图标之间的空隙,终端可对第二移动轨迹进行隐藏。In one embodiment, the second movement track is virtually invisible, so the user cannot know whether the movement operation in the first area selects a certain application in the second area. In this regard, when the terminal detects that the second movement trajectory passes through the application icon in the second area, that is, when the second movement trajectory moves to the application icon in the second area, the terminal displays the second movement trajectory, or displays the application icon passing through the application icon. The second movement track, through the displayed second movement track, allows the user to know the second movement track mapped by the first movement track corresponding to the movement operation in the second area, so that the user can stop the movement operation in the first area and select the first movement track in the second area. The application icon currently passed by the second movement track in the second area. Moving the second movement track to the application icon means that the end point of the second movement track is located above the application icon. In addition, when the end point of the second movement track is located in the gap between the application icons, the terminal may hide the second movement track.
另外,在当第二移动轨迹的移动至第二区域中的应用图标上时,可将应用图标设置为选中状态,也即使得用户得知自身的移动操作在第二区域的映射操作对应的位置为选中状态的应用图标。In addition, when the second movement track moves to the application icon in the second area, the application icon can be set to the selected state, that is, the user can know the position corresponding to the mapping operation in the second area. The icon for the selected application.
参照图15,图15为图11中步骤S800的细化流程示意图,所述步骤S800包括:Referring to FIG. 15 , FIG. 15 is a schematic diagram of a detailed flow chart of step S800 in FIG. 11 , the step S800 includes:
步骤S810,在检测到所述第一移动轨迹移动至所述第一区域中的预设区域时,根据所述第一移动轨迹控制所述第二移动轨迹移动。Step S810, when it is detected that the first movement trajectory moves to a preset area in the first area, control the second movement trajectory to move according to the first movement trajectory.
在本实施例中,第一区域的边界与显示界面的边界一致或者距离较小,因此,用户在无意识触碰到显示界面的边界时,会触碰到第一区域的边界,从而导致终端确定第二区域的第二移动轨迹,也即存在误操作。对此,在第一区域中设置预设区域,在当第一移动轨迹移动至预设区域时,即可判定用户需要对第二区域的应用程序进行操作,此时,再根据第一移动轨迹控制第二移动轨迹移动。In this embodiment, the boundary of the first area is consistent with the boundary of the display interface or the distance is relatively small. Therefore, when the user touches the boundary of the display interface unconsciously, the boundary of the first area will be touched, thereby causing the terminal to determine The second movement track of the second area, that is, there is a misoperation. In this regard, a preset area is set in the first area. When the first movement trajectory moves to the preset area, it can be determined that the user needs to operate the application program in the second area. At this time, according to the first movement trajectory Control the movement of the second movement track.
在本实施例提供的技术方案中,第一区域中设置预设区域,在当第一移动轨迹移动至预设区域时,即可判定用户需要对第二区域的应用程序进行操作,避免终端响应用户的误操作。In the technical solution provided by this embodiment, a preset area is set in the first area, and when the first movement track moves to the preset area, it can be determined that the user needs to operate the application program in the second area to avoid terminal response User's misoperation.
本发明还提供一种终端,所述终端包括显示屏、存储器、处理器以及存储在所述存储器并可在所述处理器上运行的终端的控制程序,所述显示屏与所述处理器连接,所述终端的控制程序被所述处理器执行时实现如上实施例所述的终端的控制方法的各个步骤。The present invention also provides a terminal, the terminal includes a display screen, a memory, a processor, and a terminal control program stored in the memory and running on the processor, and the display screen is connected to the processor , when the control program of the terminal is executed by the processor, each step of the method for controlling the terminal described in the above embodiment is implemented.
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有终端的控制程序,所述终端的控制程序被处理器执行时实现如上实施例所述的终端的控制方法的各个步骤。The present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a terminal control program, and when the terminal control program is executed by a processor, implements each of the terminal control methods described in the above embodiments. step.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是电视机,手机,计算机,装置,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a TV, a mobile phone, a computer, an apparatus, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (23)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910795130.1A CN110489035B (en) | 2019-08-23 | 2019-08-23 | Terminal, control method thereof, and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910795130.1A CN110489035B (en) | 2019-08-23 | 2019-08-23 | Terminal, control method thereof, and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489035A true CN110489035A (en) | 2019-11-22 |
CN110489035B CN110489035B (en) | 2025-02-11 |
Family
ID=68554464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910795130.1A Active CN110489035B (en) | 2019-08-23 | 2019-08-23 | Terminal, control method thereof, and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489035B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111443860A (en) * | 2020-03-25 | 2020-07-24 | 维沃移动通信有限公司 | Touch method and electronic device |
CN114089878A (en) * | 2021-10-21 | 2022-02-25 | 吕贺 | Remote control method, terminal, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009301172A (en) * | 2008-06-11 | 2009-12-24 | Victor Co Of Japan Ltd | Cursor movement control method, cursor movement control device, and cursor movement control program |
WO2016141597A1 (en) * | 2015-03-12 | 2016-09-15 | 华为技术有限公司 | Touch control method, device, terminal and graphical user interface thereof |
CN107360312A (en) * | 2017-06-28 | 2017-11-17 | 努比亚技术有限公司 | Control method, equipment and the computer of screen can storage medium |
CN107613094A (en) * | 2017-08-17 | 2018-01-19 | 珠海格力电器股份有限公司 | Method for operating mobile terminal by one hand and mobile terminal |
CN108595076A (en) * | 2018-05-01 | 2018-09-28 | 苏州鸥鹄智能科技有限公司 | A kind of electronic equipment touch-control exchange method |
-
2019
- 2019-08-23 CN CN201910795130.1A patent/CN110489035B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009301172A (en) * | 2008-06-11 | 2009-12-24 | Victor Co Of Japan Ltd | Cursor movement control method, cursor movement control device, and cursor movement control program |
WO2016141597A1 (en) * | 2015-03-12 | 2016-09-15 | 华为技术有限公司 | Touch control method, device, terminal and graphical user interface thereof |
CN107360312A (en) * | 2017-06-28 | 2017-11-17 | 努比亚技术有限公司 | Control method, equipment and the computer of screen can storage medium |
CN107613094A (en) * | 2017-08-17 | 2018-01-19 | 珠海格力电器股份有限公司 | Method for operating mobile terminal by one hand and mobile terminal |
CN108595076A (en) * | 2018-05-01 | 2018-09-28 | 苏州鸥鹄智能科技有限公司 | A kind of electronic equipment touch-control exchange method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111443860A (en) * | 2020-03-25 | 2020-07-24 | 维沃移动通信有限公司 | Touch method and electronic device |
CN111443860B (en) * | 2020-03-25 | 2021-06-22 | 维沃移动通信有限公司 | Touch method and electronic device |
CN114089878A (en) * | 2021-10-21 | 2022-02-25 | 吕贺 | Remote control method, terminal, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110489035B (en) | 2025-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20250123698A1 (en) | Devices, methods, and graphical user interfaces for an electronic device interacting with a stylus | |
US11386280B2 (en) | Device, method, and graphical user interface for handling data encoded in machine-readable format | |
CN107632895B (en) | Information sharing method and mobile terminal | |
US9671880B2 (en) | Display control device, display control method, and computer program | |
US8823749B2 (en) | User interface methods providing continuous zoom functionality | |
JP6054892B2 (en) | Application image display method, electronic apparatus, and computer program for multiple displays | |
CN102332024B (en) | Touch control type browser for portable mobile terminal | |
CN114467078A (en) | User interface adaptation based on inferred content occlusion and user intent | |
US20110060986A1 (en) | Method for Controlling the Display of a Touch Screen, User Interface of the Touch Screen, and an Electronic Device using The Same | |
CN105824545A (en) | Display adjusting method for display interface and mobile terminal | |
US11221759B2 (en) | Transitions and optimizations for a foldable computing device operating in a productivity mode | |
WO2018019050A1 (en) | Gesture control and interaction method and device based on touch-sensitive surface and display | |
US20140101587A1 (en) | Information processing apparatus and method | |
US10735606B2 (en) | Display device, image processing device and non-transitory recording medium determining continuity of operation two or more display areas | |
US9377944B2 (en) | Information processing device, information processing method, and information processing program | |
CN110489035B (en) | Terminal, control method thereof, and computer readable storage medium | |
WO2023193479A1 (en) | Control method and apparatus for one-handed operation mode, and electronic device and storage medium | |
KR101294201B1 (en) | Portable device and operating method thereof | |
US20150268736A1 (en) | Information processing method and electronic device | |
CN112684996A (en) | Control method and device and electronic equipment | |
CN112689818A (en) | Anti-disturbance method, electronic device and computer readable storage medium | |
CN117666856A (en) | Control methods, devices and equipment for virtual interactive interfaces in extended real space | |
KR20120062053A (en) | Touch screen control how the character of the virtual pet | |
CN114816212A (en) | Interface interaction method, interface interaction device, electronic device and storage medium | |
KR101692848B1 (en) | Control method of virtual touchpad using hovering and terminal performing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |