CN103513912B - A kind of interface switching method and device - Google Patents

A kind of interface switching method and device Download PDF

Info

Publication number
CN103513912B
CN103513912B CN201210226875.4A CN201210226875A CN103513912B CN 103513912 B CN103513912 B CN 103513912B CN 201210226875 A CN201210226875 A CN 201210226875A CN 103513912 B CN103513912 B CN 103513912B
Authority
CN
China
Prior art keywords
interface
sliding
speed
distance
specified
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
CN201210226875.4A
Other languages
Chinese (zh)
Other versions
CN103513912A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210226875.4A priority Critical patent/CN103513912B/en
Publication of CN103513912A publication Critical patent/CN103513912A/en
Application granted granted Critical
Publication of CN103513912B publication Critical patent/CN103513912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种界面切换方法及装置,包括:确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;当该滑动距离小于距离阀值,且该滑动速度小于速度阀值时,从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面,其中,该第二界面为在该指定方向上与该第一界面相邻的界面,该指定中间界面由该第一界面的一部分和该第二界面的一部分构成。采用本发明提供的方法及装置,能够解决由于滑动操作在指定方向上的滑动距离及滑动速度不够而导致无法进行界面切换的问题,提高了界面切换的成功率。

The invention discloses an interface switching method and device, comprising: determining the sliding distance and sliding speed of a sliding operation on a touch screen in a designated direction; when the sliding distance is less than a distance threshold and the sliding speed is less than a speed threshold , switch from the currently displayed first interface to the specified intermediate interface between the first interface and the second interface, wherein the second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is determined by A part of the first interface is formed by a part of the second interface. The method and device provided by the present invention can solve the problem that interface switching cannot be performed due to insufficient sliding distance and sliding speed in a designated direction of the sliding operation, and improve the success rate of interface switching.

Description

一种界面切换方法及装置Method and device for interface switching

技术领域 technical field

本发明涉及终端技术领域,尤其涉及一种多界面切换方法及装置。The present invention relates to the technical field of terminals, in particular to a multi-interface switching method and device.

背景技术 Background technique

随着科技的发展,越来越多的触摸屏智能终端走入人们的生活,许多主流的触摸屏智能终端均采用3.5寸以上的屏幕;同时,随着各种基于智能终端平台的应用程序的大量出现,用户在智能终端上安装的应用程序越来越多,因此,触摸屏智能终端上安装的应用程序的图标往往需要分布在多个界面上,依靠用户的滑动操作进行多个界面之间的切换。With the development of science and technology, more and more touch-screen smart terminals have entered people's lives. Many mainstream touch-screen smart terminals use screens above 3.5 inches; at the same time, with the emergence of a large number of applications based on smart terminal platforms , the user installs more and more applications on the smart terminal, therefore, the icons of the applications installed on the touch screen smart terminal often need to be distributed on multiple interfaces, relying on the user's sliding operation to switch between multiple interfaces.

现有技术中,在进行多界面切换时,对用户滑动操作在指定方向上的滑动距离和滑动速度具有一定的要求,当滑动距离大于距离阀值,或滑动速度大于速度阀值时,界面切换成功,否则,界面切换失败。In the prior art, when performing multi-interface switching, there are certain requirements for the sliding distance and sliding speed of the user's sliding operation in the specified direction. When the sliding distance is greater than the distance threshold, or the sliding speed is greater than the speed threshold, the interface switches Success, otherwise, interface switching fails.

然而,随着触摸屏智能终端屏幕的扩大,某些情况下,用户操作时很难进行灵活准确的控制,例如使用单手操作进行多界面切换时,经常出现滑动操作的滑动距离和滑动速度不够的情况,导致界面切换失败,影响用户的使用体验。However, with the expansion of touch screen intelligent terminal screens, in some cases, it is difficult for users to perform flexible and accurate control during operation. In this case, the interface switch fails, which affects the user experience.

发明内容 Contents of the invention

本发明实施例提供一种界面切换方法及装置,用以解决现有技术中存在的由于滑动操作在指定方向上的滑动距离及滑动速度不够而导致无法进行界面切换的问题。Embodiments of the present invention provide an interface switching method and device to solve the problem in the prior art that interface switching cannot be performed due to insufficient sliding distance and sliding speed in a designated direction of a sliding operation.

本发明实施例提供一种界面切换方法,包括:An embodiment of the present invention provides an interface switching method, including:

确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;Determine the sliding distance and sliding speed of a sliding operation on the touch screen in the specified direction;

当所述滑动距离小于距离阀值,且所述滑动速度小于速度阀值时,从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面,其中,所述第二界面为在所述指定方向上与所述第一界面相邻的界面,所述指定中间界面由所述第一界面的一部分和所述第二界面的一部分构成。When the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold, switch from the currently displayed first interface to the specified intermediate interface between the first interface and the second interface, wherein the second The interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is composed of a part of the first interface and a part of the second interface.

本发明实施例还提供一种界面切换装置,包括:An embodiment of the present invention also provides an interface switching device, including:

确定单元,用于确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;A determining unit, configured to determine a sliding distance and a sliding speed in a designated direction of a sliding operation on the touch screen;

切换单元,用于当所述滑动距离小于距离阀值,且所述滑动速度小于速度阀值时,从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面,其中,所述第二界面为在所述指定方向上与所述第一界面相邻的界面,所述指定中间界面由所述第一界面的一部分和所述第二界面的一部分构成。A switching unit, configured to switch from the currently displayed first interface to a specified intermediate interface between the first interface and the second interface when the sliding distance is less than a distance threshold and the sliding speed is less than a speed threshold, wherein , the second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is composed of a part of the first interface and a part of the second interface.

本发明的有益效果包括:The beneficial effects of the present invention include:

本发明实施例提供的方法中,确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;当该滑动距离小于距离阀值,且该滑动速度小于速度阀值时,从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面,其中,该第二界面为在该指定方向上与该第一界面相邻的界面,该指定中间界面由该第一界面的一部分和该第二界面的一部分构成。采用本发明实施例提供的方法,基于第一界面和第二界面的中间界面,当滑动距离小于距离阀值,且滑动速度小于速度阀值时,先从第一界面切换到中间界面,从而使得可以通过后续操作,进一步的实现到第二界面的切换,避免了相比现有技术中当滑动距离小于距离阀值,且滑动速度小于速度阀值时,便直接导致界面切换失败的情况,即提高了界面切换的成功率。In the method provided by the embodiment of the present invention, the sliding distance and sliding speed of a sliding operation on the touch screen in the specified direction are determined; when the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold, the currently displayed The first interface switches to the specified intermediate interface of the first interface and the second interface, wherein the second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is determined by the specified intermediate interface of the first interface A part and a part of the second interface constitute. Using the method provided by the embodiment of the present invention, based on the intermediate interface between the first interface and the second interface, when the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold, first switch from the first interface to the intermediate interface, so that Subsequent operations can be used to further switch to the second interface, avoiding the situation in which the interface switching fails directly when the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold compared with the prior art, that is, Improved the success rate of interface switching.

附图说明 Description of drawings

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the description, and are used together with the embodiments of the present invention to explain the present invention, and do not constitute a limitation to the present invention. In the attached picture:

图1为本发明实施例提供的界面切换方法的流程图;FIG. 1 is a flowchart of an interface switching method provided by an embodiment of the present invention;

图2为本发明实施例提供的界面切换方法的详细流程图;FIG. 2 is a detailed flowchart of an interface switching method provided by an embodiment of the present invention;

图3为本发明实施例提供的确定指定中间界面的方式一的示意图;FIG. 3 is a schematic diagram of a first method for determining a specified intermediate interface provided by an embodiment of the present invention;

图4为本发明实施例提供的确定指定中间界面的方式二的示意图;FIG. 4 is a schematic diagram of a second method for determining a designated intermediate interface provided by an embodiment of the present invention;

图5为本发明实施例提供的界面切换装置的结构示意图。FIG. 5 is a schematic structural diagram of an interface switching device provided by an embodiment of the present invention.

具体实施方式 detailed description

为了给出当触摸屏上的一次滑动操作在指定方向上的滑动距离及滑动速度不够时,能够进行界面切换的实现方案,本发明实施例提供了一种界面切换方法及装置,以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。In order to provide an implementation plan for interface switching when the sliding distance and sliding speed in the designated direction of a sliding operation on the touch screen are not enough, the embodiment of the present invention provides an interface switching method and device, which will be combined with the accompanying drawings below The preferred embodiments of the present invention are described, and it should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

本发明实施例提供一种界面切换方法,如图1所示,包括:An embodiment of the present invention provides an interface switching method, as shown in FIG. 1 , including:

步骤101:确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;Step 101: Determine the sliding distance and sliding speed of a sliding operation on the touch screen in a specified direction;

步骤102:当该滑动距离小于距离阀值,且该滑动速度小于速度阀值时,从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面,其中,该第二界面为在指定方向上与该第一界面相邻的界面,该指定中间界面由该第一界面的一部分和该第二界面的一部分构成。Step 102: When the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold, switch from the currently displayed first interface to a specified intermediate interface between the first interface and the second interface, wherein the second interface As an interface adjacent to the first interface in a specified direction, the specified intermediate interface is composed of a part of the first interface and a part of the second interface.

上述界面切换方法适用于各种触摸屏终端,例如手机、平板电脑等,下面结合附图,用具体实施例对本发明提供的方法进行详细描述。The above-mentioned interface switching method is applicable to various touch screen terminals, such as mobile phones, tablet computers, etc. The method provided by the present invention will be described in detail below with specific embodiments in conjunction with the accompanying drawings.

图2所示为本发明实施例提供的界面切换方法的详细流程图,具体包括:Figure 2 is a detailed flow chart of the interface switching method provided by the embodiment of the present invention, which specifically includes:

步骤201:确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度,具体为:Step 201: Determine the sliding distance and sliding speed of a sliding operation on the touch screen in a specified direction, specifically:

获取用户在触摸屏上一次滑动操作的起点和终点在指定方向上的坐标,及该次滑动操作的起始时间和结束时间,根据该起点和终点在指定方向上的坐标确定该次滑动操作在指定方向上的滑动距离,再根据该指定方向上的滑动距离及该次滑动操作的起始时间和结束时间确定该次滑动操作在指定方向上的滑动速度。Obtain the coordinates of the start point and end point of a user's swipe operation on the touch screen in the specified direction, as well as the start time and end time of the swipe operation, and determine the swipe operation in the specified direction according to the coordinates of the start point and end point in the specified direction The sliding distance in the specified direction, and then determine the sliding speed of the sliding operation in the specified direction according to the sliding distance in the specified direction and the start time and end time of the sliding operation.

其中,指定方向可以是水平方向,也可以是垂直方向。Wherein, the designated direction may be a horizontal direction or a vertical direction.

步骤202:确定该滑动距离是否大于距离阀值,或该滑动速度是否大于速度阀值。Step 202: Determine whether the sliding distance is greater than a distance threshold, or whether the sliding speed is greater than a speed threshold.

如果确定该滑动距离大于距离阀值,或该滑动速度大于速度阀值,进入步骤203;如果确定该滑动距离不大于距离阀值,且该滑动速度也不大于速度阀值,进入步骤204。If it is determined that the sliding distance is greater than the distance threshold, or the sliding speed is greater than the speed threshold, go to step 203; if it is determined that the sliding distance is not greater than the distance threshold, and the sliding speed is not greater than the speed threshold, go to step 204.

步骤203:从当前显示的第一界面切换到第二界面,其中,第二界面为在指定方向上与第一界面相邻的界面,即用户执行本次滑动操作欲切换到的界面。Step 203: Switch from the currently displayed first interface to the second interface, wherein the second interface is an interface adjacent to the first interface in a specified direction, that is, the interface to which the user performs this sliding operation to switch to.

以安卓系统的触摸屏手机为例,安装在该手机上的所有应用程序的图标(Icon)被放置在一个工作空间(WorkPlace)的多个界面(CellLayout)中,当触摸屏上的一次滑动操作在指定方向上的滑动距离大于距离阀值,或滑动速度大于速度阀值时,进行界面切换。Taking the Android touch screen mobile phone as an example, the icons (Icon) of all the applications installed on the mobile phone are placed in multiple interfaces (CellLayout) of a workspace (WorkPlace). When the sliding distance in the direction is greater than the distance threshold, or the sliding speed is greater than the speed threshold, the interface is switched.

现有技术中,大多数触摸屏终端的界面切换技术均采用类似的机制,在此不再详述。In the prior art, most interface switching technologies of touch screen terminals adopt a similar mechanism, which will not be described in detail here.

步骤204:从当前显示的第一界面切换到第一界面和第二界面的指定中间界面。其中,该指定中间界面由第一界面的一部分和第二界面的一部分构成。Step 204: switch from the currently displayed first interface to a designated intermediate interface between the first interface and the second interface. Wherein, the specified intermediate interface is composed of a part of the first interface and a part of the second interface.

指定中间界面的确定可采用如下两种方式:The determination of the specified intermediate interface can be done in the following two ways:

方式一:基于该滑动距离或该滑动速度,从第一界面和第二界面的所有中间界面中,选择指定中间界面,其中,该滑动距离或该滑动速度越大时,该指定中间界面中属于第二界面的部分所占的比例越大。Method 1: Based on the sliding distance or the sliding speed, select a specified intermediate interface from all the intermediate interfaces of the first interface and the second interface, wherein, when the sliding distance or the sliding speed is larger, the specified intermediate interface belongs to The proportion of the portion of the second interface is larger.

以图3所示的触摸屏手机操作界面为例,进行具体说明。基于应用程序的图标能够完整显示的原则,生成第一界面和第二界面的所有中间界面,包括:中间界面1、中间界面2和中间界面3。其中,所有中间界面的生成可以在滑动操作前预先进行,或在滑动操作同时进行,或在滑动操作后,确定该滑动距离不大于距离阀值,且该滑动速度也不大于速度阀值后进行。The operation interface of the touch screen mobile phone shown in FIG. 3 is taken as an example for specific description. Based on the principle that the icon of the application program can be completely displayed, all intermediate interfaces of the first interface and the second interface are generated, including: intermediate interface 1 , intermediate interface 2 and intermediate interface 3 . Among them, the generation of all intermediate interfaces can be performed before the sliding operation, or at the same time as the sliding operation, or after the sliding operation, after determining that the sliding distance is not greater than the distance threshold and the sliding speed is not greater than the speed threshold. .

基于该滑动距离,选择指定中间界面,具体可以为:Based on the sliding distance, choose to specify the middle interface, which can be as follows:

当该滑动距离小于距离阀值的三分之一时,选择中间界面1为指定中间界面;When the sliding distance is less than one-third of the distance threshold, the middle interface 1 is selected as the designated middle interface;

当该滑动距离不小于距离阀值的三分之一,小于距离阀值的三分之二时,选择中间界面2为指定中间界面;When the sliding distance is not less than one-third of the distance threshold and less than two-thirds of the distance threshold, the middle interface 2 is selected as the designated middle interface;

当该滑动距离不小于距离阀值的三分之二,小于距离阀值时,选择中间界面3为指定中间界面。When the sliding distance is not less than two-thirds of the distance threshold and less than the distance threshold, the middle interface 3 is selected as the designated middle interface.

基于该滑动速度,选择指定中间界面,具体可以为:Based on the sliding speed, choose to specify the middle interface, which can be as follows:

当该滑动速度小于速度阀值的三分之一时,选择中间界面1为指定中间界面;When the sliding speed is less than one-third of the speed threshold, select the middle interface 1 as the designated middle interface;

当该滑动速度不小于速度阀值的三分之一,小于速度阀值的三分之二时,选择中间界面2为指定中间界面;When the sliding speed is not less than one-third of the speed threshold and less than two-thirds of the speed threshold, the middle interface 2 is selected as the designated middle interface;

当该滑动速度不小于速度阀值的三分之二,小于速度阀值时,选择中间界面3为指定中间界面。When the sliding speed is not less than two-thirds of the speed threshold and is less than the speed threshold, the middle interface 3 is selected as the designated middle interface.

方式二:基于该滑动距离或该滑动速度,从由第一界面和第二界面构成的集合界面中,确定该集合界面的一部分作为指定中间界面,其中,该滑动距离或该滑动速度越大时,指定中间界面中属于第二界面的部分所占的比例越大。Method 2: Based on the sliding distance or the sliding speed, from the set interface composed of the first interface and the second interface, determine a part of the set interface as the designated intermediate interface, wherein the greater the sliding distance or the sliding speed , specifying that the proportion of the part belonging to the second interface in the middle interface is larger.

以图4所示的触摸屏手机操作界面为例,进行具体说明。生成第一界面和第二界面的集合界面,其中,该集合界面的生成可以在滑动操作前预先进行,或在滑动操作同时进行,或在滑动操作后,确定该滑动距离不大于距离阀值,且该滑动速度也不大于速度阀值后进行。The operation interface of the touch screen mobile phone shown in FIG. 4 is taken as an example for specific description. Generate a collection interface of the first interface and the second interface, where the generation of the collection interface can be performed in advance before the sliding operation, or at the same time as the sliding operation, or after the sliding operation, it is determined that the sliding distance is not greater than the distance threshold, And the sliding speed is not greater than the speed threshold before proceeding.

基于该滑动距离,及应用程序的图标能够完整显示的原则,确定该集合界面的一部分作为指定中间界面,具体可以为:Based on the sliding distance and the principle that the icon of the application program can be completely displayed, a part of the collection interface is determined as the specified intermediate interface, which can be specifically:

当该滑动距离小于距离阀值的三分之一时,确定该集合界面的A部分作为指定中间界面;When the sliding distance is less than one-third of the distance threshold, determine part A of the collection interface as the designated intermediate interface;

当该滑动距离不小于距离阀值的三分之一,小于距离阀值的三分之二时,确定该集合界面的B部分作为指定中间界面;When the sliding distance is not less than one-third of the distance threshold and less than two-thirds of the distance threshold, determine part B of the collection interface as the designated intermediate interface;

当该滑动距离不小于距离阀值的三分之二,小于距离阀值时,确定该集合界面的C部分作为指定中间界面。When the sliding distance is not less than two-thirds of the distance threshold and is less than the distance threshold, determine part C of the set interface as the designated intermediate interface.

基于该滑动速度,及应用程序的图标能够完整显示的原则,确定该集合界面的一部分作为指定中间界面,具体可以为:Based on the sliding speed and the principle that the icon of the application program can be completely displayed, a part of the collection interface is determined as the designated intermediate interface, which can be specifically:

当该滑动速度小于速度阀值的三分之一时,确定该集合界面的A部分作为指定中间界面;When the sliding speed is less than one-third of the speed threshold, determine the A part of the collection interface as the specified intermediate interface;

当该滑动速度不小于速度阀值的三分之一,小于速度阀值的三分之二时,确定该集合界面的B部分作为指定中间界面;When the sliding speed is not less than one-third of the speed threshold and less than two-thirds of the speed threshold, determine the part B of the collection interface as the designated intermediate interface;

当该滑动速度不小于速度阀值的三分之二,小于速度阀值时,确定该集合界面的C部分作为指定中间界面。When the sliding speed is not less than two-thirds of the speed threshold and is less than the speed threshold, determine the part C of the collection interface as the designated intermediate interface.

步骤205:确定在设定时间内,是否存在该触摸屏上在该指定方向上的二次滑动操作。Step 205: Determine whether there is a second sliding operation in the specified direction on the touch screen within a set time.

如果确定不存在该触摸屏上在该指定方向上的二次滑动操作,进入步骤206;如果确定存在该触摸屏上在该指定方向上的二次滑动操作,进入步骤207。If it is determined that there is no second sliding operation on the touch screen in the designated direction, go to step 206; if it is determined that there is a second sliding operation on the touch screen in the designated direction, go to step 207.

步骤206:从当前显示的该指定中间界面切换到第一界面。Step 206: Switch from the currently displayed designated intermediate interface to the first interface.

此时,认为第一次滑动操作为用户的误操作。At this time, it is considered that the first sliding operation is a user's misoperation.

步骤207:从当前显示的该指定中间界面切换到第二界面。Step 207: Switch from the currently displayed designated intermediate interface to the second interface.

此时,认为第一次滑动操作为用户的界面切换操作。At this time, it is considered that the first sliding operation is an interface switching operation of the user.

采用本发明实施例提供的方法,在上述实例中,当触摸屏上的一次滑动操作在指定方向上的滑动距离小于距离阀值,且滑动速度小于速度阀值时,先从第一界面切换到中间界面,通过后续的二次滑动操作,实现到第二界面的切换,避免了相比现有技术中当滑动距离小于距离阀值,且滑动速度小于速度阀值时,便直接导致界面切换失败的情况,即提高了界面切换的成功率,进而提高了用户的使用体验。Using the method provided by the embodiment of the present invention, in the above example, when the sliding distance of a sliding operation on the touch screen in the specified direction is less than the distance threshold, and the sliding speed is less than the speed threshold, first switch from the first interface to the middle Interface, through the subsequent secondary sliding operation, the switch to the second interface is realized, which avoids the failure of interface switching directly when the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold compared with the prior art In other words, the success rate of interface switching is improved, thereby improving the user experience.

该实施例提供的界面切换方法,在执行完上述步骤后,还可以包括根据在设定周期内,用户多次滑动操作的滑动距离和滑动速度,更新距离阀值和速度阀值,具体为:The interface switching method provided in this embodiment, after performing the above steps, may also include updating the distance threshold and speed threshold according to the sliding distance and sliding speed of the user's multiple sliding operations within the set period, specifically:

步骤208:存储该滑动距离和滑动速度。Step 208: Store the sliding distance and sliding speed.

步骤209:根据在设定周期内,多次存储的滑动距离和滑动速度,更新距离阀值和速度阀值,具体可以为:Step 209: Update the distance threshold and speed threshold according to the sliding distance and sliding speed stored multiple times within the set period, which can be specifically:

更新距离阀值为,在设定周期内,多次存储的滑动距离的算术平均值;更新速度阀值为,在设定周期内,多次存储的滑动速度的算术平均值;或The update distance threshold is the arithmetic mean value of the sliding distances stored multiple times within the set period; the update speed threshold is the arithmetic mean value of the sliding speeds stored multiple times within the set period; or

更新距离阀值为,在设定周期内,多次存储的滑动距离的几何平均值;更新速度阀值为,在设定周期内,多次存储的滑动速度的几何平均值;或The update distance threshold is the geometric mean value of the sliding distances stored multiple times within the set period; the update speed threshold is the geometric mean value of the sliding speeds stored multiple times within the set period; or

更新距离阀值为,在设定周期内,多次存储的滑动距离的均方根平均值;更新速度阀值为,在设定周期内,多次存储的滑动速度的均方根平均值;或The update distance threshold is the root mean square average of the sliding distances stored multiple times within the set period; the update speed threshold is the root mean square average of the sliding speeds stored multiple times within the set period; or

更新距离阀值为,在设定周期内,多次存储的滑动距离的加权平均值;更新速度阀值为,在设定周期内,多次存储的滑动速度的加权平均值。The update distance threshold is a weighted average of sliding distances stored multiple times within the set period; the update speed threshold is the weighted average of sliding speeds stored multiple times within the set period.

采用上述方法对距离阀值和速度阀值进行更新,可以使触摸屏终端的界面切换条件更符合用户的操作习惯,从而进一步提高了界面切换的成功率,使用户的使用体验更佳。Using the method above to update the distance threshold and the speed threshold can make the interface switching conditions of the touch screen terminal more in line with the user's operating habits, thereby further improving the success rate of interface switching and making the user experience better.

基于同一发明构思,根据本发明上述实施例提供的界面切换方法,相应地,本发明实施例还提供一种界面切换装置,其结构示意图如图5所示,具体包括:Based on the same inventive concept, according to the interface switching method provided by the above-mentioned embodiments of the present invention, correspondingly, the embodiment of the present invention also provides an interface switching device, the structural diagram of which is shown in Figure 5, specifically including:

确定单元501,用于确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;A determining unit 501, configured to determine a sliding distance and a sliding speed in a designated direction of a sliding operation on the touch screen;

切换单元502,用于当该滑动距离小于距离阀值,且该滑动速度小于速度阀值时,从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面,其中,该第二界面为在该指定方向上与该第一界面相邻的界面,该指定中间界面由该第一界面的一部分和该第二界面的一部分构成。A switching unit 502, configured to switch from the currently displayed first interface to a specified intermediate interface between the first interface and the second interface when the sliding distance is less than a distance threshold and the sliding speed is less than a speed threshold, wherein the The second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is composed of a part of the first interface and a part of the second interface.

进一步的,切换单元502,还用于当该滑动距离不小于该距离阀值时,从当前显示的该第一界面切换到该第二界面;以及当该滑动速度不小于该速度阀值时,从当前显示的该第一界面切换到该第二界面。Further, the switching unit 502 is also used to switch from the currently displayed first interface to the second interface when the sliding distance is not less than the distance threshold; and when the sliding speed is not less than the speed threshold, Switch from the currently displayed first interface to the second interface.

进一步的,切换单元502,还用于在从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面之前,基于该滑动距离或该滑动速度,从该第一界面和该第二界面的所有中间界面中,选择该指定中间界面,其中,该滑动距离或该滑动速度越大时,该指定中间界面中属于该第二界面的部分所占的比例越大;或在从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面之前,基于该滑动距离或该滑动速度,从由该第一界面和该第二界面构成的集合界面中,确定该集合界面的一部分作为该指定中间界面,其中,该滑动距离或该滑动速度越大时,该指定中间界面中属于该第二界面的部分所占的比例越大。Further, the switching unit 502 is also configured to, before switching from the currently displayed first interface to a specified intermediate interface between the first interface and the second interface, based on the sliding distance or the sliding speed, from the first interface to the second interface Among all the intermediate interfaces of the second interface, the specified intermediate interface is selected, wherein, when the sliding distance or the sliding speed is larger, the proportion of the part belonging to the second interface in the specified intermediate interface is larger; or from Before the currently displayed first interface is switched to the designated intermediate interface between the first interface and the second interface, based on the sliding distance or the sliding speed, from the set interface composed of the first interface and the second interface, determine the A part of the collection interface is used as the specified intermediate interface, wherein the larger the sliding distance or the sliding speed, the larger the proportion of the part belonging to the second interface in the specified intermediate interface.

进一步的,切换单元502,还用于在从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面之后,在设定时间内,当确定存在该触摸屏上在该指定方向上的二次滑动操作时,从当前显示的该指定中间界面切换到该第二界面;在从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面之后,在设定时间内,当确定不存在该触摸屏上在该指定方向上的二次滑动操作时,从当前显示的该指定中间界面切换到该第一界面。Further, the switching unit 502 is also configured to switch from the currently displayed first interface to the designated intermediate interface of the first interface and the second interface, within a set time, when it is determined that there is a screen in the designated direction on the touch screen During the second sliding operation on the screen, switch from the currently displayed specified intermediate interface to the second interface; after switching from the currently displayed first interface to the specified intermediate interface between the first interface and the second interface, after setting Within a certain period of time, when it is determined that there is no second sliding operation in the designated direction on the touch screen, switch from the currently displayed designated intermediate interface to the first interface.

进一步的,该界面切换装置,还包括:Further, the interface switching device also includes:

存储单元503,用于在从当前显示的该指定中间界面切换到该第二界面之后,存储该滑动距离和该滑动速度;a storage unit 503, configured to store the sliding distance and the sliding speed after switching from the currently displayed designated intermediate interface to the second interface;

更新单元504,用于根据在设定周期内,多次存储的滑动距离和滑动速度,更新该距离阀值和该速度阀值。The updating unit 504 is configured to update the distance threshold and the speed threshold according to the sliding distance and sliding speed stored multiple times within a set period.

更新单元504,具体用于更新该距离阀值为,在该设定周期内,该多次存储的滑动距离的算术平均值;更新该速度阀值为,在该设定周期内,该多次存储的滑动速度的算术平均值;或The update unit 504 is specifically used to update the distance threshold value, within the set period, the arithmetic mean value of the sliding distances stored multiple times; update the speed threshold value, within the set period, the multiple times the arithmetic mean of the stored slide velocities; or

更新该距离阀值为,在该设定周期内,该多次存储的滑动距离的几何平均值;更新该速度阀值为,在该设定周期内,该多次存储的滑动速度的几何平均值;或Update the distance threshold as the geometric mean of the sliding distances stored multiple times within the setting period; update the speed threshold as the geometric mean of the sliding speeds stored multiple times within the setting period value; or

更新该距离阀值为,在该设定周期内,该多次存储的滑动距离的均方根平均值;更新该速度阀值为,在该设定周期内,该多次存储的滑动速度的均方根平均值;或Update the distance threshold as the root mean square average value of the sliding distances stored multiple times within the setting period; update the speed threshold as the number of sliding speeds stored multiple times within the setting period root mean square mean; or

更新该距离阀值为,在该设定周期内,该多次存储的滑动距离的加权平均值;更新该速度阀值为,在该设定周期内,该多次存储的滑动速度的加权平均值。Update the distance threshold as the weighted average of the sliding distances stored multiple times within the setting period; update the speed threshold as the weighted average of the sliding speeds stored multiple times within the setting period value.

综上所述,本发明实施例提供的方案,包括:确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;当该滑动距离小于距离阀值,且该滑动速度小于速度阀值时,从当前显示的第一界面切换到该第一界面和第二界面的指定中间界面,其中,该第二界面为在该指定方向上与该第一界面相邻的界面,该指定中间界面由该第一界面的一部分和该第二界面的一部分构成。采用本发明实施例提供的方案,能够解决由于滑动操作在指定方向上的滑动距离及滑动速度不够而导致无法进行界面切换的问题,提高了界面切换的成功率。In summary, the solution provided by the embodiment of the present invention includes: determining the sliding distance and sliding speed of a sliding operation on the touch screen in the specified direction; when the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold , switch from the currently displayed first interface to the specified intermediate interface between the first interface and the second interface, wherein the second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface Consists of a part of the first interface and a part of the second interface. The solution provided by the embodiment of the present invention can solve the problem that interface switching cannot be performed due to insufficient sliding distance and sliding speed in the designated direction of the sliding operation, and improves the success rate of interface switching.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种界面切换方法,其特征在于,包括:1. A method for interface switching, characterized in that, comprising: 确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;Determine the sliding distance and sliding speed of a sliding operation on the touch screen in the specified direction; 当所述滑动距离小于距离阀值,且所述滑动速度小于速度阀值时,从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面,其中,所述第二界面为在所述指定方向上与所述第一界面相邻的界面,所述指定中间界面由所述第一界面的一部分和所述第二界面的一部分构成;When the sliding distance is less than the distance threshold and the sliding speed is less than the speed threshold, switch from the currently displayed first interface to the specified intermediate interface between the first interface and the second interface, wherein the second The interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is composed of a part of the first interface and a part of the second interface; 其中,所述指定方向包括水平方向或垂直方向。Wherein, the specified direction includes a horizontal direction or a vertical direction. 2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 当所述滑动距离不小于所述距离阀值时,从当前显示的所述第一界面切换到所述第二界面;以及When the sliding distance is not less than the distance threshold, switch from the currently displayed first interface to the second interface; and 当所述滑动速度不小于所述速度阀值时,从当前显示的所述第一界面切换到所述第二界面。When the sliding speed is not less than the speed threshold, switch from the currently displayed first interface to the second interface. 3.如权利要求1所述的方法,其特征在于,在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之前,还包括:3. The method according to claim 1, further comprising: before switching from the currently displayed first interface to the specified intermediate interface of the first interface and the second interface: 基于所述滑动距离或所述滑动速度,从所述第一界面和所述第二界面的所有中间界面中,选择所述指定中间界面,其中,所述滑动距离或所述滑动速度越大时,所述指定中间界面中属于所述第二界面的部分所占的比例越大;或Based on the sliding distance or the sliding speed, select the specified intermediate interface from all intermediate interfaces of the first interface and the second interface, wherein the greater the sliding distance or the sliding speed , the greater the proportion of the part belonging to the second interface in the designated intermediate interface; or 基于所述滑动距离或所述滑动速度,从由所述第一界面和所述第二界面构成的集合界面中,确定所述集合界面的一部分作为所述指定中间界面,其中,所述滑动距离或所述滑动速度越大时,所述指定中间界面中属于所述第二界面的部分所占的比例越大。Based on the sliding distance or the sliding speed, from the set interface composed of the first interface and the second interface, determine a part of the set interface as the specified intermediate interface, wherein the sliding distance Or, the greater the sliding speed, the greater the proportion of the portion belonging to the second interface in the designated intermediate interface. 4.如权利要求1所述的方法,其特征在于,在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之后,还包括:4. The method according to claim 1, further comprising: 在设定时间内,当确定存在所述触摸屏上在所述指定方向上的二次滑动操作时,从当前显示的所述指定中间界面切换到所述第二界面;Within the set time, when it is determined that there is a second sliding operation on the touch screen in the specified direction, switch from the currently displayed specified intermediate interface to the second interface; 在设定时间内,当确定不存在所述触摸屏上在所述指定方向上的二次滑动操作时,从当前显示的所述指定中间界面切换到所述第一界面。Switching from the currently displayed designated intermediate interface to the first interface when it is determined that there is no second sliding operation in the designated direction on the touch screen within a set time. 5.如权利要求4所述的方法,其特征在于,在从当前显示的所述指定中间界面切换到所述第二界面之后,还包括:5. The method according to claim 4, further comprising: after switching from the currently displayed designated intermediate interface to the second interface: 存储所述滑动距离和所述滑动速度;storing the sliding distance and the sliding speed; 根据在设定周期内,多次存储的滑动距离和滑动速度,更新所述距离阀值和所述速度阀值。The distance threshold and the speed threshold are updated according to the sliding distances and sliding speeds stored multiple times within the set period. 6.一种界面切换装置,其特征在于,包括:6. An interface switching device, characterized in that it comprises: 确定单元,用于确定触摸屏上的一次滑动操作在指定方向上的滑动距离和滑动速度;A determining unit, configured to determine a sliding distance and a sliding speed in a designated direction of a sliding operation on the touch screen; 切换单元,用于当所述滑动距离小于距离阀值,且所述滑动速度小于速度阀值时,从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面,其中,所述第二界面为在所述指定方向上与所述第一界面相邻的界面,所述指定中间界面由所述第一界面的一部分和所述第二界面的一部分构成;A switching unit, configured to switch from the currently displayed first interface to a specified intermediate interface between the first interface and the second interface when the sliding distance is less than a distance threshold and the sliding speed is less than a speed threshold, wherein , the second interface is an interface adjacent to the first interface in the specified direction, and the specified intermediate interface is composed of a part of the first interface and a part of the second interface; 其中,所述指定方向包括水平方向或垂直方向。Wherein, the specified direction includes a horizontal direction or a vertical direction. 7.如权利要求6所述的装置,其特征在于,所述切换单元,还用于当所述滑动距离不小于所述距离阀值时,从当前显示的所述第一界面切换到所述第二界面;以及当所述滑动速度不小于所述速度阀值时,从当前显示的所述第一界面切换到所述第二界面。7. The device according to claim 6, wherein the switching unit is further configured to switch from the currently displayed first interface to the a second interface; and switching from the currently displayed first interface to the second interface when the sliding speed is not less than the speed threshold. 8.如权利要求6所述的装置,其特征在于,所述切换单元,还用于在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之前,基于所述滑动距离或所述滑动速度,从所述第一界面和所述第二界面的所有中间界面中,选择所述指定中间界面,其中,所述滑动距离或所述滑动速度越大时,所述指定中间界面中属于所述第二界面的部分所占的比例越大;或在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之前,基于所述滑动距离或所述滑动速度,从由所述第一界面和所述第二界面构成的集合界面中,确定所述集合界面的一部分作为所述指定中间界面,其中,所述滑动距离或所述滑动速度越大时,所述指定中间界面中属于所述第二界面的部分所占的比例越大。8. The device according to claim 6, wherein the switching unit is further configured to, before switching from the currently displayed first interface to the designated intermediate interface between the first interface and the second interface, based on the The sliding distance or the sliding speed, select the specified intermediate interface from all intermediate interfaces of the first interface and the second interface, wherein, when the sliding distance or the sliding speed is larger, the The proportion of the part belonging to the second interface in the specified intermediate interface is larger; or before switching from the currently displayed first interface to the specified intermediate interface of the first interface and the second interface, based on the sliding Distance or the sliding speed, from the set interface composed of the first interface and the second interface, determine a part of the set interface as the specified intermediate interface, wherein the sliding distance or the sliding The larger the speed, the larger the proportion of the part belonging to the second interface in the designated intermediate interface. 9.如权利要求6所述的装置,其特征在于,所述切换单元,还用于在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之后,在设定时间内,当确定存在所述触摸屏上在所述指定方向上的二次滑动操作时,从当前显示的所述指定中间界面切换到所述第二界面;在从当前显示的第一界面切换到所述第一界面和第二界面的指定中间界面之后,在设定时间内,当确定不存在所述触摸屏上在所述指定方向上的二次滑动操作时,从当前显示的所述指定中间界面切换到所述第一界面。9. The device according to claim 6, wherein the switching unit is further configured to, after switching from the currently displayed first interface to the designated intermediate interface between the first interface and the second interface, set Within a certain period of time, when it is determined that there is a second sliding operation on the touch screen in the specified direction, switch from the currently displayed specified intermediate interface to the second interface; switch from the currently displayed first interface After arriving at the specified intermediate interface of the first interface and the second interface, within a set time, when it is determined that there is no secondary sliding operation in the specified direction on the touch screen, the current displayed specified The intermediate interface is switched to the first interface. 10.如权利要求9所述的装置,其特征在于,还包括:10. The apparatus of claim 9, further comprising: 存储单元,用于在从当前显示的所述指定中间界面切换到所述第二界面之后,存储所述滑动距离和所述滑动速度;a storage unit, configured to store the sliding distance and the sliding speed after switching from the currently displayed designated intermediate interface to the second interface; 更新单元,用于根据在设定周期内,多次存储的滑动距离和滑动速度,更新所述距离阀值和所述速度阀值。An updating unit, configured to update the distance threshold and the speed threshold according to the sliding distance and sliding speed stored multiple times within a set period.
CN201210226875.4A 2012-06-29 2012-06-29 A kind of interface switching method and device Active CN103513912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210226875.4A CN103513912B (en) 2012-06-29 2012-06-29 A kind of interface switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210226875.4A CN103513912B (en) 2012-06-29 2012-06-29 A kind of interface switching method and device

Publications (2)

Publication Number Publication Date
CN103513912A CN103513912A (en) 2014-01-15
CN103513912B true CN103513912B (en) 2016-06-22

Family

ID=49896725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210226875.4A Active CN103513912B (en) 2012-06-29 2012-06-29 A kind of interface switching method and device

Country Status (1)

Country Link
CN (1) CN103513912B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885691A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Method and device for executing backspacing operation
CN104077145B (en) * 2014-07-11 2017-07-21 北京安兔兔科技有限公司 Applied program processing method and system
CN104133611A (en) * 2014-07-18 2014-11-05 深圳市金立通信设备有限公司 Terminal
WO2016008258A1 (en) * 2014-07-18 2016-01-21 深圳市金立通信设备有限公司 Touch screen response method and terminal
CN104268245B (en) * 2014-09-29 2018-05-22 小米科技有限责任公司 Approaches to IM and device
CN104778198B (en) * 2014-12-30 2020-11-13 北京奇虎科技有限公司 Method and device for checking page information of mobile terminal
CN105988681B (en) * 2015-02-28 2019-06-25 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105843531B (en) * 2015-07-23 2019-08-16 维沃移动通信有限公司 A kind of switching method and apparatus of screen pattern
CN106445346B (en) * 2016-10-08 2019-11-01 福州市马尾区小微发明信息科技有限公司 Interface backing method
CN107193445A (en) * 2017-06-30 2017-09-22 上海传英信息技术有限公司 Interface of mobile terminal switches display methods and display device
CN111435277B (en) * 2019-01-15 2022-04-19 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for displaying content

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256466A (en) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 Electronic device and method capable of embodiment of electric document page-turning effect
EP2184671A1 (en) * 2008-10-29 2010-05-12 Giga-Byte Communications, Inc. Method and apparatus for switching touch screen of handheld electronic apparatus
CN102364428A (en) * 2011-10-28 2012-02-29 鸿富锦精密工业(深圳)有限公司 Electronic device and page processing method thereof
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256466A (en) * 2008-02-29 2008-09-03 鹏智科技(深圳)有限公司 Electronic device and method capable of embodiment of electric document page-turning effect
EP2184671A1 (en) * 2008-10-29 2010-05-12 Giga-Byte Communications, Inc. Method and apparatus for switching touch screen of handheld electronic apparatus
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
CN102364428A (en) * 2011-10-28 2012-02-29 鸿富锦精密工业(深圳)有限公司 Electronic device and page processing method thereof

Also Published As

Publication number Publication date
CN103513912A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN103513912B (en) A kind of interface switching method and device
CN102681774B (en) Method, device and mobile terminal for controlling application interface by gesture
EP2835729A1 (en) Method for controlling position of floating window and terminal
US10509551B2 (en) Icon management method, apparatus, and terminal
CN107422934B (en) Icon setting method and electronic equipment
CN103412725B (en) A kind of touch operation method and device
CN110531920B (en) Display method and device of sidebar, terminal and storage medium
US20170083219A1 (en) Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
CN109697265B (en) A method and device for returning a page
US9207861B2 (en) Method and mobile terminal for processing touch input in two different states
EP2645223A2 (en) Touch-based method and apparatus for sending information
CN103403665B (en) A method for terminal equipment to obtain instructions and terminal equipment
WO2017063443A1 (en) Message display method and apparatus
CN105786485A (en) Mobile terminal and background display method for applications thereof
JP2013175180A (en) Device and method for changing application
US20140035853A1 (en) Method and apparatus for providing user interaction based on multi touch finger gesture
CN104731478B (en) One-hand operation method and device for an intelligent terminal
WO2015106510A1 (en) Screen splitting method and device for applications, intelligent terminal and storage medium
CN103076973A (en) Window switching method and system and intelligent terminal
WO2013189224A1 (en) Cursor display position determination method and device
CN103544973A (en) Method and device for song control of music player
CN106415471A (en) Processing method for user interface of terminal, user interface and terminal
CN107797722A (en) Touch screen icon selection method and device
WO2013104155A1 (en) Menu display method and terminal device
CN105045498A (en) Touch generating method for virtual button position of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant