WO2017107825A1 - 一种应用界面的处理方法和装置 - Google Patents
一种应用界面的处理方法和装置 Download PDFInfo
- Publication number
- WO2017107825A1 WO2017107825A1 PCT/CN2016/109925 CN2016109925W WO2017107825A1 WO 2017107825 A1 WO2017107825 A1 WO 2017107825A1 CN 2016109925 W CN2016109925 W CN 2016109925W WO 2017107825 A1 WO2017107825 A1 WO 2017107825A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- interface
- mobile device
- time
- rotation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional [3D], e.g. changing the user viewpoint with respect to the environment or object
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
Definitions
- the present application relates to the technical field of mobile devices, and in particular, to a processing method of an application interface and a processing device of an application interface.
- the user's fixed posture reading for a long time is prone to cervical fatigue, and long-term reading can also cause visual fatigue and other adverse effects of the user.
- the embodiment of the present application discloses a processing method of an application interface, including:
- the time information including a first feature time
- it also includes:
- the application When the mobile device is detected to rotate in the second direction, the application continues to rotate in the first direction Transmitting an interface of the application, the first direction being opposite to the second direction.
- it also includes:
- the interface of the application is rotated by the application in a second direction when the mobile device is detected to rotate in a first direction, the first direction being opposite the second direction.
- the time information further includes a second feature time
- the method further includes:
- the step of rotating, by the application, the interface of the application in a first direction comprises:
- the application's interface is rotated by a specified angle by the application in a first direction.
- the step of continuing to rotate the interface of the application in the first direction by the application includes:
- the interface of the application is rotated by a specified angle in a first direction.
- the step of rotating, by the application, the interface of the application in the second direction comprises:
- the interface of the application is rotated by a specified angle in the second direction.
- the step of rotating the interface of the application by the application in a second direction include:
- the application's interface is rotated by a specified angle by the application in a second direction.
- the embodiment of the present application further discloses a processing device for an application interface, including:
- a time information setting module configured to set time information in an application of the mobile device, where the time information includes a first feature time
- a first timing module configured to determine, by the application, whether the time of activation exceeds the first feature time; if yes, invoking the first rotation module;
- a first rotation module for rotating an interface of the application in a first direction by the application.
- it also includes:
- a second rotation module for detecting, by the application, rotating an interface of the application in a first direction when the mobile device detects rotation in a second direction, the first direction being opposite to the second direction.
- it also includes:
- a third rotation module configured to rotate, by the application, an interface of the application in a second direction when the mobile device is detected to rotate in a first direction, the first direction being opposite to the second direction.
- the time information further includes a second feature time
- the device further includes:
- a second timing module configured to determine whether a time of loading an interface of the application after the rotation exceeds the second feature time; if yes, calling a fourth rotation module;
- a fourth rotation module for rotating an interface of the application in a second direction by the application, the first direction being opposite to the second direction.
- the first rotation module includes:
- a first angle rotation sub-module for rotating, by the application, the interface of the application by a specified angle in a first direction.
- the second rotation module includes:
- a first angle determining submodule configured to determine, by the application, whether the system turns on the screen rotation function when detecting that the mobile device rotates in the second direction by more than a preset first angle threshold; if yes, the first holding submodule is invoked If not, the second angle rotation submodule is invoked;
- a first holding submodule for maintaining a direction of an interface of the application
- a second angle rotation sub-module for rotating the interface of the application by a specified angle in a first direction.
- the third rotation module includes:
- a second angle determining submodule configured to determine, by the application, whether the system turns on the screen rotation function when detecting that the mobile device rotates in the first direction by more than a preset second angle threshold; if yes, the second holding submodule is invoked If not, the third angle rotation submodule is invoked;
- a second holding submodule for maintaining a direction of an interface of the application
- the third angle rotation sub-module is configured to rotate the interface of the application by a specified angle in the second direction.
- the fourth rotation module includes:
- a fourth angle rotation sub-module for rotating, by the application, the interface of the application by a specified angle in a second direction.
- the embodiment of the present application rotates the interface after the application is started for a certain period of time. If the user browses the interface of the application, the user needs to rotate the head to prevent the user from fixing the posture for a long time and causing cervical fatigue. And since the interface displayed to the user is a rotated interface, the user can choose to temporarily stop browsing the interface of the application, and also slow down the user's visual fatigue.
- Embodiment 1 is a flow chart showing the steps of Embodiment 1 of a processing method of an application interface according to the present application;
- Embodiment 2 is a flow chart showing the steps of Embodiment 2 of a processing method of an application interface according to the present application;
- FIG. 3 is a diagram showing an example of setting time information according to an embodiment of the present application.
- FIG. 4 is a diagram showing an example of a vertical display application interface according to an embodiment of the present application.
- FIG. 5 is a diagram showing an example of a rotating application interface according to an embodiment of the present application.
- FIG. 6 is a diagram showing an example of rotating an application interface when a mobile device rotates according to an embodiment of the present application
- FIG. 7 is a diagram showing an example of a rotation angle of a mobile device according to an embodiment of the present application.
- FIG. 8 is a diagram showing an example of rotating an application interface when a mobile device rotates according to an embodiment of the present application.
- FIG. 9 is a structural block diagram of an embodiment of a processing device of an application interface according to the present application.
- Embodiment 1 of a processing method of an application interface of the present application is shown, which may specifically include the following steps:
- Step 101 Set time information in an application of the mobile device, where the time information includes a first feature time;
- Step 102 it is determined by the application whether the start time exceeds the first feature time; if yes, step 103 is performed;
- Step 103 Rotate an interface of the application in a first direction by the application.
- the embodiment of the present application rotates the interface after the application is started for a certain period of time. If the user browses the interface of the application, the user needs to rotate the head to prevent the user from fixing the posture for a long time and causing cervical fatigue. And since the interface displayed to the user is a rotated interface, the user can choose to temporarily stop browsing the interface of the application, and also slow down the user's visual fatigue.
- Embodiment 2 of the processing method of the application interface of the present application is shown, which may specifically include the following steps:
- Step 201 Set time information in an application of the mobile device.
- the embodiments of the present application can be applied to various mobile devices, for example, mobile phones, tablet computers, personal digital assistants, wearable devices (such as glasses, watches, etc.) and the like.
- the operating system of the mobile device may include Android (Android), IOS, Windows Phone, Windows, etc., and various applications such as a browser, an e-book client, and the like can be generally installed.
- Android Android
- IOS IOS
- Windows Phone Windows, etc.
- various applications such as a browser, an e-book client, and the like can be generally installed.
- the time information includes a first feature time and a second feature time.
- a window can be popped up when the application is launched, which allows the user to select whether to enable the forced rotation function to remind the user to move the cervical vertebra to prevent long-term fixed posture reading.
- the "vertical reading time” ie, the first characteristic time
- the “horizontal reading time” ie, the second characteristic time
- the reading can be performed in the normal vertical direction.
- Step 202 it is determined by the application whether the start time exceeds the first feature time; if yes, step 203 is performed;
- the first feature time may be written into a timer for timing.
- the Handler and the thread's sleep(long) method are used to implement the timer, or the Handler's postDelayed(Runnable, long) method is used to implement the timer, or the Handler is combined with the timer and the TimerTask to implement the timer, and so on.
- Step 203 The application rotates the interface of the application in a first direction
- the application interface can be forced to rotate, allowing the user to turn the head to read horizontally.
- the first direction of rotation is on the plane where the screen of the mobile device is located, either to the left (ie, counterclockwise), to the right (ie, clockwise), or to the left, left and right, etc.
- the embodiment of the present application does not limit this.
- the application may be rotated by a specified angle in the first direction by the application, as shown in FIG. 5 to the left by 90°.
- the interface selection of the application is the operation of the application itself, not the operation of the system, that is, the other interfaces in the system are normally displayed from the vertical.
- Step 204 when detecting that the mobile device rotates in the second direction, the application continues to rotate the interface of the application in the first direction;
- the user may habitually select the mobile device in the second direction, wherein the first direction is opposite to the second direction.
- the application's interface can continue to be rotated in the first direction.
- the user may habitually hang By selecting the mobile device to the right in the right direction, you can continue to rotate the application's interface to the left.
- the three-dimensional angles x, y, and z of the mobile device can be obtained by an Orientation Sensor in the mobile device.
- z is the azimuth to the center of the earth
- the x-axis is the elevation angle (inverted from the standstill state)
- the y-axis is the flip angle (inverted from the standstill state).
- a state in which the angle y of the mobile device is obtained in real time can be added, and the direction and angle of the rotation of the mobile device are known.
- the application may determine whether the system turns on the screen rotation function.
- a preset first angle threshold eg, 45°
- the screen rotation function means that the interface in the system will rotate as the screen rotates, keeping the position of the interface.
- the applied interface is rotated by a specified angle, such as 90°, in the first direction to ensure that the orientation of the applied interface does not change.
- Step 205 When detecting that the mobile device rotates in the first direction, the application rotates the interface of the application in a second direction;
- the user may habitually continue to select the mobile device in the first direction to debug the mobile device.
- the interface of the application can be rotated in a second direction, wherein the first direction is opposite the second direction.
- the user may habitually select the mobile device from the vertical direction to the left, and then the interface of the application may be rotated to the right.
- the application may determine whether the system turns on the screen rotation function
- the application interface is rotated by a specified angle, such as 90°, in the second direction to ensure that the orientation of the applied interface does not change.
- Step 206 it is determined whether the time of loading the interface of the application after the rotation exceeds the second feature time; if yes, step 207 is performed;
- the second feature time may be written into a timer for timing.
- Step 207 The application rotates the interface of the application in a second direction.
- the application interface can be restored and the user can read normally.
- the application can be rotated in the second direction by a specified angle, such as 90°, to restore the vertical display.
- FIG. 9 a structural block diagram of an embodiment of a processing device of an application interface of the present application is shown, which may specifically include the following modules:
- the time information setting module 901 is configured to set time information in an application of the mobile device, where the time information may include a first feature time;
- the first timing module 902 is configured to determine, by the application, whether the startup time exceeds the first feature time; if yes, the first rotation module 903 is invoked;
- the first rotation module 903 is configured to rotate the interface of the application in the first direction by the application.
- the apparatus may further include the following modules:
- a second rotation module for detecting, by the application, rotating an interface of the application in a first direction when the mobile device detects rotation in a second direction, the first direction being opposite to the second direction.
- the apparatus may further include the following modules:
- a third rotation module configured to rotate, by the application, an interface of the application in a second direction when the mobile device is detected to rotate in a first direction, the first direction being opposite to the second direction.
- the time information may further include a second feature time
- the device may further include the following modules:
- a second timing module configured to determine whether a time of loading an interface of the application after the rotation exceeds the second feature time; if yes, calling a fourth rotation module;
- a fourth rotation module for rotating an interface of the application in a second direction by the application, the first direction being opposite to the second direction.
- the first rotation module 903 may include the following sub-modules:
- a first angle rotation sub-module for rotating, by the application, the interface of the application by a specified angle in a first direction.
- the second rotation module may include the following submodules:
- a first angle determining submodule configured to determine, by the application, whether the system turns on the screen rotation function when detecting that the mobile device rotates in the second direction by more than a preset first angle threshold; if yes, the first holding submodule is invoked If not, the second angle rotation submodule is invoked;
- a first holding submodule for maintaining a direction of an interface of the application
- a second angle rotation sub-module for rotating the interface of the application by a specified angle in a first direction.
- the third rotation module may include the following submodules:
- a second angle determining submodule configured to determine, by the application, whether the system turns on the screen rotation function when detecting that the mobile device rotates in the first direction by more than a preset second angle threshold; if yes, the second holding submodule is invoked If not, the third angle rotation submodule is invoked;
- a second holding submodule for maintaining a direction of an interface of the application
- the third angle rotation sub-module is configured to rotate the interface of the application by a specified angle in the second direction.
- the fourth rotation module may include the following submodules:
- a fourth angle rotation sub-module for rotating, by the application, the interface of the application by a specified angle in a second direction.
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, embodiments of the present application may adopt an entirely hardware embodiment, A fully software embodiment, or a combination of software and hardware aspects. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
- Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
- These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
- Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
- These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner such that the computer is stored in the computer
- the instructions in the readable memory produce an article of manufacture comprising instruction means that implements the functions specified in a block or blocks of a flow or a flow and/or block diagram of the flowchart.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
本申请实施例提供了一种应用界面的处理方法和装置,该方法包括:在移动设备的一应用中设置时间信息,所述时间信息包括第一特征时间;由所述应用判断启动的时间是否超过所述第一特征时间;若是,则由所述应用沿第一方向旋转所述应用的界面。本申请实施例防止用户长时间固定姿势阅读、造成颈椎疲劳。并且由于展示给用户的界面是旋转后的界面,用户可以选择暂时停止浏览该应用的界面,也会减缓用户的视力疲劳。
Description
本申请涉及移动设备的技术领域,特别是涉及一种应用界面的处理方法和一种应用界面的处理装置。
随着移动通信技术的发展,诸如手机等移动设备越来越普及,给人们在的生活、学习、工作带来了极大的便利。
由于移动设备的便携性,用户经常使用移动设备浏览网页、阅读电子书等等。
用户长时间固定姿势阅读,容易造成颈椎疲劳,并且长时间的阅读,也会造成用户的视力疲劳以及其他不利影响。
发明内容
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种应用界面的处理方法和相应的一种应用界面的处理装置。
为了解决上述问题,本申请实施例公开了一种应用界面的处理方法,包括:
在移动设备的一应用中设置时间信息,所述时间信息包括第一特征时间;
由所述应用判断启动的时间是否超过所述第一特征时间;若是,则由所述应用沿第一方向旋转所述应用的界面。
可选地,还包括:
当检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋
转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,还包括:
当检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,所述时间信息还包括第二特征时间,所述方法还包括:
判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,所述由所述应用沿第一方向旋转所述应用的界面的步骤包括:
由所述应用沿第一方向将所述应用的界面旋转指定的角度。
可选地,所述当检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面的步骤包括:
当检测到移动设备沿第二方向旋转超过预设的第一角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;
若是,则保持所述应用的界面的方向;
若否,则沿第一方向将所述应用的界面旋转指定的角度。
可选地,所述当检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面的步骤包括:
当检测到移动设备沿第一方向旋转超过预设的第二角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;
若是,则保持所述应用的界面的方向;
若否,则沿第二方向将所述应用的界面旋转指定的角度。
可选地,所述由所述应用沿第二方向旋转所述应用的界面的步骤包
括:
由所述应用沿第二方向将所述应用的界面旋转指定的角度。
本申请实施例还公开了一种应用界面的处理装置,包括:
时间信息设置模块,用于在移动设备的一应用中设置时间信息,所述时间信息包括第一特征时间;
第一计时模块,用于由所述应用判断启动的时间是否超过所述第一特征时间;若是,则调用第一旋转模块;
第一旋转模块,用于由所述应用沿第一方向旋转所述应用的界面。
可选地,还包括:
第二旋转模块,用于在检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,还包括:
第三旋转模块,用于在检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,所述时间信息还包括第二特征时间,所述装置还包括:
第二计时模块,用于判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则调用第四旋转模块;
第四旋转模块,用于由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
可选地,所述第一旋转模块包括:
第一角度旋转子模块,用于由所述应用沿第一方向将所述应用的界面旋转指定的角度。
可选地,所述第二旋转模块包括:
第一角度判断子模块,用于在检测到移动设备沿第二方向旋转超过预设的第一角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;若是,则调用第一保持子模块,若否,则调用第二角度旋转子模块;
第一保持子模块,用于保持所述应用的界面的方向;
第二角度旋转子模块,用于沿第一方向将所述应用的界面旋转指定的角度。
可选地,所述第三旋转模块包括:
第二角度判断子模块,用于在检测到移动设备沿第一方向旋转超过预设的第二角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;若是,则调用第二保持子模块,若否,则调用第三角度旋转子模块;
第二保持子模块,用于保持所述应用的界面的方向;
第三角度旋转子模块,用于沿第二方向将所述应用的界面旋转指定的角度。
可选地,所述第四旋转模块包括:
第四角度旋转子模块,用于由所述应用沿第二方向将所述应用的界面旋转指定的角度。
本申请实施例包括以下优点:
本申请实施例通过应用在启动一定的时候之后旋转其界面,若用户浏览该应用的界面,需要随之旋转头部,防止用户长时间固定姿势阅读、造成颈椎疲劳。并且由于展示给用户的界面是旋转后的界面,用户可以选择暂时停止浏览该应用的界面,也会减缓用户的视力疲劳。
图1是本申请的一种应用界面的处理方法实施例1的步骤流程图;
图2是本申请的一种应用界面的处理方法实施例2的步骤流程图;
图3是本申请实施例的一种时间信息的设置示例图;
图4是本申请实施例的一种垂直显示应用界面的示例图;
图5是本申请实施例的一种旋转应用界面的示例图;
图6是本申请实施例的一种在移动设备旋转时旋转应用界面的示例图;
图7是本申请实施例的一种移动设备的旋转角度的示例图;
图8是本申请实施例的一种在移动设备旋转时旋转应用界面的示例图;
图9是本申请的一种应用界面的处理装置实施例的结构框图。
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
参照图1,示出了本申请的一种应用界面的处理方法实施例1的步骤流程图,具体可以包括如下步骤:
步骤101,在移动设备的一应用中设置时间信息,其中,该时间信息包括第一特征时间;
步骤102,由所述应用判断启动的时间是否超过所述第一特征时间;若是,则执行步骤103;
步骤103,由所述应用沿第一方向旋转所述应用的界面。
本申请实施例通过应用在启动一定的时候之后旋转其界面,若用户浏览该应用的界面,需要随之旋转头部,防止用户长时间固定姿势阅读、造成颈椎疲劳。并且由于展示给用户的界面是旋转后的界面,用户可以选择暂时停止浏览该应用的界面,也会减缓用户的视力疲劳。
参照图2,示出了本申请的一种应用界面的处理方法实施例2的步骤流程图,具体可以包括如下步骤:
步骤201,在移动设备的一应用中设置时间信息;
需要说明的是,本申请实施例可以应用在各种移动设备中,例如,手机、平板电脑、个人数字助理、穿戴设备(如眼镜、手表等)等等。
该移动设备的操作系统可以包括Android(安卓)、IOS、Windows Phone、Windows等等,通常可以安装各种应用,如浏览器、电子书客户端等等。
在本申请实施例中,该时间信息包括第一特征时间和第二特征时间。
如图3所示,在启动该应用时可以弹出一窗口,可以让用户选择是否开启强制旋转功能,以提醒用户活动颈椎,防止长时间固定姿势阅读。
若用户选择开启强制旋转功能,则可以设置“垂直阅读时间”(即第一特征时间)和“水平阅读时间”(即第二特征时间),用户点击“开启”按键后开始计时。
如图4所示,当设置了“垂直阅读时间”和“水平阅读时间”之后,则可以正常垂直方向进行阅读。
若用户选择关闭强制旋转功能,则可以直接点击“关闭”按键,取消弹窗,正常使用应用。
步骤202,由所述应用判断启动的时间是否超过所述第一特征时间;若是,则执行步骤203;
在本发明实施例中,可以将第一特征时间写入一定时器进行计时。
例如,采用Handler与线程的sleep(long)方法实现定时器,或者,采用Handler的postDelayed(Runnable,long)方法实现定时器,或者,采用Handler与timer及TimerTask结合的方法实现定时器,等等。
步骤203,由所述应用沿第一方向旋转所述应用的界面;
当定时器计时完成,表示垂直阅读时间已过,进入水平阅读时间,则可以强制旋转应用的界面,让用户扭头进行水平阅读。
旋转的第一方向是在移动设备屏幕所在的平面,可以是一直向左(即逆时针方向),也可以是一直向右(即顺时针方向),还可以是轮流向左、左右,等等,本申请实施例对此不加以限制。
为使本领域技术人员更好地理解本申请实施例,在本说明书中,将向左作为第一方向的一种示例进行说明。
在具体实现中,可以由应用沿第一方向将应用的界面旋转指定的角度,如图5所示的向左选择90°。
当然,除了90°之外,还可以是旋转其他的角度,本申请实施例对此不加以限制。
需要说明的是,应用的界面选择是应用自身的操作,并非是系统的操作,即系统中其他的界面是正常从垂直显示。
步骤204,当检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面;
由于应用的界面沿第一方向旋转,用户可能习惯性沿第二方向选择移动设备,其中,第一方向与第二方向相反。
为保持应用的界面的旋转显示,则可以继续沿第一方向旋转应用的界面。
例如,如图6所示,若应用的界面向左旋转,则用户可能习惯性自垂
直方向向右选择移动设备,则可以继续向左旋转应用的界面。
如图7所示,可以通过移动设备中的Orientation Sensor(方向传感器)获取移动设备的三维角度x、y、z。
其中,z是指向地心的方位角,x轴是仰俯角(由静止状态开始前后反转),y轴是翻转角(由静止状态开始左右反转)。
在本申请实施例中,可以添加监听实时得到移动设备角度y的状态,获知移动设备旋转的方向、角度。
在具体实现中,为了防止与系统造成冲突,当检测到移动设备沿第二方向旋转超过预设的第一角度阈值(如45°)时,则可以由应用判断系统是否开启屏幕旋转功能。
屏幕旋转功能,是指系统中的界面会随着屏幕的旋转而旋转,保持界面的位置。
若是,则保持应用的界面的方向,即不进行自转。
由于应用的界面会随着系统的屏幕旋转功能而沿第一方向旋转,可以保证应用的界面的方向不发生变化。
若否,则沿第一方向将应用的界面旋转指定的角度,如90°,保证应用的界面的方向不发生变化。
步骤205,当检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面;
由于应用的界面沿第一方向旋转,用户可能习惯性继续沿第一方向选择移动设备,对移动设备进行调试。
为保持应用的界面的旋转显示,则可以沿第二方向旋转应用的界面,其中,第一方向与第二方向相反。
例如,如图8所示,若应用的界面向左旋转,则用户可能习惯性自垂直方向向左选择移动设备,则可以继续向右旋转应用的界面。
在具体实现中,为了防止与系统造成冲突,当检测到移动设备沿第一方向旋转超过预设的第二角度阈值(如45°)时,则可以由应用判断系统是否开启屏幕旋转功能;
若是,则保持所述应用的界面的方向,即不进行自转。
由于应用的界面会随着系统的屏幕旋转功能而沿第二方向旋转,可以保证应用的界面的方向不发生变化。;
若否,则沿第二方向将应用的界面旋转指定的角度,如90°,保证应用的界面的方向不发生变化。
步骤206,判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则执行步骤207;
在本发明实施例中,在旋转应用的界面之后,可以将第二特征时间写入一定时器进行计时。
步骤207,由所述应用沿第二方向旋转所述应用的界面。
当定时器计时完成,表示水平阅读时间已过,进入垂直阅读时间,则可以恢复应用的界面,让用户正常阅读。
由于在先保持了应用界面沿第一方向旋转的指定角度,如90°,因此,可以由应用沿第二方向将应用的界面旋转指定的角度,如90°,即可恢复垂直显示。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
参照图9,示出了本申请的一种应用界面的处理装置实施例的结构框图,具体可以包括如下模块:
时间信息设置模块901,用于在移动设备的一应用中设置时间信息,所述时间信息可以包括第一特征时间;
第一计时模块902,用于由所述应用判断启动的时间是否超过所述第一特征时间;若是,则调用第一旋转模块903;
第一旋转模块903,用于由所述应用沿第一方向旋转所述应用的界面。
在本申请的一个实施例中,该装置还可以包括如下模块:
第二旋转模块,用于在检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
在本申请的一个实施例中,该装置还可以包括如下模块:
第三旋转模块,用于在检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
在本申请的一个实施例中,所述时间信息还可以包括第二特征时间,该装置还可以包括如下模块:
第二计时模块,用于判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则调用第四旋转模块;
第四旋转模块,用于由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
在本申请的一个实施例中,所述第一旋转模块903可以包括如下子模块:
第一角度旋转子模块,用于由所述应用沿第一方向将所述应用的界面旋转指定的角度。
在本申请的一个实施例中,所述第二旋转模块可以包括如下子模块:
第一角度判断子模块,用于在检测到移动设备沿第二方向旋转超过预设的第一角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;若是,则调用第一保持子模块,若否,则调用第二角度旋转子模块;
第一保持子模块,用于保持所述应用的界面的方向;
第二角度旋转子模块,用于沿第一方向将所述应用的界面旋转指定的角度。
在本申请的一个实施例中,所述第三旋转模块可以包括如下子模块:
第二角度判断子模块,用于在检测到移动设备沿第一方向旋转超过预设的第二角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;若是,则调用第二保持子模块,若否,则调用第三角度旋转子模块;
第二保持子模块,用于保持所述应用的界面的方向;
第三角度旋转子模块,用于沿第二方向将所述应用的界面旋转指定的角度。
在本申请的一个实施例中,所述第四旋转模块可以包括如下子模块:
第四角度旋转子模块,用于由所述应用沿第二方向将所述应用的界面旋转指定的角度。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、
完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机
可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种应用界面的处理方法和一种应用界面的处理装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (12)
- 一种应用界面的处理方法,其特征在于,包括:在移动设备的一应用中设置时间信息,所述时间信息包括第一特征时间;由所述应用判断启动的时间是否超过所述第一特征时间;若是,则由所述应用沿第一方向旋转所述应用的界面。
- 根据权利要求1所述的方法,其特征在于,还包括:当检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
- 根据权利要求1所述的方法,其特征在于,还包括:当检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
- 根据权利要求1或2或3所述的方法,其特征在于,所述时间信息还包括第二特征时间,所述方法还包括:判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
- 根据权利要求1所述的方法,其特征在于,所述由所述应用沿第一方向旋转所述应用的界面的步骤包括:由所述应用沿第一方向将所述应用的界面旋转指定的角度。
- 根据权利要求2所述的方法,其特征在于,所述当检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面的步骤包括:当检测到移动设备沿第二方向旋转超过预设的第一角度阈值时,由所 述应用判断系统是否开启屏幕旋转功能;若是,则保持所述应用的界面的方向;若否,则沿第一方向将所述应用的界面旋转指定的角度。
- 根据权利要求3所述的方法,其特征在于,所述当检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面的步骤包括:当检测到移动设备沿第一方向旋转超过预设的第二角度阈值时,由所述应用判断系统是否开启屏幕旋转功能;若是,则保持所述应用的界面的方向;若否,则沿第二方向将所述应用的界面旋转指定的角度。
- 根据权利要求4所述的方法,其特征在于,所述由所述应用沿第二方向旋转所述应用的界面的步骤包括:由所述应用沿第二方向将所述应用的界面旋转指定的角度。
- 一种应用界面的处理装置,其特征在于,包括:时间信息设置模块,用于在移动设备的一应用中设置时间信息,所述时间信息包括第一特征时间;第一计时模块,用于由所述应用判断启动的时间是否超过所述第一特征时间;若是,则调用第一旋转模块;第一旋转模块,用于由所述应用沿第一方向旋转所述应用的界面。
- 根据权利要求9所述的装置,其特征在于,还包括:第二旋转模块,用于在检测到移动设备沿第二方向旋转时,由所述应用继续沿第一方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
- 根据权利要求9所述的装置,其特征在于,还包括:第三旋转模块,用于在检测到移动设备沿第一方向旋转时,由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
- 根据权利要求9或10或11所述的装置,其特征在于,所述时间信息还包括第二特征时间,所述装置还包括:第二计时模块,用于判断加载旋转之后的应用的界面的时间是否超过所述第二特征时间;若是,则调用第四旋转模块;第四旋转模块,用于由所述应用沿第二方向旋转所述应用的界面,所述第一方向与所述第二方向相反。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510982774.3A CN106909267B (zh) | 2015-12-23 | 2015-12-23 | 一种应用界面的处理方法和装置 |
| CN201510982774.3 | 2015-12-23 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017107825A1 true WO2017107825A1 (zh) | 2017-06-29 |
Family
ID=59089100
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/109925 Ceased WO2017107825A1 (zh) | 2015-12-23 | 2016-12-14 | 一种应用界面的处理方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106909267B (zh) |
| WO (1) | WO2017107825A1 (zh) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102981643A (zh) * | 2011-05-27 | 2013-03-20 | 索尼公司 | 信息处理设备、信息处理装置、信息处理方法和程序 |
| CN103853459A (zh) * | 2012-12-04 | 2014-06-11 | 联想(北京)有限公司 | 一种显示方法和装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011171935A (ja) * | 2010-02-17 | 2011-09-01 | Panasonic Corp | 通信装置 |
| CN102109903A (zh) * | 2010-12-28 | 2011-06-29 | 中兴通讯股份有限公司 | 保护视力的方法及装置 |
| CN103442127B (zh) * | 2013-08-05 | 2016-05-11 | 广东欧珀移动通信有限公司 | 一种主动保护视力的方法及移动终端 |
| CN104461002A (zh) * | 2014-12-05 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | 一种降低观看移动终端设备的视觉疲劳度的装置和方法 |
| CN104679434A (zh) * | 2015-03-17 | 2015-06-03 | 北京合生共济投资咨询有限责任公司 | 一种客户端页面的切换方法 |
-
2015
- 2015-12-23 CN CN201510982774.3A patent/CN106909267B/zh active Active
-
2016
- 2016-12-14 WO PCT/CN2016/109925 patent/WO2017107825A1/zh not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102981643A (zh) * | 2011-05-27 | 2013-03-20 | 索尼公司 | 信息处理设备、信息处理装置、信息处理方法和程序 |
| CN103853459A (zh) * | 2012-12-04 | 2014-06-11 | 联想(北京)有限公司 | 一种显示方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106909267A (zh) | 2017-06-30 |
| CN106909267B (zh) | 2020-09-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111277659B (zh) | 手机横屏竖屏显示状态检测方法及装置 | |
| KR102426070B1 (ko) | 전자 장치 및 전자 장치의 디스플레이 설정 방법 | |
| EP2755107B1 (en) | Method and apparatus for controlling multitasking in electronic device using double-sided display | |
| US10638057B2 (en) | Photographing device and control method thereof | |
| US9400597B2 (en) | Presenting dynamic grids | |
| JP2017142812A (ja) | スクロールするためのチルティング | |
| TW201635064A (zh) | 用於智慧型設備的鬧鐘設置方法、裝置及電子設備 | |
| WO2016095728A1 (zh) | 一种多窗口显示方法及装置 | |
| WO2019076360A1 (zh) | 一种自动调整桌面图标的方法、移动终端及存储介质 | |
| CN107064798B (zh) | 用于预计电池使用的设备、方法和程序产品 | |
| WO2017177833A1 (zh) | 一种信息显示方法及装置 | |
| CN110020231A (zh) | 网页截图方法及其装置 | |
| CN103279290A (zh) | 移动设备显示方法和移动设备 | |
| WO2018213595A1 (en) | Termination of animation | |
| WO2019144763A1 (zh) | 一种页面显示方法、装置及设备 | |
| CN109240495A (zh) | 一种控制自动翻页的方法及设备 | |
| CN110750156A (zh) | 一种用于姿势矫正提醒的方法和装置 | |
| TW201734856A (zh) | 頁面顯示的方法及裝置 | |
| WO2017166749A1 (zh) | 一种屏幕转动方法、装置和电子设备 | |
| WO2016078527A1 (zh) | 一种输入法窗口的调整方法及装置 | |
| CN104820562A (zh) | 用于电子设备的图像显示方法和装置以及电子设备 | |
| KR20160137258A (ko) | 전자 장치 및 그의 화면 표시 방법 | |
| WO2017107825A1 (zh) | 一种应用界面的处理方法和装置 | |
| TW201619809A (zh) | 提供提示資訊的方法及裝置 | |
| US20220166864A1 (en) | Electronic Device and Control Method and Control Apparatus Therefor, Storage Medium, and Processor |
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: 16877636 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16877636 Country of ref document: EP Kind code of ref document: A1 |