WO2019242457A1 - Application page displaying method and mobile terminal - Google Patents

Application page displaying method and mobile terminal Download PDF

Info

Publication number
WO2019242457A1
WO2019242457A1 PCT/CN2019/088642 CN2019088642W WO2019242457A1 WO 2019242457 A1 WO2019242457 A1 WO 2019242457A1 CN 2019088642 W CN2019088642 W CN 2019088642W WO 2019242457 A1 WO2019242457 A1 WO 2019242457A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
page
application
screen
distance
Prior art date
Application number
PCT/CN2019/088642
Other languages
French (fr)
Chinese (zh)
Inventor
罗永浩
鲁威
陈桂斌
苗华云
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2019242457A1 publication Critical patent/WO2019242457A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

Disclosed are an application page displaying method and a mobile terminal. In the method, a mobile terminal first obtains a first application page to be displayed corresponding to a screen, and a first direction and a first distance for moving the mobile terminal; and displays the page to be displayed when determining that the first direction is a preset direction and the first distance is greater than a preset first threshold. The display of an application page only depends on whether a direction and a distance for moving a mobile terminal meet requirements, and whether a screen corresponds to a certain application page to be displayed. According to the method, a user does not need to touch a specific button on the screen or make a page switching gesture. Therefore, the dependency of page display on a manual touch operation of the user is reduced, the convenience of page display is improved, and the user experience is effectively improved.

Description

一种应用页面展示方法及移动终端Application page display method and mobile terminal 技术领域Technical field
本公开涉及电子设备技术领域,尤其涉及一种应用页面展示方法及移动终端。The present disclosure relates to the technical field of electronic devices, and in particular, to an application page display method and a mobile terminal.
背景技术Background technique
用户在使用移动终端时,时常面临在一个应用(Application,APP)内进行页面切换的需求。例如,从微信的聊天页面切换至朋友圈页面,从浏览器的网页页面切换至历史记录页面等。此时,便需要移动终端从展示当前页面改变为展示一个新的页面。When using a mobile terminal, users often face the need to switch pages within an application (Application, APP). For example, switching from the WeChat chat page to the circle of friends page, from the browser's web page page to the history page, and so on. At this time, the mobile terminal needs to be changed from displaying the current page to displaying a new page.
现有的应用页面展示方法是,移动终端首先响应于用户对屏幕按钮的触发,从当前页面跳转至应用的菜单页或页面管理窗口,然后根据用户特殊切换手势或在页面管理窗口的选择操作,展示相应的页面。但是这种方法操作繁琐,并且对于用户的手动触控操作具有较高的依赖性,当移动终端屏幕较大,屏幕按钮处于难以触及的位置时,应用新页面的展示难度提升。因此,该方法便捷度较低,导致用户体验下降。The existing application page display method is that the mobile terminal first responds to the user's triggering of a screen button, jumps from the current page to the application's menu page or page management window, and then according to the user's special switching gesture or selection operation in the page management window To display the corresponding page. However, this method is cumbersome to operate, and has a high dependence on the user's manual touch operation. When the screen of the mobile terminal is large and the screen buttons are in an inaccessible position, the difficulty of displaying the new page of the application increases. Therefore, the convenience of this method is low, resulting in a decline in user experience.
发明内容Summary of the Invention
为了解决现有技术中存在的以上技术问题,本公开提供一种应用页面展示方法及移动终端,无需用户点击移动终端的屏幕按钮或者使用特殊切换手势,移动终端即可便捷地展示应用的页面。In order to solve the above technical problems in the prior art, the present disclosure provides an application page display method and a mobile terminal. The mobile terminal can conveniently display an application page without the user having to click a screen button of the mobile terminal or use a special switching gesture.
本公开解决技术问题的技术方案是:The technical solutions of the present disclosure to solve the technical problems are:
本公开第一方面提供一种应用页面展示方法,该方法包括:A first aspect of the present disclosure provides a method for displaying an application page. The method includes:
获得移动终端屏幕对应的第一应用待展示页面,以及移动终端移动的第一方向和第一距离;Obtaining a first application to-be-displayed page corresponding to a mobile terminal screen, and a first direction and a first distance of the mobile terminal moving;
确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,展示所述第一应用待展示页面;所述预设方向为垂直于所述移动终端屏幕 的方向。When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, the page to be displayed of the first application is displayed; the preset direction is a direction perpendicular to the screen of the mobile terminal.
可选的,所述获得移动终端屏幕对应的第一应用待展示页面,包括:Optionally, obtaining the first application to-be-displayed page corresponding to the screen of the mobile terminal includes:
获得所述移动终端移动的第二方向和第二距离;Obtaining a second direction and a second distance that the mobile terminal moves;
根据所述第二方向、所述第二距离和第一应用各个页面的初始位置,获得所述移动终端屏幕对应的第一应用待展示页面;所述第一应用各个页面的初始位置为所述第一应用各个页面按照预设布局平铺在一个平面上的位置,所述平面平行于所述移动终端屏幕;所述第二方向平行于所述移动终端屏幕,且至少包括向上、向下、向左和向右中的一种。Obtaining the first application to-be-displayed page corresponding to the mobile terminal screen according to the second direction, the second distance, and the initial position of each page of the first application; the initial position of each page of the first application is the Each page of the first application is tiled on a plane according to a preset layout, the plane is parallel to the screen of the mobile terminal; the second direction is parallel to the screen of the mobile terminal, and includes at least upward, downward, One of left and right.
可选的,所述第一方向和所述第二方向为通过以下中的至少一种获得:Optionally, the first direction and the second direction are obtained by at least one of the following:
所述移动终端上设置的加速度传感器、陀螺仪传感器和相机传感器。An acceleration sensor, a gyroscope sensor, and a camera sensor provided on the mobile terminal.
可选的,所述获得所述移动终端移动的第一距离,包括:Optionally, obtaining the first distance moved by the mobile terminal includes:
根据所述移动终端设置的加速度传感器,获得所述移动终端移动的第一加速度;根据所述移动终端设置的计时器,获得所述移动终端移动的第一时间;根据所述第一加速度和所述第一时间,获得所述移动终端移动的第一速度;在所述第一时间的区间内对所述第一速度积分,获得所述第一距离;According to an acceleration sensor provided by the mobile terminal, a first acceleration of the mobile terminal movement is obtained; according to a timer provided by the mobile terminal, a first time of the mobile terminal movement is obtained; according to the first acceleration and the Said first time, obtaining a first speed of movement of said mobile terminal; integrating said first speed within an interval of said first time to obtain said first distance;
所述获得所述移动终端移动的第二距离,包括:The obtaining the second distance moved by the mobile terminal includes:
根据所述加速度传感器,获得所述移动终端移动的第二加速度;根据所述计时器,获得所述移动终端移动的第二时间;根据所述第二加速度和所述第二时间,获得所述移动终端移动的第二速度;在所述第二时间的区间内对所述第二速度积分,获得所述第二距离。Obtaining a second acceleration of the mobile terminal movement according to the acceleration sensor; obtaining a second time of movement of the mobile terminal according to the timer; obtaining the second acceleration of the mobile terminal according to the second acceleration and the second time A second speed at which the mobile terminal moves; integrating the second speed within the second time interval to obtain the second distance.
可选的,所述获得所述移动终端移动的第一距离,包括:Optionally, obtaining the first distance moved by the mobile terminal includes:
获得所述移动终端以所述第一方向移动时,利用所述移动终端设置的相机传感器拍摄的第一环境图像;根据所述第一环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第一距离;Obtaining a first environment image captured by the camera sensor provided by the mobile terminal when the mobile terminal moves in the first direction; and according to the feature point position change between every two adjacent frames in the first environment image To determine the distance that the mobile terminal moves between every two adjacent frames, and add up the distance that the mobile terminal moves between all two adjacent frames to obtain the first distance;
所述获得所述移动终端移动的第二距离,包括:The obtaining the second distance moved by the mobile terminal includes:
获得所述移动终端以所述第二方向移动时,利用所述移动终端设置的相机传感器拍摄的第二环境图像;根据所述第二环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第二距离。Obtaining a second environment image captured by the camera sensor provided by the mobile terminal when the mobile terminal moves in the second direction; and according to the feature point position change between every two adjacent frames in the second environment image To determine the distance that the mobile terminal moves between each two adjacent frames, and add up the distance that the mobile terminal moves between all two adjacent frames to obtain the second distance.
可选的,所述展示所述第一应用待展示页面之后,还包括:Optionally, after displaying the page to be displayed on the first application, the method further includes:
获得所述移动终端移动的第三方向和第三距离;Obtaining a third direction and a third distance that the mobile terminal moves;
确定所述第三方向为所述第一方向的相反方向且所述第三距离大于预设第二阈值时,所述移动终端屏幕对应所述第一应用待展示页面。When it is determined that the third direction is opposite to the first direction and the third distance is greater than a preset second threshold, the screen of the mobile terminal corresponds to the page to be displayed of the first application.
可选的,所述展示所述第一应用待展示页面之后,还包括:Optionally, after displaying the page to be displayed on the first application, the method further includes:
检测到所述移动终端上的预设按钮被触发时,所述移动终端屏幕对应所述第一应用待展示页面。When it is detected that a preset button on the mobile terminal is triggered, the screen of the mobile terminal corresponds to the page to be displayed of the first application.
可选的,所述移动终端屏幕对应所述第一应用待展示页面,包括:Optionally, the screen of the mobile terminal corresponding to the page to be displayed of the first application includes:
所述移动终端屏幕包含所述第一应用待展示页面的微型窗口,所述微型窗口的显示面积始终小于所述移动终端屏幕的全屏展示面积。The screen of the mobile terminal includes a micro window of the page to be displayed of the first application, and a display area of the micro window is always smaller than a full screen display area of the screen of the mobile terminal.
本公开第二方面提供一种移动终端,包括:控制器和屏幕;A second aspect of the present disclosure provides a mobile terminal including: a controller and a screen;
控制器,用于获得所述屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离;确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,控制通过所述屏幕展示所述第一应用待展示页面;所述预设方向为垂直于所述屏幕的方向。A controller for obtaining a first application to-be-displayed page corresponding to the screen, and a first direction and a first distance of the mobile terminal movement; determining that the first direction is a preset direction and the first distance is greater than When the first threshold value is preset, control displays the page of the first application to be displayed through the screen; the preset direction is a direction perpendicular to the screen.
本公开第三方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面提供的应用页面展示方法。A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the application page display method provided by the first aspect above.
与现有技术相比,本公开至少具有以下优点:Compared with the prior art, the present disclosure has at least the following advantages:
本公开中,移动终端首先获得屏幕对应的第一应用待展示页面,以及移动终端移动的第一方向和第一距离;确定第一方向为预设方向且所述第一距离大于预设第一阈值时,展示待展示页面。由此可见,应用页面的展示与否仅取决于移动终端移动的方向和距离是否符合要求,以及屏幕是否对应着应用的某个待展示页面。该方法无需用户触摸屏幕上的特定按钮或执行页面切换手势,因此,降低了页面展示对用户手动触控操作的依赖性,提高了页面展示的便捷性,并有效提升用户体验。In the present disclosure, a mobile terminal first obtains a first application to-be-displayed page corresponding to a screen, and a first direction and a first distance of the mobile terminal moving; it is determined that the first direction is a preset direction and the first distance is greater than the preset first At the threshold, the page to be displayed is displayed. It can be seen that whether the application page is displayed or not depends only on whether the mobile terminal's moving direction and distance meet the requirements, and whether the screen corresponds to a certain page of the application to be displayed. This method does not require the user to touch a specific button on the screen or perform a page switching gesture. Therefore, the dependency of the page display on the user's manual touch operation is reduced, the convenience of the page display is improved, and the user experience is effectively improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本公开中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions in the embodiments of the present disclosure or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some of the embodiments described in this disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本实施例提供的应用页面展示方法流程图;FIG. 1 is a flowchart of an application page display method according to this embodiment;
图2为本公开实施例提供的第一应用各个页面的布局示意图;FIG. 2 is a schematic layout diagram of each page of a first application according to an embodiment of the present disclosure; FIG.
图3为本公开实施例提供的一种移动终端屏幕对应待展示页面的场景示意图;3 is a schematic diagram of a scene of a mobile terminal screen corresponding to a page to be displayed according to an embodiment of the present disclosure;
图4为本公开实施例提供的另一种移动终端屏幕对应待展示页面的场景示意图;4 is a schematic diagram of another mobile terminal screen corresponding to a page to be displayed according to an embodiment of the present disclosure;
图5为本公开实施例提供的又一种移动终端屏幕对应待展示页面的场景示意图;5 is a schematic diagram of a scene of a mobile terminal screen corresponding to a page to be displayed according to an embodiment of the present disclosure;
图6为本实施例提供的应用页面展示方法流程图;FIG. 6 is a flowchart of a method for displaying an application page according to this embodiment; FIG.
图7为本公开实施例提供的移动终端左移示意图;7 is a schematic diagram of a mobile terminal moving leftward according to an embodiment of the present disclosure;
图8为本公开实施例提供的移动终端下移示意图;8 is a schematic diagram of a mobile terminal moving down according to an embodiment of the present disclosure;
图9为本公开实施例提供的移动终端右移示意图;FIG. 9 is a schematic diagram of a mobile terminal moving rightward according to an embodiment of the present disclosure; FIG.
图10为本公开实施例提供的移动终端上移示意图;10 is a schematic diagram of moving up a mobile terminal according to an embodiment of the present disclosure;
图11为本公开实施例提供的第一应用各个页面的布局示意图;FIG. 11 is a schematic layout diagram of each page of a first application according to an embodiment of the present disclosure; FIG.
图12为本公开实施例提供的移动终端左移20mm的示意图;FIG. 12 is a schematic diagram of a mobile terminal moved 20mm to the left according to an embodiment of the present disclosure;
图13为本公开实施例提供的移动终端沿移动终端屏幕的背面朝向移动的示意图;13 is a schematic diagram of a mobile terminal moving along a back surface of a screen of a mobile terminal according to an embodiment of the present disclosure;
图14为本公开实施例提供的移动终端全屏展示页面的示意图;14 is a schematic diagram of a full-screen display page of a mobile terminal according to an embodiment of the present disclosure;
图15为本公开实施例提供的移动终端结构示意图。FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
具体实施方式detailed description
现有技术中,移动终端展示应用页面时,需要首先响应于用户对屏幕按钮的触发操作,从当前页面跳转至应用的菜单页或者页面管理窗口,然后根据用户的特殊切换手势或在页面管理窗口的选择操作,展示相应的页面。例如,移动终端展示的页面为用户与联系人的对话页面,此时用户有需求阅读微信“朋友圈”页面的讯息,则用户首先需要点击屏幕上的回退 按钮来到微信的菜单页,然后点击“发现”按钮再选择“朋友圈”,从而进入“朋友圈”页面。In the prior art, when a mobile terminal displays an application page, it needs to first respond to the user ’s trigger operation on the screen button, jump from the current page to the application's menu page or page management window, and then according to the user's special switching gesture or in the page management The selection operation of the window displays the corresponding page. For example, the page displayed on the mobile terminal is a dialogue page between the user and the contact. At this time, the user needs to read the message on the WeChat “Friends Circle” page. Then the user needs to click the back button on the screen to go to the WeChat menu page, and then Click the "Discover" button and select "Friends" to enter the "Friends" page.
显然,目前展示应用页面的方法操作过于繁琐。另外,因该方法对于用户的手动触控操作依赖性过高,当移动终端屏幕较大,屏幕按钮处于难以触及的位置时,会导致应用新页面的展示难度提升,造成用户体验下降。Obviously, the current method of displaying application pages is too cumbersome. In addition, because this method is too dependent on the user ’s manual touch operation, when the screen of the mobile terminal is large and the on-screen buttons are in hard-to-reach locations, it will cause the difficulty of displaying new application pages to increase, resulting in a decline in user experience.
为解决以上问题,本公开实施例提供了一种应用页面展示方法,移动终端首先获得屏幕对应的第一应用待展示页面,以及移动终端移动的第一方向和第一距离;确定第一方向为预设方向且所述第一距离大于预设第一阈值时,展示待展示页面。由此可知,该方法中,应用页面的展示与否仅取决于移动终端移动的方向和距离是否符合要求,以及屏幕是否对应着应用的某个待展示页面。该方法无需用户触摸屏幕上的特定按钮或执行页面切换手势,因此,降低了页面展示对用户手动触控操作的依赖性,提高了页面展示的便捷性,并有效提升用户体验。In order to solve the above problem, an embodiment of the present disclosure provides an application page display method. A mobile terminal first obtains a first application to-be-displayed page corresponding to a screen, and a first direction and a first distance of the mobile terminal movement; determining that the first direction is When the preset direction and the first distance are greater than a preset first threshold, a page to be displayed is displayed. It can be known from this method that whether the application page is displayed or not only depends on whether the direction and distance of the mobile terminal meets the requirements, and whether the screen corresponds to a certain page of the application to be displayed. This method does not require the user to touch a specific button on the screen or perform a page switching gesture. Therefore, the dependency of the page display on the user's manual touch operation is reduced, the convenience of the page display is improved, and the user experience is effectively improved.
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to enable those skilled in the art to better understand the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These embodiments are part of, but not all of, the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
方法实施例:Method embodiment:
需要说明,在本实施例中,移动终端可以是任何移动或便携式电子设备,包括但不限于智能手机、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器等。当用户需要使用移动终端展示某应用的某一个页面时,可以通过手持姿势携带移动终端移动。It should be noted that, in this embodiment, the mobile terminal may be any mobile or portable electronic device, including but not limited to a smart phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, and the like. When a user needs to use a mobile terminal to display a certain page of an application, he can carry the mobile terminal to move through a handheld gesture.
参见图1,图1是本实施例提供的应用页面展示方法流程图。Referring to FIG. 1, FIG. 1 is a flowchart of an application page display method provided by this embodiment.
本实施例提供了一种应用页面展示方法,包括:This embodiment provides a method for displaying an application page, including:
S101:获得移动终端屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离。S101: Obtain a first application to-be-displayed page corresponding to a screen of a mobile terminal, and a first direction and a first distance that the mobile terminal moves.
待展示页面,是指移动终端根据用户的需求,需要展示的应用页面。在本实施例中,以第一应用作为待展示页面的所属应用进行示例性描述。The page to be displayed refers to the application page that the mobile terminal needs to display according to the needs of the user. In this embodiment, the first application is exemplarily described as the application to which the page to be displayed belongs.
在本实施例中,第一应用的各个页面可以是按照预设布局平铺在一个 与移动终端屏幕平行的平面上。图2是本公开实施例提供的一种第一应用各个页面的布局示意图。如图2所示的示例性布局,一平面内设置有页面A,在平面内页面A的正左方、正下方、正右方和正上方设置有页面B、页面C、页面D和页面E;在页面C的正左方和正右方设置有页面F和页面G;在页面E的正左方和正右方设置有页面H和页面I。In this embodiment, each page of the first application may be tiled on a plane parallel to the screen of the mobile terminal according to a preset layout. FIG. 2 is a schematic diagram of layout of each page of a first application according to an embodiment of the present disclosure. As shown in the exemplary layout shown in FIG. 2, page A is provided in one plane, and page B, page C, page D, and page E are provided directly to the left, directly below, right, and directly above page A in the plane; Pages F and G are set to the left and right of page C; pages H and I are set to the left and right of page E.
移动终端在全屏展示页面时,一次仅能展示一个页面。因此,移动终端在展示待展示页面之前,为避免对第一应用的待展示页面以外的其他页面错误展示,首先需要从第一应用的诸多页面中确定出待展示页面。在本实施例中,将移动终端屏幕对应的页面作为第一应用待展示页面。下面参见图3至图5,具体举例了三种移动终端屏幕对应待展示页面的场景。When a mobile terminal displays a page in full screen, it can only display one page at a time. Therefore, before the mobile terminal displays the page to be displayed, in order to avoid displaying the pages other than the page to be displayed of the first application by mistake, it is necessary to first determine the pages to be displayed from the many pages of the first application. In this embodiment, the page corresponding to the screen of the mobile terminal is used as the page to be displayed for the first application. Referring to FIGS. 3 to 5 below, specific scenarios of three types of mobile terminal screens corresponding to pages to be displayed are illustrated.
在图3所示场景中,移动终端屏幕21内包含一个用于确定对应的页面的预设区域211,该预设区域211每次最多包含一个第一应用页面,移动终端屏幕21中可以同时包含多个第一应用的完整页面。当预设区域211内包含第一应用的某个页面时,移动终端将该页面作为移动终端屏幕21对应的页面,即待展示页面。根据图3示例的场景,页面A包含于预设区域211内,因此移动终端屏幕21对应的第一应用待展示页面是页面A。In the scenario shown in FIG. 3, the mobile terminal screen 21 includes a preset area 211 for determining a corresponding page, and the preset area 211 includes at most one first application page at a time, and the mobile terminal screen 21 may include both Complete pages for multiple first apps. When the preset area 211 contains a certain page of the first application, the mobile terminal uses the page as a page corresponding to the mobile terminal screen 21, that is, a page to be displayed. According to the scenario illustrated in FIG. 3, page A is included in the preset area 211, so the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page A.
在图4所示场景与图3类似,移动终端屏幕21内包含一个用于确定对应的页面的预设区域212,该预设区域212每次最多包含一个第一应用页面,移动终端屏幕21仅可同时包含一个第一应用的完整页面。当预设区域212内包含第一应用的某个页面时,移动终端将该页面作为移动终端屏幕212对应的页面,即待展示页面。根据图4示例的场景,页面A包含于预设区域212内,因此移动终端屏幕21对应的第一应用待展示页面是页面A。The scenario shown in FIG. 4 is similar to FIG. 3. The mobile terminal screen 21 includes a preset area 212 for determining a corresponding page. The preset area 212 includes at most one first application page at a time. The mobile terminal screen 21 only Can contain a complete page of a first application at the same time. When the preset area 212 contains a certain page of the first application, the mobile terminal uses the page as a page corresponding to the mobile terminal screen 212, that is, a page to be displayed. According to the scenario illustrated in FIG. 4, page A is included in the preset area 212, so the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page A.
在图5所示场景中,移动终端屏幕21每次最多包含一个第一应用的完整页面,移动终端将移动终端屏幕21包含的唯一完整页面作为移动终端屏幕21对应的页面,即待展示页面。根据图5示例的场景,页面A包含于移动终端屏幕21内,因此移动终端屏幕21对应的第一应用待展示页面是页面A。In the scenario shown in FIG. 5, the mobile terminal screen 21 includes at most one complete page of the first application, and the mobile terminal uses the unique complete page included in the mobile terminal screen 21 as the page corresponding to the mobile terminal screen 21, that is, the page to be displayed. According to the scenario illustrated in FIG. 5, page A is included in the mobile terminal screen 21, so the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page A.
可以理解的是,在上述场景示例中,预设区域211及预设区域212的形状可以为矩形、圆形、椭圆形等,对预设区域的形状不作具体限制。预设区域211及预设区域212的重心位置可以分别如图3和图4所示,与移动终端屏幕21的重心位置重合,也可以不与移动终端屏幕21的重心位置 重合,例如,预设区域211或预设区域212位于移动终端屏幕21内的上方、下方、左方或右方等。It can be understood that, in the foregoing scenario example, the shapes of the preset area 211 and the preset area 212 may be rectangular, circular, or oval, and the shape of the preset area is not specifically limited. The positions of the center of gravity of the preset region 211 and the preset region 212 may be shown in FIG. 3 and FIG. 4 respectively, and may coincide with the position of the center of gravity of the mobile terminal screen 21, or may not coincide with the position of the center of gravity of the mobile terminal screen 21 The area 211 or the preset area 212 is located above, below, left or right in the mobile terminal screen 21.
可以理解的是,当用户从第一应用的各个页面中选取待展示页面时,移动终端屏幕可能多次对应当前不需要展示的页面。为防止移动终端对当前不需要展示的页面进行展示,移动终端还需要通过额外的用户操作确定用户的选择。进而,本实施例提供的应用页面展示方法中,在获得移动终端屏幕对应的待展示页面后,还需获取移动终端移动的第一方向和第一距离。It can be understood that when the user selects a page to be displayed from each page of the first application, the screen of the mobile terminal may correspond to a page that does not currently need to be displayed multiple times. In order to prevent the mobile terminal from displaying a page that does not currently need to be displayed, the mobile terminal also needs to determine the user's selection through additional user operations. Further, in the method for displaying an application page provided in this embodiment, after obtaining a page to be displayed corresponding to a screen of a mobile terminal, it is also necessary to obtain a first direction and a first distance that the mobile terminal moves.
本实施例中,第一方向具体为获得移动终端屏幕对应的待展示页面后,移动终端移动的方向;第一距离具体为获得移动终端屏幕对应的待展示页面后,移动终端以第一方向为移动方向所移动的距离。In this embodiment, the first direction is specifically the direction in which the mobile terminal moves after obtaining the page to be displayed corresponding to the screen of the mobile terminal; the first distance is specifically after obtaining the page to be displayed corresponding to the screen of the mobile terminal, the mobile terminal uses the first direction as The distance moved by the direction of movement.
S102:确定第一方向为预设方向且第一距离大于预设第一阈值时,展示待展示页面。S102: When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, a page to be displayed is displayed.
预设第一阈值是预先设置的用于触发移动终端展示待展示页面操作的距离限值。本步骤中,第一方向与预设方向的一致性,及第一距离与预设第一阈值的大小关系,是决定移动终端能否对待展示页面进行展示的两个决定因素。仅当移动终端确定第一方向为预设方向,且第一距离大于预设第一阈值时,移动终端展示待展示页面。The preset first threshold is a preset distance limit for triggering the mobile terminal to display the operation of the page to be displayed. In this step, the consistency between the first direction and the preset direction, and the relationship between the first distance and the preset first threshold are two determining factors that determine whether the mobile terminal can display the displayed page. Only when the mobile terminal determines that the first direction is a preset direction and the first distance is greater than a preset first threshold, the mobile terminal displays a page to be displayed.
本实施例中,预设方向为垂直于移动终端屏幕的方向。预设方向可以是移动终端屏幕的背面朝向,也可以是移动终端屏幕的正面朝向。需要说明的是,当预设方向用于对移动终端移动的第一方向进行确定时,预设方向唯一。In this embodiment, the preset direction is a direction perpendicular to the screen of the mobile terminal. The preset direction may be the back direction of the screen of the mobile terminal, or the front direction of the screen of the mobile terminal. It should be noted that when the preset direction is used to determine a first direction in which the mobile terminal moves, the preset direction is unique.
作为一种具体实现方式,若预设方向为移动终端屏幕的背面朝向,当移动终端确定第一方向为移动终端屏幕的背面朝向,且第一距离大于预设第一阈值时,展示待展示页面。作为另一种具体实现方式,若预设方向为移动终端屏幕的正面朝向,当移动终端确定第一方向为移动终端屏幕的正面朝向,且第一距离大于预设第一阈值时,展示待展示页面。As a specific implementation manner, if the preset direction is the back direction of the screen of the mobile terminal, when the mobile terminal determines that the first direction is the back direction of the screen of the mobile terminal and the first distance is greater than the preset first threshold, the page to be displayed is displayed . As another specific implementation manner, if the preset direction is the front direction of the screen of the mobile terminal, when the mobile terminal determines that the first direction is the front direction of the screen of the mobile terminal and the first distance is greater than the preset first threshold, the display is to be displayed page.
以上为本公开实施例提供的应用页面展示方法,移动终端首先获得屏幕对应的第一应用待展示页面,以及移动终端移动的第一方向和第一距离;确定第一方向为预设方向且所述第一距离大于预设第一阈值时,展示待展示页面。由此可知,该方法中,应用页面的展示与否仅取决于移动终端移 动的方向和距离是否符合要求,以及屏幕是否对应着应用的某个待展示页面。该方法无需用户触摸屏幕上的特定按钮或执行页面切换手势,因此,降低了页面展示对用户手动触控操作的依赖性,提高了页面展示的便捷性,并有效提升用户体验。The above is an application page display method provided by an embodiment of the present disclosure. A mobile terminal first obtains a first application to-be-displayed page corresponding to a screen, and a first direction and a first distance the mobile terminal moves; it is determined that the first direction is a preset direction and When the first distance is greater than a preset first threshold, a page to be displayed is displayed. It can be known that in this method, whether the application page is displayed or not depends only on whether the direction and distance of the mobile terminal's movement meets the requirements, and whether the screen corresponds to a certain page of the application to be displayed. This method does not require the user to touch a specific button on the screen or perform a page switching gesture. Therefore, the dependency of the page display on the user's manual touch operation is reduced, the convenience of the page display is improved, and the user experience is effectively improved.
在实际应用中,移动终端常常面临从当前时刻展示的第一应用当前页面切换到下一时刻需要展示的第一应用另一页面的需求。因此,在前述实施例提供的应用页面展示方法的基础上,本公开实施例还提供了另一种应用页面展示方法,详述如何实现页面的切换展示。In practical applications, mobile terminals often face the need to switch from the current page of the first application displayed at the current moment to another page of the first application to be displayed at the next moment. Therefore, on the basis of the application page display method provided in the foregoing embodiment, the embodiment of the present disclosure also provides another application page display method, which details how to implement the switching display of pages.
参见图6,图6是本实施例提供的应用页面展示方法流程图。Referring to FIG. 6, FIG. 6 is a flowchart of an application page display method provided by this embodiment.
本实施例提供的应用页面展示方法,包括:The application page display method provided in this embodiment includes:
S601:获得移动终端移动的第二方向和第二距离。S601: Obtain a second direction and a second distance that the mobile terminal moves.
在本实施例中,可以将移动终端以第二方向移动第二距离后,移动终端屏幕对应的第一应用页面确定为第一应用待展示页面。因此本步骤中,为正确获取第一应用待展示页面,移动终端首先获取自身实际移动时的第二方向和第二距离。In this embodiment, after the mobile terminal is moved a second distance in the second direction, the first application page corresponding to the screen of the mobile terminal is determined as the first application to be displayed page. Therefore, in this step, in order to correctly obtain the page to be displayed of the first application, the mobile terminal first obtains the second direction and the second distance when it actually moves.
第二方向平行于移动终端屏幕,且至少包括向上、向下、向左和向右中的一种。移动终端上设置的加速度传感器可获得移动终端的运动方向,陀螺仪传感器可用于对移动中的移动终端进行定位和定向,相机传感器获取的图像可用于移动终端根据特征点的位置变化判断移动终端的移动方向。因此,移动终端的第二方向可以通过加速度传感器、陀螺仪传感器和相机传感器中的一种或多种获得。采用多种传感器获得的第二方向具有更高的准确性。The second direction is parallel to the screen of the mobile terminal and includes at least one of upward, downward, leftward, and rightward. The acceleration sensor provided on the mobile terminal can obtain the movement direction of the mobile terminal, the gyroscope sensor can be used to locate and orient the mobile terminal while it is moving, and the image obtained by the camera sensor can be used by the mobile terminal to judge the mobile terminal's Direction of movement. Therefore, the second direction of the mobile terminal may be obtained by one or more of an acceleration sensor, a gyro sensor, and a camera sensor. The second direction obtained with multiple sensors has higher accuracy.
参见图7至图10,分别示意了移动终端以四种不同方向移动的示意图,图7至图10均以图5所示的移动终端屏幕对应待展示页面的场景为移动基准。在图5所示场景中,移动终端屏幕21对应第一应用的页面A。Referring to FIGS. 7 to 10, there are illustrated schematic diagrams of a mobile terminal moving in four different directions, and FIGS. 7 to 10 all use the scene of the mobile terminal screen shown in FIG. 5 corresponding to a page to be displayed as a movement reference. In the scenario shown in FIG. 5, the mobile terminal screen 21 corresponds to page A of the first application.
如图7所示,当移动终端沿着平行于移动终端屏幕21向左的方向移动第二距离后,第一应用的页面B正对于移动终端屏幕21。因此,经过移动,移动终端屏幕21对应的第一应用待展示页面为页面B。As shown in FIG. 7, after the mobile terminal moves a second distance in a direction parallel to the mobile terminal screen 21 to the left, the page B of the first application is facing the mobile terminal screen 21. Therefore, after moving, the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page B.
如图8所示,当移动终端沿着平行于移动终端屏幕21向下的方向移动第二距离后,第一应用的页面C正对于移动终端屏幕21。因此,经过移动, 移动终端屏幕21对应的第一应用待展示页面为页面C。As shown in FIG. 8, after the mobile terminal moves a second distance in a direction parallel to the downward direction of the mobile terminal screen 21, the page C of the first application is facing the mobile terminal screen 21. Therefore, after moving, the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page C.
如图9所示,当移动终端沿着平行于移动终端屏幕21向右的方向移动第二距离后,第一应用的页面D正对于移动终端屏幕21。因此,经过移动,移动终端屏幕21对应的第一应用待展示页面为页面D。As shown in FIG. 9, after the mobile terminal moves a second distance in a direction parallel to the mobile terminal screen 21 to the right, the page D of the first application is facing the mobile terminal screen 21. Therefore, after moving, the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page D.
如图10所示,当移动终端沿着平行于移动终端屏幕21向上的方向移动第二距离后,第一应用的页面E正对于移动终端屏幕21。因此,经过移动,移动终端屏幕21对应的第一应用待展示页面为页面E。As shown in FIG. 10, after the mobile terminal moves a second distance in an upward direction parallel to the mobile terminal screen 21, the page E of the first application is facing the mobile terminal screen 21. Therefore, after moving, the page to be displayed of the first application corresponding to the mobile terminal screen 21 is page E.
需要说明的是,移动终端移动时可以移动一次到位或移动多次到位,每一次移动按照图7至图10所示第二方向中的任一种进行。如果移动终端是通过移动多次到位的,每次移动的第二方向可以相同,也可以不同。如果移动终端是通过移动多次到位的,则获取的第二距离也是针对各次移动的第二方向分别获取第二方向对应的第二距离。It should be noted that when the mobile terminal is moved, it can be moved once or in place multiple times, and each movement is performed according to any one of the second directions shown in FIG. 7 to FIG. 10. If the mobile terminal is in place by moving multiple times, the second direction of each movement may be the same or different. If the mobile terminal is in place by moving a plurality of times, the obtained second distance is also a second distance corresponding to the second direction for each second direction of the movement.
在本实施例中,将移动终端以第二方向进行移动时,加速度传感器获取的加速度作为第二加速度。移动终端具体可以根据加速传感器获取的第二加速度的大小,选择第二距离的获取方式。下面提供两种根据加速度的大小确定第二距离获取方法的方式。In this embodiment, when the mobile terminal is moved in the second direction, the acceleration obtained by the acceleration sensor is used as the second acceleration. The mobile terminal may specifically select a second distance acquisition method according to the magnitude of the second acceleration acquired by the acceleration sensor. Two methods for determining the second distance obtaining method according to the magnitude of the acceleration are provided below.
第一种,当移动终端第二加速度小于或等于预设加速度阈值时,移动终端利用自身设置的相机传感器拍摄第二环境图像;其后根据所述第二环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离;最终,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第二距离。为便于理解,下面举例说明该实施方式:移动终端以第二方向移动耗时2秒,相机拍摄2秒视频,视频由每秒钟30帧频率拍摄的图像帧构成,因此该视频包含共计60帧图像。根据每相邻两帧图像中特征点的位置变化确定两帧图像拍摄时刻之间移动终端移动的距离。由此将距离累加,即可得到2秒视频拍摄过程中,移动终端移动的第二距离。First, when the second acceleration of the mobile terminal is less than or equal to a preset acceleration threshold, the mobile terminal uses a camera sensor set by itself to capture a second environment image; thereafter, according to each second frame in the second environment image, The position of the feature point changes to determine the distance moved by the mobile terminal between each two adjacent frames; finally, the distance moved by the mobile terminal between all two adjacent frames is accumulated to obtain the second distance. To facilitate understanding, this embodiment is exemplified below: It takes 2 seconds for the mobile terminal to move in the second direction, and the camera takes 2 seconds of video. The video consists of image frames taken at 30 frames per second, so the video contains a total of 60 frames. image. The distance moved by the mobile terminal between the shooting moments of the two frames of images is determined according to the position changes of the feature points in each of the two adjacent frames of images. Thus, the distances are accumulated to obtain the second distance that the mobile terminal moves during the 2-second video shooting process.
第二种,当移动终端第二加速度大于预设加速度阈值时,根据所述计时器,获得所述移动终端移动的第二时间;根据所述第二加速度和所述第二时间,获得所述移动终端移动的第二速度;在所述第二时间区间内对所述第二速度积分,获得所述第二距离。Second, when the second acceleration of the mobile terminal is greater than a preset acceleration threshold, obtain a second time when the mobile terminal moves according to the timer; and obtain the second time according to the second acceleration and the second time. A second speed at which the mobile terminal moves; integrating the second speed within the second time interval to obtain the second distance.
需要说明的是,第一种获取第二距离的方式更适用于移动终端移动速度较慢、移动较为平稳的场景,在此场景中,通过图像处理的方式获取第二距离具有较高的准确度,可以结合第一种方式获取到的第二距离,对第二种方式获取第二距离存在的误差进行修正。第二种获取第二距离的方式更适用于移动终端移动速度较快的场景,在此场景中,通过相机传感器拍摄的图像很可能存在清晰度不足的问题,而通过对加速度和时间进行计算,并对计算结果积分的方式获取第二距离准确度较高。It should be noted that the first way to obtain the second distance is more suitable for scenarios where the mobile terminal moves slowly and moves relatively smoothly. In this scenario, the second distance obtained by image processing has higher accuracy. In combination with the second distance obtained by the first method, an error in obtaining the second distance by the second method may be corrected. The second method of obtaining the second distance is more suitable for a scene where the mobile terminal moves fast. In this scene, the image captured by the camera sensor is likely to have insufficient clarity. By calculating acceleration and time, The accuracy of obtaining the second distance by integrating the calculation results is high.
S602:根据第二方向、第二距离和第一应用各个页面的初始位置,获得移动终端屏幕对应的第一应用待展示页面。S602: Obtain the first application to-be-displayed page corresponding to the screen of the mobile terminal according to the second direction, the second distance, and the initial position of each page of the first application.
需要说明的是,第一应用各个页面的初始位置是指第一应用各个页面按照预设布局平铺在一个平面上的位置,具体地,该平面可以是与移动终端屏幕平行的平面。根据第一应用各个页面的初始位置,移动终端能够获取移动终端移动之前各个页面的相对位置关系。It should be noted that the initial position of each page of the first application refers to a position where each page of the first application is tiled on a plane according to a preset layout. Specifically, the plane may be a plane parallel to the screen of the mobile terminal. According to the initial position of each page of the first application, the mobile terminal can obtain the relative position relationship of each page before the mobile terminal moves.
为便于理解,请参见图11所示的第一应用各个页面的布局示意图。如图11所示的示例性布局,与移动终端屏幕平行的平面内设置有页面A,页面A位于预设区域211内,预设区域211用于确定移动终端屏幕对应的页面,即页面A位于平面上正对于移动终端屏幕21的位置。在平面内页面A的正左方、正下方、正右方和正上方设置有页面B、页面C、页面D和页面E;在页面C的正左方和正右方设置有页面F和页面G;在页面E的正左方和正右方设置有页面H和页面I。各个页面水平方向距离20mm,竖直方向距离30mm。For easy understanding, please refer to the layout diagram of each page of the first application shown in FIG. 11. As shown in the exemplary layout shown in FIG. 11, a page A is provided in a plane parallel to the screen of the mobile terminal. The page A is located in a preset area 211. The preset area 211 is used to determine the page corresponding to the screen of the mobile terminal, that is, the page A is located at The plane is facing the position of the mobile terminal screen 21. Page B, page C, page D, and page E are set to the left, right, right, and directly above page A in the plane; pages F and G are set to the left and right of page C; A page H and a page I are provided directly to the left and right of the page E. The distance between each page is 20mm in the horizontal direction and 30mm in the vertical direction.
需要说明的是,图11仅为第一应用各个页面的示例性布局,根据布局不同,各个页面可能具有其他的初始位置及相对位置关系。在此不对各个页面在平面上的布局进行限定。It should be noted that FIG. 11 is only an exemplary layout of each page of the first application. According to different layouts, each page may have other initial positions and relative position relationships. The layout of each page on the plane is not limited here.
由于根据各个页面的初始位置,移动终端能够获取各个页面的相对位置关系,例如在同一平面上各个页面的相对方向和相对距离,以及正对于移动终端屏幕的页面,因此,移动终端根据S601获取的实际移动第二方向和第二距离以及各个页面的初始位置进行相应的计算,能够确定移动终端移动后屏幕所对应的页面。需要说明的是,移动终端屏幕每次仅对应一个第一应用页面。该页面即为第一应用待展示页面。According to the initial position of each page, the mobile terminal can obtain the relative position relationship of each page, such as the relative direction and distance of each page on the same plane, and the page facing the screen of the mobile terminal. Therefore, the mobile terminal obtains the The second direction and the second distance of the actual movement and the initial position of each page are calculated accordingly, which can determine the page corresponding to the screen after the mobile terminal moves. It should be noted that the screen of the mobile terminal corresponds to only one first application page at a time. This page is the page to be displayed for the first application.
S603:获得移动终端移动的第一方向和第一距离。S603: Obtain a first direction and a first distance that the mobile terminal moves.
移动终端移动的第一方向为S602获得移动终端屏幕对应的第一应用待展示页面后,移动终端移动的方向。第一距离为S602获得移动终端屏幕对应的第一应用待展示页面后,移动终端以第一方向移动的距离。The first direction in which the mobile terminal moves is the direction in which the mobile terminal moves after obtaining the first application to be displayed page corresponding to the screen of the mobile terminal in S602. The first distance is the distance that the mobile terminal moves in the first direction after obtaining the first application page to be displayed corresponding to the screen of the mobile terminal in S602.
移动终端的第一方向可以通过加速度传感器、陀螺仪传感器和相机传感器中的一种或多种获得。采用多种传感器获得的第一方向具有更高的准确性。The first direction of the mobile terminal may be obtained through one or more of an acceleration sensor, a gyro sensor, and a camera sensor. The first direction obtained with multiple sensors has higher accuracy.
在本实施例中,将移动终端以第一方向进行移动时,加速度传感器获取的加速度作为第一加速度。移动终端具体可以根据加速传感器获取的第一加速度的大小,选择第一距离的获取方式。下面提供两种根据加速度的大小确定第一距离获取方法的方式。In this embodiment, when the mobile terminal is moved in the first direction, the acceleration obtained by the acceleration sensor is used as the first acceleration. The mobile terminal may specifically select a method for acquiring the first distance according to the magnitude of the first acceleration acquired by the acceleration sensor. Two methods for determining the first distance obtaining method according to the magnitude of the acceleration are provided below.
第一种,当移动终端第一加速度小于或等于预设加速度阈值时,移动终端利用自身设置的相机传感器拍摄第一环境图像;其后根据所述第一环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离;最终,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第一距离。First, when the first acceleration of the mobile terminal is less than or equal to a preset acceleration threshold, the mobile terminal uses a camera sensor set by itself to capture a first environment image; and thereafter, according to every first two adjacent frames in the first environment image The position of the feature point changes to determine the distance that the mobile terminal moves between every two adjacent frames; finally, the distance that the mobile terminal moves between all two adjacent frames is accumulated to obtain the first distance.
第二种,当移动终端第一加速度大于预设加速度阈值时,根据所述计时器,获得所述移动终端移动的第一时间;根据所述第一加速度和所述第一时间,获得所述移动终端移动的第一速度;在所述第一时间区间内对所述第一速度积分,获得所述第一距离。Second, when the first acceleration of the mobile terminal is greater than a preset acceleration threshold, the first time that the mobile terminal moves is obtained according to the timer; and the first time is obtained according to the first acceleration and the first time. A first speed at which the mobile terminal moves; integrating the first speed within the first time interval to obtain the first distance.
需要说明的是,第一种获取第一距离的方式更适用于移动终端移动速度较慢、移动较为平稳的场景,在此场景中,通过图像处理的方式获取第一距离具有较高的准确度,可以结合第一种方式获取到的第一距离,对第二种方式获取第一距离存在的误差进行修正。第二种获取第一距离的方式更适用于移动终端移动速度较快的场景,在此场景中,通过相机传感器拍摄的图像很可能存在清晰度不足的问题,而通过对加速度和时间进行计算,并对计算结果积分的方式获取第一距离准确度较高。It should be noted that the first way to obtain the first distance is more suitable for scenarios where the mobile terminal moves slowly and moves relatively smoothly. In this scenario, the first distance obtained through image processing has higher accuracy. In combination with the first distance obtained by the first method, an error existing in obtaining the first distance by the second method may be corrected. The second method of obtaining the first distance is more suitable for a scene where the mobile terminal moves fast. In this scene, the image captured by the camera sensor is likely to have insufficient clarity. By calculating acceleration and time, The accuracy of obtaining the first distance by integrating the calculation results is high.
S604:确定第一方向为预设方向且第一距离大于预设第一阈值时,展示待展示页面。S604: When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, a page to be displayed is displayed.
本实施例中步骤604与前述实施例中步骤102相同,为简要起见,在 此不再详细描述,详细信息请参见前述实施例中的描述。Step 604 in this embodiment is the same as step 102 in the foregoing embodiment. For brevity, it will not be described in detail here. For detailed information, refer to the description in the foregoing embodiment.
为便于理解以上S601至S604的实现过程,下面结合图11至图14进行具体举例说明。To facilitate understanding of the implementation process of the above S601 to S604, specific examples are described below with reference to FIGS. 11 to 14.
以图11所示的第一应用各个页面的布局示意图中各个页面的初始位置作为示例。图12为移动终端沿着平行于移动终端屏幕21向左的方向移动20mm的示意图。根据移动的第一方向为向左、移动的第一距离为20mm以及各个页面的初始位置,确定出第一应用页面B为移动终端屏幕21对应的待展示页面,页面B位于预设区域211内。本示例中,预设方向为移动终端屏幕21的背面朝向。此后,移动终端以移动终端屏幕21的背面面朝向移动,随着移动距离的逐渐增加,移动终端屏幕21对应的页面B逐渐放大。如图13所示,为移动终端沿着移动终端屏幕21的背面朝向移动时,待展示页面的放大化效果示意图。如图14所示,当移动的第二距离达到预设第一阈值以上,移动终端确定需要将待展示页面进行展示,故全屏展示页面B的真实内容,即微信聊天页面。Take the initial position of each page in the layout diagram of each page of the first application shown in FIG. 11 as an example. FIG. 12 is a schematic diagram of a mobile terminal moving 20 mm in a direction parallel to the mobile terminal screen 21 to the left. According to the first direction of movement is left, the first distance of movement is 20mm, and the initial position of each page, it is determined that the first application page B is a page to be displayed corresponding to the mobile terminal screen 21, and page B is located in the preset area 211 . In this example, the preset direction is the back direction of the screen 21 of the mobile terminal. After that, the mobile terminal moves toward the rear surface of the mobile terminal screen 21, and as the moving distance gradually increases, the page B corresponding to the mobile terminal screen 21 is gradually enlarged. As shown in FIG. 13, it is a schematic diagram of a magnification effect of a page to be displayed when the mobile terminal moves along the back of the mobile terminal screen 21. As shown in FIG. 14, when the second distance moved exceeds a preset first threshold, the mobile terminal determines that the page to be displayed needs to be displayed, so the real content of page B, that is, the WeChat chat page is displayed in full screen.
S605:获得移动终端移动的第三方向和第三距离。S605: Obtain a third direction and a third distance that the mobile terminal moves.
移动终端移动的第三方向为S604移动终端展示待展示页面后,移动终端移动的方向。第三距离为S604移动终端展示待展示页面后,移动终端以第三方向移动的距离。The third direction in which the mobile terminal moves is the direction in which the mobile terminal moves after the S604 mobile terminal displays the page to be displayed. The third distance is the distance that the mobile terminal moves in the third direction after the S604 mobile terminal displays the page to be displayed.
与第一方向和第二方向的可选获取方式类似,移动终端的第三方向可以通过加速度传感器、陀螺仪传感器和相机传感器中的一种或多种获得。采用多种传感器获得的第三方向具有更高的准确性。Similar to the optional acquisition methods of the first direction and the second direction, the third direction of the mobile terminal may be obtained through one or more of an acceleration sensor, a gyro sensor, and a camera sensor. The third direction obtained using multiple sensors has higher accuracy.
与第一距离和第二距离的可选获取方式类似,移动终端具体可以根据加速传感器获取的移动终端以第三方向进行移动时,加速度传感器获取的加速度的大小,选择第三距离的获取方式。详见上文描述,在此不加以赘述。Similar to the optional obtaining method of the first distance and the second distance, the mobile terminal may specifically select the obtaining method of the third distance according to the magnitude of the acceleration obtained by the acceleration sensor when the mobile terminal obtained by the acceleration sensor moves in the third direction. For details, please refer to the description above, and will not be repeated here.
S606:确定第三方向为第一方向的相反方向且第三距离大于预设第二阈值时,移动终端屏幕对应待展示页面。S606: When it is determined that the third direction is the opposite direction of the first direction and the third distance is greater than a preset second threshold, the screen of the mobile terminal corresponds to the page to be displayed.
预设第二阈值是预先设置的用于触发移动终端屏幕对应待展示页面的操作的距离限值。本步骤中,第三方向与预设方向是否相反,及第三距离与预设第二阈值的大小关系,是决定移动终端能否从展示待展示页面状态回归为屏幕对应待展示页面状态的两个决定因素。仅当确定第三方向为与 第一方向相反,且第三距离大于预设第二阈值时,移动终端屏幕对应待展示页面。The preset second threshold is a preset distance limit for triggering an operation of the mobile terminal screen corresponding to a page to be displayed. In this step, whether the third direction is opposite to the preset direction, and the relationship between the third distance and the preset second threshold is to determine whether the mobile terminal can return from the state of the page to be displayed to the screen corresponding to the state of the page to be displayed. Determinants. Only when it is determined that the third direction is opposite to the first direction and the third distance is greater than a preset second threshold, the screen of the mobile terminal corresponds to the page to be displayed.
本实施例中,S604确定出的第一方向唯一。作为一种具体实现方式,若确定出的第一方向为移动终端屏幕的背面朝向,则当移动终端确定第三方向为移动终端屏幕的正面朝向,且第三距离大于预设第二阈值时,移动终端屏幕对应待展示页面。作为另一种具体实现方式,若确定出的第一方向为移动终端屏幕的正面朝向,则当移动终端确定第三方向为移动终端屏幕的背面朝向,且第三距离大于预设第二阈值时,移动终端屏幕对应待展示页面。In this embodiment, the first direction determined by S604 is unique. As a specific implementation manner, if the determined first direction is the back direction of the screen of the mobile terminal, when the mobile terminal determines that the third direction is the front direction of the screen of the mobile terminal and the third distance is greater than a preset second threshold, The screen of the mobile terminal corresponds to the page to be displayed. As another specific implementation manner, if the determined first direction is the front direction of the screen of the mobile terminal, when the mobile terminal determines that the third direction is the back direction of the screen of the mobile terminal and the third distance is greater than a preset second threshold , The screen of the mobile terminal corresponds to the page to be displayed.
当移动终端从展示待展示页面状态回到屏幕对应待展示页面状态时,移动终端屏幕展示的内容从全屏展示的待展示页面,转变为屏幕的预设区域或中心区域包含待展示页面的微型窗口。微型窗口中可以是待展示页面的示意图、该待展示页面的代表性图标或者待展示页面的历史截图等,也可以是微型的待展示页面画面等。需要说明的是,微型窗口的显示面积始终小于屏幕的全屏展示面积。When the mobile terminal returns from the state of displaying the page to be displayed to the screen corresponding to the state of the page to be displayed, the content displayed on the screen of the mobile terminal changes from the page to be displayed in full screen to a preset area of the screen or a miniature window containing the page to be displayed in the center . The miniature window may be a schematic diagram of a page to be displayed, a representative icon of the page to be displayed, or a historical screenshot of the page to be displayed, etc., or may be a miniature page screen to be displayed. It should be noted that the display area of the micro window is always smaller than the full screen display area of the screen.
以上为本公开实施例提供的应用页面展示方法,移动终端首先获得移动终端移动的第二方向和第二距离;根据第二方向、第二距离和第一应用各个页面的初始位置,获得移动终端屏幕对应的第一应用待展示页面。其后,获得移动终端移动的第一方向和第一距离,确定第一方向为预设方向且第一距离大于预设第一阈值时,展示待展示页面。展示待展示页面后,如果检测到移动终端移动,则获得移动终端移动的第三方向和第三距离,确定第三方向为第一方向的相反方向且第三距离大于预设第二阈值时,移动终端屏幕对应待展示页面的状态。由此可知,本方法实现了移动终端从屏幕对应第一应用的待展示页面,到展示待展示页面,再回到屏幕对应待展示页面的状态的切换。进而,移动终端可通过重复执行该实施例提供的应用页面展示方法,从展示第一应用的某一页面,切换为展示第一应用的另一页面,满足用户对于同一应用的多个页面便捷切换展示的需求。The above is an application page display method provided by an embodiment of the present disclosure. A mobile terminal first obtains a second direction and a second distance that the mobile terminal moves; according to the second direction, the second distance, and an initial position of each page of the first application, the mobile terminal is obtained. The first application page corresponding to the screen to be displayed. After that, the first direction and the first distance of the mobile terminal are obtained, and when it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, a page to be displayed is displayed. After displaying the page to be displayed, if a mobile terminal movement is detected, a third direction and a third distance of the mobile terminal movement are obtained, and it is determined that the third direction is the opposite direction of the first direction and the third distance is greater than a preset second threshold, The screen of the mobile terminal corresponds to the state of the page to be displayed. It can be known from this that the method realizes the switching of the state of the mobile terminal from the screen corresponding to the page to be displayed of the first application, to displaying the page to be displayed, and then back to the screen corresponding to the page to be displayed. Furthermore, the mobile terminal can repeatedly execute the application page display method provided in this embodiment to switch from a certain page displaying the first application to another page displaying the first application, so as to satisfy the user's convenient switching of multiple pages of the same application. Demonstrated demand.
另外,本公开实施例为实现上述页面切换展示的效果,还提供了另一种可选的实现方式。在上述实施例S604展示所述待展示页面之后,移动终端检测到屏幕被触摸或屏幕上预设按钮被触发时,移动终端屏幕对应待展示页面。为便于理解该实现方式,下面举例说明。In addition, the embodiment of the present disclosure also provides another optional implementation manner to achieve the effect of the above-mentioned page switching display. After the above-mentioned embodiment S604 displays the page to be displayed, when the mobile terminal detects that the screen is touched or a preset button on the screen is triggered, the screen of the mobile terminal corresponds to the page to be displayed. To facilitate understanding of this implementation, an example is described below.
移动终端上预设有用于使移动终端从展示待展示页面的状态,回到屏幕对应待展示页面状态的按钮。该按钮可以设置于移动终端上便于用户触控的位置,例如移动终端的锁屏键附近,移动终端屏幕上,或者移动终端外壳背面等。此外,该功能也可以与移动终端现有功能共用同一按钮。当移动终端检测到该按钮被触发时,表明用户希望令移动终端暂停或终止浏览当前展示的页面,并希望在屏幕上重新选择待展示页面,此时,移动终端响应于用户的触发操作,屏幕对应待展示页面。The mobile terminal is preset with a button for causing the mobile terminal to return from the state of displaying the page to be displayed to the screen corresponding to the state of the page to be displayed. This button can be set on a mobile terminal where the user can touch it, such as near the screen lock key of the mobile terminal, on the screen of the mobile terminal, or on the back of the mobile terminal case. In addition, this function can also share the same button with the existing functions of the mobile terminal. When the mobile terminal detects that the button is triggered, it indicates that the user wishes to make the mobile terminal pause or stop browsing the currently displayed page, and wishes to reselect the page to be displayed on the screen. At this time, the mobile terminal responds to the user's trigger operation, Corresponds to the page to be displayed.
可以理解,在本实施例中,移动终端还可以采用其他方式从展示待展示页面状态回到屏幕对应待展示页面状态。例如,响应用户的特定手势,或者根据移动终端自身的翻转角度等,实现上述功能。在此,对移动终端从展示待展示页面状态回到屏幕对应待展示页面状态的具体实现方式不做限定。It can be understood that, in this embodiment, the mobile terminal may also return from displaying the status of the page to be displayed to the screen corresponding to the status of the page to be displayed in other ways. For example, the above functions are implemented in response to a specific gesture of the user, or according to the flip angle of the mobile terminal itself. Here, the specific implementation of the mobile terminal from displaying the status of the page to be displayed back to the screen corresponding to the status of the page to be displayed is not limited.
对应于前述实施例提供的应用页面展示方法,本公开实施例还提供一种移动终端。下面结合图15对该移动终端的具体实施方式进行描述。Corresponding to the application page display method provided by the foregoing embodiments, an embodiment of the present disclosure also provides a mobile terminal. The specific implementation of the mobile terminal is described below with reference to FIG. 15.
移动终端实施例:Mobile terminal embodiment:
参见图15,图15为本公开实施例提供的移动终端结构示意图。该移动终端15可以包括:控制器151和屏幕21。15, FIG. 15 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal 15 may include a controller 151 and a screen 21.
其中,控制器151,用于获得所述屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离;确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,控制通过所述屏幕展示所述待展示页面;所述预设方向为垂直于所述移动终端屏幕的方向。The controller 151 is configured to obtain a first application to-be-displayed page corresponding to the screen, and a first direction and a first distance that the mobile terminal moves; determine that the first direction is a preset direction and the first When a distance is greater than a preset first threshold, controlling to display the page to be displayed through the screen; the preset direction is a direction perpendicular to the screen of the mobile terminal.
屏幕21,用于显示第一应用各个页面的布局,以及根据控制器151的控制,展示第一应用待展示页面。屏幕21显示第一应用各个页面的布局时,每次仅对应一个第一应用页面。屏幕21根据控制器151的控制,展示第一应用待展示页面时,每次仅全屏展示一个第一应用的待展示页面。The screen 21 is configured to display the layout of each page of the first application, and display the pages to be displayed of the first application according to the control of the controller 151. When the screen 21 displays the layout of each page of the first application, it corresponds to only one first application page at a time. When the screen 21 displays the page to be displayed of the first application according to the control of the controller 151, only one page to be displayed of the first application is displayed full screen at a time.
本实施例提供的移动终端,应用页面的展示与否仅取决于移动终端移动的方向和距离是否符合要求,以及屏幕是否对应着应用的某个待展示页面。该移动终端无需用户触摸屏幕上的特定按钮或执行页面切换手势,因此,降低了页面展示对用户手动触控操作的依赖性,提高了页面展示的便捷性,并有效提升用户体验。In the mobile terminal provided in this embodiment, whether the application page is displayed or not depends only on whether the mobile terminal moves in a direction and distance that meets the requirements, and whether the screen corresponds to a certain page of the application to be displayed. The mobile terminal does not require the user to touch a specific button on the screen or perform a page switching gesture. Therefore, the dependence of the page display on the user's manual touch operation is reduced, the convenience of the page display is improved, and the user experience is effectively improved.
本公开实施例还提供了一种存储有计算机程序的非临时性计算机可读存储介质,上述程序包含的操作指令可由处理器执行,以完成上述实施例提供的应用页面展示方法。举例来说,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。An embodiment of the present disclosure further provides a non-transitory computer-readable storage medium storing a computer program, and the operation instructions included in the program can be executed by a processor to complete the application page display method provided by the foregoing embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种应用页面展示方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enable the mobile terminal to execute an application page display method, the method includes:
获得移动终端屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离;Obtaining a first application to-be-displayed page corresponding to a mobile terminal screen, and a first direction and a first distance that the mobile terminal moves;
确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,展示所述待展示页面;所述预设方向为垂直于所述移动终端屏幕的方向。When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, the page to be displayed is displayed; the preset direction is a direction perpendicular to the screen of the mobile terminal.
本公开实施例还提供了一种处理器,用于运行存储于非临时性计算机可读存储介质中的计算机程序包含的操作指令:An embodiment of the present disclosure further provides a processor for running operation instructions contained in a computer program stored in a non-transitory computer-readable storage medium:
获得移动终端屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离;Obtaining a first application to-be-displayed page corresponding to a mobile terminal screen, and a first direction and a first distance that the mobile terminal moves;
确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,展示所述待展示页面;所述预设方向为垂直于所述移动终端屏幕的方向。When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, the page to be displayed is displayed; the preset direction is a direction perpendicular to the screen of the mobile terminal.
以上所述,仅是本公开的较佳实施例而已,并非对本公开作任何形式上的限制。虽然本公开已以较佳实施例揭露如上,然而并非用以限定本公开。任何熟悉本领域的技术人员,在不脱离本公开技术方案范围情况下,都可利用上述揭示的方法和技术内容对本公开技术方案做出许多可能的变动和修饰,或修改为等同变化的等效实施例。因此,凡是未脱离本公开技术方案的内容,依据本公开的技术实质对以上实施例所做的任何简单修改、等同变化及修饰,均仍属于本公开技术方案保护的范围内。The above descriptions are merely preferred embodiments of the present disclosure, and do not limit the present disclosure in any form. Although the present disclosure has been disclosed as above with preferred embodiments, it is not intended to limit the present disclosure. Any person skilled in the art can make many possible changes and modifications to the technical solutions of the present disclosure, or modify them to equivalent equivalents without departing from the scope of the technical solutions of the present disclosure. Examples. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments according to the technical essence of the present disclosure without departing from the content of the technical solution of the present disclosure still fall within the protection scope of the technical solution of the present disclosure.

Claims (10)

  1. 一种应用页面展示方法,其特征在于,包括:An application page display method is characterized in that it includes:
    获得移动终端屏幕对应的第一应用待展示页面,以及移动终端移动的第一方向和第一距离;Obtaining a first application to-be-displayed page corresponding to a mobile terminal screen, and a first direction and a first distance of the mobile terminal moving;
    确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,展示所述第一应用待展示页面;所述预设方向为垂直于所述移动终端屏幕的方向。When it is determined that the first direction is a preset direction and the first distance is greater than a preset first threshold, displaying the page of the first application to be displayed; the preset direction is a direction perpendicular to the screen of the mobile terminal.
  2. 根据权利要求1所述的应用页面展示方法,其特征在于,所述获得移动终端屏幕对应的第一应用待展示页面,包括:The method for displaying an application page according to claim 1, wherein the step of obtaining a first application to-be-displayed page corresponding to a screen of a mobile terminal comprises:
    获得所述移动终端移动的第二方向和第二距离;Obtaining a second direction and a second distance that the mobile terminal moves;
    根据所述第二方向、所述第二距离和第一应用各个页面的初始位置,获得所述移动终端屏幕对应的第一应用待展示页面;所述第一应用各个页面的初始位置为所述第一应用各个页面按照预设布局平铺在一个平面上的位置,所述平面平行于所述移动终端屏幕;所述第二方向平行于所述移动终端屏幕,且至少包括向上、向下、向左和向右中的一种。Obtaining the first application to-be-displayed page corresponding to the mobile terminal screen according to the second direction, the second distance, and the initial position of each page of the first application; the initial position of each page of the first application is the Each page of the first application is tiled on a plane according to a preset layout, the plane is parallel to the screen of the mobile terminal; the second direction is parallel to the screen of the mobile terminal, and includes at least upward, downward, One of left and right.
  3. 根据权利要求2所述的应用页面展示方法,其特征在于,所述第一方向和所述第二方向为通过以下中的至少一种获得:The method for displaying an application page according to claim 2, wherein the first direction and the second direction are obtained by at least one of the following:
    所述移动终端上设置的加速度传感器、陀螺仪传感器和相机传感器。An acceleration sensor, a gyroscope sensor, and a camera sensor provided on the mobile terminal.
  4. 根据权利要求2所述的应用页面展示方法,其特征在于,所述获得所述移动终端移动的第一距离,包括:The method for displaying an application page according to claim 2, wherein the obtaining the first distance moved by the mobile terminal comprises:
    根据所述移动终端设置的加速度传感器,获得所述移动终端移动的第一加速度;根据所述移动终端设置的计时器,获得所述移动终端移动的第一时间;根据所述第一加速度和所述第一时间,获得所述移动终端移动的第一速度;在所述第一时间的区间内对所述第一速度积分,获得所述第一距离;According to an acceleration sensor provided by the mobile terminal, a first acceleration of the mobile terminal movement is obtained; according to a timer provided by the mobile terminal, a first time of the mobile terminal movement is obtained; according to the first acceleration and the Said first time, obtaining a first speed of movement of said mobile terminal; integrating said first speed within an interval of said first time to obtain said first distance;
    所述获得所述移动终端移动的第二距离,包括:The obtaining the second distance moved by the mobile terminal includes:
    根据所述加速度传感器,获得所述移动终端移动的第二加速度;根据所述计时器,获得所述移动终端移动的第二时间;根据所述第二加速度和所述第二时间,获得所述移动终端移动的第二速度;在所述第二时间的区间内对所述第二速度积分,获得所述第二距离。Obtaining a second acceleration of the mobile terminal movement according to the acceleration sensor; obtaining a second time of movement of the mobile terminal according to the timer; obtaining the second acceleration of the mobile terminal according to the second acceleration and the second time A second speed at which the mobile terminal moves; integrating the second speed within the second time interval to obtain the second distance.
  5. 根据权利要求2所述的应用页面展示方法,其特征在于,所述获得 所述移动终端移动的第一距离,包括:The method for displaying an application page according to claim 2, wherein the obtaining the first distance moved by the mobile terminal comprises:
    获得所述移动终端以所述第一方向移动时,利用所述移动终端设置的相机传感器拍摄的第一环境图像;根据所述第一环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第一距离;Obtaining a first environment image captured by the camera sensor provided by the mobile terminal when the mobile terminal moves in the first direction; and according to the feature point position change between every two adjacent frames in the first environment image To determine the distance that the mobile terminal moves between every two adjacent frames, and add up the distance that the mobile terminal moves between all two adjacent frames to obtain the first distance;
    所述获得所述移动终端移动的第二距离,包括:The obtaining the second distance moved by the mobile terminal includes:
    获得所述移动终端以所述第二方向移动时,利用所述移动终端设置的相机传感器拍摄的第二环境图像;根据所述第二环境图像中每相邻两帧之间的特征点位置变化,确定每相邻两帧之间所述移动终端移动的距离,将所有相邻两帧之间所述移动终端移动的距离累加,获得所述第二距离。Obtaining a second environment image captured by the camera sensor provided by the mobile terminal when the mobile terminal moves in the second direction; and according to the feature point position change between every two adjacent frames in the second environment image To determine the distance that the mobile terminal moves between each two adjacent frames, and add up the distance that the mobile terminal moves between all two adjacent frames to obtain the second distance.
  6. 根据权利要求1或2所述的应用页面展示方法,其特征在于,所述展示所述第一应用待展示页面之后,还包括:The method for displaying an application page according to claim 1 or 2, wherein after displaying the page to be displayed of the first application, further comprising:
    获得所述移动终端移动的第三方向和第三距离;Obtaining a third direction and a third distance that the mobile terminal moves;
    确定所述第三方向为所述第一方向的相反方向且所述第三距离大于预设第二阈值时,所述移动终端屏幕对应所述第一应用待展示页面。When it is determined that the third direction is opposite to the first direction and the third distance is greater than a preset second threshold, the screen of the mobile terminal corresponds to the page to be displayed of the first application.
  7. 根据权利要求1或2所述的应用页面展示方法,其特征在于,所述展示所述第一应用待展示页面之后,还包括:The method for displaying an application page according to claim 1 or 2, wherein after displaying the page to be displayed of the first application, further comprising:
    检测到所述移动终端上的预设按钮被触发时,所述移动终端屏幕对应所述第一应用待展示页面。When it is detected that a preset button on the mobile terminal is triggered, the screen of the mobile terminal corresponds to the page to be displayed of the first application.
  8. 根据权利要求6所述的应用页面展示方法,其特征在于,所述移动终端屏幕对应所述第一应用待展示页面,包括:The method for displaying an application page according to claim 6, wherein the screen of the mobile terminal corresponding to the page to be displayed of the first application comprises:
    所述移动终端屏幕包含所述第一应用待展示页面的微型窗口,所述微型窗口的显示面积始终小于所述移动终端屏幕的全屏展示面积。The screen of the mobile terminal includes a micro window of the page to be displayed of the first application, and a display area of the micro window is always smaller than a full screen display area of the screen of the mobile terminal.
  9. 一种移动终端,其特征在于,包括:控制器和屏幕;A mobile terminal, comprising: a controller and a screen;
    所述控制器,用于获得所述屏幕对应的第一应用待展示页面,以及所述移动终端移动的第一方向和第一距离;确定所述第一方向为预设方向且所述第一距离大于预设第一阈值时,控制通过所述屏幕展示所述第一应用待展示页面;所述预设方向为垂直于所述屏幕的方向。The controller is configured to obtain a first application to-be-displayed page corresponding to the screen, and a first direction and a first distance that the mobile terminal moves; determine that the first direction is a preset direction and the first When the distance is greater than a preset first threshold, controlling to display the page of the first application to be displayed through the screen; the preset direction is a direction perpendicular to the screen.
  10. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一项所述的应用页面展示方法。A computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor, the application page display method according to any one of claims 1-8 is implemented.
PCT/CN2019/088642 2018-06-21 2019-05-27 Application page displaying method and mobile terminal WO2019242457A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810644466.3A CN109753199B (en) 2018-06-21 2018-06-21 Application page display method and mobile terminal
CN201810644466.3 2018-06-21

Publications (1)

Publication Number Publication Date
WO2019242457A1 true WO2019242457A1 (en) 2019-12-26

Family

ID=66401774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/088642 WO2019242457A1 (en) 2018-06-21 2019-05-27 Application page displaying method and mobile terminal

Country Status (2)

Country Link
CN (1) CN109753199B (en)
WO (1) WO2019242457A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753199B (en) * 2018-06-21 2019-12-06 北京字节跳动网络技术有限公司 Application page display method and mobile terminal
US11262856B2 (en) 2018-05-11 2022-03-01 Beijing Bytedance Network Technology Co., Ltd. Interaction method, device and equipment for operable object
CN109753209B (en) 2018-06-21 2020-05-05 北京字节跳动网络技术有限公司 Application program starting method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885685A (en) * 2012-12-24 2014-06-25 腾讯科技(深圳)有限公司 Method and device for processing pages
US20150143266A1 (en) * 2013-11-18 2015-05-21 Red Hat, Inc. Multiple display management
CN106131434A (en) * 2016-08-18 2016-11-16 深圳市金立通信设备有限公司 A kind of image pickup method based on multi-camera system and terminal
CN106227423A (en) * 2016-07-15 2016-12-14 百度在线网络技术(北京)有限公司 Method and apparatus for displayed page
CN106254409A (en) * 2015-11-20 2016-12-21 深圳超多维科技有限公司 It is applied to three-dimensional application startup method, the Apparatus and system of mobile terminal
CN106648576A (en) * 2016-09-07 2017-05-10 北京珠穆朗玛移动通信有限公司 Method for quickly starting application, and mobile terminal
CN109753199A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application page methods of exhibiting and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066171A (en) * 2011-03-21 2017-08-18 广州市动景计算机科技有限公司 The multiwindow switching method and system of touch screen terminal
CN106528058A (en) * 2015-09-10 2017-03-22 腾讯科技(深圳)有限公司 Web page display method and device for game application
US20170168704A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Apparatus and method for desktop presentation logic control of a handheld device
CN106502527A (en) * 2016-09-29 2017-03-15 北京小米移动软件有限公司 Method, device and terminal that a kind of content is shared
CN106598382A (en) * 2016-11-17 2017-04-26 北京奇虎科技有限公司 Icon sorting method, device and mobile terminal
CN106843682A (en) * 2017-01-03 2017-06-13 上海斐讯数据通信技术有限公司 A kind of display page layout switch apparatus and method of mobile terminal
CN107278368B (en) * 2017-04-24 2023-08-11 北京小米移动软件有限公司 Screen control method and device
CN107368233A (en) * 2017-07-03 2017-11-21 北京小米移动软件有限公司 Switching method, device and the equipment of background picture

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885685A (en) * 2012-12-24 2014-06-25 腾讯科技(深圳)有限公司 Method and device for processing pages
US20150143266A1 (en) * 2013-11-18 2015-05-21 Red Hat, Inc. Multiple display management
CN106254409A (en) * 2015-11-20 2016-12-21 深圳超多维科技有限公司 It is applied to three-dimensional application startup method, the Apparatus and system of mobile terminal
CN106227423A (en) * 2016-07-15 2016-12-14 百度在线网络技术(北京)有限公司 Method and apparatus for displayed page
CN106131434A (en) * 2016-08-18 2016-11-16 深圳市金立通信设备有限公司 A kind of image pickup method based on multi-camera system and terminal
CN106648576A (en) * 2016-09-07 2017-05-10 北京珠穆朗玛移动通信有限公司 Method for quickly starting application, and mobile terminal
CN109753199A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application page methods of exhibiting and mobile terminal

Also Published As

Publication number Publication date
CN109753199B (en) 2019-12-06
CN109753199A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US11175726B2 (en) Gesture actions for interface elements
US11599154B2 (en) Adaptive enclosure for a mobile computing device
US10082886B2 (en) Automatic configuration of an input device based on contextual usage
US8860672B2 (en) User interface with z-axis interaction
US10628010B2 (en) Quick review of captured image data
US10331231B2 (en) Mobile terminal and method for determining scrolling speed
KR20130097499A (en) Method and apparatus for screen scroll of display apparatus
WO2019242457A1 (en) Application page displaying method and mobile terminal
KR102072509B1 (en) Group recording method, machine-readable storage medium and electronic device
KR20200123223A (en) Display adaptation method and apparatus, device, and storage medium for applications
WO2018103423A1 (en) Method and apparatus for taking screenshot
JP2017518553A (en) Method for identifying user operating mode on portable device and portable device
US9547370B2 (en) Systems and methods for enabling fine-grained user interactions for projector-camera or display-camera systems
US10474324B2 (en) Uninterruptable overlay on a display
WO2015139469A1 (en) Webpage adjustment method and device, and electronic device
KR20130020238A (en) Method and apparatus for moving contents on screen using pointing unit
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
EP3828682A1 (en) Method, apparatus for adding shortcut plug-in, and intelligent device
US20170131878A1 (en) Method, device and storage medium for interchanging icon positions
US11068062B2 (en) Display device and method for cancelling a user selected feature on a graphical user interface according to a change in display device rotation
US9665260B2 (en) Method and apparatus for controlling screen of mobile device
WO2019214662A1 (en) Application starting method of mobile terminal and mobile terminal
JP2019191988A (en) Electronic apparatus, control method of electronic apparatus, program, and storage medium
CN111078086B (en) Mobile terminal, one-handed mode control method, and computer-readable storage medium
WO2016206438A1 (en) Touch screen control method and device and mobile terminal

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: 19823350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 030521)

122 Ep: pct application non-entry in european phase

Ref document number: 19823350

Country of ref document: EP

Kind code of ref document: A1