[go: up one dir, main page]

CN103106033B - Control method, device and terminal unit that application interface moves - Google Patents

Control method, device and terminal unit that application interface moves Download PDF

Info

Publication number
CN103106033B
CN103106033B CN201310038633.7A CN201310038633A CN103106033B CN 103106033 B CN103106033 B CN 103106033B CN 201310038633 A CN201310038633 A CN 201310038633A CN 103106033 B CN103106033 B CN 103106033B
Authority
CN
China
Prior art keywords
application interface
movement
moving
distance
moving distance
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.)
Active
Application number
CN201310038633.7A
Other languages
Chinese (zh)
Other versions
CN103106033A (en
Inventor
朱才
孙大庆
李伟星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310038633.7A priority Critical patent/CN103106033B/en
Publication of CN103106033A publication Critical patent/CN103106033A/en
Priority to PCT/CN2013/090898 priority patent/WO2014117619A1/en
Application granted granted Critical
Publication of CN103106033B publication Critical patent/CN103106033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

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 invention discloses a method, device and terminal equipment for controlling the movement of an application interface, belonging to the field of interface control. The method includes: respectively detecting the moving distances of two or more touch screen touch points that trigger the movement of the application interface; adding the moving distances of the two or more touch points to calculate the total moving distance of the touch screen operations; According to the total moving distance, the movement of the application interface is controlled. In the present invention, when the user needs to check the position far from the current display position in the application interface, the moving distance of two or more touch points operated by the touch screen is added to obtain the total moving distance of the touch screen operation, and the application is displayed according to the total moving distance. The extension of the interface or the switching of the current application interface can double the moving speed of the application interface when the user performs a touch operation, thereby simplifying the user operation.

Description

控制应用界面移动的方法、装置和终端设备Method, device and terminal equipment for controlling movement of application interface

技术领域technical field

本发明涉及界面控制领域,特别涉及一种控制应用界面移动的方法、装置和终端设备。The invention relates to the field of interface control, in particular to a method, device and terminal equipment for controlling movement of an application interface.

背景技术Background technique

随着移动终端的发展,越来越多的移动终端具有触摸显示屏,用户可通过用手指在触摸显示屏上的触屏操作实现各种不同的功能,当需要对应用界面进行切换或移动时,用户可以用手指在触摸显示屏所显示的应用界面上进行移动操作,来查看应用界面的延伸区域或切换场景。例如:针对操作系统桌面,用户单指接触触摸显示屏并直线滑动,可以查看桌面不同页上的应用程序。又例如:针对通讯录界面,用户单指接触触摸显示屏并直线滑动,可以滚动列表从而查看不同的联系人。With the development of mobile terminals, more and more mobile terminals have touch screens, and users can realize various functions through touch screen operations on the touch screen with their fingers. When it is necessary to switch or move the application interface , the user can use a finger to perform a moving operation on the application interface displayed on the touch screen to view an extended area of the application interface or switch scenes. For example: for the desktop of the operating system, the user can view the applications on different pages of the desktop by touching the touch screen with one finger and sliding in a straight line. Another example: for the address book interface, the user touches the touch screen with one finger and slides in a straight line, and can scroll the list to view different contacts.

在实现本发明的过程中,发明人发现至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems:

如果用户希望查看应用界面中距离当前显示位置较远的位置,需要执行多次单指操作,操作繁琐。If the user wants to view a location in the application interface that is far from the current display location, it needs to perform multiple single-finger operations, which is cumbersome.

发明内容Contents of the invention

为了简化移动应用界面的操作,本发明实施例提供了一种控制应用界面移动的方法、装置和终端设备。所述技术方案如下:In order to simplify the operation of the mobile application interface, the embodiments of the present invention provide a method, an apparatus and a terminal device for controlling the movement of the application interface. Described technical scheme is as follows:

第一方面,提供了一种控制应用界面移动的方法,所述方法包括:In a first aspect, a method for controlling movement of an application interface is provided, the method comprising:

分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离;Separately detect the movement distance of two or more touch points in the touch screen operation that triggers the movement of the application interface;

将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

根据所述移动总距离,控制应用界面的移动。According to the total moving distance, the movement of the application interface is controlled.

结合第一方面,本发明实施例的第一种可能实现方式中,分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离,包括:In combination with the first aspect, in the first possible implementation of the embodiment of the present invention, respectively detecting the moving distance of two or more touch points in the touch screen operation that triggers the movement of the application interface includes:

分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;Separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface;

根据每个触点的移动轨迹,获取每个触点的移动距离。According to the movement track of each touch point, the moving distance of each touch point is obtained.

结合本发明实施例的第一种可能实现方式,本发明实施例的第二种可能实现方式中,根据每个触点的移动轨迹,获取每个触点的移动距离,包括:In combination with the first possible implementation of the embodiment of the present invention, in the second possible implementation of the embodiment of the present invention, the moving distance of each contact is obtained according to the movement track of each contact, including:

获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;Obtain the straight-line distance between the starting point coordinates and the end point coordinates of the movement track of each contact point as the moving distance of each contact point;

和/或,and / or,

获取所述每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。The arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point is acquired as the moving distance of each contact point.

结合本发明实施例的第二种可能实现方式,本发明实施例的第三种可能实现方式中,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离,包括:In combination with the second possible implementation of the embodiment of the present invention, in the third possible implementation of the embodiment of the present invention, the arc distance between the starting point coordinates and the ending point coordinates of the movement track of each contact is obtained as The travel distance of each touch point, including:

根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;Obtain the straight-line distance between every two adjacent coordinate points according to the preset number of coordinate points on the moving track of each contact point;

将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为所述每个触点的移动距离。The obtained straight-line distances are added together, and the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is obtained as the moving distance of each contact point.

结合上述任一可能的实现方式,本发明实施例的第四种可能实现方式中,根据所述移动总距离,控制应用界面的移动,包括:In combination with any of the above possible implementation manners, in a fourth possible implementation manner of the embodiment of the present invention, controlling the movement of the application interface according to the total moving distance includes:

根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;According to the ratio of the total moving distance to the preset threshold, control the currently displayed application interface to switch to the application interface corresponding to the ratio;

或,or,

控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。Controlling the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface.

第二方面,提供了一种控制应用界面移动的装置,所述装置包括:In a second aspect, a device for controlling movement of an application interface is provided, the device comprising:

检测模块,用于分别检测触发应用界面移动的触屏操作的两个以上触点的移动距离;The detection module is used to respectively detect the movement distance of two or more touch points that trigger the touch screen operation of the movement of the application interface;

计算模块,用于将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;A calculation module, configured to add the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

处理模块,用于根据所述移动总距离,控制应用界面的移动。A processing module, configured to control the movement of the application interface according to the total moving distance.

结合第二方面,本发明实施例的第一种可能实现方式中,所述检测模块包括:With reference to the second aspect, in the first possible implementation manner of the embodiment of the present invention, the detection module includes:

移动轨迹检测单元,用于分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;A movement trajectory detection unit is used to separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface;

移动距离获取单元,用于根据每个触点的移动轨迹,获取每个触点的移动距离。The moving distance acquiring unit is configured to acquire the moving distance of each touch point according to the moving track of each touch point.

结合本发明实施例的第一种可能实现方式,本发明实施例的第二种可能实现方式中,所述移动距离获取单元用于获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;In combination with the first possible implementation of the embodiment of the present invention, in the second possible implementation of the embodiment of the present invention, the moving distance obtaining unit is used to obtain the starting point coordinates and the ending point coordinates of the moving track of each contact point The straight-line distance between is used as the moving distance of each contact point;

和/或,and / or,

所述移动距离获取单元用于获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。The moving distance obtaining unit is used to obtain the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point as the moving distance of each contact point.

结合本发明实施例的第二种可能实现方式,本发明实施例的第三种可能实现方式中,所述移动距离获取单元用于根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为所述每个触点的移动距离。In combination with the second possible implementation of the embodiment of the present invention, in the third possible implementation of the embodiment of the present invention, the moving distance acquisition unit is used to , to obtain the straight-line distance between every two adjacent coordinate points; add the obtained straight-line distances to obtain the arc distance between the starting point coordinates and the end point coordinates of the movement track of each contact, as the The distance traveled by each touch point.

结合上述任一可能的实现方式,本发明实施例的第四种可能实现方式中,所述处理模块包括:In combination with any of the above possible implementation manners, in a fourth possible implementation manner of the embodiment of the present invention, the processing module includes:

第一处理单元,用于根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;The first processing unit is configured to control the currently displayed application interface to switch to the application interface corresponding to the ratio according to the ratio of the total moving distance to the preset threshold;

第二处理单元,用于控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。The second processing unit is configured to control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface.

第三方面,提供了一种终端设备,所述终端设备包括:In a third aspect, a terminal device is provided, and the terminal device includes:

触摸显示屏;touch screen;

一个或多个处理器;one or more processors;

存储器;和memory; and

一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块具有如下功能:One or more modules, the one or more modules are stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:

分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离;Separately detect the movement distance of two or more touch points in the touch screen operation that triggers the movement of the application interface;

将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

根据所述移动总距离,控制应用界面的移动。According to the total moving distance, the movement of the application interface is controlled.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

本发明实施例提供的控制应用界面移动的方法、装置和终端设备,能够在用户需要查看应用界面中距离当前显示位置较远的位置时,根据触屏操作的触点的移动距离计算得到触屏操作的移动总距离,根据该移动总距离显示当前应用界面的延伸部分或切换当前应用界面,在用户执行一次手势操作时,使应用界面的移动速度加倍,从而简化用户操作。The method, device, and terminal device for controlling the movement of the application interface provided by the embodiments of the present invention can calculate the touch screen according to the moving distance of the touch point operated by the touch screen when the user needs to view a position in the application interface that is far from the current display position. According to the total movement distance of the operation, the extension of the current application interface is displayed or the current application interface is switched. When the user performs a gesture operation, the movement speed of the application interface is doubled, thereby simplifying user operations.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些举例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some examples of the embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative work.

图1是本发明实施例提供的控制应用界面移动的方法的流程图;FIG. 1 is a flowchart of a method for controlling movement of an application interface provided by an embodiment of the present invention;

图2是本发明实施例提供的控制应用界面移动的方法的流程图;Fig. 2 is a flowchart of a method for controlling movement of an application interface provided by an embodiment of the present invention;

图3是本发明实施例提供的控制应用界面移动的装置的结构示意图。Fig. 3 is a schematic structural diagram of a device for controlling movement of an application interface provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施例作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明实施例中,终端设备指向为用户提供语音和/或数据连通性的设备,包括无线终端或有线终端。无线终端可以是具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备,经无线接入网与一个或多个核心网进行通信的移动终端。例如,无线终端可以是移动电话(或称为“蜂窝”电话)和具有移动终端的计算机。又如,无线终端也可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。In the embodiment of the present invention, a terminal device refers to a device that provides voice and/or data connectivity for a user, including a wireless terminal or a wired terminal. The wireless terminal may be a handheld device with a wireless connection function, or other processing device connected to a wireless modem, and a mobile terminal that communicates with one or more core networks via a wireless access network. Wireless terminals may be, for example, mobile telephones (or "cellular" telephones) and computers with mobile terminals. As another example, the wireless terminal may also be a portable, pocket, hand-held, computer built-in or vehicle-mounted mobile device.

图1是本发明实施例提供的第一种控制应用界面移动的方法的流程图。本发明实施例的执行主体是终端设备,参见图1,所述方法包括:Fig. 1 is a flow chart of the first method for controlling the movement of an application interface provided by an embodiment of the present invention. The execution subject of the embodiment of the present invention is a terminal device. Referring to FIG. 1, the method includes:

101:分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离;101: respectively detecting the movement distance of two or more touch points in the touch screen operation that triggers the movement of the application interface;

其中,触屏操作是指在终端设备的触摸显示屏上由用户的接触触发的操作,该触屏操作用于触发应用界面移动,该触屏操作具体可以为具有一定位移的滑动操作,根据应用界面的类型不同,该滑动操作所对应的界面移动方式也不同,对于具有分页显示功能的应用界面来说,滑动操作对应的界面移动方式为翻页,对于具有连续显示功能的应用界面来说,滑动操作对应的界面移动方式为移动当前显示的应用界面,以显示该应用界面的延伸部分。Wherein, the touch screen operation refers to the operation triggered by the user's contact on the touch screen of the terminal device, and the touch screen operation is used to trigger the movement of the application interface. The touch screen operation may specifically be a sliding operation with a certain displacement. The type of interface is different, and the interface moving mode corresponding to the sliding operation is also different. For the application interface with paging display function, the interface moving mode corresponding to the sliding operation is page turning. For the application interface with continuous display function, The interface moving manner corresponding to the sliding operation is to move the currently displayed application interface to display an extended part of the application interface.

本发明实施例中具有两个以上触点的触屏操作可以看作是两个以上独立的触屏操作。In the embodiment of the present invention, the touch screen operation with more than two touch points can be regarded as more than two independent touch screen operations.

具体地,分别检测每个触点的起始位置和结束位置之间的距离,获取两个以上触点的移动距离。其中,所述触点的起始位置和结束位置可以由触点的坐标确定。Specifically, the distance between the start position and the end position of each contact is detected respectively, and the moving distances of more than two contacts are obtained. Wherein, the starting position and the ending position of the touch point may be determined by the coordinates of the touch point.

需要说明的是,该步骤101可以具体为当捕获到任一触屏操作时,检测该触屏操作是否为触发应用界面移动的触屏操作,当检测到触发应用界面移动的触屏操作时,分别检测该触屏操作的两个以上触点的移动距离,否则,执行触屏操作匹配的其他界面操作。It should be noted that this step 101 can be specifically, when any touch screen operation is captured, detecting whether the touch screen operation is a touch screen operation that triggers the movement of the application interface, and when the touch screen operation that triggers the movement of the application interface is detected, Detect the moving distance of two or more touch points of the touch screen operation respectively, otherwise, perform other interface operations matching the touch screen operation.

102:将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;102: Add the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

在本发明实施例中,将检测到的所述触屏操作的每个触点的移动距离相加,可以计算得到所述触屏操作的移动总距离。In the embodiment of the present invention, the total moving distance of the touch screen operation can be calculated by adding the detected moving distances of each touch point of the touch screen operation.

103:根据所述移动总距离,控制应用界面的移动。103: Control the movement of the application interface according to the total moving distance.

在本发明实施例中,步骤101和102是基于当前显示的应用界面进行的,具体地,终端设备分别检测当前显示的应用界面上触发应用界面移动的触屏操作中两个以上触点的移动距离,根据所述两个以上触点的移动距离,计算所述触屏操作的移动总距离。In the embodiment of the present invention, steps 101 and 102 are performed based on the currently displayed application interface. Specifically, the terminal device respectively detects the movement of two or more touch points in the touch screen operation that triggers the movement of the application interface on the currently displayed application interface. Distance, according to the moving distance of the two or more touch points, calculate the total moving distance of the touch screen operation.

根据应用的类型不同,该应用界面包括但不限于应用程序界面和操作系统界面。According to different types of applications, the application interface includes but not limited to an application program interface and an operating system interface.

其中,应用程序界面可以为具有分页显示功能的应用程序界面或具有连续显示功能的应用程序界面,如,具有分页显示功能的应用程序界面可以是以翻页形式浏览的电子书的界面、电子相册的界面;具有连续显示功能的应用程序界面可以是以列表、菜单等形式显示的界面,如,具有连续显示功能的应用程序界面可以为通讯录界面、管理软件界面等。Wherein, the application program interface can be an application program interface with a page-by-page display function or an application program interface with a continuous display function. interface; the application program interface with continuous display function may be an interface displayed in the form of a list, menu, etc., for example, the application program interface with continuous display function may be an address book interface, a management software interface, and the like.

操作系统界面可以为具有分页显示功能的操作系统界面或具有连续显示功能的操作系统界面,如,具有分页显示功能的操作系统界面可以是桌面显示界面;具有连续显示功能的操作系统界面可以为短信息管理界面、设定界面或应用管理器界面等等。The operating system interface can be an operating system interface with paging display function or an operating system interface with continuous display function. For example, the operating system interface with paging display function can be a desktop display interface; the operating system interface with continuous display function can be short Information management interface, setting interface or application manager interface, etc.

根据计算得到的所述触屏操作的移动总距离,可以控制当前显示的应用界面的移动,针对不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式可以包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面等。According to the calculated total movement distance of the touch screen operation, the movement of the currently displayed application interface can be controlled. For application interfaces with different display modes, there are correspondingly different movement modes, and the movement modes can include moving the application interface and Display an extended part of the application interface or switch the currently displayed interface, etc.

本发明实施例提供的方法,能够在用户需要查看应用界面中距离当前显示位置较远的位置时,根据触屏操作的触点的移动距离计算得到触屏操作的移动总距离,根据该移动总距离显示应用界面的延伸部分或切换当前应用界面,在用户执行一次手势操作时,使应用界面的移动速度加倍,从而简化用户操作。The method provided by the embodiment of the present invention can calculate the total moving distance of the touch screen operation according to the moving distance of the touch point operated on the touch screen when the user needs to view a position far from the current display position in the application interface. When the user performs a gesture operation, the moving speed of the application interface is doubled, thereby simplifying the user operation.

可选地,在图1所示实施例的基础上,步骤101“分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离”可以包括步骤101a和101b:Optionally, on the basis of the embodiment shown in FIG. 1 , step 101 "respectively detect the moving distances of two or more touch points in the touch screen operation that triggers the movement of the application interface" may include steps 101a and 101b:

101a:分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;101a: respectively detecting the movement track of each touch point in the touch screen operation that triggers the movement of the application interface;

其中,所述移动轨迹是指用户手指接触触摸显示屏直至用户手指离开触摸显示屏之间触点在所述触摸显示屏上的移动路线的轨迹;所述移动轨迹包括但不限于直线和弧线等形状。Wherein, the movement track refers to the track of the moving route of the touch point on the touch display screen between the user's finger touching the touch display screen until the user's finger leaves the touch display screen; the movement track includes but is not limited to a straight line and an arc and other shapes.

101b:根据每个触点的移动轨迹,获取每个触点的移动距离。101b: Obtain the moving distance of each touch point according to the movement track of each touch point.

具体地,检测到所述触屏操作中每个触点的移动轨迹后,根据每个触点的移动轨迹是直线还是弧线,可以采用不同的方式获取每个触点的移动距离,例如,当所述每个触点的移动轨迹是直线时,该移动轨迹的起始位置和结束位置之间的直线距离就可以认为是所述每个触点的移动距离。Specifically, after detecting the moving track of each touch point in the touch screen operation, according to whether the moving track of each touch point is a straight line or an arc, different ways can be used to obtain the moving distance of each touch point, for example, When the moving track of each contact point is a straight line, the linear distance between the starting position and the ending position of the moving track can be regarded as the moving distance of each contact point.

可选地,在图1所示实施例的基础上,步骤101b“根据每个触点的移动轨迹,获取每个触点的移动距离”采用以下步骤101b-1、101b-2中的任一种形式:Optionally, on the basis of the embodiment shown in FIG. 1, step 101b "acquire the moving distance of each touch point according to the moving track of each touch point" adopts any of the following steps 101b-1 and 101b-2 form:

101b-1:获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;101b-1: Obtain the straight-line distance between the starting point coordinates and the end point coordinates of the movement trajectory of each contact point as the moving distance of each contact point;

在本发明实施例中,获取每个触点的移动轨迹的起始点坐标和结束点坐标,计算每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,将该距离作为所述每个触点的移动距离。In the embodiment of the present invention, the starting point coordinates and the ending point coordinates of the moving track of each contact are obtained, the straight-line distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is calculated, and the distance is taken as The moving distance of each contact point.

101b-2:获取所述每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。101b-2: Obtain the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point as the moving distance of each contact point.

在本发明实施例中,获取每个触点的移动轨迹的起始点坐标和结束点坐标,计算每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,将该距离作为所述每个触点的移动距离。In the embodiment of the present invention, the starting point coordinates and the ending point coordinates of the moving track of each contact are obtained, the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is calculated, and the distance as the moving distance of each contact point.

需要说明的是,当移动轨迹为直线或弧线时,均可以使用上述任一种方法获取移动距离,而为了更精确的确定移动距离,还可以先对移动轨迹的类型进行判断,也即是判断触点的移动轨迹是直线还是弧线,当检测到所述每个触点的移动轨迹是直线时,优选地,获取每个触点的移动轨迹的起始点坐标和结束点坐标,计算每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,将该距离作为所述每个触点的移动距离;而当检测到所述每个触点的移动轨迹是弧线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标,计算每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,将该距离获取为所述每个触点的移动距离。It should be noted that when the moving track is a straight line or an arc, any of the above methods can be used to obtain the moving distance, and in order to determine the moving distance more accurately, the type of moving track can also be judged first, that is, Judging whether the moving track of the contact point is a straight line or an arc, when it is detected that the moving track of each contact point is a straight line, preferably, the starting point coordinates and the ending point coordinates of the moving track of each contact point are obtained, and each The linear distance between the starting point coordinates and the end point coordinates of the moving track of each contact point is used as the moving distance of each contact point; and when it is detected that the moving track of each contact point is an arc , obtain the starting point coordinates and end point coordinates of the moving track of each contact point, calculate the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point, and obtain the distance as the The moving distance of a touch point.

可选地,在图1所示实施例的基础上,该步骤101b-2“根据每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,获取每个触点的移动距离”包括步骤(一)和步骤(二):Optionally, on the basis of the embodiment shown in FIG. 1, the step 101b-2 "acquires the arc distance between the starting point coordinates and the ending point coordinates of each contact point's movement trajectory, and obtains the "Moving distance" includes step (1) and step (2):

步骤(一):根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;Step (1): Obtain the straight-line distance between every two adjacent coordinate points according to the preset number of coordinate points on the moving track of each contact point;

在本发明实施例中,根据预设个数,在所述移动轨迹上选取与预设个数相等数目的坐标点,获取每两个相邻坐标点之间的直线距离,优选地,可以在移动轨迹上均匀选取预设个坐标点。In the embodiment of the present invention, according to the preset number, a number of coordinate points equal to the preset number is selected on the moving trajectory, and the straight-line distance between every two adjacent coordinate points is obtained. Evenly select preset coordinate points on the moving track.

其中,所述预设个数可以由开发人员设置,也可以由用户个性化设置,为了保证获取弧线距离的准确性,可以将预设个数设置为较大数值,预设个数的数值越大,获取到的弧线距离越准确。Wherein, the preset number can be set by the developer, or can be personalized by the user. In order to ensure the accuracy of obtaining the arc distance, the preset number can be set to a larger value, and the value of the preset number The larger the value, the more accurate the obtained arc distance.

步骤(二):将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为所述每个触点的移动距离。Step (2): Add up the obtained straight-line distances to obtain the arc distance between the starting point coordinates and the ending point coordinates of the movement trajectory of each contact point as the moving distance of each contact point.

具体地,将获取到的弧线轨迹上的每两个相邻坐标点之间的直线距离相加,将计算出的距离总和作为该弧线轨迹的起始点坐标和结束点坐标之间的弧线距离,每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离即为所述每个触点的移动距离。Specifically, add the straight-line distances between every two adjacent coordinate points on the obtained arc trajectory, and use the calculated sum of the distances as the arc between the starting point coordinates and the end point coordinates of the arc trajectory Line distance, the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point is the moving distance of each contact point.

举例来说,检测到某一触点S的起始点为A,结束点为B,当预设个数为4时,即在A与B之间的移动轨迹上选取4个坐标点,假设选取的坐标点为C、D、E、F,分别计算出所述六个坐标点A、B、C、D、E、F中每两个相邻坐标点之间的直线距离,将所述六个坐标点A、B、C、D、E、F中每相邻两个坐标点之间的直线距离相加,得到的总距离就是坐标点A和B之间的弧线距离,该距离可以获取为触点S的移动距离。For example, it is detected that the starting point of a contact S is A, and the ending point is B. When the preset number is 4, that is, select 4 coordinate points on the moving track between A and B. Suppose you select The coordinate points are C, D, E, F, respectively calculate the linear distance between every two adjacent coordinate points in the six coordinate points A, B, C, D, E, F, and divide the six Add the straight-line distance between every two adjacent coordinate points in coordinate points A, B, C, D, E, F, and the total distance obtained is the arc distance between coordinate points A and B, which can be Obtained as the moving distance of the touch point S.

可选地,在图1所示实施例的基础上,根据应用界面的不同,该步骤103“根据所述移动总距离,控制应用界面的移动”包括步骤103a或103b:Optionally, on the basis of the embodiment shown in FIG. 1 , depending on the application interface, the step 103 "controlling the movement of the application interface according to the total moving distance" includes step 103a or 103b:

103a:根据所述移动总距离与预设阈值的比值,控制所述当前显示的应用界面切换至与所述比值相应的应用界面;103a: According to the ratio of the total moving distance to a preset threshold, control the currently displayed application interface to switch to an application interface corresponding to the ratio;

此方式一般应用于当前应用界面为具有分页显示功能的应用界面的场景下,例如桌面显示界面、电子相册界面等。This method is generally applied in a scenario where the current application interface is an application interface with a paging display function, such as a desktop display interface, an electronic photo album interface, and the like.

其中,所述预设阈值用于定义用户单指进行触屏操作时翻一页对应的移动距离;所述预设阈值可以由技术人员在开发时设置,还可以由用户在使用过程中设置。Wherein, the preset threshold is used to define the movement distance corresponding to turning a page when the user performs a single-finger touch screen operation; the preset threshold can be set by technicians during development, and can also be set by users during use.

具体地,当所述移动总距离与预设阈值的比值大于等于N且小于N+1时,可以确定所述移动总距离与预设阈值的比值为N,根据所述比值N,可以控制所述当前显示的应用界面切换至相应的应用界面,也即是控制当前显示的应用界面翻页至当前页数加N页的界面,其中,N为正整数;Specifically, when the ratio of the total moving distance to the preset threshold is greater than or equal to N and less than N+1, it can be determined that the ratio of the total moving distance to the preset threshold is N, and according to the ratio N, all The currently displayed application interface is switched to the corresponding application interface, that is, the currently displayed application interface is controlled to turn the page to the interface of the current page number plus N pages, wherein N is a positive integer;

例如,当前显示屏显示第M页时,触屏操作的移动总距离与所述预设阈值的比值为N,则与此触屏操作匹配的界面操作是翻页至第M+N页。For example, when the current display screen displays the Mth page, the ratio of the total moving distance of the touch screen operation to the preset threshold is N, then the interface operation matching the touch screen operation is to turn the page to the M+Nth page.

以操作系统桌面为例,假设当前显示操作系统桌面的第1页,用户可以用两根手指在触摸显示屏上执行向右滑动的触屏操作,而当终端设备检测到触屏操作的两个触点的移动轨迹时,根据该触屏操作显示该操作系统桌面的第3页,避免了用户为了翻页而多次进行向右滑动的操作。Taking the operating system desktop as an example, assuming that the first page of the operating system desktop is currently displayed, the user can use two fingers to perform a touch screen operation of sliding to the right on the touch screen, and when the terminal device detects that the two According to the touch screen operation, the third page of the desktop of the operating system is displayed according to the moving track of the touch point, which prevents the user from repeatedly performing the operation of sliding to the right in order to turn the page.

103b:控制所述当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示所述应用界面的延伸部分。103b: Control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the application interface.

此方式一般应用于当前应用界面为具有连续显示功能的应用界面的场景下,例如通讯录界面、短信息管理界面等;This method is generally applied in scenarios where the current application interface is an application interface with continuous display function, such as the address book interface, short message management interface, etc.;

具体地,通过检测所述触屏操作的方向,控制当前显示的应用界面在相应的方向上移动,移动的距离与所述移动总距离相等,以显示所述应用界面的延伸部分。Specifically, by detecting the direction of the touch screen operation, the currently displayed application interface is controlled to move in a corresponding direction, and the moving distance is equal to the total moving distance, so as to display the extended part of the application interface.

对于具有连续显示功能的应用界面来说,当前显示的部分可以认为是应用界面的一部分,为了能够显示应用界面的延伸部分,用户可以通过使用至少具有两个触点的触屏操作来使得当前应用界面的移动速度加快,迅速显示其延伸部分,避免了用户为了查看延伸部分而进行的多次操作。For the application interface with continuous display function, the currently displayed part can be considered as a part of the application interface. In order to display the extended part of the application interface, the user can use the touch screen with at least two touch points to make the current application The movement speed of the interface is accelerated, and its extended part is displayed quickly, avoiding multiple operations for the user to view the extended part.

如,针对通讯录来说,通过根据所述移动总距离移动当前的通讯录应用界面,可以显示在当前应用界面上未能显示的通讯录的内容,以便于用户查找联系人。For example, for the address book, by moving the current address book application interface according to the total moving distance, the content of the address book that cannot be displayed on the current application interface can be displayed, so that the user can find contacts.

本发明实施例提供的方法,能够在用户需要查看应用界面中距离当前显示位置较远的位置时,根据触屏操作的触点的移动距离计算得到触屏操作的移动总距离,根据该移动总距离显示应用界面的延伸部分或切换当前应用界面,在用户执行一次手势操作时,使应用界面的移动速度加倍,从而简化用户操作。The method provided by the embodiment of the present invention can calculate the total moving distance of the touch screen operation according to the moving distance of the touch point operated on the touch screen when the user needs to view a position far from the current display position in the application interface. When the user performs a gesture operation, the moving speed of the application interface is doubled, thereby simplifying the user operation.

上述所有可选技术方案,可以采用任意结合形成可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments, which will not be repeated here.

图2是本发明实施例提供的控制应用界面移动的方法的流程图。该发明实施例的执行主体是终端设备,参见图2,所述方法包括:Fig. 2 is a flowchart of a method for controlling movement of an application interface provided by an embodiment of the present invention. The subject of execution of this embodiment of the invention is a terminal device. Referring to FIG. 2, the method includes:

201:获取用户输入的触发应用界面移动的触屏操作;201: Obtain the touch screen operation input by the user to trigger the movement of the application interface;

202:检测所述触屏操作是否包括两个以上的触点;如果是,执行步骤204;如果否,执行步骤203;202: Detect whether the touch screen operation includes more than two contacts; if yes, perform step 204; if not, perform step 203;

203:根据所述触屏操作所匹配的界面处理操作方式移动当前显示的应用界面,结束。203: Move the currently displayed application interface according to the interface processing operation mode matched by the touch screen operation, and end.

204:分别检测所述触屏操作中每个触点的移动轨迹;204: Detecting the moving track of each touch point in the touch screen operation respectively;

205:根据每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,获取每个触点的移动距离;205: Obtain the moving distance of each contact point according to the linear distance between the starting point coordinates and the end point coordinates of the moving track of each contact point;

在本发明实施例中,不对移动轨迹的具体形状进行限定,而是仅根据移动轨迹的起始点坐标和结束点坐标之间的直线距离,获取移动距离。In the embodiment of the present invention, the specific shape of the movement trajectory is not limited, but the movement distance is obtained only according to the straight-line distance between the coordinates of the starting point and the coordinates of the end point of the movement trajectory.

206:根据所述两个以上触点的移动距离,计算所述触屏操作的移动总距离;206: Calculate the total moving distance of the touch screen operation according to the moving distance of the two or more touch points;

207:如果当前显示的应用界面为具有分页显示功能的应用界面,根据所述移动总距离与预设阈值的比值,控制所述当前显示的应用界面切换至与所述比值相应的应用界面;207: If the currently displayed application interface is an application interface with a page-by-page display function, control the currently displayed application interface to switch to an application interface corresponding to the ratio according to the ratio of the total moving distance to a preset threshold;

208:如果当前显示的应用界面为具有连续显示功能的应用界面,控制所述当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示所述应用界面的延伸部分。208: If the currently displayed application interface is an application interface with a continuous display function, control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the application interface.

本发明实施例提供的方法,能够在用户需要查看应用界面中距离当前显示位置较远的位置时,根据触屏操作的触点的移动距离计算得到触屏操作的移动总距离,根据该移动总距离显示应用界面的延伸部分或切换当前应用界面,在用户执行一次手势操作时,使应用界面的移动速度加倍,从而简化用户操作。The method provided by the embodiment of the present invention can calculate the total moving distance of the touch screen operation according to the moving distance of the touch point operated on the touch screen when the user needs to view a position far from the current display position in the application interface. When the user performs a gesture operation, the moving speed of the application interface is doubled, thereby simplifying the user operation.

图3是本发明实施例提供的控制应用界面移动的装置的结构示意图,参见图3,所述装置包括:Fig. 3 is a schematic structural diagram of a device for controlling the movement of an application interface provided by an embodiment of the present invention. Referring to Fig. 3 , the device includes:

检测模块31,用于分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离;The detection module 31 is used to respectively detect the movement distance of two or more touch points in the touch screen operation that triggers the movement of the application interface;

计算模块32,用于将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Calculation module 32, for adding the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

处理模块33,用于根据所述移动总距离,控制应用界面的移动。The processing module 33 is configured to control the movement of the application interface according to the total moving distance.

可选地,所述检测模块31包括:Optionally, the detection module 31 includes:

移动轨迹检测单元,用于分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;A movement trajectory detection unit is used to respectively detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface;

移动距离获取单元,用于根据每个触点的移动轨迹,获取每个触点的移动距离。The moving distance acquiring unit is configured to acquire the moving distance of each touch point according to the moving track of each touch point.

进一步可选地,所述移动距离获取单元用于获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;Further optionally, the moving distance obtaining unit is configured to obtain the linear distance between the starting point coordinates and the ending point coordinates of the moving track of each contact point as the moving distance of each contact point;

和/或,and / or,

用于获取所述每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。The arc distance between the coordinates of the starting point and the coordinates of the ending point of the moving track of each contact point is obtained as the moving distance of each contact point.

进一步可选地,所述移动距离获取单元还用于根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为所述每个触点的移动距离。Further optionally, the moving distance obtaining unit is also used to obtain the straight-line distance between every two adjacent coordinate points according to the preset number of coordinate points on the moving track of each contact point; the obtained straight-line distance The distances are added, and the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is obtained as the moving distance of each contact.

可选地,所述处理模块33包括:Optionally, the processing module 33 includes:

第一处理单元,用于根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;The first processing unit is configured to control the currently displayed application interface to switch to the application interface corresponding to the ratio according to the ratio of the total moving distance to the preset threshold;

第二处理单元,用于控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。The second processing unit is configured to control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface.

第一处理单元和第二处理单元分别针对不同的应用界面执行操作,其中第一处理单元针对具有分页显示功能的应用界面,第二处理单元针对具有连续显示功能的应用界面。The first processing unit and the second processing unit perform operations on different application interfaces respectively, wherein the first processing unit is aimed at the application interface with a page-by-page display function, and the second processing unit is aimed at the application interface with a continuous display function.

本发明实施例提供的装置,能够在用户需要查看应用界面中距离当前显示位置较远的位置时,根据触屏操作的触点的移动距离计算得到触屏操作的移动总距离,根据该移动总距离显示应用界面的延伸部分或切换当前应用界面,在用户执行一次手势操作时,使应用界面的移动速度加倍,从而简化用户操作。The device provided by the embodiment of the present invention can calculate the total moving distance of the touch screen operation according to the moving distance of the contact point operated by the touch screen when the user needs to view a position far from the current display position in the application interface. When the user performs a gesture operation, the moving speed of the application interface is doubled, thereby simplifying the user operation.

需要说明的是:上述实施例提供的控制应用界面移动的装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的控制应用界面移动的装置与控制应用界面的移动的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the device for controlling the movement of the application interface provided by the above-mentioned embodiments is only illustrated by dividing the above-mentioned functional modules. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for controlling the movement of the application interface provided by the above embodiment and the embodiment of the method for controlling the movement of the application interface belong to the same idea. For the specific implementation process, refer to the method embodiment for details, and will not be repeated here.

本发明实施例还提供了一种终端设备,所述终端设备包括:The embodiment of the present invention also provides a terminal device, and the terminal device includes:

触摸显示屏;touch screen;

一个或多个处理器;one or more processors;

存储器;和memory; and

一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块具有如下功能:One or more modules, the one or more modules are stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:

分别检测触发应用界面移动的触屏操作中两个以上触点的移动距离,所述触屏操作触发应用界面移动;respectively detecting the movement distances of two or more touch points in the touch screen operation that triggers the movement of the application interface, and the touch screen operation triggers the movement of the application interface;

将所述两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of the two or more contacts to calculate the total moving distance of the touch screen operation;

根据所述移动总距离,控制应用界面的移动。According to the total moving distance, the movement of the application interface is controlled.

可选地,所述一个或多个模块用于分别检测所述触屏操作中每个触点的移动轨迹;根据每个触点的移动轨迹,获取每个触点的移动距离。Optionally, the one or more modules are configured to respectively detect the moving track of each touch point in the touch screen operation; and obtain the moving distance of each touch point according to the moving track of each touch point.

可选地,所述一个或多个模块还用于获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;和/或,获取所述每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。Optionally, the one or more modules are further configured to obtain the linear distance between the starting point coordinates and the end point coordinates of the movement track of each contact point as the moving distance of each contact point; and/or, obtain The arc distance between the coordinates of the starting point and the coordinates of the ending point of the moving track of each contact point is used as the moving distance of each contact point.

可选地,所述一个或多个模块还用于根据所述每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为所述每个触点的移动距离。Optionally, the one or more modules are further configured to obtain a straight-line distance between every two adjacent coordinate points according to a preset number of coordinate points on the moving track of each contact point; the acquired The straight-line distances are added together, and the arc distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is obtained as the moving distance of each contact.

可选地,所述一个或多个模块还用于根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;或,控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。Optionally, the one or more modules are further configured to control the currently displayed application interface to switch to the application interface corresponding to the ratio according to the ratio of the total moving distance to the preset threshold; or, control the currently displayed application interface to switch to the application interface corresponding to the ratio; or, control the currently displayed The application interface moves the total moving distance in the direction of the touch screen operation, so as to display the extended part of the currently displayed application interface.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为较佳实施例,并不用以限制本发明实施例,凡在本发明实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。The above descriptions are only preferred embodiments, and are not intended to limit the embodiments of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of the present invention shall be included in the implementation of the present invention. within the scope of protection of the example.

Claims (12)

1.一种控制应用界面移动的方法,其特征在于,所述方法包括:1. A method for controlling the movement of an application interface, characterized in that the method comprises: 分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;Separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface; 对所述每个触点的移动轨迹的类型进行判断;Judging the type of the movement trajectory of each contact point; 当检测到所述每个触点的移动轨迹是直线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;When it is detected that the moving track of each contact is a straight line, the linear distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is obtained as the moving distance of each contact; 将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 根据所述移动总距离,控制应用界面的移动,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。According to the total moving distance, the movement of the application interface is controlled, and the application interfaces of different display modes have correspondingly different movement modes, and the movement mode includes moving the application interface to display an extension of the application interface or switching the currently displayed interface . 2.根据权利要求1所述的方法,其特征在于,所述根据所述移动总距离,控制应用界面的移动,包括:2. The method according to claim 1, wherein the controlling the movement of the application interface according to the total moving distance comprises: 对于具有分页显示功能的应用界面,根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;For an application interface with a paging display function, according to the ratio of the total moving distance to a preset threshold, control the currently displayed application interface to switch to the application interface corresponding to the ratio; 或,or, 对于具有连续显示功能的应用界面,控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。For an application interface with a continuous display function, the currently displayed application interface is controlled to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface. 3.一种应用界面移动的方法,其特征在于,所述方法包括:3. A method for moving an application interface, characterized in that the method comprises: 分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;Separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface; 对所述每个触点的移动轨迹的类型进行判断;Judging the type of the movement trajectory of each contact point; 当检测到所述每个触点的移动轨迹为弧线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离;When it is detected that the movement trajectory of each contact is an arc, the arc distance between the starting point coordinates and the end point coordinates of the movement trajectory of each contact is obtained as the movement distance of each contact; 将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 根据所述移动总距离,控制应用界面的移动,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。According to the total moving distance, the movement of the application interface is controlled, and the application interfaces of different display modes have correspondingly different movement modes, and the movement mode includes moving the application interface to display an extension of the application interface or switching the currently displayed interface . 4.根据权利要求3所述的方法,其特征在于,所述获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离,包括:4. The method according to claim 3, wherein said obtaining the arc distance between the starting point coordinates and the end point coordinates of the moving track of each contact point, as the moving distance of each contact point, comprises : 根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;Obtain the straight-line distance between every two adjacent coordinate points according to the preset number of coordinate points on the moving track of each contact point; 将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。Add up the obtained straight-line distances to obtain the arc distance between the starting point coordinates and the ending point coordinates of the movement track of each contact point as the moving distance of each contact point. 5.根据权利要求3或4所述的方法,其特征在于,所述根据所述移动总距离,控制应用界面的移动,包括:5. The method according to claim 3 or 4, wherein the controlling the movement of the application interface according to the total moving distance comprises: 对于具有分页显示功能的应用界面,根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;For an application interface with a paging display function, according to the ratio of the total moving distance to a preset threshold, control the currently displayed application interface to switch to the application interface corresponding to the ratio; 或,or, 对于具有连续显示功能的应用界面,控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。For an application interface with a continuous display function, the currently displayed application interface is controlled to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface. 6.一种控制应用界面移动的装置,其特征在于,所述装置包括:6. A device for controlling the movement of an application interface, characterized in that the device comprises: 检测模块,分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;对所述每个触点的移动轨迹的类型进行判断;当检测到所述每个触点的移动轨迹是直线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;The detection module detects the movement trajectory of each contact in the touch screen operation that triggers the movement of the application interface respectively; judges the type of the movement trajectory of each contact; when detecting that the movement trajectory of each contact is For a straight line, obtain the straight-line distance between the starting point coordinates and the end point coordinates of the movement track of each contact point as the moving distance of each contact point; 计算模块,用于将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;A calculation module, configured to add the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 处理模块,用于根据所述移动总距离,控制应用界面的移动;A processing module, configured to control the movement of the application interface according to the total moving distance; 其中,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。Wherein, application interfaces in different display modes have correspondingly different moving modes, and the moving modes include moving the application interface to display an extension of the application interface or switching the currently displayed interface. 7.根据权利要求6所述的装置,其特征在于,所述处理模块包括:7. The device according to claim 6, wherein the processing module comprises: 第一处理单元,用于对于具有分页显示功能的应用界面,根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;The first processing unit is configured to control the currently displayed application interface to switch to the application interface corresponding to the ratio according to the ratio of the total moving distance to the preset threshold for the application interface with a paging display function; 第二处理单元,用于对于具有连续显示功能的应用界面,控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。The second processing unit is configured to, for an application interface with a continuous display function, control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface. 8.一种控制应用界面移动的装置,其特征在于,所述装置包括:8. A device for controlling the movement of an application interface, characterized in that the device comprises: 检测模块,分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;对所述每个触点的移动轨迹的类型进行判断;当检测到所述每个触点的移动轨迹为弧线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离;The detection module detects the moving track of each contact in the touch screen operation that triggers the movement of the application interface respectively; the type of the moving track of each contact is judged; when the moving track of each contact is detected as When arcing, obtain the arc distance between the starting point coordinates and the end point coordinates of the movement track of each contact point as the moving distance of each contact point; 计算模块,用于将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;A calculation module, configured to add the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 处理模块,用于根据所述移动总距离,控制应用界面的移动;A processing module, configured to control the movement of the application interface according to the total moving distance; 其中,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。Wherein, application interfaces in different display modes have correspondingly different moving modes, and the moving modes include moving the application interface to display an extension of the application interface or switching the currently displayed interface. 9.根据权利要求8所述的装置,其特征在于,所述检测模块用于根据每个触点的移动轨迹上预设个数的坐标点,获取每两个相邻坐标点之间的直线距离;将获取到的直线距离相加,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离。9. The device according to claim 8, wherein the detection module is used to obtain a straight line between every two adjacent coordinate points according to a preset number of coordinate points on the movement track of each contact point Distance: Add up the obtained straight-line distances to obtain the arc distance between the starting point coordinates and the end point coordinates of the movement track of each contact point as the moving distance of each contact point. 10.根据权利要求8或9所述的装置,其特征在于,所述处理模块包括:10. The device according to claim 8 or 9, wherein the processing module comprises: 第一处理单元,用于对于具有分页显示功能的应用界面,根据所述移动总距离与预设阈值的比值,控制当前显示的应用界面切换至与所述比值相应的应用界面;The first processing unit is configured to control the currently displayed application interface to switch to the application interface corresponding to the ratio according to the ratio of the total moving distance to the preset threshold for the application interface with a paging display function; 第二处理单元,用于对于具有连续显示功能的应用界面,控制当前显示的应用界面向所述触屏操作的方向移动所述移动总距离,以显示当前显示的应用界面的延伸部分。The second processing unit is configured to, for an application interface with a continuous display function, control the currently displayed application interface to move the total moving distance in the direction of the touch screen operation, so as to display an extended part of the currently displayed application interface. 11.一种终端设备,其特征在于,包括:11. A terminal device, characterized in that it comprises: 触摸显示屏;touch screen; 一个或多个处理器;one or more processors; 存储器;和memory; and 一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块具有如下功能:One or more modules, the one or more modules are stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions: 分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;Separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface; 对所述每个触点的移动轨迹的类型进行判断;Judging the type of the movement trajectory of each contact point; 当检测到所述每个触点的移动轨迹是直线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的直线距离,作为每个触点的移动距离;When it is detected that the moving track of each contact is a straight line, the linear distance between the starting point coordinates and the ending point coordinates of the moving track of each contact is obtained as the moving distance of each contact; 将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 根据所述移动总距离,控制应用界面的移动;Controlling the movement of the application interface according to the total moving distance; 其中,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。Wherein, application interfaces in different display modes have correspondingly different moving modes, and the moving modes include moving the application interface to display an extension of the application interface or switching the currently displayed interface. 12.一种终端设备,其特征在于,包括:12. A terminal device, characterized in that it comprises: 触摸显示屏;touch screen; 一个或多个处理器;one or more processors; 存储器;和memory; and 一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块具有如下功能:One or more modules, the one or more modules are stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions: 分别检测触发应用界面移动的触屏操作中每个触点的移动轨迹;Separately detect the movement trajectory of each touch point in the touch screen operation that triggers the movement of the application interface; 对所述每个触点的移动轨迹的类型进行判断;Judging the type of the movement trajectory of each contact point; 当检测到所述每个触点的移动轨迹为弧线时,获取每个触点的移动轨迹的起始点坐标和结束点坐标之间的弧线距离,作为每个触点的移动距离;When it is detected that the movement trajectory of each contact is an arc, the arc distance between the starting point coordinates and the end point coordinates of the movement trajectory of each contact is obtained as the movement distance of each contact; 将两个以上触点的移动距离相加,计算所述触屏操作的移动总距离;Adding the moving distances of more than two contacts to calculate the total moving distance of the touch screen operation; 根据所述移动总距离,控制应用界面的移动;Controlling the movement of the application interface according to the total moving distance; 其中,不同显示方式的应用界面,相应地有不同的移动方式,所述移动方式包括移动应用界面以显示该应用界面的延伸部分或切换当前显示的界面。Wherein, application interfaces in different display modes have correspondingly different moving modes, and the moving modes include moving the application interface to display an extension of the application interface or switching the currently displayed interface.
CN201310038633.7A 2013-01-31 2013-01-31 Control method, device and terminal unit that application interface moves Active CN103106033B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310038633.7A CN103106033B (en) 2013-01-31 2013-01-31 Control method, device and terminal unit that application interface moves
PCT/CN2013/090898 WO2014117619A1 (en) 2013-01-31 2013-12-30 Method and apparatus for controlling application interface to move, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310038633.7A CN103106033B (en) 2013-01-31 2013-01-31 Control method, device and terminal unit that application interface moves

Publications (2)

Publication Number Publication Date
CN103106033A CN103106033A (en) 2013-05-15
CN103106033B true CN103106033B (en) 2016-08-10

Family

ID=48313930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310038633.7A Active CN103106033B (en) 2013-01-31 2013-01-31 Control method, device and terminal unit that application interface moves

Country Status (2)

Country Link
CN (1) CN103106033B (en)
WO (1) WO2014117619A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106033B (en) * 2013-01-31 2016-08-10 小米科技有限责任公司 Control method, device and terminal unit that application interface moves
CN104166505B (en) * 2013-05-20 2018-11-06 腾讯科技(深圳)有限公司 A kind of information inspection method, device and mobile terminal
CN104063153B (en) * 2014-05-04 2018-12-11 南京中兴软件有限责任公司 A kind of method and apparatus for realizing human-computer interaction

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508615A (en) * 2011-11-28 2012-06-20 明基电通有限公司 Touch screen picture control method
CN102521858A (en) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 Handwriting generating method for electronic writing brush

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8624933B2 (en) * 2009-09-25 2014-01-07 Apple Inc. Device, method, and graphical user interface for scrolling a multi-section document
KR101726607B1 (en) * 2010-10-19 2017-04-13 삼성전자주식회사 Method and apparatus for controlling screen in mobile terminal
CN103106033B (en) * 2013-01-31 2016-08-10 小米科技有限责任公司 Control method, device and terminal unit that application interface moves

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508615A (en) * 2011-11-28 2012-06-20 明基电通有限公司 Touch screen picture control method
CN102521858A (en) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 Handwriting generating method for electronic writing brush

Also Published As

Publication number Publication date
WO2014117619A1 (en) 2014-08-07
CN103106033A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
US10386991B2 (en) Method for setting icon, and electronic device
WO2019128732A1 (en) Icon management method and device
US9524094B2 (en) Method and apparatus for causing display of a cursor
US9223406B2 (en) Screen display control method of electronic device and apparatus therefor
CN107077295A (en) A kind of method, device, electronic equipment, display interface and the storage medium of quick split screen
US20130263013A1 (en) Touch-Based Method and Apparatus for Sending Information
CN107066167A (en) A kind of regional selection method, device and graphic user interface
WO2017054623A1 (en) Method and device for starting application program, and electronic device
KR20110063410A (en) How content moves between applications and the devices that run it
CN102760026A (en) Touch screen interface display method and device, and touch screen apparatus
CN103513878A (en) Touch input method and device
US9423927B2 (en) Managing user interface elements using gestures
US20140351725A1 (en) Method and electronic device for operating object
CN104331233A (en) Portable terminal and content previewing method thereof
WO2014121626A1 (en) Displaying method, device and storage medium of mobile terminal shortcuts
US20120137258A1 (en) Mobile electronic device, screen control method, and storage medium storing screen control program
CN103729109B (en) A kind of interface display method and terminal
JPWO2014112029A1 (en) Information processing apparatus, information processing method, and program
CN103677417B (en) A kind of detect the method for gesture, device and terminal device
CN109408012A (en) Display control method and related device
CN103106033B (en) Control method, device and terminal unit that application interface moves
JP2013246614A (en) Electronic device with touch detection function, and control method of electronic device with program and touch detection function
CN108108078B (en) Electronic equipment, display control method and related products
CN103761045A (en) Zoom touch control method and device of mobile terminal
US11042244B2 (en) Terminal device and touch input method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant