WO2014094456A1 - Page switching method and device and terminal - Google Patents

Page switching method and device and terminal Download PDF

Info

Publication number
WO2014094456A1
WO2014094456A1 PCT/CN2013/082806 CN2013082806W WO2014094456A1 WO 2014094456 A1 WO2014094456 A1 WO 2014094456A1 CN 2013082806 W CN2013082806 W CN 2013082806W WO 2014094456 A1 WO2014094456 A1 WO 2014094456A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
display
signal
difference
switching
Prior art date
Application number
PCT/CN2013/082806
Other languages
French (fr)
Chinese (zh)
Inventor
李颖
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to CN201210554571.0A priority Critical patent/CN103885692A/en
Priority to CN201210554571.0 priority
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014094456A1 publication Critical patent/WO2014094456A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/163Indexing scheme relating to constructional details of the computer
    • G06F2200/1637Sensing arrangement for detection of housing movement or orientation, e.g. for controlling scrolling or cursor movement on the display of an handheld computer

Abstract

Disclosed are a page switching method and device and a terminal, belonging to the technical field of computers. The method comprises: displaying a first page and a second page on an interface; acquiring a reference position angle at a predetermined moment; acquiring a current position angle at a current moment after the predetermined moment; detecting whether the difference after subtracting the reference position angle from the current position angle is a positive value and greater than a preset threshold; and if the difference is a positive value and greater than the preset threshold, displaying the second page on a full-screen. The reference position angle and the current position angle are both included angles between an A directional line and a B directional line, the A directional line being a half line where the direction of the centre of the second page pointing to the centre of the first page is located, and the B directional line being a half line where the gravity direction is located. The present invention solves the problem that an incorrect operation is easily brought about by frequent page-switching operations caused by a user manually hitting a display page to be switched, and achieves the effect of improving switching efficiency.

Description

说 明 书 页面切换方法、 装置及终端  Description page switching method, device and terminal
技术领域 Technical field
本发明涉及计算机技术领域, 特别涉及一种页面切换方法、 装置及终端。 背景技术  The present invention relates to the field of computer technologies, and in particular, to a page switching method, apparatus, and terminal. Background technique
通常, 为了便于用户对终端中的页面进行预览, 终端可以将界面划分为多 个显示区域,在每个显示区域内显示一个或多个页面,并对显示页面进行切换。  Generally, in order to facilitate the user to preview a page in the terminal, the terminal may divide the interface into multiple display areas, display one or more pages in each display area, and switch the display page.
现有的页面切换方法, 需要用户手动选择某一个页面, 比如, 用户点击界 面中某一个显示区域的页面, 则对该页面显示的内容进行全屏显示等。  In the existing page switching method, the user needs to manually select a certain page. For example, if the user clicks on a page of a certain display area in the interface, the content displayed on the page is displayed in full screen.
现有技术的页面切换方法, 需要用户手动点击待切换的显示页面, 使得页 面切换的操作繁瑣; 另外, 当页面较多时, 页面的显示区域较小, 用户手动点 击待切换的显示页面容易造成误操作, 降低了切换效率。 发明内容  The page switching method of the prior art requires the user to manually click the display page to be switched, so that the operation of page switching is cumbersome; in addition, when there are many pages, the display area of the page is small, and the user manually clicking the display page to be switched is easy to cause errors. Operation, reducing switching efficiency. Summary of the invention
为了解决用户手动点击待切换的显示页面造成页面切换操作繁瑣、容易造 成误操作的问题, 本发明实施例提供了一种页面切换方法、 装置及终端。 所述 技术方案如下:  In order to solve the problem that the user manually clicks on the display page to be switched, the page switching operation is cumbersome and the erroneous operation is easily caused. The embodiment of the invention provides a page switching method, device and terminal. The technical solution is as follows:
第一方面, 本发明实施例提供了一种页面切换方法, 所述方法包括: 在界面上显示第一页面和第二页面;  In a first aspect, an embodiment of the present invention provides a page switching method, where the method includes: displaying a first page and a second page on an interface;
在预定时刻采集基准位置角度;  Collecting a reference position angle at a predetermined time;
在所述预定时刻之后的当前时刻采集当前位置角度;  Collecting a current position angle at a current time after the predetermined time;
检测所述当前位置角度减去所述基准位置角度之后的差值是否为正值且 大于预设阈值;  Detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
若所述差值为正值且大于预设阈值, 则全屏显示所述第二页面;  If the difference is positive and greater than a preset threshold, displaying the second page in full screen;
所述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的 夹角,所述 A方向线为所述第二页面的中心指向所述第一页面的中心的方向所 在射线; 所述 B方向线为重力方向所在射线。  The reference position angle and the current position angle are both angles between the A direction line and the B direction line, and the A direction line is a direction in which the center of the second page points to the center of the first page. Ray; the B direction line is the ray in the direction of gravity.
在第一方面的第一种可能的实现方式中, 所述检测所述当前位置角度减去 所述基准位置角度之后的差值是否为正值且大于预设阈值之后, 还包括: 若所述差值的绝对值小于预设阈值且所述差值为正值, 则增大所述第二页 面的显示比例; In a first possible implementation manner of the first aspect, the detecting the current position angle minus After the difference between the reference position angle and the positive value is greater than the preset threshold, the method further includes: if the absolute value of the difference is less than a preset threshold and the difference is a positive value, increasing the number The display ratio of the two pages;
若所述差值的绝对值小于预设阈值且所述差值为负值, 则减小所述第二页 面的显示比例。  If the absolute value of the difference is less than a preset threshold and the difference is a negative value, the display ratio of the second page is decreased.
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实现 方式中, 所述增大所述第二页面的显示比例, 包括:  In conjunction with the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the increasing the display ratio of the second page includes:
根据所述差值的大小增大所述第二页面的显示比例,增大的幅度与所述差 值的大小呈正相关关系;  And increasing a display ratio of the second page according to the magnitude of the difference, where the magnitude of the increase is positively correlated with the magnitude of the difference;
和 /或, 所述减小所述第二页面的显示比例, 包括:  And/or, the reducing the display ratio of the second page includes:
根据所述差值的大小减小所述第二页面的显示比例, 减小的幅度与所述差 值的绝对值的大小呈正相关关系。  The display ratio of the second page is decreased according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
在第一方面的第三种可能的实现方式中, 所述检测所述当前位置角度减去 所述基准位置角度之后的差值是否为正值且大于预设阈值之后, 还包括: 若所述差值为零且所述当前时刻与所述预定时刻之间的差值大于预设时 间长度, 则全屏显示所述第一页面。  In a third possible implementation manner of the first aspect, after detecting that the difference between the current position angle and the reference position angle is positive and greater than a preset threshold, the method further includes: If the difference is zero and the difference between the current time and the predetermined time is greater than a preset time length, the first page is displayed in full screen.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式或第一方面的第三种可能的实现方式, 在第一方面的第四种可 能的实现方式中, 所述第二页面为四个, 所述在界面上显示第一页面和第二页 面, 包括:  In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect, the fourth possibility in the first aspect In the implementation manner, the second page is four, and the displaying the first page and the second page on the interface includes:
将所述第一页面显示在界面中央;  Displaying the first page in the center of the interface;
将所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方和右 方的四个显示区域中。  The four second pages are respectively displayed in four display areas located above, below, to the left and to the right of the first page.
结合第一方面的第四种可能的实现方式, 在第一方面的第五种可能的实现 方式中, 所述将所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方和右方的四个显示区域中之后, 还包括:  In conjunction with the fourth possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the four second pages are respectively displayed above and below the first page, After the four display areas on the left and right, it also includes:
接收第一滑动信号, 所述第一滑动信号从所述第一页面滑向所述四个第二 页面中的一个;  Receiving a first sliding signal, the first sliding signal sliding from the first page to one of the four second pages;
将所述被滑向的第二页面中的显示内容切换为所述第一页面中的显示内 谷,  Switching the display content in the sliding second page to the display valley in the first page,
将所述第一页面中的显示内容切换为与所述被滑向的第二页面相对的另 一个第二页面中的显示内容; Switching the display content in the first page to another opposite the second page being slid a display content in a second page;
或, 接收第二滑动信号, 所述第二滑动信号从所述四个第二页面中的一个 滑向所述第一页面;  Or receiving a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page;
将与所述滑向的第二页面相对的另一个第二页面中的显示内容切换为所 述第一页面中的显示内容;  And switching display content in another second page opposite to the sliding second page to display content in the first page;
将所述第一页面中的显示内容切换为所述滑向的第二页面中的显示内容。 结合第一方面的第四种可能的实现方式或第一方面的第五种可能的实现 方式, 在第一方面的第六种可能的实现方式中, 若所述第一页面和第二页面的 显示内容对应于文件, 所述将所述四个第二页面分别显示在位于所述第一页面 上方、 下方、 左方和右方的四个显示区域中, 包括:  Switching the display content in the first page to the display content in the sliding second page. In conjunction with the fourth possible implementation of the first aspect, or the fifth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, if the first page and the second page are The display content corresponds to the file, and the four second pages are respectively displayed in four display areas located above, below, to the left, and to the right of the first page, including:
若当前第二页面对应的文件为所述第一页面对应的文件的上层文件, 则将 所述当前第二页面显示在所述四个显示区域中的第一显示区域;  If the current file corresponding to the second page is an upper file of the file corresponding to the first page, displaying the current second page in the first display area of the four display areas;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第 二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas Area
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区 域相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区 域相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可 能的实现方式或第一方面的第五种可能的实现方式或第一方面的第六种可能 的实现方式, 在第一方面的第七种可能的实现方式中, 所述方法, 还包括: 接收作用于所述第一页面或者第二页面上的触发信号;  Combining the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect The fifth possible implementation manner of the first aspect or the sixth possible implementation manner of the first aspect, the seventh possible implementation manner of the first aspect, the method further includes: receiving a trigger signal on the first page or the second page;
在接收到所述触发信号之后, 全屏显示所述第一页面或者第二页面; 所述触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  After receiving the trigger signal, displaying the first page or the second page in full screen; the trigger signal includes a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture signal, Any one or combination of voice control signals and shortcut key signals.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可 能的实现方式或第一方面的第五种可能的实现方式或第一方面的第六种可能 的实现方式或第一方面的第七种可能的实现方式,在第一方面的第八种可能的 实现方式中, 所述方法, 还包括: Combining the first aspect or the first possible implementation of the first aspect or the second aspect of the first aspect A possible implementation or a third possible implementation of the first aspect or a fourth possible implementation of the first aspect or a fifth possible implementation of the first aspect or a sixth possible implementation of the first aspect The implementation manner or the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner of the first aspect,
在全屏显示之后, 接收退出信号;  After the full screen display, the exit signal is received;
在接收到所述退出信号之后, 在界面上显示新的第一页面和第二页面; 所述退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  After receiving the exit signal, displaying a new first page and a second page on the interface; the exit signal includes a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture Any one or combination of signals, voice signals, and shortcut signals.
结合第一方面的第八种可能的实现方式, 在第一方面的第九种可能的实现 方式中, 所述在界面上显示新的第一页面和第二页面, 包括:  In conjunction with the eighth possible implementation of the first aspect, in a ninth possible implementation manner of the first aspect, the displaying the new first page and the second page on the interface includes:
若所述全屏显示的是所述第一页面, 则继续将所述第一页面作为新的第一 页面显示;  If the first page is displayed in the full screen, continuing to display the first page as a new first page;
若所述全屏显示的是所述第二页面, 则将所述第二页面作为新的第一页面 显示。  If the second page is displayed in the full screen, the second page is displayed as a new first page.
第二方面, 本发明实施例提供了一种页面切换装置, 所述装置包括: 第一显示模块, 用于在界面上显示第一页面和第二页面;  In a second aspect, an embodiment of the present invention provides a page switching apparatus, where the apparatus includes: a first display module, configured to display a first page and a second page on an interface;
第一采集模块, 用于在预定时刻采集基准位置角度;  a first collecting module, configured to collect a reference position angle at a predetermined time;
第二采集模块, 用于在所述预定时刻之后的当前时刻采集当前位置角度; 检测模块, 用于检测所述当前位置角度减去所述基准位置角度之后的差值 是否为正值且大于预设阈值;  a second acquiring module, configured to collect a current position angle at a current time after the predetermined time; and a detecting module, configured to detect whether a difference between the current position angle and the reference position angle is positive and greater than a pre- Set a threshold;
第二显示模块, 用于若所述检测模块检测出所述差值为正值且大于预设阈 值, 则全屏显示所述第二页面;  a second display module, configured to display the second page in full screen if the detecting module detects that the difference is a positive value and is greater than a preset threshold;
所述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的 夹角,所述 A方向线为所述第二页面的中心指向所述第一页面的中心的方向所 在射线; 所述 B方向线为重力方向所在射线。  The reference position angle and the current position angle are both angles between the A direction line and the B direction line, and the A direction line is a direction in which the center of the second page points to the center of the first page. Ray; the B direction line is the ray in the direction of gravity.
在第二方面的第一种可能的实现方式中, 所述装置, 还包括:  In a first possible implementation manner of the second aspect, the device further includes:
第三显示模块, 用于若所述检测模块检测出所述差值的绝对值 d、于预设阈 值且所述差值为正值, 则增大所述第二页面的显示比例;  a third display module, configured to increase a display ratio of the second page if the detecting module detects an absolute value d of the difference, is at a preset threshold, and the difference is a positive value;
第四显示模块, 用于若所述检测模块检测出所述差值的绝对值 d、于预设阈 值且所述差值为负值, 则减小所述第二页面的显示比例。 结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实现 方式中, 所述第三显示模块, 具体用于根据所述差值的大小增大所述第二页面 的显示比例, 增大的幅度与所述差值的大小呈正相关关系; And a fourth display module, configured to reduce a display ratio of the second page if the detecting module detects an absolute value d of the difference, is at a preset threshold, and the difference is a negative value. With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the third display module is specifically configured to increase the second according to the size of the difference The display ratio of the page, the magnitude of the increase is positively correlated with the magnitude of the difference;
和 /或,所述第四显示模块,具体用于根据所述差值的大小减小所述第二页 面的显示比例, 减小的幅度与所述差值的绝对值的大小呈正相关关系。  And/or, the fourth display module is specifically configured to reduce the display ratio of the second page according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
在第二方面的第三种可能的实现方式中, 所述装置, 还包括:  In a third possible implementation manner of the second aspect, the device further includes:
第五显示模块, 用于若所述检测模块检测出所述差值为零且所述当前时刻 与所述预定时刻之间的差值大于预设时间长度, 则全屏显示所述第一页面。  The fifth display module is configured to display the first page in full screen if the detecting module detects that the difference is zero and the difference between the current time and the predetermined time is greater than a preset time length.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式或第二方面的第三种可能的实现方式, 在第二方面的第四种可 能的实现方式中, 所述第二页面为四个, 所述第一显示模块, 包括:  With reference to the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect, the fourth possibility in the second aspect In the implementation manner, the second page is four, and the first display module includes:
第一显示单元, 用于将所述第一页面显示在界面中央;  a first display unit, configured to display the first page in a center of the interface;
第二显示单元, 用于将所述四个第二页面分别显示在位于所述第一页面上 方、 下方、 左方和右方的四个显示区域中。  And a second display unit, configured to display the four second pages in four display areas located above, below, to the left, and to the right of the first page.
结合第二方面的第四种可能的实现方式, 在第二方面的第五种可能的实现 方式中, 所述装置, 还包括:  With reference to the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the device further includes:
第一接收模块, 用于所述第二显示单元将所述四个第二页面分别显示在位 于所述第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第一滑 动信号, 所述第一滑动信号从所述第一页面滑向所述四个第二页面中的一个; 第一切换模块, 用于所述第一接收模块接收所述第一滑动信号之后, 将所 述被滑向的第二页面中的显示内容切换为所述第一页面中的显示内容;  a first receiving module, configured to: display, by the second display unit, the four second pages in four display areas located above, below, to the left, and to the right of the first page, and receive the first a sliding signal, the first sliding signal is slid from the first page to one of the four second pages; a first switching module, after the first receiving module receives the first sliding signal, Switching the display content in the sliding second page to the display content in the first page;
第二切换模块, 用于所述第一切换模块将所述被滑向的第二页面中的显示 内容切换为所述第一页面中的显示内容之后, 将所述第一页面中的显示内容切 换为与所述被滑向的第二页面相对的另一个第二页面中的显示内容;  a second switching module, configured to: after the first switching module switches the display content in the sliding second page to the display content in the first page, display content in the first page Switching to display content in another second page opposite to the second page being slid;
或, 第二接收模块, 用于所述第二显示单元将所述四个第二页面分别显示 在位于所述第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第 二滑动信号, 所述第二滑动信号从所述四个第二页面中的一个滑向所述第一页 面;  Or a second receiving module, configured to: display, by the second display unit, the four second pages in four display areas located above, below, to the left, and to the right of the first page, and receive a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page;
第三切换模块, 用于所述第二接收模块接收所述第二滑动信号之后, 将与 所述滑向的第二页面相对的另一个第二页面中的显示内容切换为所述第一页 面中的显示内容; 第四切换模块, 用于所述第三切换模块将与所述滑向的第二页面相对的另 一个第二页面中的显示内容切换为所述第一页面中的显示内容之后, 将所述第 一页面中的显示内容切换为所述滑向的第二页面中的显示内容。 a third switching module, configured to: after the second receiving module receives the second sliding signal, switch display content in another second page opposite to the sliding second page to the first page Display content in ; a fourth switching module, after the third switching module switches the display content in the second page opposite to the sliding second page to the display content in the first page, The display content in the first page is switched to the display content in the sliding second page.
结合第二方面的第四种可能的实现方式或第二方面的第五种可能的实现 方式, 在第二方面的第六种可能的实现方式中, 若所述第一页面和第二页面的 显示内容对应于文件, 所述第二显示单元, 具体用于若当前第二页面对应的文 件为所述第一页面对应的文件的上层文件, 则将所述当前第二页面显示在所述 四个显示区域中的第一显示区域;  With the fourth possible implementation of the second aspect or the fifth possible implementation of the second aspect, in a sixth possible implementation of the second aspect, if the first page and the second page are The display content is corresponding to the file, and the second display unit is configured to: if the file corresponding to the current second page is an upper file of the file corresponding to the first page, display the current second page in the fourth a first display area in the display area;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第 二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas Area
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区 域相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区 域相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可 能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能 的实现方式, 在第二方面的第七种可能的实现方式中, 所述装置, 还包括: 第三接收模块, 用于接收作用于所述第一页面或者第二页面上的触发信 号;  Combining the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect The fifth possible implementation manner of the second aspect or the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner of the second aspect, a receiving module, configured to receive a trigger signal that is applied to the first page or the second page;
第六显示模块, 用于在所述第三接收模块接收到所述触发信号之后, 全屏 显示所述第一页面或者第二页面;  a sixth display module, configured to: after the third receiving module receives the trigger signal, display the first page or the second page in full screen;
所述触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  The trigger signal includes any one or a combination of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种 可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可 能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能 的实现方式或第二方面的第七种可能的实现方式,在第二方面的第八种可能的 实现方式中, 所述装置, 还包括: Combining the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect Implementation or a fifth possible implementation of the second aspect or a sixth possibility of the second aspect The implementation of the second aspect, or the seventh possible implementation of the second aspect, in the eighth possible implementation manner of the second aspect,
第四接收模块, 用于在全屏显示之后, 接收退出信号;  a fourth receiving module, configured to receive an exit signal after displaying in full screen;
第七显示模块, 用于在所述第四接收模块接收到所述退出信号之后, 在界 面上显示新的第一页面和第二页面;  a seventh display module, configured to display a new first page and a second page on the interface after the fourth receiving module receives the exit signal;
所述退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  The exit signal includes any one or a combination of a keyboard signal, a click signal, a double tap signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
结合第二方面的第八种可能的实现方式, 在第二方面的第九种可能的实现 方式中, 所述第七显示模块, 包括:  With reference to the eighth possible implementation of the second aspect, in a ninth possible implementation manner of the second aspect, the seventh display module includes:
第三显示单元, 用于若所述全屏显示的是所述第一页面, 则继续将所述第 一页面作为新的第一页面显示;  a third display unit, configured to continue to display the first page as a new first page if the full screen displays the first page;
第四显示单元, 用于若所述全屏显示的是所述第二页面, 则将所述第二页 面作为新的第一页面显示。  And a fourth display unit, configured to display the second page as a new first page if the full screen displays the second page.
第三方面, 本发明实施例提供了一种页面切换装置, 所述装置包括: 处理器, 用于在界面上显示第一页面和第二页面; 在预定时刻采集基准位 置角度; 在所述预定时刻之后的当前时刻采集当前位置角度; 检测所述当前位 置角度减去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述 处理器检测出所述差值为正值且大于预设阈值, 则全屏显示所述第二页面; 所 述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的夹角, 所述 A 方向线为所述第二页面的中心指向所述第一页面的中心的方向所在射 线; 所述 B方向线为重力方向所在射线。  In a third aspect, an embodiment of the present invention provides a page switching apparatus, where the apparatus includes: a processor, configured to display a first page and a second page on an interface; and acquire a reference position angle at a predetermined time; Collecting a current position angle at a current time after the time; detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the processor detects that the difference is positive And the value is greater than the preset threshold, the second page is displayed in full screen; the reference position angle and the current position angle are angles between the A direction line and the B direction line, and the A direction line is the The center of the second page points to the ray of the direction of the center of the first page; the B direction line is the ray of the direction of gravity.
在第三方面的第一种可能的实现方式中, 所述处理器, 还用于若所述差值 的绝对值 d、于预设阈值且所述差值为正值, 则增大所述第二页面的显示比例; 若所述差值的绝对值小于预设阈值且所述差值为负值, 则减小所述第二页面的 显示比例。  In a first possible implementation manner of the third aspect, the processor is further configured to: if the absolute value d of the difference is at a preset threshold, and the difference is a positive value, increase the The display ratio of the second page; if the absolute value of the difference is less than a preset threshold and the difference is a negative value, the display ratio of the second page is decreased.
结合第三方面的第一种可能的实现方式, 在第三方面的第二种可能的实现 方式中, 所述处理器, 具体用于根据所述差值的大小增大所述第二页面的显示 比例, 增大的幅度与所述差值的大小呈正相关关系; 和 /或, 根据所述差值的大 小减小所述第二页面的显示比例, 减小的幅度与所述差值的绝对值的大小呈正 相关关系。 在第三方面的第三种可能的实现方式中, 所述处理器, 还用于若所述差值 为零且所述当前时刻与所述预定时刻之间的差值大于预设时间长度, 则全屏显 示所述第一页面。 With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the processor is configured to increase the second page according to the size of the difference a display ratio, the magnitude of the increase being positively correlated with the magnitude of the difference; and/or decreasing the display ratio of the second page according to the magnitude of the difference, the magnitude of the decrease and the difference The magnitude of the absolute value is positively correlated. In a third possible implementation manner of the third aspect, the processor is further configured to: if the difference is zero, and the difference between the current time and the predetermined time is greater than a preset time length, The first page is displayed in full screen.
结合第三方面或第三方面的第一种可能的实现方式或第三方面的第二种 可能的实现方式和第三方面的第三种可能的实现方式, 在第三方面的第四种可 能的实现方式中, 所述第二页面为四个, 所述处理器, 具体用于将所述第一页 面显示在界面中央; 将所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方和右方的四个显示区域中。  In combination with the third aspect or the first possible implementation of the third aspect or the second possible implementation of the third aspect and the third possible implementation of the third aspect, the fourth possibility in the third aspect In the implementation manner, the second page is four, the processor is specifically configured to display the first page in the center of the interface; and display the four second pages on the first page respectively In the four display areas above, below, left and right.
结合第三方面的第四种可能的实现方式, 在第三方面的第五种可能的实现 方式中, 所述装置, 还包括:  In conjunction with the fourth possible implementation of the third aspect, in a fifth possible implementation manner of the third aspect, the device,
接收机, 用于接收第一滑动信号, 所述第二滑动信号从所述第一页面滑向 所述四个第二页面中的一个;  a receiver, configured to receive a first sliding signal, the second sliding signal sliding from the first page to one of the four second pages;
所述处理器, 还用于所述接收机接收第一滑动信号之后, 将所述被滑向的 第二页面中的显示内容切换为所述第一页面中的显示内容; 将所述第一页面中 的显示内容切换为与所述被滑向的第二页面相对的另一个第二页面中的显示 内容;  The processor is further configured to: after the receiver receives the first sliding signal, switch the display content in the sliding second page to the display content in the first page; The display content in the page is switched to the display content in another second page opposite to the second page being slid;
或, 所述接收机, 还用于接收第二滑动信号, 所述第二滑动信号从所述四 个第二页面中的一个滑向所述第一页面;  Or the receiver is further configured to receive a second sliding signal, and the second sliding signal is slid from the one of the four second pages to the first page;
所述处理器, 还用于所述处理器接收所述第二滑动信号之后, 将与所述滑 向的第二页面相对的另一个第二页面中的显示内容切换为所述第一页面中的 显示内容; 将所述第一页面中的显示内容切换为所述滑向的第二页面中的显示 内容。  The processor is further configured to: after the processor receives the second sliding signal, switch display content in another second page opposite to the sliding second page to the first page Display content; switching the display content in the first page to the display content in the sliding second page.
结合第三方面的第四种可能的实现方式或第三方面的第五种可能的实现 方式, 在第三方面的第六种可能的实现方式中, 若所述第一页面和第二页面的 显示内容对应于文件, 所述处理器, 具体用于若当前第二页面对应的文件为所 述第一页面对应的文件的上层文件, 则将所述当前第二页面显示在所述四个显 示区域中的第一显示区域;  With the fourth possible implementation of the third aspect or the fifth possible implementation of the third aspect, in a sixth possible implementation manner of the third aspect, if the first page and the second page are The display content is corresponding to the file, and the processor is configured to display the current second page on the four displays if the file corresponding to the current second page is an upper file of the file corresponding to the first page. The first display area in the area;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第 二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas Area
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区 域相邻的第三显示区域; If the file corresponding to the current second page is sorted before the file corresponding to the first page a layer file, the current second page is displayed in a third display area adjacent to the first display area in the four display areas;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区 域相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
结合第三方面或第三方面的第一种可能的实现方式或第三方面的第二种 可能的实现方式或第三方面的第三种可能的实现方式或第三方面的第四种可 能的实现方式或第三方面的第五种可能的实现方式或第三方面的第六种可能 的实现方式, 在第三方面的第七种可能的实现方式中, 所述接收机, 还用于接 收作用于所述第一页面或者第二页面上的触发信号;  Combining the third aspect or the first possible implementation of the third aspect or the second possible implementation of the third aspect or the third possible implementation of the third aspect or the fourth possible implementation of the third aspect The fifth possible implementation manner of the third aspect or the sixth possible implementation manner of the third aspect, in a seventh possible implementation manner of the third aspect, the receiver is further configured to receive a trigger signal acting on the first page or the second page;
所述处理器, 还用于在所述接收机接收到所述触发信号之后, 全屏显示所 述第一页面或者第二页面; 所述触发信号包括键盘信号、单击信号、双击信号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的 任意一种或者几种的组合。  The processor is further configured to display the first page or the second page in full screen after the receiver receives the trigger signal; the trigger signal includes a keyboard signal, a click signal, a double-click signal, and a multi-click Any one or combination of a signal, a cursor or a click pause signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
结合第三方面或第三方面的第一种可能的实现方式或第三方面的第二种 可能的实现方式或第三方面的第三种可能的实现方式或第三方面的第四种可 能的实现方式或第三方面的第五种可能的实现方式或第三方面的第六种可能 的实现方式或第三方面的第七种可能的实现方式,在第三方面的第八种可能的 实现方式中, 所述接收机, 还用于在全屏显示之后, 接收退出信号;  Combining the third aspect or the first possible implementation of the third aspect or the second possible implementation of the third aspect or the third possible implementation of the third aspect or the fourth possible implementation of the third aspect The implementation of the fifth possible implementation of the third aspect or the sixth possible implementation of the third aspect or the seventh possible implementation of the third aspect, the eighth possible implementation of the third aspect In the mode, the receiver is further configured to receive an exit signal after the full screen display;
所述处理器, 还用于在所述接收机接收到所述退出信号之后, 在界面上显 示新的第一页面和第二页面; 所述退出信号包括键盘信号、 单击信号、 双击信 号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号 中的任意一种或者几种的组合。  The processor is further configured to display a new first page and a second page on the interface after the receiver receives the exit signal; the exit signal includes a keyboard signal, a click signal, a double-click signal, A combination of any one or more of a multi-shot signal, a cursor or a click-and-hold signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
结合第三方面的第八种可能的实现方式, 在第三方面的第九种可能的实现 方式中, 所述处理器, 具体用于若所述全屏显示的是所述第一页面, 则继续将 所述第一页面作为新的第一页面显示; 若所述全屏显示的是所述第二页面, 则 将所述第二页面作为新的第一页面显示。  In conjunction with the eighth possible implementation of the third aspect, in a ninth possible implementation manner of the third aspect, the processor is specifically configured to continue if the first page is displayed in the full screen Displaying the first page as a new first page; if the full screen displays the second page, displaying the second page as a new first page.
第四方面, 提供了一种终端, 所述终端包括如上所述的页面切换装置。 本发明实施例提供的技术方案的有益效果是:  In a fourth aspect, a terminal is provided, the terminal comprising a page switching device as described above. The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过在界面上显示第一页面和第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时刻采集当前位置角度; 检测所述当前位置角度减 去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述差值为正 值且大于预设阈值, 则全屏显示所述第二页面, 解决了用户手动点击待切换的 显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达到了提高切换效 率的效果。 附图说明 Displaying a first page and a second page on the interface; collecting a reference position angle at a predetermined time; collecting a current position angle at a current time after the predetermined time; detecting the current position angle minus Whether the difference after the reference position angle is positive and greater than the preset threshold; if the difference is positive and greater than the preset threshold, the second page is displayed in full screen, and the user manually clicks to be switched The display page causes the page switching operation to be cumbersome and easily causes a malfunction, thereby achieving the effect of improving the switching efficiency. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图 1是本发明提供的终端坐标系的第一种建立方式的示意图;  1 is a schematic diagram of a first manner of establishing a terminal coordinate system provided by the present invention;
图 2是本发明提供的终端坐标系的第二种建立方式的示意图;  2 is a schematic diagram of a second manner of establishing a terminal coordinate system provided by the present invention;
图 3是本发明一个实施例提供的页面切换方法的方法流程图;  3 is a flowchart of a method for a page switching method according to an embodiment of the present invention;
图 4是本发明实施例提供的基准位置角度的示意图;  4 is a schematic diagram of a reference position angle provided by an embodiment of the present invention;
图 5是本发明实施例提供的当前位置角度的示意图;  FIG. 5 is a schematic diagram of a current position angle according to an embodiment of the present invention; FIG.
图 6是本发明实施例提供的页面切换的示意图;  6 is a schematic diagram of page switching according to an embodiment of the present invention;
图 7是本发明另一实施例提供的页面切换方法的方法流程图;  FIG. 7 is a flowchart of a method for a page switching method according to another embodiment of the present invention;
图 8是本发明实施例提供的页面切换的第一种示意图;  FIG. 8 is a first schematic diagram of page switching according to an embodiment of the present invention; FIG.
图 9是本发明实施例提供的页面切换的第二种示意图;  FIG. 9 is a second schematic diagram of page switching according to an embodiment of the present invention; FIG.
图 10是本发明再一实施例提供的页面切换方法的方法流程图;  FIG. 10 is a flowchart of a method for a page switching method according to still another embodiment of the present invention; FIG.
图 11是本发明实施例提供的页面切换的第一种示意图;  FIG. 11 is a first schematic diagram of page switching according to an embodiment of the present invention;
图 12是本发明实施例提供的页面切换的第二种示意图;  FIG. 12 is a second schematic diagram of page switching according to an embodiment of the present invention;
图 13是本发明实施例提供的页面切换的第三种示意图;  FIG. 13 is a third schematic diagram of page switching according to an embodiment of the present invention;
图 14是本发明一个实施例提供的页面切换装置的结构示意图;  FIG. 14 is a schematic structural diagram of a page switching apparatus according to an embodiment of the present invention;
图 15是本发明再一实施例提供的页面切换装置的结构示意图;  FIG. 15 is a schematic structural diagram of a page switching apparatus according to still another embodiment of the present invention;
图 16是本发明又一实施例提供的页面切换装置的结构示意图;  16 is a schematic structural diagram of a page switching apparatus according to another embodiment of the present invention;
图 17是本发明一个实施例提供的终端的结构示意图;  FIG. 17 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图 18是本发明另一实施例提供的终端的结构示意图;  FIG. 18 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
图 19是本发明再一实施例提供的终端的结构示意图。 具体实施方式 为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。 FIG. 19 is a schematic structural diagram of a terminal according to still another embodiment of the present invention. detailed description The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明涉及页面切换方法, 可以应用于包含有诸如三轴加速计、 三轴陀螺 仪之类的传感器的终端中, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端设备。  The present invention relates to a page switching method, which can be applied to a terminal including a sensor such as a three-axis accelerometer, a three-axis gyroscope, and the like, which can be a mobile phone, a tablet computer, an e-reader, a PDA (Personal Digital Assistant, personal Terminal equipment such as digital assistants, POS (Point of Sales), and on-board computers.
其中, 在使用传感器时, 可以根据传感器的三条敏感轴的方向所在直线为 终端建立坐标系。 通常, 三条敏感轴的方向分别对应于终端的长、 宽和高, 则 根据敏感轴的方向建立的终端坐标系可以为: 设定终端的界面为 xz平面, 其 中, 终端的中心为坐标原点, 指向终端右方的为 X轴的正半轴, 在终端平面上 垂直于 X轴的为 Z轴, XZ平面内指向终端上方的为 Z轴的正半轴, 垂直于终端 平面的为 y轴, xz平面外指向终端上方的为 y轴的正半轴, 详情请参考图 1 或图 2, 其中图 1为诸如手机之类的阅读方向为竖向的移动终端通常采用的坐 标系建立方式; 图 2为诸如平板电脑之类的阅读方向为横向的移动终端通常采 用的坐标系建立方式。 请参见图 3 , 其示出了本发明一个实施例提供的页面切换方法的方法流程 图。 该页面切换方法可以应用于包含有诸如三轴加速计、 三轴陀螺仪之类的传 感器的终端中, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant , 个人数字助理)、 POS ( Point of Sales, 销售终端)、 车载电脑 等终端设备。 该页面切换方法, 可以包括:  Among them, when using the sensor, the coordinate system can be established for the terminal according to the straight line of the direction of the three sensitive axes of the sensor. Generally, the directions of the three sensitive axes respectively correspond to the length, width and height of the terminal, and the terminal coordinate system established according to the direction of the sensitive axis may be: setting the interface of the terminal to the xz plane, wherein the center of the terminal is the coordinate origin, The positive half of the X-axis pointing to the right of the terminal is the Z-axis perpendicular to the X-axis on the terminal plane, the positive half-axis of the Z-axis above the terminal in the XZ plane, and the y-axis perpendicular to the terminal plane. The xz plane points to the positive half of the y-axis above the terminal. For details, please refer to FIG. 1 or FIG. 2, where FIG. 1 is a coordinate system established by a mobile terminal such as a mobile phone with a vertical reading direction; 2 is a coordinate system establishment method generally adopted by a mobile terminal such as a tablet computer whose reading direction is horizontal. Referring to FIG. 3, a method flow diagram of a page switching method according to an embodiment of the present invention is shown. The page switching method can be applied to a terminal including a sensor such as a three-axis accelerometer, a three-axis gyroscope, which can be a mobile phone, a tablet, an e-reader, a PDA (Personal Digital Assistant). , POS (Point of Sales, sales terminal), car computer and other terminal equipment. The page switching method may include:
步骤 302, 在界面上显示第一页面和第二页面;  Step 302: Display a first page and a second page on the interface;
终端在界面上划分两个显示区域,将第一页面显示在其中的一个显示区域 中, 将第二页面显示在剩余的显示区域中。 其中, 第一页面和第二页面的显示 内容可以是终端运行的应用程序的界面或文件等。 比如, 应用程序可以包括但 不限于电话、 短信和播放器等等。 文件可以包括但不限于图片、 文档等等。  The terminal divides two display areas on the interface, displays the first page in one of the display areas, and displays the second page in the remaining display area. The display content of the first page and the second page may be an interface or a file of an application running by the terminal. For example, applications can include, but are not limited to, phones, text messages, and players. Files can include, but are not limited to, pictures, documents, and the like.
步骤 304, 在预定时刻采集基准位置角度;  Step 304: Collect a reference position angle at a predetermined time;
终端可以通过传感器在预定时刻采集基准位置角度。 其中, 预定时刻可以 是终端预先设置的某一时刻, 或者, 也可以是接收到用户指令的某一时刻, 本 实施例不作限定。  The terminal can acquire the reference position angle at a predetermined time by the sensor. The predetermined time may be a certain time set by the terminal in advance, or may be a certain time when the user's instruction is received, which is not limited in this embodiment.
基准位置角度 Θ 为 A方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 请参考图 4, 其示出了本发明实施例提供的基准位置角度的示意图。 The reference position angle Θ is the angle between the A direction line and the B direction line, and the A direction line is the second page. The center of the face points to the ray of the direction of the center of the first page; the B direction line is the ray of the direction of gravity. Please refer to FIG. 4, which shows a schematic diagram of a reference position angle provided by an embodiment of the present invention.
为了便于理解, 本实施例以三轴加速计为例对采集基准位置角度进行说 明。 基于上述终端坐标系的建立方式, 当达到预定时刻时, 三轴加速计可以通 过一条敏感轴测得该敏感轴所在方向上的加速度 a , 根据 6s = arccos(a/g)的公 式计算出基准位置角度 θ 的大小。 For ease of understanding, the present embodiment uses a three-axis accelerometer as an example to describe the angle of the acquisition reference position. Based on the establishment of the terminal coordinate system described above, when the predetermined time is reached, the three-axis accelerometer can measure the acceleration a in the direction of the sensitive axis through a sensitive axis, and calculate according to the formula of 6 s = arccos(a/g). The size of the reference position angle θ.
步骤 306 , 在该预定时刻之后的当前时刻采集当前位置角度;  Step 306: Collect a current position angle at a current time after the predetermined time;
当前位置角度 e ti为 Α方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 具体的采集方法详见步骤 304中的描述, 此处不赘述。 请参考图 5 , 其示出了 本发明实施例提供的当前位置角度的示意图。 The current position angle e ti is the angle between the Α direction line and the B direction line, and the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity. For details of the collection method, refer to the description in step 304, and details are not described herein. Please refer to FIG. 5 , which shows a schematic diagram of a current position angle provided by an embodiment of the present invention.
步骤 308: 检测当前位置角度减去基准位置角度之后的差值是否为正值且 大于预设阈值;  Step 308: Detect whether the difference between the current position angle minus the reference position angle is positive and greater than a preset threshold;
传感器采集到基准位置角度 θ 和当前位置角度 之后, 终端根据 6差值 = Θ当前 - Θ基准的公式计算出当前位置角度减去基准位置角度的差值, 并检测 该差值是否为正值且大于预设的阈值, 若检测到该差值为正值且大于预设阈 值, 则执行步骤 310; 若检测出该差值为正值且小于预设阈值或该差值为负值, 则结束流程。 其中, 预设阈值可以自行设定和修改, 本实施例不作限定。  After the sensor acquires the reference position angle θ and the current position angle, the terminal calculates the difference between the current position angle minus the reference position angle according to the formula of 6 difference=Θ current-Θ reference, and detects whether the difference is positive and If the difference is positive and greater than the preset threshold, step 310 is performed; if the difference is detected to be positive and less than the preset threshold or the difference is negative, the process ends. Process. The preset threshold can be set and modified by itself, which is not limited in this embodiment.
步骤 310: 若该差值为正值且大于预设阈值, 则全屏显示第二页面。  Step 310: If the difference is positive and greater than a preset threshold, the second page is displayed in full screen.
当检测到该差值为正值且大于预设阈值时,说明用户可能对第二页面的显 示内容感兴趣, 此时, 可以对第二页面进行全屏显示, 具体请参考图 6, 其示 出了本发明实施例提供的页面切换的示意图。  When it is detected that the difference is positive and greater than the preset threshold, the user may be interested in the display content of the second page. In this case, the second page may be displayed in full screen. For details, please refer to FIG. A schematic diagram of page switching provided by an embodiment of the present invention.
综上所述, 本发明实施例提供的页面切换方法, 通过在界面上显示第一页 面和第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时 刻采集当前位置角度;检测所述当前位置角度减去所述基准位置角度之后的差 值是否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显 示所述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁 瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 请参见图 7, 其示出了本发明另一实施例提供的页面切换方法的方法流程 图。 该页面切换方法可以应用于包含有诸如三轴加速计、 三轴陀螺仪之类的传 感器的终端中, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant , 个人数字助理)、 POS ( Point of Sales, 销售终端)、 车载电脑 等终端设备。 该页面切换方法, 可以包括: In summary, the page switching method provided by the embodiment of the present invention displays the first page and the second page on the interface; collects the reference position angle at a predetermined time; and collects the current position angle at the current time after the predetermined time; Detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the difference is a positive value and greater than a preset threshold, displaying the second page in full screen, The problem that the user manually clicks on the display page to be switched causes the page switching operation to be cumbersome and easily caused to malfunction, and the effect of improving the switching efficiency is achieved. Referring to FIG. 7, a flowchart of a method for page switching according to another embodiment of the present invention is shown. The page switching method can be applied to a transmission including a three-axis accelerometer, a three-axis gyroscope, and the like. In the terminal of the sensor, the terminal may be a mobile phone, a tablet computer, an e-reader, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the like. The page switching method may include:
步骤 702, 在界面上显示第一页面和第二页面;  Step 702, displaying the first page and the second page on the interface;
其中, 第一页面和第二页面的显示内容可以是终端运行的应用程序或文件 等。  The display content of the first page and the second page may be an application or a file run by the terminal.
优选地, 终端还可以对界面中显示的第一页面和第二页面进行切换。 具体 地, 终端接收第三滑动信号, 第三滑动信号从第一页面滑向第二页面; 将被滑 向的第二页面中的显示内容切换为第一页面中的显示内容; 或, 接收第四滑动 信号, 第四滑动信号从第二页面滑向第一页面; 将第一页面中的显示内容切换 为滑向的第二页面中的显示内容。  Preferably, the terminal can also switch between the first page and the second page displayed in the interface. Specifically, the terminal receives the third sliding signal, and the third sliding signal is slid from the first page to the second page; switching the display content in the second page that is slid to the display content in the first page; or, receiving the first a fourth sliding signal, the fourth sliding signal sliding from the second page to the first page; switching the display content in the first page to the displayed content in the sliding second page.
步骤 704, 在预定时刻采集基准位置角度;  Step 704: Collect a reference position angle at a predetermined time;
基准位置角度 θ 为 A方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 具体的采集方法详见步骤 304中的描述, 此处不赘述。  The reference position angle θ is the angle between the A direction line and the B direction line, and the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity. For details of the collection method, see the description in step 304, and details are not described here.
步骤 706 , 在预定时刻之后的当前时刻采集当前位置角度;  Step 706: Collect a current position angle at a current time after the predetermined time;
当前位置角度 e ti为 A方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 具体的采集方法详见步骤 304中的描述, 此处不赘述。 The current position angle e ti is the angle between the A direction line and the B direction line, and the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity. For details of the collection method, refer to the description in step 304, and details are not described herein.
步骤 708, 检测当前位置角度减去基准位置角度之后的差值是否为正值且 大于预设阈值;  Step 708, detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
传感器采集到基准位置角度 θ 和当前位置角度 Θ 之后, 终端根据 6差值 = Θ当前 - Θ基准的公式计算出当前位置角度减去基准位置角度的差值, 并检测 该差值是否为正值且大于预设的阈值, 若检测到该差值为正值且大于预设阈 值, 则执行步骤 710; 若检测到该差值的绝对值小于预设阈值且该差值为正值, 则执行步骤 712; 若检测到该差值的绝对值小于预设阈值且该差值为负值, 则 执行步骤 714; 若检测到该差值为零且当前时刻与预定时刻之间的差值大于预 设时间长度, 则执行步骤 716。 其中, 预设阈值可以自行设定和修改, 本实施 例不作限定。  After the sensor acquires the reference position angle θ and the current position angle Θ, the terminal calculates the difference between the current position angle minus the reference position angle according to the formula of 6 difference=Θ current-Θ reference, and detects whether the difference is positive. And being greater than the preset threshold, if the difference is detected to be positive and greater than the preset threshold, step 710 is performed; if the absolute value of the difference is detected to be less than the preset threshold and the difference is positive, then execution is performed. Step 712: If it is detected that the absolute value of the difference is less than the preset threshold and the difference is a negative value, step 714 is performed; if the difference is detected to be zero and the difference between the current time and the predetermined time is greater than the pre- If the length of time is set, step 716 is performed. The preset threshold can be set and modified by itself, which is not limited in this embodiment.
步骤 710, 若差值为正值且大于预设阈值, 则全屏显示第二页面; 当检测到该差值为正值且大于预设阈值时,说明用户可能对第二页面的显 示内容感兴趣, 此时, 可以对第二页面进行全屏显示, 以提升用户的体验。 步骤 712, 若差值的绝对值小于预设阈值且该差值为正值, 则增大第二页 面的显示比例; Step 710: If the difference is positive and greater than the preset threshold, the second page is displayed in full screen. When the difference is detected to be positive and greater than the preset threshold, the user may display the second page. The content is interesting. At this time, the second page can be displayed in full screen to enhance the user experience. Step 712: If the absolute value of the difference is less than a preset threshold and the difference is a positive value, increase the display ratio of the second page.
当检测到差值的绝对值 d、于预设阈值且该差值为正值时,说明用户可能对 第二页面的显示内容感兴趣, 此时, 为了便于用户预览第二页面的显示内容, 可以增大第二页面的显示比例, 具体请参考图 8, 其示出了本发明实施例提供 的页面切换的第一种示意图。  When the absolute value d of the difference is detected, and the difference is positive, the user may be interested in the display content of the second page. In this case, in order to facilitate the user to preview the display content of the second page, The display ratio of the second page can be increased. For details, please refer to FIG. 8 , which illustrates a first schematic diagram of page switching according to an embodiment of the present invention.
进一步地, 增大第二页面的显示比例, 可以包括:  Further, increasing the display ratio of the second page may include:
根据差值的大小增大第二页面的显示比例, 增大的幅度与差值的大小呈正 相关关系。  The display ratio of the second page is increased according to the magnitude of the difference, and the magnitude of the increase is positively correlated with the magnitude of the difference.
具体地, 可以预先对差值和第二页面的正相关关系进行设置。 其中, 可以 根据差值大小实时计算第二页面的显示比例, 比如, 差值为 10。时, 计算第二 页面在界面中的显示比例为 60% , 差值为 13。时, 计算第二页面在界面中的显 示比例为 63%等等; 或者, 可以对差值划分等级, 根据差值的等级调整第二页 面的显示比例, 比如, 差值为 10。-20。时, 设置第二页面在界面中的显示比例 为 60%, 差值为 20。-30。时, 设置第二页面在界面中的显示比例为 70%等等, 本实施例不作限定。  Specifically, the positive correlation between the difference value and the second page may be set in advance. The display ratio of the second page may be calculated in real time according to the difference value, for example, the difference is 10. When calculating, the second page has a display ratio of 60% in the interface and a difference of 13. When the second page is calculated, the display ratio in the interface is 63%, etc.; or, the difference may be graded, and the display ratio of the second page is adjusted according to the level of the difference, for example, the difference is 10. -20. When you set the second page, the display ratio in the interface is 60%, and the difference is 20. -30. The display ratio of the second page in the interface is set to 70%, etc., which is not limited in this embodiment.
步骤 714, 若差值的绝对值小于预设阈值且该差值为负值, 则减小第二页 面的显示比例;  Step 714: If the absolute value of the difference is less than a preset threshold and the difference is a negative value, reducing the display ratio of the second page;
当检测到差值的绝对值小于预设阈值且该差值为负值时,说明用户可能对 第二页面的显示内容不感兴趣, 此时, 可以减小第二页面的显示比例, 同时相 应增大第一页面的显示比例, 具体请参考图 9, 其示出了本发明实施例提供的 页面切换的第二种示意图。  When it is detected that the absolute value of the difference is less than the preset threshold and the difference is a negative value, the user may not be interested in the display content of the second page. In this case, the display ratio of the second page may be reduced, and correspondingly increased. For the display ratio of the first page, please refer to FIG. 9 , which illustrates a second schematic diagram of page switching provided by the embodiment of the present invention.
具体地, 减小第二页面的显示比例, 可以包括:  Specifically, reducing the display ratio of the second page may include:
根据差值的大小减小第二页面的显示比例, 减小的幅度与差值的绝对值的 大小呈正相关关系。  The display ratio of the second page is reduced according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
具体地, 可以预先对差值的绝对值和第二页面的正相关关系进行设置, 具 体设置方法详见步骤 712中的描述, 此处不赘述。  Specifically, the absolute value of the difference and the positive correlation of the second page may be set in advance. For the specific setting method, refer to the description in step 712, and details are not described herein.
步骤 716, 若差值为零且当前时刻与预定时刻之间的差值大于预设时间长 度, 则全屏显示第一页面。  Step 716: If the difference is zero and the difference between the current time and the predetermined time is greater than the preset time length, the first page is displayed in full screen.
当检测到差值为零且当前时刻与预定时刻之间的差值大于预设时间长度 时, 说明用户可能对第一页面的显示内容感兴趣, 此时, 可以对第一页面进行 全屏显示, 以提升用户的体验。 其中, 预设时间长度可以自行设定和修改, 本 实施例不作限定。 When the difference is detected to be zero and the difference between the current time and the predetermined time is greater than the preset time length The user may be interested in the display content of the first page. In this case, the first page may be displayed in full screen to enhance the user experience. The preset time length can be set and modified by itself, which is not limited in this embodiment.
需要补充说明的是, 终端还可以根据预设的触发信号进行页面切换。 具体 地, 上述方法还可以包括: 接收作用于第一页面或者第二页面上的触发信号; 在接收到触发信号之后, 全屏显示第一页面或者第二页面; 触发信号包括键盘 信号、 单击信号、 双击信号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的组合。 其中, 触发信号可以是 用户发出的, 本实施例不作限定。  It should be noted that the terminal can also perform page switching according to a preset trigger signal. Specifically, the method may further include: receiving a trigger signal that is applied to the first page or the second page; after receiving the trigger signal, displaying the first page or the second page in full screen; the trigger signal includes a keyboard signal, a click signal , a double-click signal, a multi-click signal, a cursor or a click pause signal, a predetermined gesture signal, a voice signal, and a shortcut key signal, or a combination of several. The trigger signal may be sent by the user, which is not limited in this embodiment.
进一步地, 在全屏显示之后, 终端退出全屏显示的方法有艮多种, 比如, 终端可以检测基准位置角度 θ 和当前位置角度 的差值, 若该差值为零且 当前时刻与全屏显示时刻之间的差值大于预设时间长度, 则退出全屏显示; 或者, 终端可以根据退出信号退出全屏显示。 具体地, 上述方法还可以包 括: 在全屏显示之后, 接收退出信号; 在接收到退出信号之后, 在界面上显示 新的第一页面和第二页面; 退出信号包括键盘信号、 单击信号、 双击信号、 多 击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的任 意一种或者几种的组合。 其中, 退出信号可以是用户发出的, 本实施例不作限 定。  Further, after the full screen display, there are various methods for the terminal to exit the full screen display. For example, the terminal can detect the difference between the reference position angle θ and the current position angle, if the difference is zero and the current time and the full screen display time If the difference between the differences is greater than the preset time length, the full screen display is exited; or, the terminal may exit the full screen display according to the exit signal. Specifically, the method may further include: after the full screen display, receiving the exit signal; after receiving the exit signal, displaying the new first page and the second page on the interface; the exit signal includes a keyboard signal, a click signal, and a double click Any one or combination of a signal, a multi-shot signal, a cursor or a click-and-hold signal, a predetermined gesture signal, a voice signal, and a shortcut key signal. The exit signal may be sent by the user, which is not limited in this embodiment.
进一步地, 在界面上显示新的第一页面和第二页面, 可以包括:  Further, displaying the new first page and the second page on the interface may include:
若全屏显示的是第二页面, 则将第二页面作为新的第一页面显示。  If the second page is displayed in full screen, the second page is displayed as a new first page.
若全屏显示的是第一页面, 则继续将第一页面作为新的第一页面显示。 其中, 若终端全屏显示的是第二页面, 则退出全屏时, 可以将第二页面作 为新的第一页面进行显示; 若终端全屏显示的是第一页面, 则退出全屏时, 可 以继续将第一页面作为新的第一页面显示。  If the first page is displayed in full screen, the first page is continuously displayed as a new first page. If the terminal displays the second page in full screen, when the full screen is exited, the second page may be displayed as a new first page; if the terminal displays the first page in full screen, when the full screen is exited, the second page may continue. A page is displayed as the new first page.
综上所述, 本实施例提供的页面切换方法, 通过在界面上显示第一页面和 第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时刻采 集当前位置角度; 检测所述当前位置角度减去所述基准位置角度之后的差值是 否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显示所 述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 另外, 若差值的绝对值 小于预设阈值且该差值为正值, 则增大第二页面的显示比例; 若差值的绝对值 小于预设阈值且该差值为负值, 则减小第二页面的显示比例, 解决了不能根据 终端位置调整第一页面和第二页面的显示比例的问题, 达到了动态调整待切换 页面的显示比例的效果。 请参考图 10,其示出了本发明再一提供的页面切换方法的方法流程图。该 页面切换方法可以应用于包含有诸如三轴加速计、三轴陀螺仪之类的传感器的 终端中, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端 设备。 该页面切换方法, 包括: In summary, the page switching method provided by the embodiment includes: displaying the first page and the second page on the interface; collecting the reference position angle at the predetermined time; collecting the current position angle at the current time after the predetermined time; detecting Whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the difference is a positive value and greater than a preset threshold, displaying the second page in full screen, The user manually clicks the display page to be switched, which causes the page switching operation to be cumbersome and easily causes a misoperation, thereby achieving the effect of improving the switching efficiency. In addition, if the absolute value of the difference is less than the preset threshold and the difference is a positive value, the display ratio of the second page is increased; if the absolute value of the difference is If the value is less than the preset threshold and the difference is a negative value, the display ratio of the second page is reduced, and the problem that the display ratio of the first page and the second page cannot be adjusted according to the terminal position is solved, and the page to be switched is dynamically adjusted. Shows the effect of the scale. Please refer to FIG. 10, which shows a flowchart of a method for a page switching method according to still another aspect of the present invention. The page switching method can be applied to a terminal including a sensor such as a three-axis accelerometer or a three-axis gyroscope, which can be a mobile phone, a tablet, an e-reader, a PDA (Personal Digital Assistant). , POS (Point of Sales, sales terminal), car computer and other terminal equipment. The page switching method includes:
步骤 1002, 当第二页面为四个时, 将第一页面显示在界面中央; 将四个第 二页面分别显示在位于第一页面上方、 下方、 左方和右方的四个显示区域中; 当第二页面为多个时, 可以将多个第二页面同时显示在界面上, 以便用户 从预览的多个页面中选择需要切换的页面。  Step 1002: When the second page is four, the first page is displayed in the center of the interface; and the four second pages are respectively displayed in four display areas located above, below, to the left, and to the right of the first page; When the second page is multiple, a plurality of second pages may be simultaneously displayed on the interface, so that the user selects a page to be switched from among the plurality of previewed pages.
进一步地, 若第一页面和第二页面的显示内容对应于文件, 将四个第二页 面分别显示在位于第一页面上方、 下方、 左方和右方的四个显示区域中, 可以 包括:  Further, if the display content of the first page and the second page corresponds to the file, the four second pages are respectively displayed in the four display areas located above, below, to the left, and to the right of the first page, and may include:
若当前第二页面对应的文件为第一页面对应的文件的上层文件, 则将当前 第二页面显示在四个显示区域中的第一显示区域;  If the file corresponding to the current second page is an upper file of the file corresponding to the first page, displaying the current second page in the first display area of the four display areas;
若当前第二页面对应的文件为第一页面对应的文件的下层文件, 则将当前 第二页面显示在四个显示区域中与第一显示区域相对的第二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in the second display area of the four display areas opposite to the first display area;
若当前第二页面对应的文件为排序在第一页面对应的文件之前的同层文 件, 则将当前第二页面显示在四个显示区域中与第一显示区域相邻的第三显示 区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, the current second page is displayed in the third display area adjacent to the first display area in the four display areas;
若当前第二页面对应的文件为排序在第一页面对应的文件之后的同层文 件, 则将当前第二页面显示在四个显示区域中与第三显示区域相对的第四显示 区域。  If the file corresponding to the current second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the fourth display area of the four display areas opposite to the third display area.
具体地,请参考图 11 ,其示出了本发明实施例提供的页面切换的第一种示 意图。 图 11示出了 5个页面, 分别显示第一文件 101、 第二文件 102、 第三文 件 103、 第四文件 104和第五文件 105 , 且第二文件 102为第一文件 101的上 层文件、 第三文件 103为第一文件 101的下层文件、 第四文件 104为排序在第 一文件 101之前的同层文件、第五文件 105为排序在第一文件 101之后的同层 文件, 若当前第一页面的显示内容是第一文件 101 , 则第二文件 102、 第三文 件 103、 第四文件 104和第五文件 105在界面中的显示区域如图 11所示。 Specifically, please refer to FIG. 11 , which illustrates a first schematic diagram of page switching provided by an embodiment of the present invention. 11 shows five pages, respectively showing a first file 101, a second file 102, a third file 103, a fourth file 104, and a fifth file 105, and the second file 102 is an upper file of the first file 101, The third file 103 is a lower layer file of the first file 101, the fourth file 104 is a same layer file before the first file 101, and the fifth file 105 is a same layer sorted after the first file 101. The file, if the display content of the current first page is the first file 101, the display area of the second file 102, the third file 103, the fourth file 104, and the fifth file 105 in the interface is as shown in FIG.
优选地, 将四个第二页面分别显示在位于第一页面上方、 下方、 左方和右 方的四个显示区域中之后, 还可以包括:  Preferably, after the four second pages are respectively displayed in the four display areas located above, below, to the left, and to the right of the first page, the method may further include:
接收第一滑动信号, 第一滑动信号从第一页面滑向四个第二页面中的一 个; 将被滑向的第二页面中的显示内容切换为第一页面中的显示内容; 将第一 页面中的显示内容切换为与被滑向的第二页面相对的另一个第二页面中的显 示内容;  Receiving a first sliding signal, the first sliding signal is slid from the first page to one of the four second pages; switching the display content in the second page that is slid to the display content in the first page; The display content in the page is switched to the display content in another second page opposite to the second page being slid;
或, 接收第二滑动信号, 第二滑动信号从四个第二页面中的一个滑向第一 页面; 将与滑向的第二页面相对的另一个第二页面中的显示内容切换为第一页 面中的显示内容; 将第一页面中的显示内容切换为滑向的第二页面中的显示内 谷。  Or receiving a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page; switching the display content in the other second page opposite to the sliding second page to the first The display content in the page; switches the display content in the first page to the display inner valley in the second page that slides.
请参考图 12, 其示出了本发明实施例提供的页面切换的第二种界面示意 图, 图 12 ( a )对应于第一种滑动方式, 终端接收到第一滑动信号后, 在第五 文件 105的显示区域显示第一文件 101 , 在第一文件 101的显示区域显示第四 文件 104,若检测到有排序在第四文件 104之前的同层文件,则在第四文件 104 的显示区域显示该文件, 若检测到没有排序在第四文件 104之前的同层文件, 则第四文件 104的显示区域为空; 图 12 ( b )对应于第二种滑动方式, 终端接 收到第二滑动信号后, 在第四文件 104的显示区域显示第一文件 101 , 在第一 文件 101的显示区域显示第五文件 105若检测到有排序在第五文件 105之后的 同层文件, 则在第五文件 105的显示区域显示该文件, 若检测到没有排序在第 五文件 105之后的同层文件, 则第五文件 105的显示区域为空。 同理, 终端可 以对第一文件 101和第二文件 102、 第一文件 101与第三文件 103进行切换, 其切换方法如上, 此处不赘述。  Please refer to FIG. 12, which illustrates a second interface diagram of page switching according to an embodiment of the present invention. FIG. 12( a ) corresponds to the first sliding mode, and after receiving the first sliding signal, the terminal is in the fifth file. The display area of the display 105 displays the first file 101, the fourth file 104 is displayed in the display area of the first file 101, and if the same layer file sorted before the fourth file 104 is detected, the display is displayed in the display area of the fourth file 104. The file, if it is detected that the same layer file is not sorted before the fourth file 104, the display area of the fourth file 104 is empty; FIG. 12(b) corresponds to the second sliding mode, and the terminal receives the second sliding signal. After that, the first file 101 is displayed in the display area of the fourth file 104, and the fifth file 105 is displayed in the display area of the first file 101. If the same layer file after the fifth file 105 is detected, the fifth file is displayed. The display area of 105 displays the file, and if it is detected that the same layer file is not sorted after the fifth file 105, the display area of the fifth file 105 is empty. For the same reason, the terminal can switch the first file 101 and the second file 102, the first file 101, and the third file 103, and the switching method is as above, and details are not described herein.
步骤 1004, 在预定时刻采集基准位置角度;  Step 1004: Collect a reference position angle at a predetermined time;
基准位置角度 θ 为 A方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 具体的采集方法详见步骤 304中的描述, 此处不赘述。  The reference position angle θ is the angle between the A direction line and the B direction line, and the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity. For details of the collection method, see the description in step 304, and details are not described here.
步骤 1006, 在预定时刻之后的当前时刻采集当前位置角度;  Step 1006: Collect a current position angle at a current time after the predetermined time;
当前位置角度 为 A方向线与 B方向线之间的夹角, A方向线为第二页 面的中心指向第一页面的中心的方向所在射线; B方向线为重力方向所在射线。 具体的采集方法详见步骤 304中的描述, 此处不赘述。 The current position angle is the angle between the A direction line and the B direction line, and the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity. For details of the collection method, refer to the description in step 304, and details are not described herein.
步骤 1008,检测当前位置角度减去基准位置角度之后的差值是否为正值且 大于预设阈值;  Step 1008: Detect whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
对于四个中的每一个第二页面, 传感器采集到基准位置角度 θ 和当前位 置角度 Θ当前之后,终端根据 Θ差值 = Θ当前 - Θ基准的公式计算出当前位置角度减去基准 位置角度的差值。分析可得,传感器的同一条敏感轴测得的两个差值之和为零。 比如, 同一条敏感轴测得的 6 {41和6 {42的和为零, 另一条敏感轴测得的 6 {43For each of the four second pages, after the sensor acquires the reference position angle θ and the current position angle Θ current, the terminal calculates the current position angle minus the reference position angle according to the formula of the difference value Θ current-Θ reference Difference. The analysis shows that the sum of the two differences measured by the same sensitive axis of the sensor is zero. For example, the sum of 6 {41 and 6 {42 measured by the same sensitive axis is zero, and the other sensitive axis is measured by 6 {43 and
Θ差值 4的和为零。 The sum of the Θ difference 4 is zero.
进一步地, 终端检测每一个差值是否为正值且大于预设的阈值, 若检测到 某一个差值为正值且大于预设阈值,则执行步骤 1010; 若检测到某一个差值的 绝对值小于预设阈值且该差值为正值, 则执行步骤 1012; 若检测到某一个差值 的绝对值小于预设阈值且该差值为负值, 则执行步骤 1014; 若检测到该差值为 零且当前时刻与预定时刻之间的差值大于预设时间长度,则执行步骤 1016。其 中, 预设阈值可以自行设定和修改, 本实施例不作限定。  Further, the terminal detects whether each difference is a positive value and is greater than a preset threshold. If a difference is detected to be a positive value and is greater than a preset threshold, step 1010 is performed; if an absolute difference is detected If the value is less than the preset threshold and the difference is a positive value, step 1012 is performed; if it is detected that the absolute value of a certain difference is less than the preset threshold and the difference is a negative value, step 1014 is performed; if the difference is detected; If the value is zero and the difference between the current time and the predetermined time is greater than the preset time length, then step 1016 is performed. The preset threshold can be set and modified by itself, which is not limited in this embodiment.
步骤 1010, 若差值为正值且大于预设阈值, 则全屏显示第二页面; 当检测到该差值为正值且大于预设阈值时,说明用户可能对第二页面的显 示内容感兴趣, 此时, 可以对第二页面进行全屏显示, 以提升用户的体验。  Step 1010: If the difference is positive and greater than the preset threshold, the second page is displayed in full screen. When the difference is detected to be positive and greater than the preset threshold, the user may be interested in the display content of the second page. At this point, the second page can be displayed in full screen to enhance the user experience.
步骤 1012,若差值的绝对值小于预设阈值且该差值为正值,则增大第二页 面的显示比例;  Step 1012: If the absolute value of the difference is less than a preset threshold and the difference is a positive value, increase the display ratio of the second page;
当检测到差值的绝对值 d、于预设阈值且该差值为正值时,说明用户可能对 第二页面的显示内容感兴趣, 此时, 为了便于用户预览第二页面的显示内容, 可以增大第二页面的显示比例, 具体详见步骤 712中的描述, 此处不赘述。  When the absolute value d of the difference is detected, and the difference is positive, the user may be interested in the display content of the second page. In this case, in order to facilitate the user to preview the display content of the second page, The display ratio of the second page can be increased. For details, refer to the description in step 712, and details are not described herein.
为了便于理解, 此处假设某一个第二页面显示第二文件 102, 且该第二页 面对应的差值的绝对值小于阈值且为正值, 则请参考图 13所示的本发明实施 例提供的页面切换的第三种示意图。  For ease of understanding, it is assumed that a certain second page displays the second file 102, and the absolute value of the difference corresponding to the second page is less than the threshold and is a positive value, please refer to the embodiment of the present invention shown in FIG. The third schematic of the page switch.
需要补充说明的是: 若执行步骤 1012时, 终端检测到某一差值为正值且 大于预设阈值, 则全屏显示该某一差值对应的第二页面。  It should be noted that if the terminal detects that a certain difference is positive and greater than the preset threshold, the second page corresponding to the certain difference is displayed in full screen.
步骤 1014,若差值的绝对值小于预设阈值且该差值为负值,则减小第二页 面的显示比例;  Step 1014, if the absolute value of the difference is less than a preset threshold and the difference is a negative value, reducing the display ratio of the second page;
当检测到差值的绝对值小于预设阈值且该差值为负值时, 可以判断出用户 可能对第二页面的显示内容不感兴趣, 此时, 可以减小第二页面的显示比例, 具体详见步骤 714中的描述, 此处不赘述。 When it is detected that the absolute value of the difference is less than the preset threshold and the difference is a negative value, it may be determined that the user may not be interested in the display content of the second page, and at this time, the display ratio of the second page may be reduced. For details, refer to the description in step 714, and details are not described herein.
需要补充说明的是: 若执行步骤 1014时, 终端检测到某一差值为正值且 大于预设阈值, 则全屏显示该某一差值对应的第二页面。  It should be noted that if the terminal detects that a certain difference is positive and greater than the preset threshold, the second page corresponding to the certain difference is displayed in full screen.
步骤 1016,若差值为零且当前时刻与预定时刻之间的差值大于预设时间长 度, 则全屏显示第一页面。  Step 1016: If the difference is zero and the difference between the current time and the predetermined time is greater than the preset time length, the first page is displayed in full screen.
当检测到差值为零且当前时刻与预定时刻之间的差值大于预设时间长度 时, 可以判断出用户可能对第一页面的显示内容感兴趣, 此时, 可以对第一页 面进行全屏显示, 以提升用户的体验。 其中, 预设时间长度可以自行设定和修 改, 本实施例不作限定。  When it is detected that the difference is zero and the difference between the current time and the predetermined time is greater than the preset time length, it may be determined that the user may be interested in the display content of the first page, and at this time, the first page may be full screen. Display to enhance the user experience. The preset time length can be set and modified by itself, which is not limited in this embodiment.
需要补充说明的是, 终端还可以根据预设的触发信号进行页面切换。 具体 地, 上述方法还可以包括: 接收作用于第一页面或者第二页面上的触发信号; 在接收到触发信号之后, 全屏显示第一页面或者第二页面; 触发信号包括键盘 信号、 单击信号、 双击信号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的组合。 其中, 触发信号可以是 用户发出的, 本实施例不作限定。  It should be noted that the terminal can also perform page switching according to a preset trigger signal. Specifically, the method may further include: receiving a trigger signal that is applied to the first page or the second page; after receiving the trigger signal, displaying the first page or the second page in full screen; the trigger signal includes a keyboard signal, a click signal , a double-click signal, a multi-click signal, a cursor or a click pause signal, a predetermined gesture signal, a voice signal, and a shortcut key signal, or a combination of several. The trigger signal may be sent by the user, which is not limited in this embodiment.
进一步地, 在全屏显示之后, 终端退出全屏显示的方法有艮多种, 比如, 终端可以检测基准位置角度 6s 和当前位置角度 的差值, 若该差值为零且 当前时刻与全屏显示时刻之间的差值大于预设时间长度, 则退出全屏显示; 或者, 终端可以根据退出信号退出全屏显示。 具体地, 上述方法还可以包 括: 在全屏显示之后, 接收退出信号; 在接收到退出信号之后, 在界面上显示 新的第一页面和第二页面; 退出信号包括键盘信号、 单击信号、 双击信号、 多 击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的任 意一种或者几种的组合。 其中, 退出信号可以是用户发出的, 本实施例不作限 定。 Further, after the full screen display, there are various methods for the terminal to exit the full screen display. For example, the terminal can detect the difference between the reference position angle 6 s and the current position angle, if the difference is zero and the current time and the full screen display time If the difference between the differences is greater than the preset time length, the full screen display is exited; or, the terminal may exit the full screen display according to the exit signal. Specifically, the method may further include: after the full screen display, receiving the exit signal; after receiving the exit signal, displaying the new first page and the second page on the interface; the exit signal includes a keyboard signal, a click signal, and a double click Any one or combination of a signal, a multi-shot signal, a cursor or a click-and-hold signal, a predetermined gesture signal, a voice signal, and a shortcut key signal. The exit signal may be sent by the user, which is not limited in this embodiment.
进一步地, 在界面上显示新的第一页面和第二页面, 可以包括:  Further, displaying the new first page and the second page on the interface may include:
若全屏显示的是第二页面, 则将第二页面作为新的第一页面显示; 若全屏 显示的是第一页面, 则继续将第一页面作为新的第一页面显示。  If the second page is displayed in full screen, the second page is displayed as a new first page; if the first page is displayed in full screen, the first page is continuously displayed as a new first page.
其中, 若终端全屏显示的是第二页面, 则退出全屏时, 可以将第二页面作 为新的第一页面进行显示; 若终端全屏显示的是第一页面, 则退出全屏时, 可 以继续将第一页面作为新的第一页面显示。  If the terminal displays the second page in full screen, when the full screen is exited, the second page may be displayed as a new first page; if the terminal displays the first page in full screen, when the full screen is exited, the second page may continue. A page is displayed as the new first page.
综上所述, 本发明实施例提供的页面切换方法, 通过在界面上显示第一页 面和第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时 刻采集当前位置角度;检测所述当前位置角度减去所述基准位置角度之后的差 值是否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显 示所述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁 瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 另外, 当第二页面 为四个时, 通过将第一页面显示在界面中央; 将四个第二页面分别显示在位于 第一页面上方、 下方、 左方和右方的四个显示区域中, 解决了无法根据终端位 置对多个页面进行切换的问题, 达到了降低页面切换的操作复杂度的效果。 请参考图 14,其示出了本发明一个实施例提供的页面切换装置的结构框架 图。 该页面切换装置可以实现成为包含有诸如三轴加速计、 三轴陀螺仪之类的 传感器的终端中的一部分, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端设备。 该页面切换装置, 包括: 第一显示模块 1401、 第一采集 模块 1402、 第二采集模块 1403、 检测模块 1404和第二显示模块 1405。 In summary, the page switching method provided by the embodiment of the present invention displays the first page on the interface. And a second page; collecting a reference position angle at a predetermined time; collecting a current position angle at a current time after the predetermined time; detecting whether a difference after the current position angle minus the reference position angle is a positive value If the difference is a positive value and is greater than the preset threshold, the second page is displayed in full screen, which solves the problem that the user manually clicks the display page to be switched, causing the page switching operation to be cumbersome and easily causing misoperation. , achieved the effect of improving switching efficiency. In addition, when the second page is four, the first page is displayed in the center of the interface; the four second pages are respectively displayed in the four display areas located above, below, to the left, and to the right of the first page, The problem that the multiple pages cannot be switched according to the terminal location is solved, and the effect of reducing the operation complexity of the page switching is achieved. Please refer to FIG. 14, which is a structural diagram of a page switching apparatus according to an embodiment of the present invention. The page switching device can be implemented as part of a terminal including a sensor such as a three-axis accelerometer, a three-axis gyroscope, which can be a mobile phone, a tablet, an e-reader, a PDA (Personal Digital Assistant, personal digital) Assistant), POS (Point of Sales, sales terminal), car computer and other terminal equipment. The page switching device includes: a first display module 1401, a first collection module 1402, a second collection module 1403, a detection module 1404, and a second display module 1405.
第一显示模块 1401 , 用于在界面上显示第一页面和第二页面;  The first display module 1401 is configured to display the first page and the second page on the interface;
第一采集模块 1402, 用于在预定时刻采集基准位置角度;  The first collecting module 1402 is configured to collect a reference position angle at a predetermined time;
第二采集模块 1403 , 用于在预定时刻之后的当前时刻采集当前位置角度; 检测模块 1404,用于检测当前位置角度减去基准位置角度之后的差值是否 为正值且大于预设阈值;  The second collecting module 1403 is configured to collect a current position angle at a current time after the predetermined time; the detecting module 1404 is configured to detect whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
第二显示模块 1405 , 用于若检测模块 1404检测出差值为正值且大于预设 阈值, 则全屏显示第二页面;  The second display module 1405 is configured to display the second page in full screen if the detection module 1404 detects that the difference is positive and greater than a preset threshold;
基准位置角度和当前位置角度均为 A方向线与 B方向线之间的夹角, A 方向线为第二页面的中心指向第一页面的中心的方向所在射线; B方向线为重 力方向所在射线。  The reference position angle and the current position angle are the angles between the A direction line and the B direction line, the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity .
综上所述, 本发明实施例提供的页面切换装置, 通过在界面上显示第一页 面和第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时 刻采集当前位置角度;检测所述当前位置角度减去所述基准位置角度之后的差 值是否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显 示所述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁 瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 请参考图 15 ,其示出了本发明再一实施例提供的页面切换装置的结构框架 图。 该页面切换装置可以实现成为包含有诸如三轴加速计、 三轴陀螺仪之类的 传感器的终端中的一部分, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端设备。 该页面切换装置, 包括: 第一显示模块 1401、 第一采集 模块 1402、 第二采集模块 1403、 检测模块 1404和第二显示模块 1405。 In summary, the page switching apparatus provided by the embodiment of the present invention displays the first page and the second page on the interface; collects the reference position angle at a predetermined time; and collects the current position angle at the current time after the predetermined time; Detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the difference is a positive value and greater than a preset threshold, displaying the second page in full screen, The problem that the user manually clicks on the display page to be switched causes the page switching operation to be cumbersome and easily caused to malfunction, and the effect of improving the switching efficiency is achieved. Please refer to FIG. 15 , which is a structural diagram of a page switching apparatus according to still another embodiment of the present invention. The page switching device can be implemented as part of a terminal including a sensor such as a three-axis accelerometer, a three-axis gyroscope, which can be a mobile phone, a tablet, an e-reader, a PDA (Personal Digital Assistant, personal digital) Assistant), POS (Point of Sales, sales terminal), car computer and other terminal equipment. The page switching device includes: a first display module 1401, a first collection module 1402, a second collection module 1403, a detection module 1404, and a second display module 1405.
第一显示模块 1401 , 用于在界面上显示第一页面和第二页面;  The first display module 1401 is configured to display the first page and the second page on the interface;
第一采集模块 1402, 用于在预定时刻采集基准位置角度;  The first collecting module 1402 is configured to collect a reference position angle at a predetermined time;
第二采集模块 1403 , 用于在预定时刻之后的当前时刻采集当前位置角度; 检测模块 1404,用于检测当前位置角度减去基准位置角度之后的差值是否 为正值且大于预设阈值;  The second collecting module 1403 is configured to collect a current position angle at a current time after the predetermined time; the detecting module 1404 is configured to detect whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
第二显示模块 1405 , 用于若检测模块 1404检测出差值为正值且大于预设 阈值, 则全屏显示第二页面;  The second display module 1405 is configured to display the second page in full screen if the detection module 1404 detects that the difference is positive and greater than a preset threshold;
基准位置角度和当前位置角度均为 A方向线与 B方向线之间的夹角, A 方向线为第二页面的中心指向第一页面的中心的方向所在射线; B方向线为重 力方向所在射线。  The reference position angle and the current position angle are the angles between the A direction line and the B direction line, the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity .
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第三显示模块 1406, 用于若检测模块 1404检测出差值的绝对值小于预设 阈值且该差值为正值, 则增大第二页面的显示比例;  The third display module 1406 is configured to increase a display ratio of the second page if the detection module 1404 detects that the absolute value of the difference is less than a preset threshold and the difference is a positive value;
第四显示模块 1407, 用于若检测模块 1404检测出差值的绝对值小于预设 阈值且该差值为负值, 则减小第二页面的显示比例。  The fourth display module 1407 is configured to reduce the display ratio of the second page if the detection module 1404 detects that the absolute value of the difference is less than a preset threshold and the difference is a negative value.
进一步地, 第三显示模块 1406,具体用于根据差值的大小增大第二页面的 显示比例, 增大的幅度与差值的大小呈正相关关系;  Further, the third display module 1406 is specifically configured to increase the display ratio of the second page according to the size of the difference, and the increased amplitude is positively correlated with the magnitude of the difference;
和 /或, 第四显示模块 1407, 具体用于根据差值的大小减小第二页面的显 示比例, 减小的幅度与差值的绝对值的大小呈正相关关系。  And/or, the fourth display module 1407 is specifically configured to reduce the display ratio of the second page according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第五显示模块 1408, 用于若检测模块 1404检测出差值为零且当前时刻与 预定时刻之间的差值大于预设时间长度, 则全屏显示第一页面。  The fifth display module 1408 is configured to display the first page in full screen if the detecting module 1404 detects that the difference is zero and the difference between the current time and the predetermined time is greater than the preset time length.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第三接收模块 1409, 用于接收作用于第一页面或者第二页面上的触发信 号; The third receiving module 1409 is configured to receive a trigger signal that is applied to the first page or the second page. number;
第六显示模块 1410, 用于在第三接收模块 1409接收到触发信号之后, 全 屏显示第一页面或者第二页面;  The sixth display module 1410 is configured to display the first page or the second page in full screen after the third receiving module 1409 receives the trigger signal;
触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。  The trigger signal includes any one or a combination of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第四接收模块 1411 , 用于在全屏显示之后, 接收退出信号;  a fourth receiving module 1411, configured to receive an exit signal after the full screen display;
第七显示模块 1412, 用于在第四接收模块 1411接收到退出信号之后, 在 界面上显示新的第一页面和第二页面;  The seventh display module 1412 is configured to display a new first page and a second page on the interface after the fourth receiving module 1411 receives the exit signal;
退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。  The exit signal includes any one or a combination of a keyboard signal, a click signal, a double tap signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 第七显示模块 1412, 可以包括:  Further, the seventh display module 1412 may include:
第三显示单元 1501 ,用于若全屏显示的是第一页面,则继续将第一页面作 为新的第一页面显示;  The third display unit 1501 is configured to continue to display the first page as a new first page if the first page is displayed in full screen;
第四显示单元 1502,用于若全屏显示的是第二页面,则将第二页面作为新 的第一页面显示。  The fourth display unit 1502 is configured to display the second page as a new first page if the second page is displayed in full screen.
综上所述, 本实施例提供的页面切换装置, 通过在界面上显示第一页面和 第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时刻采 集当前位置角度; 检测所述当前位置角度减去所述基准位置角度之后的差值是 否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显示所 述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 另外, 若差值的绝对值 小于预设阈值且该差值为正值, 则增大第二页面的显示比例; 若差值的绝对值 小于预设阈值且该差值为负值, 则减小第二页面的显示比例, 解决了不能根据 终端位置调整第一页面和第二页面的显示比例的问题, 达到了动态调整待切换 页面的显示比例的效果。 请参考图 16,其示出了本发明又一实施例提供的页面切换装置的结构框架 图。 该页面切换装置可以实现成为包含有诸如三轴加速计、 三轴陀螺仪之类的 传感器的终端中的一部分, 该终端可以是手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端设备。 该页面切换装置, 包括: 第一显示模块 1401、 第一采集 模块 1402、 第二采集模块 1403、 检测模块 1404和第二显示模块 1405。 In summary, the page switching apparatus provided in this embodiment displays the first page and the second page on the interface; collects the reference position angle at a predetermined time; and collects the current position angle at the current time after the predetermined time; Whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the difference is a positive value and greater than a preset threshold, displaying the second page in full screen, The user manually clicks the display page to be switched, which causes the page switching operation to be cumbersome and easily causes a misoperation, thereby achieving the effect of improving the switching efficiency. In addition, if the absolute value of the difference is less than the preset threshold and the difference is a positive value, the display ratio of the second page is increased; if the absolute value of the difference is less than the preset threshold and the difference is a negative value, The display ratio of the small second page solves the problem that the display ratio of the first page and the second page cannot be adjusted according to the terminal position, and the effect of dynamically adjusting the display ratio of the page to be switched is achieved. Please refer to FIG. 16 , which is a structural diagram of a page switching apparatus according to another embodiment of the present invention. The page switching device can be implemented as part of a terminal including a sensor such as a three-axis accelerometer, a three-axis gyroscope, which can be a mobile phone, a tablet, an e-reader, a PDA (Personal Digital Assistant, personal digital) Assistant), POS (Point of Sales, sales terminal), Terminal equipment such as on-board computers. The page switching device includes: a first display module 1401, a first collection module 1402, a second collection module 1403, a detection module 1404, and a second display module 1405.
第一显示模块 1401 , 用于在界面上显示第一页面和第二页面;  The first display module 1401 is configured to display the first page and the second page on the interface;
第一采集模块 1402, 用于在预定时刻采集基准位置角度;  The first collecting module 1402 is configured to collect a reference position angle at a predetermined time;
第二采集模块 1403, 用于在预定时刻之后的当前时刻采集当前位置角度; 检测模块 1404,用于检测当前位置角度减去基准位置角度之后的差值是否 为正值且大于预设阈值;  The second acquiring module 1403 is configured to collect a current position angle at a current time after the predetermined time; the detecting module 1404 is configured to detect whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold;
第二显示模块 1405, 用于若检测模块 1404检测出差值为正值且大于预设 阈值, 则全屏显示第二页面;  The second display module 1405 is configured to: if the detection module 1404 detects that the difference is a positive value and is greater than a preset threshold, displaying the second page in full screen;
基准位置角度和当前位置角度均为 A方向线与 B方向线之间的夹角, A 方向线为第二页面的中心指向第一页面的中心的方向所在射线; B方向线为重 力方向所在射线。  The reference position angle and the current position angle are the angles between the A direction line and the B direction line, the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity .
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第三显示模块 1406, 用于若检测模块 1404检测出差值的绝对值小于预设 阈值且该差值为正值, 则增大第二页面的显示比例;  The third display module 1406 is configured to increase a display ratio of the second page if the detection module 1404 detects that the absolute value of the difference is less than a preset threshold and the difference is a positive value;
第四显示模块 1407, 用于若检测模块 1404检测出差值的绝对值小于预设 阈值且该差值为负值, 则减小第二页面的显示比例。  The fourth display module 1407 is configured to reduce the display ratio of the second page if the detection module 1404 detects that the absolute value of the difference is less than a preset threshold and the difference is a negative value.
进一步地, 第三显示模块 1406,具体用于根据差值的大小增大第二页面的 显示比例, 增大的幅度与差值的大小呈正相关关系;  Further, the third display module 1406 is specifically configured to increase the display ratio of the second page according to the size of the difference, and the increased amplitude is positively correlated with the magnitude of the difference;
和 /或, 第四显示模块 1407, 具体用于根据差值的大小减小第二页面的显 示比例, 减小的幅度与差值的绝对值的大小呈正相关关系。  And/or, the fourth display module 1407 is specifically configured to reduce the display ratio of the second page according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第五显示模块 1408, 用于若检测模块 1404检测出差值为零且当前时刻与 预定时刻之间的差值大于预设时间长度, 则全屏显示第一页面。  The fifth display module 1408 is configured to display the first page in full screen if the detecting module 1404 detects that the difference is zero and the difference between the current time and the predetermined time is greater than the preset time length.
进一步地, 第二页面为四个, 第一显示模块 1401 , 可以包括:  Further, the second page is four, and the first display module 1401 may include:
第一显示单元 1601 , 用于将第一页面显示在界面中央;  a first display unit 1601, configured to display the first page in the center of the interface;
第二显示单元 1602, 用于将四个第二页面分别显示在位于第一页面上方、 下方、 左方和右方的四个显示区域中。  The second display unit 1602 is configured to display the four second pages in four display areas located above, below, to the left, and to the right of the first page.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第一接收模块 1413, 用于第二显示单元 1602将四个第二页面分别显示在 位于第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第一滑动 信号, 第一滑动信号从第一页面滑向四个第二页面中的一个; The first receiving module 1413 is configured to: after the second display unit 1602 displays the four second pages in the four display areas located above, below, to the left, and to the right of the first page, receive the first sliding. a signal, the first sliding signal sliding from the first page to one of the four second pages;
第一切换模块 1414, 用于第一接收模块 1413接收第一滑动信号之后, 将 被滑向的第二页面中的显示内容切换为第一页面中的显示内容;  The first switching module 1414 is configured to: after the first receiving module 1413 receives the first sliding signal, switch the display content in the second page that is slid to the display content in the first page;
第二切换模块 1415, 用于第一切换模块 1414将被滑向的第二页面中的显 示内容切换为第一页面中的显示内容之后,将第一页面中的显示内容切换为与 被滑向的第二页面相对的另一个第二页面中的显示内容;  The second switching module 1415 is configured to switch the display content in the first page to the display content in the first page after the first switching module 1414 switches the display content in the scanned second page to the displayed content in the first page. The second page is opposite the display content of the other second page;
或, 第二接收模块 1416, 用于第二显示单元 1602将四个第二页面分别显 示在位于第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第二 滑动信号, 第二滑动信号从四个第二页面中的一个滑向第一页面;  Or, the second receiving module 1416 is configured to display, by the second display unit 1602, four second pages, respectively, in the four display areas located above, below, to the left, and to the right of the first page, and receive the second sliding signal. The second sliding signal slides from one of the four second pages to the first page;
第三切换模块 1417, 用于第二接收模块 1416接收第二滑动信号之后, 将 与滑向的第二页面相对的另一个第二页面中的显示内容切换为第一页面中的 显示内容;  The third switching module 1417 is configured to switch, after the second receiving module 1416 receives the second sliding signal, the display content in the second page opposite to the sliding second page to the display content in the first page;
第四切换模块 1418, 用于第三切换模块 1417将与滑向的第二页面相对的 另一个第二页面中的显示内容切换为第一页面中的显示内容之后,将第一页面 中的显示内容切换为滑向的第二页面中的显示内容。  The fourth switching module 1418 is configured to: after the third switching module 1417 switches the display content in another second page opposite to the sliding second page to the display content in the first page, display the first page The content is switched to the display content in the second page that is slid.
进一步地, 若第一页面和第二页面的显示内容对应于文件, 第二显示单元 1602, 具体用于若当前第二页面对应的文件为第一页面对应的文件的上层文 件, 则将当前第二页面显示在四个显示区域中的第一显示区域;  Further, if the display content of the first page and the second page corresponds to the file, the second display unit 1602 is specifically configured to: if the file corresponding to the current second page is the upper file of the file corresponding to the first page, the current The second page is displayed in the first display area of the four display areas;
若当前第二页面对应的文件为第一页面对应的文件的下层文件, 则将当前 第二页面显示在四个显示区域中与第一显示区域相对的第二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in the second display area of the four display areas opposite to the first display area;
若当前第二页面对应的文件为排序在第一页面对应的文件之前的同层文 件, 则将当前第二页面显示在四个显示区域中与第一显示区域相邻的第三显示 区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, the current second page is displayed in the third display area adjacent to the first display area in the four display areas;
若当前第二页面对应的文件为排序在第一页面对应的文件之后的同层文 件, 则将当前第二页面显示在四个显示区域中与第三显示区域相对的第四显示 区域。  If the file corresponding to the current second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the fourth display area of the four display areas opposite to the third display area.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第三接收模块 1409, 用于接收作用于第一页面或者第二页面上的触发信 号;  The third receiving module 1409 is configured to receive a trigger signal that is applied to the first page or the second page.
第六显示模块 1410, 用于在第三接收模块 1409接收到触发信号之后, 全 屏显示第一页面或者第二页面; 触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。 The sixth display module 1410 is configured to display the first page or the second page in full screen after the third receiving module 1409 receives the trigger signal; The trigger signal includes any one or a combination of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 所述装置, 还可以包括:  Further, the device may further include:
第四接收模块 1411 , 用于在全屏显示之后, 接收退出信号;  a fourth receiving module 1411, configured to receive an exit signal after the full screen display;
第七显示模块 1412, 用于在第四接收模块 1411接收到退出信号之后, 在 界面上显示新的第一页面和第二页面;  The seventh display module 1412 is configured to display a new first page and a second page on the interface after the fourth receiving module 1411 receives the exit signal;
退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。  The exit signal includes any one or a combination of a keyboard signal, a click signal, a double tap signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 第七显示模块 1412, 可以包括:  Further, the seventh display module 1412 may include:
第三显示单元 1501 ,用于若全屏显示的是第一页面,则继续将第一页面作 为新的第一页面显示;  The third display unit 1501 is configured to continue to display the first page as a new first page if the first page is displayed in full screen;
第四显示单元 1502,用于若全屏显示的是第二页面,则将第二页面作为新 的第一页面显示。  The fourth display unit 1502 is configured to display the second page as a new first page if the second page is displayed in full screen.
综上所述, 本实施例提供的页面切换装置, 通过在界面上显示第一页面和 第二页面; 在预定时刻采集基准位置角度; 在所述预定时刻之后的当前时刻采 集当前位置角度; 检测所述当前位置角度减去所述基准位置角度之后的差值是 否为正值且大于预设阈值; 若所述差值为正值且大于预设阈值, 则全屏显示所 述第二页面, 解决了用户手动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达到了提高切换效率的效果。 另外, 当第二页面为四 个时, 通过将第一页面显示在界面中央; 将四个第二页面分别显示在位于第一 页面上方、 下方、 左方和右方的四个显示区域中, 解决了无法根据终端位置对 多个页面进行切换的问题, 达到了降低页面切换的操作复杂度的效果。 请参考图 17,其示出了本发明一个实施例提供的终端的结构方框图。本发 明实施例提供的终端可以用于实施图 3、 图 7和图 10所示的方法实施例, 为了 便于说明, 仅示出了与本发明实施例相关的部分, 具体技术细节未揭示的, 请 参考图 3、 图 7和图 10所示的方法实施例。  In summary, the page switching apparatus provided in this embodiment displays the first page and the second page on the interface; collects the reference position angle at a predetermined time; and collects the current position angle at the current time after the predetermined time; Whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold; if the difference is a positive value and greater than a preset threshold, displaying the second page in full screen, The user manually clicks the display page to be switched, which causes the page switching operation to be cumbersome and easily causes a misoperation, thereby achieving the effect of improving the switching efficiency. In addition, when the second page is four, the first page is displayed in the center of the interface; the four second pages are respectively displayed in the four display areas located above, below, to the left, and to the right of the first page, The problem that the multiple pages cannot be switched according to the terminal location is solved, and the effect of reducing the operation complexity of the page switching is achieved. Please refer to FIG. 17, which is a structural block diagram of a terminal according to an embodiment of the present invention. The terminal provided by the embodiment of the present invention may be used to implement the method embodiments shown in FIG. 3, FIG. 7 and FIG. 10. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to the method embodiments shown in FIG. 3, FIG. 7, and FIG.
该终端可以为包括手机、 平板电脑、 电子阅读器、 PDA ( Personal Digital Assistant, 个人数字助理)、 POS ( Point of Sales , 销售终端)、 车载电脑等终端 设备。 本实施例以终端为手机为例, 图 17示出的是与本发明实施例提供的终 端相关的手机 1700的部分结构的框图。 参考图 17, 手机 1700包括 RF ( Radio Frequency, 射频) 电路 1710、 存储器 1720、 输入单元 1730、 显示单元 1740、 传感器 1750、 音频电路 1760、 WiFi(Wireless Fidelity, 无线保真)模块 1770、 处 理器 1780、 电源 1782、 摄像头 1790等部件。 本领域技术人员可以理解, 图 17 中示出的手机结构并不构成对手机的限定, 可以包括比图示更多或更少的部 件, 或者组合某些部件, 或者不同的部件布置。 The terminal can be a terminal device including a mobile phone, a tablet computer, an e-reader, a PDA (Personal Digital Assistant), a POS (Point of Sales), a car computer, and the like. In this embodiment, the terminal is a mobile phone as an example. FIG. 17 is a block diagram showing a part of the structure of the mobile phone 1700 related to the terminal provided by the embodiment of the present invention. Referring to Figure 17, the handset 1700 includes RF (Radio) Frequency, RF circuit 1710, memory 1720, input unit 1730, display unit 1740, sensor 1750, audio circuit 1760, WiFi (Wireless Fidelity) module 1770, processor 1780, power supply 1782, camera 1790, and the like. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 17 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图 17对手机 1700的各个构成部件进行具体的介绍:  The following describes the components of the mobile phone 1700 in conjunction with FIG. 17:
RF电路 1710可用于收发信息或通话过程中,信号的接收和发送,特别地, 将基站的下行信息接收后, 给处理器 1780处理; 另外, 将设计上行的数据发 送给基站。 通常, RF 电路包括但不限于天线、 至少一个放大器、 收发信机、 耦合器、 LNA ( Low Noise Amplifier, 低噪声放大器)、 双工器等。 此外, RF 电路 1710还可以通过无线通信与网络和其他设备通信。 所述无线通信可以使 用任一通信标准或协议, 包括但不限于 GSM(Global System of Mobile communication, 全球移动通讯系统)、 GPRS (General Packet Radio Service , 通 用分组无线服务)、 CDMA(Code Division Multiple Access , 码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽带码分多址)、 LTE(Long Term Evolution,长期演进)、 电子邮件、 SMS (Short Messaging Service, 短消息服 务)等。  The RF circuit 1710 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 1780; in addition, transmitting the designed uplink data to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 1710 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and so on.
存储器 1720可用于存储软件程序以及模块, 处理器 1780通过运行存储在 存储器 1720的软件程序以及模块,从而执行手机 1700的各种功能应用以及数 据处理。 存储器 1720可主要包括存储程序区和存储数据区, 其中, 存储程序 区可存储操作系统、 至少一个功能所需的应用程序(比如声音播放功能、 图像 播放功能等)等; 存储数据区可存储根据手机 1700的使用所创建的数据 (比 如音频数据、 电话本等)等。 此外, 存储器 1720可以包括高速随机存取存储 器, 还可以包括非易失性存储器, 例如至少一个磁盘存储器件、 闪存器件、 或 其他易失性固态存储器件。  Memory 1720 can be used to store software programs and modules, and processor 1780 executes various functional applications and data processing of handset 1700 by running software programs and modules stored in memory 1720. The storage 1720 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone 1700 (such as audio data, phone book, etc.). In addition, memory 1720 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元 1730可用于接收输入的数字或字符信息, 以及产生与手机 1700 的用户设置以及功能控制有关的键信号输入。 具体地, 输入单元 1730可包括 触控面板 1731以及其他输入设备 1732。 触控面板 1731 , 也称为触摸屏, 可收 集用户在其上或附近的触摸操作(比如用户使用手指、 触笔等任何适合的物体 或附件在触控面板 1731上或在触控面板 1731附近的操作), 并根据预先设定 的程式驱动相应的连接装置。 可选的, 触控面板 1731可包括触摸检测装置和 触摸控制器两个部分。 其中, 触摸检测装置检测用户的触摸方位, 并检测触摸 操作带来的信号, 将信号传送给触摸控制器; 触摸控制器从触摸检测装置上接 收触摸信息, 并将它转换成触点坐标, 再送给处理器 1780, 并能接收处理器 1780发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及表 面声波等多种类型实现触控面板 1731。 除了触控面板 1731 , 输入单元 1730还 可以包括其他输入设备 1732。 具体地, 其他输入设备 1732可以包括但不限于 物理键盘、 功能键(比如音量控制按键、 开关按键等)、 轨迹球、 鼠标、 操作 杆等中的一种或多种。 Input unit 1730 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function controls of handset 1700. Specifically, the input unit 1730 may include a touch panel 1731 and other input devices 1732. The touch panel 1731, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1731 or near the touch panel 1731. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 1731 may include a touch detection device and Touch the two parts of the controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information The processor 1780 is provided and can receive commands from the processor 1780 and execute them. In addition, the touch panel 1731 can be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1731, the input unit 1730 may also include other input devices 1732. Specifically, other input devices 1732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元 1740可用于显示由用户输入的信息或提供给用户的信息以及手 机 1700的各种菜单。 显示单元 1740可包括显示面板 1741 , 可选的, 可以采用 LCD(Liquid Crystal Display, 液晶显示器)、 OLED(Organic Light-Emitting Diode, 有机发光二极管)等形式来配置显示面板 1741。 进一步的, 触控面板 1731可覆 盖显示面板 1741 , 当触控面板 1731检测到在其上或附近的触摸操作后, 传送 给处理器 1780以确定触摸事件的类型, 随后处理器 1780根据触摸事件的类型 在显示面板 1741上提供相应的视觉输出。 虽然在图 17中, 触控面板 1731与 显示面板 1741是作为两个独立的部件来实现手机 1700的输入和输入功能,但 是在某些实施例中, 可以将触控面板 1731 与显示面板 1741 集成而实现手机 1700的输入和输出功能。  Display unit 1740 can be used to display information entered by the user or information provided to the user as well as various menus of handset 1700. The display unit 1740 can include a display panel 1741. Alternatively, the display panel 1741 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch panel 1731 can cover the display panel 1741. After the touch panel 1731 detects a touch operation thereon or nearby, the touch panel 1731 transmits to the processor 1780 to determine the type of the touch event, and then the processor 1780 according to the touch event. The type provides a corresponding visual output on display panel 1741. Although in FIG. 17, the touch panel 1731 and the display panel 1741 are two independent components to implement the input and input functions of the mobile phone 1700, in some embodiments, the touch panel 1731 and the display panel 1741 may be integrated. The input and output functions of the mobile phone 1700 are implemented.
手机 1700还可包括至少一种传感器 1750, 比如陀螺仪传感器、 磁感应传 感器、 光传感器、 运动传感器以及其他传感器。 具体地, 光传感器可包括环境 光传感器及接近传感器, 其中, 环境光传感器可根据环境光线的明暗来调节显 示面板 1741的亮度, 接近传感器可在手机 1700移动到耳边时, 关闭显示面板 1741和 /或背光。作为运动传感器的一种,加速度传感器可检测各个方向上(一 般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于识别手 机姿态的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准)、 振动识别相 关功能(比如计步器、 敲击)等; 至于手机 1700还可配置的气压计、 湿度计、 温度计、 红外线传感器等其他传感器, 在此不再赘述。  The handset 1700 can also include at least one sensor 1750, such as a gyro sensor, a magnetic inductive sensor, a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1741 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1741 when the mobile phone 1700 moves to the ear. / or backlight. As a kind of motion sensor, the acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games). , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone 1700 can also be configured with barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer repeat them here.
音频电路 1760、 扬声器 1761 , 传声器 1762可提供用户与手机 1700之间 的音频接口。 音频电路 1760可将接收到的音频数据转换后的电信号, 传输到 扬声器 1761 , 由扬声器 1761 转换为声音信号输出; 另一方面, 传声器 1762 将收集的声音信号转换为电信号, 由音频电路 1760接收后转换为音频数据, 再将音频数据输出处理器 1780处理后, 经 RF电路 1710以发送给比如另一手 机, 或者将音频数据输出至存储器 1720以便进一步处理。 An audio circuit 1760, a speaker 1761, and a microphone 1762 can provide an audio interface between the user and the handset 1700. The audio circuit 1760 can transmit the converted electrical data of the received audio data to the speaker 1761, and convert it into a sound signal output by the speaker 1761; on the other hand, the microphone 1762 converts the collected sound signal into an electrical signal, and the audio circuit 1760 Converted to audio data after receiving, The audio data output processor 1780 is then processed, sent via RF circuitry 1710 to, for example, another handset, or the audio data is output to memory 1720 for further processing.
WiFi属于短距离无线传输技术, 手机 1700通过 WiFi模块 1770可以帮助 用户收发电子邮件、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带 互联网访问。 虽然图 17示出了 WiFi模块 1770, 但是可以理解的是, 其并不属 于手机 1700的必须构成, 完全可以根据需要在不改变发明的本质的范围内而 省略。  WiFi is a short-range wireless transmission technology. The mobile phone 1700 can help users send and receive e-mail, browse web pages and access streaming media through the WiFi module 1770. It provides users with wireless broadband Internet access. Although FIG. 17 shows the WiFi module 1770, it can be understood that it does not belong to the essential configuration of the mobile phone 1700, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器 1780是手机 1700的控制中心, 利用各种接口和线路连接整个手机 的各个部分, 通过运行或执行存储在存储器 1720内的软件程序和 /或模块, 以 及调用存储在存储器 1720内的数据, 执行手机 1700的各种功能和处理数据, 从而对手机进行整体监控。 可选的, 处理器 1780可包括一个或多个处理单元; 优选的, 处理器 1780可集成应用处理器和调制解调处理器, 其中, 应用处理 器主要处理操作系统、 用户界面和应用程序等, 调制解调处理器主要处理无线 通信。 可以理解的是, 上述调制解调处理器也可以不集成到处理器 1780中。  The processor 1780 is the control center of the handset 1700, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 1720, and recalling data stored in the memory 1720, Perform various functions and processing data of the mobile phone 1700 to perform overall monitoring of the mobile phone. Optionally, the processor 1780 may include one or more processing units. Preferably, the processor 1780 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1780.
手机 1700还包括给各个部件供电的电源 1782 (比如电池 ), 优选的, 电源 可以通过电源管理系统与处理器 1782逻辑相连, 从而通过电源管理系统实现 管理充电、 放电、 以及功耗管理等功能。  The handset 1700 also includes a power supply 1782 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically coupled to the processor 1782 through a power management system to manage charging, discharging, and power management functions through the power management system.
摄像头 1790—般由镜头、 图像传感器、 接口、 数字信号处理器、 CPU、 显示屏幕等组成。 其中, 镜头固定在图像传感器的上方, 可以通过手动调节镜 头来改变聚焦; 图像传感器相当于传统相机的 "胶卷", 是摄像头采集图像的 心脏; 接口用于把摄像头利用排线、 板对板连接器、 弹簧式连接方式与手机主 板连接,将采集的图像发送给所述存储器 1720;数字信号处理器通过数学运算 对采集的图像进行处理, 将采集的模拟图像转换为数字图像并通过接口发送给 存储器 1720。  The camera 1790 is generally composed of a lens, an image sensor, an interface, a digital signal processor, a CPU, a display screen, and the like. Wherein, the lens is fixed above the image sensor, and the focus can be changed by manually adjusting the lens; the image sensor is equivalent to the "film" of the conventional camera, and is the heart of the image captured by the camera; the interface is used to connect the camera with the cable and the board to the board And the spring-type connection mode is connected to the mobile phone mainboard, and the collected image is sent to the memory 1720; the digital signal processor processes the acquired image through a mathematical operation, converts the collected analog image into a digital image, and sends the image to the interface Memory 1720.
尽管未示出, 手机 1700还可以包括蓝牙模块等, 在此不再赘述。  Although not shown, the mobile phone 1700 may further include a Bluetooth module or the like, and details are not described herein again.
在本发明实施例中, 该终端所包括的显示单元 1740、 传感器 1750和处理 器 1780还具有以下功能:  In the embodiment of the present invention, the display unit 1740, the sensor 1750, and the processor 1780 included in the terminal further have the following functions:
所述显示单元 1740, 用于在界面上显示第一页面和第二页面;  The display unit 1740 is configured to display the first page and the second page on the interface;
所述传感器 1750,用于在预定时刻采集基准位置角度; 在预定时刻之后的 当前时刻采集当前位置角度;  The sensor 1750 is configured to collect a reference position angle at a predetermined time; collect a current position angle at a current time after the predetermined time;
所述处理器 1780,用于检测当前位置角度减去基准位置角度之后的差值是 否为正值且大于预设阈值; The processor 1780 is configured to detect that the difference between the current position angle and the reference position angle is No positive value and greater than the preset threshold;
所述显示单元 1740, 用于若所述处理器 1780检测出差值为正值且大于预 设阈值, 则全屏显示第二页面;  The display unit 1740 is configured to display the second page in full screen if the processor 1780 detects that the difference is a positive value and is greater than a preset threshold;
基准位置角度和当前位置角度均为 A方向线与 B方向线之间的夹角, A 方向线为第二页面的中心指向第一页面的中心的方向所在射线; B方向线为重 力方向所在射线。  The reference position angle and the current position angle are the angles between the A direction line and the B direction line, the A direction line is the ray in the direction of the center of the second page pointing to the center of the first page; the B direction line is the ray in the direction of gravity .
综上所述,在本发明实施例提供了一种包括输入单元 1730、显示单元 1740、 处理器 1780和传感器 1750等的终端, 通过显示单元 1740在界面上显示第一 页面和第二页面; 传感器 1750在预定时刻采集基准位置角度; 在所述预定时 刻之后的当前时刻采集当前位置角度; 处理器 1780检测所述当前位置角度减 去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述差值为正 值且大于预设阈值, 则显示单元 1740全屏显示所述第二页面, 解决了用户手 动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达 到了提高切换效率的效果。 请参考图 18,其示出了本发明另一实施例提供的终端的结构方框图。本发 明实施例提供的终端可以用于实施图 3、 图 7和图 10所示的方法实施例, 为了 便于说明, 仅示出了与本发明实施例相关的部分, 具体技术细节未揭示的, 请 参考图 3、 图 7和图 10所示的方法实施例。  In summary, the embodiment of the present invention provides a terminal including an input unit 1730, a display unit 1740, a processor 1780, a sensor 1750, and the like, and displays a first page and a second page on the interface through the display unit 1740; 1750 acquires a reference position angle at a predetermined time; collects a current position angle at a current time after the predetermined time; and the processor 1780 detects whether the difference between the current position angle minus the reference position angle is positive and greater than a pre- The threshold is set; if the difference is positive and greater than the preset threshold, the display unit 1740 displays the second page in full screen, which solves the problem that the user manually clicks the display page to be switched, causing the page switching operation to be cumbersome and easily caused by misoperation. The problem is that the effect of improving the switching efficiency is achieved. Please refer to FIG. 18, which is a structural block diagram of a terminal according to another embodiment of the present invention. The terminal provided by the embodiment of the present invention may be used to implement the method embodiments shown in FIG. 3, FIG. 7 and FIG. 10. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to the method embodiments shown in FIG. 3, FIG. 7, and FIG.
具体地, 图 18示出的是与本发明实施例提供的终端相关的手机 1800的部 分结构的框图。 在图 18所示的结构的基础上, 本发明实施例中使用显示单元 1840和处理器 1880分别代替图 17中所示的显示单元 1740和处理器 1780。  Specifically, FIG. 18 is a block diagram showing a partial structure of a mobile phone 1800 related to a terminal provided by an embodiment of the present invention. On the basis of the structure shown in Fig. 18, the display unit 1840 and the processor 1880 are used in place of the display unit 1740 and the processor 1780 shown in Fig. 17, respectively, in the embodiment of the present invention.
所述显示单元 1840, 还用于若所述处理器 1880检测出差值的绝对值小于 预设阈值且该差值为正值, 则增大第二页面的显示比例;  The display unit 1840 is further configured to increase a display ratio of the second page if the processor 1880 detects that the absolute value of the difference is less than a preset threshold and the difference is a positive value;
所述显示单元 1840, 还用于若所述处理器 1880检测出差值的绝对值小于 预设阈值且该差值为负值, 则减小第二页面的显示比例。  The display unit 1840 is further configured to reduce the display ratio of the second page if the processor 1880 detects that the absolute value of the difference is less than a preset threshold and the difference is a negative value.
进一步地,所述显示单元 1840,具体用于根据差值的大小增大第二页面的 显示比例, 增大的幅度与差值的大小呈正相关关系;  Further, the display unit 1840 is specifically configured to increase the display ratio of the second page according to the size of the difference, and the increased amplitude is positively correlated with the magnitude of the difference;
和 /或, 所述显示单元 1840, 具体用于根据差值的大小减小第二页面的显 示比例, 减小的幅度与差值的绝对值的大小呈正相关关系。  And/or, the display unit 1840 is specifically configured to reduce the display ratio of the second page according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
进一步地, 所述显示单元 1840, 还用于若所述处理器 1880检测出差值为 零且当前时刻与预定时刻之间的差值大于预设时间长度, 则全屏显示第一页 面。 Further, the display unit 1840 is further configured to: if the processor 1880 detects the difference is If the difference between the current time and the predetermined time is greater than the preset time length, the first page is displayed in full screen.
进一步地,所述输入单元 1730,用于输入作用于第一页面或者第二页面上 的触发信号;  Further, the input unit 1730 is configured to input a trigger signal that is applied to the first page or the second page;
所述显示单元 1840, 用于在所述输入单元 1730输入触发信号之后, 全屏 显示第一页面或者第二页面;  The display unit 1840 is configured to display the first page or the second page in full screen after the input unit 1730 inputs the trigger signal;
触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。  The trigger signal includes any one or a combination of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 所述输入单元 1730, 还用于在全屏显示之后, 输入退出信号; 所述显示单元 1840, 还用于在所述输入单元 1730输入退出信号之后, 在 界面上显示新的第一页面和第二页面;  Further, the input unit 1730 is further configured to input an exit signal after the full screen display; the display unit 1840 is further configured to display a new first page on the interface after the input unit 1730 inputs the exit signal. And the second page;
退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停 留信号、预定手势信号、声控信号和快捷键信号中的任意一种或者几种的组合。  The exit signal includes any one or a combination of a keyboard signal, a click signal, a double tap signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
进一步地, 所述显示单元 1840, 具体用于若全屏显示的是第一页面, 则继 续将第一页面作为新的第一页面显示;  Further, the display unit 1840 is specifically configured to display the first page as a new first page if the first page is displayed in full screen;
所述显示单元 1840,具体用于若全屏显示的是第二页面, 则将第二页面作 为新的第一页面显示。  The display unit 1840 is specifically configured to display the second page as a new first page if the second page is displayed in full screen.
综上所述,在本发明实施例提供了一种包括输入单元 1730、显示单元 1840、 处理器 1880和传感器 1750等的终端, 通过显示单元 1840在界面上显示第一 页面和第二页面; 传感器 1750在预定时刻采集基准位置角度; 在所述预定时 刻之后的当前时刻采集当前位置角度; 处理器 1880检测所述当前位置角度减 去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述差值为正 值且大于预设阈值, 则显示单元 1840全屏显示所述第二页面, 解决了用户手 动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达 到了提高切换效率的效果。 另外, 若差值的绝对值小于预设阈值且该差值为正 值, 则显示单元 1840增大第二页面的显示比例; 若差值的绝对值小于预设阈 值且该差值为负值, 则显示单元 1840减小第二页面的显示比例, 解决了不能 根据终端位置调整第一页面和第二页面的显示比例的问题, 达到了动态调整待 切换页面的显示比例的效果。 请参考图 19,其示出了本发明再一实施例提供的终端的结构方框图。本发 明实施例提供的终端可以用于实施图 3、 图 7和图 10所示的方法实施例, 为了 便于说明, 仅示出了与本发明实施例相关的部分, 具体技术细节未揭示的, 请 参考图 3、 图 7和图 10所示的方法实施例。 In summary, the embodiment of the present invention provides a terminal including an input unit 1730, a display unit 1840, a processor 1880, a sensor 1750, and the like, and displays a first page and a second page on the interface through the display unit 1840; 1750 acquires a reference position angle at a predetermined time; collects a current position angle at a current time after the predetermined time; and the processor 1880 detects whether the difference between the current position angle minus the reference position angle is positive and greater than a pre- If the difference is positive and greater than the preset threshold, the display unit 1840 displays the second page in full screen, which solves the problem that the user manually clicks on the display page to be switched, which causes the page switching operation to be cumbersome and easily caused by misoperation. The problem is that the effect of improving the switching efficiency is achieved. In addition, if the absolute value of the difference is less than the preset threshold and the difference is a positive value, the display unit 1840 increases the display ratio of the second page; if the absolute value of the difference is less than the preset threshold and the difference is a negative value The display unit 1840 reduces the display ratio of the second page, and solves the problem that the display ratio of the first page and the second page cannot be adjusted according to the terminal position, and achieves the effect of dynamically adjusting the display ratio of the page to be switched. Please refer to FIG. 19, which is a structural block diagram of a terminal according to still another embodiment of the present invention. This hair The terminal provided in the embodiment can be used to implement the method embodiments shown in FIG. 3, FIG. 7 and FIG. 10. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Reference is made to the method embodiments shown in Figures 3, 7 and 10.
具体地, 图 19示出的是与本发明实施例提供的终端相关的手机 1900的部 分结构的框图。 在图 19所示的结构的基础上, 本发明实施例中使用输入单元 1930、 显示单元 1940和处理器 1980分别代替图 18中所示的输入单元 1730、 显示单元 1840和处理器 1880。  Specifically, FIG. 19 is a block diagram showing a partial structure of a mobile phone 1900 associated with a terminal provided by an embodiment of the present invention. On the basis of the structure shown in Fig. 19, the input unit 1930, the display unit 1940, and the processor 1980 are used in place of the input unit 1730, the display unit 1840, and the processor 1880 shown in Fig. 18, respectively.
所述第二页面为四个,所述显示单元 1940,用于将所述第一页面显示在界 面中央; 将所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方 和右方的四个显示区域中。  The second page is four, the display unit 1940 is configured to display the first page in the center of the interface; and the four second pages are respectively displayed above, below, and on the first page. In the four display areas of the square and the right.
进一步地, 所述输入单元 1930, 还用于所述显示单元 1940将所述四个第 二页面分别显示在位于所述第一页面上方、 下方、 左方和右方的四个显示区域 中之后, 输入第一滑动信号, 所述第一滑动信号从所述第一页面滑向所述四个 第二页面中的一个;  Further, the input unit 1930 is further configured to display, by the display unit 1940, the four second pages respectively in four display areas located above, below, to the left, and to the right of the first page. Inputting a first sliding signal, the first sliding signal sliding from the first page to one of the four second pages;
所述处理器 1880, 用于所述输入单元 1930输入第一滑动信号之后, 将所 述被滑向的第二页面中的显示内容切换为所述第一页面中的显示内容; 所述处 理器 1880将所述被滑向的第二页面中的显示内容切换为所述第一页面中的显 示内容之后, 将所述第一页面中的显示内容切换为与所述被滑向的第二页面相 对的另一个第二页面中的显示内容;  The processor 1880 is configured to: after the input unit 1930 inputs the first sliding signal, switch the display content in the sliding second page to the display content in the first page; After switching the display content in the scanned second page to the display content in the first page, switching the display content in the first page to the second page that is slid to The display content in the opposite second page;
或, 所述输入单元 1930, 还用于所述显示单元 1940将所述四个第二页面 分别显示在位于所述第一页面上方、下方、左方和右方的四个显示区域中之后, 输入第二滑动信号, 所述第二滑动信号从所述四个第二页面中的一个滑向所述 第一页面;  Or the input unit 1930 is further configured to display, by the display unit 1940, the four second pages respectively in four display areas located above, below, to the left, and to the right of the first page. Inputting a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page;
所述处理器 1880, 用于所述输入单元 1930输入第二滑动信号之后, 将与 所述滑向的第二页面相对的另一个第二页面中的显示内容切换为所述第一页 面中的显示内容; 所述处理器 1880将与所述滑向的第二页面相对的另一个第 二页面中的显示内容切换为所述第一页面中的显示内容之后, 将所述第一页面 中的显示内容切换为所述滑向的第二页面中的显示内容。  The processor 1880, after the input unit 1930 inputs the second sliding signal, switching the display content in another second page opposite to the sliding second page to the first page. Displaying content; after the processor 1880 switches the display content in the second page opposite to the sliding second page to the display content in the first page, the first page is The display content is switched to the display content in the sliding second page.
进一步地, 若所述第一页面和第二页面的显示内容对应于文件, 所述显示 单元 1940,具体用于若当前第二页面对应的文件为所述第一页面对应的文件的 上层文件, 则将所述当前第二页面显示在所述四个显示区域中的第一显示区 域; Further, if the display content of the first page and the second page corresponds to a file, the display unit 1940 is specifically configured to: if the file corresponding to the current second page is an upper file of the file corresponding to the first page, And displaying the current second page in the first display area of the four display areas area;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第 二显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas Area
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区 域相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同 层文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区 域相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
综上所述,在本发明实施例提供了一种包括输入单元 1930、显示单元 1940、 处理器 1980和传感器 1750等的终端, 通过显示单元 1740在界面上显示第一 页面和第二页面; 传感器 1750在预定时刻采集基准位置角度; 在所述预定时 刻之后的当前时刻采集当前位置角度; 处理器 1980检测所述当前位置角度减 去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述差值为正 值且大于预设阈值, 则显示单元 1940全屏显示所述第二页面, 解决了用户手 动点击待切换的显示页面造成页面切换操作繁瑣、 容易造成误操作的问题, 达 到了提高切换效率的效果。 另外, 当第二页面为四个时, 显示单元 1940通过 将第一页面显示在界面中央; 将四个第二页面分别显示在位于第一页面上方、 下方、 左方和右方的四个显示区域中, 解决了无法根据终端位置对多个页面进 行切换的问题, 达到了降低页面切换的操作复杂度的效果。 需要说明的是: 上述实施例提供的页面切换装置在进行页面切换时, 仅以 上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将页面切换装置的内部结构划分成不同的功 能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例提供的页面 切换装置与页面切换方法实施例属于同一构思, 其具体实现过程详见方法实施 例, 这里不再赘述。  In summary, the embodiment of the present invention provides a terminal including an input unit 1930, a display unit 1940, a processor 1980, a sensor 1750, and the like, and displays a first page and a second page on the interface through the display unit 1740; 1750: acquiring a reference position angle at a predetermined time; collecting a current position angle at a current time after the predetermined time; and detecting, by the processor 1980, whether a difference after the current position angle minus the reference position angle is a positive value and greater than a pre- The threshold is set; if the difference is positive and greater than the preset threshold, the display unit 1940 displays the second page in full screen, which solves the problem that the user manually clicks the display page to be switched, which causes the page switching operation to be cumbersome and easily caused by misoperation. The problem is that the effect of improving the switching efficiency is achieved. In addition, when the second page is four, the display unit 1940 displays the first page in the center of the interface; and displays the four second pages in the four displays above, below, left, and right of the first page. In the area, the problem that the multiple pages cannot be switched according to the terminal location is solved, and the effect of reducing the operation complexity of the page switching is achieved. It should be noted that, when performing page switching, the page switching apparatus provided by the foregoing embodiment is only illustrated by the division of the foregoing functional modules. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the page switching device is divided into different functional modules to complete all or part of the functions described above. In addition, the page switching device and the page switching method embodiment provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in the method embodiment, and details are not described herein again.
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。  The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示 例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来 实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用 所描述的功能, 但是这种实现不应认为超出本发明的范围。 Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Realized. Whether such functions are performed in hardware or software depends on the functionality described for the particular application of the technical solution, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描述 的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and the cleaning of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 可以仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦 合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信 连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit may be only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined. Either can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元 中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以 以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括 若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设 备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质 包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, ROM ), 随机存取 存储器(Random Access Memory, RAM ), 磁碟或者光盘等各种可以存储程序 代码的介质。  The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program code. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of within the technical scope disclosed by the present invention. Variations or substitutions are intended to be covered by the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claims
1、 一种页面切换方法, 其特征在于, 所述方法包括: A method for switching a page, the method comprising:
在界面上显示第一页面和第二页面;  Displaying the first page and the second page on the interface;
在预定时刻采集基准位置角度;  Collecting a reference position angle at a predetermined time;
在所述预定时刻之后的当前时刻采集当前位置角度;  Collecting a current position angle at a current time after the predetermined time;
检测所述当前位置角度减去所述基准位置角度之后的差值是否为正值且大 于预设阈值;  Detecting whether the difference between the current position angle minus the reference position angle is positive and greater than a preset threshold;
若所述差值为正值且大于预设阈值, 则全屏显示所述第二页面;  If the difference is positive and greater than a preset threshold, displaying the second page in full screen;
所述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的夹 角, 所述 A方向线为所述第二页面的中心指向所述第一页面的中心的方向所在 射线; 所述 B方向线为重力方向所在射线。  The reference position angle and the current position angle are both angles between the A direction line and the B direction line, and the A direction line is a direction in which the center of the second page points to the center of the first page. Ray; the B direction line is the ray in the direction of gravity.
2、 根据权利要求 1所述的页面切换方法, 其特征在于, 所述检测所述当前 位置角度减去所述基准位置角度之后的差值是否为正值且大于预设阈值之后, 还包括: The page switching method according to claim 1, wherein the detecting whether the difference between the current position angle and the reference position angle is positive and greater than a preset threshold further includes:
若所述差值的绝对值小于预设阈值且所述差值为正值, 则增大所述第二页 面的显示比例;  If the absolute value of the difference is less than a preset threshold and the difference is a positive value, increasing the display ratio of the second page;
若所述差值的绝对值小于预设阈值且所述差值为负值, 则减小所述第二页 面的显示比例。  If the absolute value of the difference is less than a preset threshold and the difference is a negative value, the display ratio of the second page is decreased.
3、 根据权利要求 2所述的页面切换方法, 其特征在于, 所述增大所述第二 页面的显示比例, 包括: The page switching method according to claim 2, wherein the increasing the display ratio of the second page comprises:
根据所述差值的大小增大所述第二页面的显示比例, 增大的幅度与所述差 值的大小呈正相关关系;  And increasing a display ratio of the second page according to the magnitude of the difference, and the magnitude of the increase is positively correlated with the magnitude of the difference;
和 /或, 所述减小所述第二页面的显示比例, 包括:  And/or, the reducing the display ratio of the second page includes:
根据所述差值的大小减小所述第二页面的显示比例, 减小的幅度与所述差 值的绝对值的大小呈正相关关系。  The display ratio of the second page is decreased according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
4、 根据权利要求 1所述的页面切换方法, 其特征在于, 所述检测所述当前 位置角度减去所述基准位置角度之后的差值是否为正值且大于预设阈值之后, 还包括: The page switching method according to claim 1, wherein, after detecting whether the difference between the current position angle minus the reference position angle is a positive value and greater than a preset threshold, Also includes:
若所述差值为零且所述当前时刻与所述预定时刻之间的差值大于预设时间 长度, 则全屏显示所述第一页面。  If the difference is zero and the difference between the current time and the predetermined time is greater than a preset time length, the first page is displayed in full screen.
5、 根据权利要求 1至 4任一所述的页面切换方法, 其特征在于, 所述第二 页面为四个, 所述在界面上显示第一页面和第二页面, 包括: The page switching method according to any one of claims 1 to 4, wherein the second page is four, and the displaying the first page and the second page on the interface includes:
将所述第一页面显示在界面中央;  Displaying the first page in the center of the interface;
将所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方和右 方的四个显示区域中。  The four second pages are respectively displayed in four display areas located above, below, to the left and to the right of the first page.
6、 根据权利要求 5所述的页面切换方法, 其特征在于, 所述将所述四个第 二页面分别显示在位于所述第一页面上方、 下方、 左方和右方的四个显示区域 中之后, 还包括: The page switching method according to claim 5, wherein the four second pages are respectively displayed in four display areas located above, below, to the left, and to the right of the first page. After that, it also includes:
接收第一滑动信号, 所述第一滑动信号从所述第一页面滑向所述四个第二 页面中的一个;  Receiving a first sliding signal, the first sliding signal sliding from the first page to one of the four second pages;
将所述被滑向的第二页面中的显示内容切换为所述第一页面中的显示内 谷,  Switching the display content in the sliding second page to the display valley in the first page,
将所述第一页面中的显示内容切换为与所述被滑向的第二页面相对的另一 个第二页面中的显示内容;  Switching the display content in the first page to the display content in another second page opposite to the second page being slid;
或, 接收第二滑动信号, 所述第二滑动信号从所述四个第二页面中的一个 滑向所述第一页面;  Or receiving a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page;
将与所述滑向的第二页面相对的另一个第二页面中的显示内容切换为所述 第一页面中的显示内容;  And switching display content in another second page opposite to the sliding second page to display content in the first page;
将所述第一页面中的显示内容切换为所述滑向的第二页面中的显示内容。  Switching the display content in the first page to the display content in the sliding second page.
7、 根据权利要求 5或 6所述的页面切换方法, 其特征在于, 若所述第一页 面和第二页面的显示内容对应于文件, 所述将所述四个第二页面分别显示在位 于所述第一页面上方、 下方、 左方和右方的四个显示区域中, 包括: The page switching method according to claim 5 or 6, wherein if the display content of the first page and the second page corresponds to a file, the four second pages are respectively displayed at the location The four display areas above, below, to the left, and to the right of the first page include:
若当前第二页面对应的文件为所述第一页面对应的文件的上层文件, 则将 所述当前第二页面显示在所述四个显示区域中的第一显示区域;  If the current file corresponding to the second page is an upper file of the file corresponding to the first page, displaying the current second page in the first display area of the four display areas;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第二 显示区域; If the file corresponding to the current second page is a lower layer file of the file corresponding to the first page, The current second page displays a second display area in the four display areas opposite to the first display area;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区域 相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区域 相对的第四显示区域。 8、根据权利要求 1至 7任一所述的页面切换方法, 其特征在于, 所述方法, 还包括:  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area. The method for switching a page according to any one of claims 1 to 7, wherein the method further comprises:
接收作用于所述第一页面或者第二页面上的触发信号;  Receiving a trigger signal acting on the first page or the second page;
在接收到所述触发信号之后, 全屏显示所述第一页面或者第二页面; 所述触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  After receiving the trigger signal, displaying the first page or the second page in full screen; the trigger signal includes a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture signal, Any one or combination of voice control signals and shortcut key signals.
9、根据权利要求 1至 8任一所述的页面切换方法, 其特征在于, 所述方法, 还包括: The method for switching a page according to any one of claims 1 to 8, wherein the method further comprises:
在全屏显示之后, 接收退出信号;  After the full screen display, the exit signal is received;
在接收到所述退出信号之后, 在界面上显示新的第一页面和第二页面; 所述退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  After receiving the exit signal, displaying a new first page and a second page on the interface; the exit signal includes a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture Any one or combination of signals, voice signals, and shortcut signals.
10、 根据权利要求 9所述的页面切换方法, 其特征在于, 所述在界面上显 示新的第一页面和第二页面, 包括: The page switching method according to claim 9, wherein the displaying the new first page and the second page on the interface comprises:
若所述全屏显示的是所述第一页面, 则继续将所述第一页面作为新的第一 页面显示;  If the first page is displayed in the full screen, continuing to display the first page as a new first page;
若所述全屏显示的是所述第二页面, 则将所述第二页面作为新的第一页面 显示。 11、 一种页面切换装置, 其特征在于, 所述装置包括: If the second page is displayed in the full screen, the second page is displayed as a new first page. A page switching device, wherein the device comprises:
第一显示模块, 用于在界面上显示第一页面和第二页面;  a first display module, configured to display the first page and the second page on the interface;
第一采集模块, 用于在预定时刻采集基准位置角度;  a first collecting module, configured to collect a reference position angle at a predetermined time;
第二采集模块, 用于在所述预定时刻之后的当前时刻采集当前位置角度; 检测模块, 用于检测所述当前位置角度减去所述基准位置角度之后的差值 是否为正值且大于预设阈值;  a second acquiring module, configured to collect a current position angle at a current time after the predetermined time; and a detecting module, configured to detect whether a difference between the current position angle and the reference position angle is positive and greater than a pre- Set a threshold;
第二显示模块, 用于若所述检测模块检测出所述差值为正值且大于预设阈 值, 则全屏显示所述第二页面;  a second display module, configured to display the second page in full screen if the detecting module detects that the difference is a positive value and is greater than a preset threshold;
所述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的夹 角, 所述 A方向线为所述第二页面的中心指向所述第一页面的中心的方向所在 射线; 所述 B方向线为重力方向所在射线。  The reference position angle and the current position angle are both angles between the A direction line and the B direction line, and the A direction line is a direction in which the center of the second page points to the center of the first page. Ray; the B direction line is the ray in the direction of gravity.
12、 根据权利要求 11所述的页面切换装置, 其特征在于, 所述装置, 还包 括: The page switching device according to claim 11, wherein the device further comprises:
第三显示模块, 用于若所述检测模块检测出所述差值的绝对值小于预设阈 值且所述差值为正值, 则增大所述第二页面的显示比例;  a third display module, configured to increase a display ratio of the second page if the detecting module detects that the absolute value of the difference is less than a preset threshold and the difference is a positive value;
第四显示模块, 用于若所述检测模块检测出所述差值的绝对值小于预设阈 值且所述差值为负值, 则减小所述第二页面的显示比例。  And a fourth display module, configured to reduce a display ratio of the second page if the detecting module detects that the absolute value of the difference is less than a preset threshold and the difference is a negative value.
13、 根据权利要求 12所述的页面切换装置, 其特征在于, 所述第三显示模 块, 具体用于根据所述差值的大小增大所述第二页面的显示比例, 增大的幅度 与所述差值的大小呈正相关关系; The page switching device according to claim 12, wherein the third display module is configured to increase a display ratio of the second page according to a size of the difference, and increase the amplitude and The magnitude of the difference is positively correlated;
和 /或, 所述第四显示模块, 具体用于根据所述差值的大小减小所述第二页 面的显示比例, 减小的幅度与所述差值的绝对值的大小呈正相关关系。  And/or, the fourth display module is specifically configured to reduce the display ratio of the second page according to the size of the difference, and the magnitude of the reduction is positively correlated with the magnitude of the absolute value of the difference.
14、 根据权利要求 11所述的页面切换装置, 其特征在于, 所述装置, 还包 括: The page switching device according to claim 11, wherein the device further comprises:
第五显示模块, 用于若所述检测模块检测出所述差值为零且所述当前时刻 与所述预定时刻之间的差值大于预设时间长度, 则全屏显示所述第一页面。 15、 根据权利要求 11至 14任一所述的页面切换装置, 其特征在于, 所述 第二页面为四个, 所述第一显示模块, 包括: The fifth display module is configured to display the first page in full screen if the detecting module detects that the difference is zero and the difference between the current time and the predetermined time is greater than a preset time length. The page switching device according to any one of claims 11 to 14, wherein the second page is four, and the first display module comprises:
第一显示单元, 用于将所述第一页面显示在界面中央;  a first display unit, configured to display the first page in a center of the interface;
第二显示单元, 用于将所述四个第二页面分别显示在位于所述第一页面上 方、 下方、 左方和右方的四个显示区域中。  And a second display unit, configured to display the four second pages in four display areas located above, below, to the left, and to the right of the first page.
16、 根据权利要求 15所述的页面切换方装置, 其特征在于, 所述装置, 还 包括: The page switching device according to claim 15, wherein the device further comprises:
第一接收模块, 用于所述第二显示单元将所述四个第二页面分别显示在位 于所述第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第一滑 动信号, 所述第一滑动信号从所述第一页面滑向所述四个第二页面中的一个; 第一切换模块, 用于所述第一接收模块接收所述第一滑动信号之后, 将所 述被滑向的第二页面中的显示内容切换为所述第一页面中的显示内容;  a first receiving module, configured to: display, by the second display unit, the four second pages in four display areas located above, below, to the left, and to the right of the first page, and receive the first a sliding signal, the first sliding signal is slid from the first page to one of the four second pages; a first switching module, after the first receiving module receives the first sliding signal, Switching the display content in the sliding second page to the display content in the first page;
第二切换模块, 用于所述第一切换模块将所述被滑向的第二页面中的显示 内容切换为所述第一页面中的显示内容之后, 将所述第一页面中的显示内容切 换为与所述被滑向的第二页面相对的另一个第二页面中的显示内容;  a second switching module, configured to: after the first switching module switches the display content in the sliding second page to the display content in the first page, display content in the first page Switching to display content in another second page opposite to the second page being slid;
或, 第二接收模块, 用于所述第二显示单元将所述四个第二页面分别显示 在位于所述第一页面上方、 下方、 左方和右方的四个显示区域中之后, 接收第 二滑动信号, 所述第二滑动信号从所述四个第二页面中的一个滑向所述第一页 面;  Or a second receiving module, configured to: display, by the second display unit, the four second pages in four display areas located above, below, to the left, and to the right of the first page, and receive a second sliding signal, the second sliding signal sliding from one of the four second pages to the first page;
第三切换模块, 用于所述第二接收模块接收所述第二滑动信号之后, 将与 所述滑向的第二页面相对的另一个第二页面中的显示内容切换为所述第一页面 中的显示内容;  a third switching module, configured to: after the second receiving module receives the second sliding signal, switch display content in another second page opposite to the sliding second page to the first page Display content in ;
第四切换模块, 用于所述第三切换模块将与所述滑向的第二页面相对的另 一个第二页面中的显示内容切换为所述第一页面中的显示内容之后, 将所述第 一页面中的显示内容切换为所述滑向的第二页面中的显示内容。  a fourth switching module, after the third switching module switches the display content in the second page opposite to the sliding second page to the display content in the first page, The display content in the first page is switched to the display content in the sliding second page.
17、 根据权利要求 15或 16所述的页面切换装置, 其特征在于, 若所述第 一页面和第二页面的显示内容对应于文件, 所述第二显示单元, 具体用于若当 前第二页面对应的文件为所述第一页面对应的文件的上层文件, 则将所述当前 第二页面显示在所述四个显示区域中的第一显示区域; 若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第二 显示区域; The page switching device according to claim 15 or 16, wherein, if the display content of the first page and the second page corresponds to a file, the second display unit is specifically used for the current second The file corresponding to the page is an upper file of the file corresponding to the first page, and the current second page is displayed in the first display area of the four display areas; If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas region;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区域 相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区域 相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
18、 根据权利要求 11至 17任一所述的页面切换装置, 其特征在于, 所述 装置, 还包括: The page switching device according to any one of claims 11 to 17, wherein the device further comprises:
第三接收模块, 用于接收作用于所述第一页面或者第二页面上的触发信号; 第六显示模块, 用于在所述第三接收模块接收到所述触发信号之后, 全屏 显示所述第一页面或者第二页面;  a third receiving module, configured to receive a trigger signal that is applied to the first page or the second page, and a sixth display module, configured to display the full screen after the third receiving module receives the trigger signal First page or second page;
所述触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  The trigger signal includes any one or a combination of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
19、 根据权利要求 11至 18任一所述的页面切换装置, 其特征在于, 所述 装置, 还包括: The page switching device according to any one of claims 11 to 18, wherein the device further comprises:
第四接收模块, 用于在全屏显示之后, 接收退出信号;  a fourth receiving module, configured to receive an exit signal after displaying in full screen;
第七显示模块, 用于在所述第四接收模块接收到所述退出信号之后, 在界 面上显示新的第一页面和第二页面;  a seventh display module, configured to display a new first page and a second page on the interface after the fourth receiving module receives the exit signal;
所述退出信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点 击停留信号、 预定手势信号、 声控信号和快捷键信号中的任意一种或者几种的 组合。  The exit signal includes any one or a combination of a keyboard signal, a click signal, a double tap signal, a multi-shot signal, a cursor or a click stop signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
20、 根据权利要求 19所述的页面切换装置, 其特征在于, 所述第七显示模 块, 包括: The page switching device according to claim 19, wherein the seventh display module comprises:
第三显示单元, 用于若所述全屏显示的是所述第一页面, 则继续将所述第 一页面作为新的第一页面显示; a third display unit, configured to continue the first page if the full screen displays the first page A page is displayed as a new first page;
第四显示单元, 用于若所述全屏显示的是所述第二页面, 则将所述第二页 面作为新的第一页面显示。  And a fourth display unit, configured to display the second page as a new first page if the full screen displays the second page.
21、 一种页面切换装置, 其特征在于, 所述装置包括: A page switching device, wherein the device comprises:
处理器, 用于在界面上显示第一页面和第二页面; 在预定时刻采集基准位 置角度; 在所述预定时刻之后的当前时刻采集当前位置角度; 检测所述当前位 置角度减去所述基准位置角度之后的差值是否为正值且大于预设阈值; 若所述 处理器检测出所述差值为正值且大于预设阈值, 则全屏显示所述第二页面; 所 述基准位置角度和所述当前位置角度均为 A方向线与 B方向线之间的夹角, 所 述 A方向线为所述第二页面的中心指向所述第一页面的中心的方向所在射线; 所述 B方向线为重力方向所在射线。  a processor, configured to display a first page and a second page on the interface; collecting a reference position angle at a predetermined time; collecting a current position angle at a current time after the predetermined time; detecting the current position angle minus the reference Whether the difference after the position angle is positive and greater than a preset threshold; if the processor detects that the difference is positive and greater than a preset threshold, displaying the second page in full screen; And the current position angle is an angle between the A direction line and the B direction line, where the A direction line is a ray in a direction in which a center of the second page points to a center of the first page; The direction line is the ray where the direction of gravity is.
22、 根据权利要求 21所述的页面切换装置, 其特征在于, 所述处理器, 还 用于若所述差值的绝对值小于预设阈值且所述差值为正值, 则增大所述第二页 面的显示比例; 若所述差值的绝对值小于预设阈值且所述差值为负值, 则减小 所述第二页面的显示比例。 The page switching device according to claim 21, wherein the processor is further configured to: if the absolute value of the difference is less than a preset threshold and the difference is a positive value, increase the location The display ratio of the second page is reduced; if the absolute value of the difference is less than a preset threshold and the difference is a negative value, the display ratio of the second page is decreased.
23、 根据权利要求 22所述的页面切换装置, 其特征在于, 所述处理器, 具 体用于根据所述差值的大小增大所述第二页面的显示比例, 增大的幅度与所述 差值的大小呈正相关关系; 和 /或, 根据所述差值的大小减小所述第二页面的显 示比例, 减小的幅度与所述差值的绝对值的大小呈正相关关系。 The page switching device according to claim 22, wherein the processor is configured to increase a display ratio of the second page according to a size of the difference, and increase the amplitude and the The magnitude of the difference is positively correlated; and/or, the display ratio of the second page is decreased according to the magnitude of the difference, and the magnitude of the decrease is positively correlated with the magnitude of the absolute value of the difference.
24、 根据权利要求 21所述的页面切换装置, 其特征在于, 所述处理器, 还 用于若所述差值为零且所述当前时刻与所述预定时刻之间的差值大于预设时间 长度, 则全屏显示所述第一页面。 The page switching device according to claim 21, wherein the processor is further configured to: if the difference is zero and the difference between the current time and the predetermined time is greater than a preset The length of time, the first page is displayed in full screen.
25、 根据权利要求 21至 24任一所述的页面切换装置, 其特征在于, 所述 第二页面为四个, 所述处理器, 具体用于将所述第一页面显示在界面中央; 将 所述四个第二页面分别显示在位于所述第一页面上方、 下方、 左方和右方的四 个显示区域中。 26、 根据权利要求 25所述的页面切换方装置, 其特征在于, 所述装置, 还 包括: The page switching device according to any one of claims 21 to 24, wherein the second page is four, the processor is specifically configured to display the first page in the center of the interface; The four second pages are respectively displayed in four display areas located above, below, to the left, and to the right of the first page. The device of the page switching device according to claim 25, wherein the device further comprises:
接收机, 用于接收第一滑动信号, 所述第二滑动信号从所述第一页面滑向 所述四个第二页面中的一个;  a receiver, configured to receive a first sliding signal, the second sliding signal sliding from the first page to one of the four second pages;
所述处理器, 还用于所述接收机接收第一滑动信号之后, 将所述被滑向的 第二页面中的显示内容切换为所述第一页面中的显示内容; 将所述第一页面中 的显示内容切换为与所述被滑向的第二页面相对的另一个第二页面中的显示内 谷,  The processor is further configured to: after the receiver receives the first sliding signal, switch the display content in the sliding second page to the display content in the first page; The display content in the page is switched to the display inner valley in another second page opposite to the second page being slid.
或, 所述接收机, 还用于接收第二滑动信号, 所述第二滑动信号从所述四 个第二页面中的一个滑向所述第一页面;  Or the receiver is further configured to receive a second sliding signal, and the second sliding signal is slid from the one of the four second pages to the first page;
所述处理器, 还用于所述处理器接收所述第二滑动信号之后, 将与所述滑 向的第二页面相对的另一个第二页面中的显示内容切换为所述第一页面中的显 示内容; 将所述第一页面中的显示内容切换为所述滑向的第二页面中的显示内  The processor is further configured to: after the processor receives the second sliding signal, switch display content in another second page opposite to the sliding second page to the first page Display content; switching the display content in the first page to the display in the sliding second page
27、 根据权利要求 25或 26所述的页面切换装置, 其特征在于, 若所述第 一页面和第二页面的显示内容对应于文件, 所述处理器, 具体用于若当前第二 页面对应的文件为所述第一页面对应的文件的上层文件, 则将所述当前第二页 面显示在所述四个显示区域中的第一显示区域; The page switching device according to claim 25 or 26, wherein, if the display content of the first page and the second page corresponds to a file, the processor is specifically configured to: if the current second page corresponds to The file is an upper layer file of the file corresponding to the first page, and the current second page is displayed in the first display area of the four display areas;
若当前第二页面对应的文件为所述第一页面对应的文件的下层文件, 则将 所述当前第二页面显示在所述四个显示区域中与所述第一显示区域相对的第二 显示区域;  If the current file corresponding to the second page is a lower layer file of the file corresponding to the first page, displaying the current second page in a second display opposite to the first display area in the four display areas Area
若当前第二页面对应的文件为排序在所述第一页面对应的文件之前的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第一显示区域 相邻的第三显示区域;  If the current file corresponding to the second page is a same layer file before the file corresponding to the first page, displaying the current second page in the four display areas and the first display area a third display area of the neighbor;
若当前第二页面对应的文件为排序在所述第一页面对应的文件之后的同层 文件, 则将所述当前第二页面显示在所述四个显示区域中与所述第三显示区域 相对的第四显示区域。  If the current file corresponding to the second page is a same layer file after the file corresponding to the first page, the current second page is displayed in the four display areas as opposed to the third display area. The fourth display area.
28、 根据权利要求 21至 27任一所述的页面切换装置, 其特征在于, 所述 接收机, 还用于接收作用于所述第一页面或者第二页面上的触发信号; 所述处理器, 还用于在所述接收机接收到所述触发信号之后, 全屏显示所 述第一页面或者第二页面; 所述触发信号包括键盘信号、 单击信号、 双击信号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号中的 任意一种或者几种的组合。 The page switching device according to any one of claims 21 to 27, wherein The receiver is further configured to receive a trigger signal that is applied to the first page or the second page, where the processor is further configured to: after the receiver receives the trigger signal, display the first screen in full screen a page or a second page; the trigger signal includes any one or more of a keyboard signal, a click signal, a double-click signal, a multi-shot signal, a cursor or a click pause signal, a predetermined gesture signal, a voice control signal, and a shortcut key signal combination.
29、 根据权利要求 21至 28任一所述的页面切换装置, 其特征在于, 所述 接收机, 还用于在全屏显示之后, 接收退出信号; The page switching device according to any one of claims 21 to 28, wherein the receiver is further configured to receive an exit signal after full-screen display;
所述处理器, 还用于在所述接收机接收到所述退出信号之后, 在界面上显 示新的第一页面和第二页面; 所述退出信号包括键盘信号、 单击信号、 双击信 号、 多击信号、 光标或点击停留信号、 预定手势信号、 声控信号和快捷键信号 中的任意一种或者几种的组合。  The processor is further configured to display a new first page and a second page on the interface after the receiver receives the exit signal; the exit signal includes a keyboard signal, a click signal, a double-click signal, A combination of any one or more of a multi-shot signal, a cursor or a click-and-hold signal, a predetermined gesture signal, a voice signal, and a shortcut key signal.
30、 根据权利要求 29所述的页面切换装置, 其特征在于, 所述处理器, 具 体用于若所述全屏显示的是所述第一页面, 则继续将所述第一页面作为新的第 一页面显示; 若所述全屏显示的是所述第二页面, 则将所述第二页面作为新的 第一页面显示。 The page switching device according to claim 29, wherein the processor is configured to continue to use the first page as a new one if the first page is displayed in the full screen. One page display; if the full screen displays the second page, the second page is displayed as a new first page.
31、 一种终端, 其特征在于, 所述终端包括如权利要求 11至 20任一所述 的页面切换装置。 A terminal, characterized in that the terminal comprises the page switching device according to any one of claims 11 to 20.
32、 一种终端, 其特征在于, 所述终端包括如权利要求 21至 30任一所述 的页面切换装置。 A terminal, characterized in that the terminal comprises the page switching device according to any one of claims 21 to 30.
PCT/CN2013/082806 2012-12-19 2013-09-02 Page switching method and device and terminal WO2014094456A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210554571.0A CN103885692A (en) 2012-12-19 2012-12-19 Page changing method, device and terminal
CN201210554571.0 2012-12-19

Publications (1)

Publication Number Publication Date
WO2014094456A1 true WO2014094456A1 (en) 2014-06-26

Family

ID=50954617

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082806 WO2014094456A1 (en) 2012-12-19 2013-09-02 Page switching method and device and terminal

Country Status (2)

Country Link
CN (1) CN103885692A (en)
WO (1) WO2014094456A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI584154B (en) * 2014-07-08 2017-05-21 拓連科技股份有限公司 Angle-based item determination methods and systems, and related computer program products
CN104268245B (en) * 2014-09-29 2018-05-22 小米科技有限责任公司 Approaches to IM and device
JP6217691B2 (en) * 2015-05-29 2017-10-25 コニカミノルタ株式会社 Display control method, display control program, and display control apparatus
CN108153455B (en) * 2016-12-05 2021-02-05 珠海金山办公软件有限公司 Interface switching method and device
CN110103828A (en) * 2019-05-13 2019-08-09 广州小鹏汽车科技有限公司 Vehicle and its display methods and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201491069U (en) * 2009-06-25 2010-05-26 宇龙计算机通信科技(深圳)有限公司 Mobile communication terminal
CN102156536A (en) * 2010-02-12 2011-08-17 英华达(南京)科技有限公司 Method for controlling mobile electronic device
CN102331900A (en) * 2010-07-13 2012-01-25 和硕联合科技股份有限公司 E-book and control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4350740B2 (en) * 2006-12-05 2009-10-21 レノボ・シンガポール・プライベート・リミテッド Portable electronic device, method for changing display direction of screen, program, and storage medium
CN101739194B (en) * 2008-11-19 2016-01-20 宏达国际电子股份有限公司 The method of adjustment of page display way and its electronic apparatus
US20100138766A1 (en) * 2008-12-03 2010-06-03 Satoshi Nakajima Gravity driven user interface
CN101887340B (en) * 2009-05-11 2013-04-17 深圳Tcl新技术有限公司 Display device and implement method of page turning display
CN102566886A (en) * 2011-09-30 2012-07-11 北京飞漫软件技术有限公司 Method of switching intelligent terminal screen content through gravity sensing
CN102364428B (en) * 2011-10-28 2013-03-20 鸿富锦精密工业(深圳)有限公司 Electronic equipment and page processing method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201491069U (en) * 2009-06-25 2010-05-26 宇龙计算机通信科技(深圳)有限公司 Mobile communication terminal
CN102156536A (en) * 2010-02-12 2011-08-17 英华达(南京)科技有限公司 Method for controlling mobile electronic device
CN102331900A (en) * 2010-07-13 2012-01-25 和硕联合科技股份有限公司 E-book and control method thereof

Also Published As

Publication number Publication date
CN103885692A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
US20160110005A1 (en) Tapping Control Method and Terminal
KR101610454B1 (en) Data transmission method and apparatus, and terminal with touch screen
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
RU2605359C2 (en) Touch control method and portable terminal supporting same
US9113414B2 (en) Standby method for handheld mobile terminal, microprocessor, and mobile phone
US9024877B2 (en) Method for automatically switching user interface of handheld terminal device, and handheld terminal device
US9201521B2 (en) Storing trace information
US9507451B2 (en) File selection method and terminal
US10917515B2 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
CN102906682B (en) Use electronic equipment and the method touching detection surface
RU2662690C2 (en) User apparatus object control device and method of management
US9891816B2 (en) Method and mobile terminal for processing touch input in two different states
US20170083219A1 (en) Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
KR101580914B1 (en) Electronic device and method for controlling zooming of displayed object
US10397649B2 (en) Method of zooming video images and mobile display terminal
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
US10642483B2 (en) Quick screen splitting method, apparatus, and electronic device, display UI, and storage medium
US20130100044A1 (en) Method for Detecting Wake Conditions of a Portable Electronic Device
US20150185953A1 (en) Optimization operation method and apparatus for terminal interface
CN107193664B (en) Message display method and device and mobile terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN107193455B (en) Information processing method and mobile terminal
MX2015007250A (en) Gesture-based conversation processing method, apparatus, and terminal device.
CN107045420B (en) Application program switching method, mobile terminal and storage medium
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium

Legal Events

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

Ref document number: 13864872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct app. not ent. europ. phase

Ref document number: 13864872

Country of ref document: EP

Kind code of ref document: A1