The display packing at terminal demonstration interface and deviceTechnical field
The present invention relates to the communications field, in particular to a kind of display packing and device of terminal demonstration interface.
Background technology
Along with the development of science and technology, be unprecedented for intelligent terminal facilitation.The function of current intelligent terminal from strength to strength, be deep into the every aspect of people's life, bring great facility, but although the function of intelligent terminal is varied at present, but these functions are not be all very perfect, such as, the application switched on current mobile phone and other mobile intelligent terminals anyhow switched with screen of intelligent terminal is quite universal.But this switching mode at present on intelligent terminal is more fixing, can only switch between horizontal screen and perpendicular screen, user is so just caused not to be very convenient in the operation of some situation, as user terminal is tiltedly held in the hand time, be at this moment that horizontal screen or perpendicular screen all bring inconvenience to the operating terminal of user.Therefore, in prior art, intelligent terminal can not can only be met consumers' demand in the mode of horizontal screen and the switching of erecting between screen.
For the problem that intelligent terminal in prior art can not can only be met consumers' demand at horizontal screen and the mode of erecting the switching between shielding, at present effective solution is not yet proposed.
Summary of the invention
Fundamental purpose of the present invention is the display packing and the device that provide a kind of terminal demonstration interface, to solve the problem that in technology, intelligent terminal can not can only be met consumers' demand at horizontal screen and the mode of erecting the switching between shielding.
To achieve these goals, according to an aspect of the present invention, provide a kind of display packing of terminal demonstration interface, comprising: detect that terminal rotates; After rotation, the display interface of described terminal is shown according to the display direction of user preset.
Preferably, the display interface showing described terminal according to the display direction of user preset comprises: obtain the angle between the sense of rotation of described terminal and the display direction of described user preset; Rotate described display interface according to described angle, make the display direction of described display interface consistent with the display direction of described user preset.
Preferably, rotate described display interface comprise according to described angle: the opposite direction according to described terminal rotating direction rotates described display interface, wherein, the anglec of rotation of described display interface equals described angle.
Preferably, described angle is determined to comprise in the following manner: by being arranged on gyroscope in described terminal and gravity sensor determines described angle.
Preferably, described display direction comprises one of following: the vertical direction of described terminal present position, the vertical direction of direction of visual lines when to check described terminal with user.
According to another aspect of the present invention, additionally provide a kind of display device of terminal demonstration interface, comprising: detection module, for detecting that terminal rotates; Display module, for after rotation, shows the display interface of described terminal according to the display direction of user preset.
Preferably, described display module comprises: acquiring unit, for obtaining the angle between the sense of rotation of described terminal and the display direction of described user preset; Rotary unit, for rotating described display interface according to described angle, makes the display direction of described display interface consistent with the display direction of described user preset.
Preferably, described rotary unit is also for rotating described display interface according to the opposite direction in described terminal rotating direction, and wherein, the anglec of rotation of described display interface equals described angle.
Preferably, described angle is determined to comprise in the following manner: by being arranged on gyroscope in described terminal and gravity sensor determines described angle.
Preferably, described display direction comprises one of following: the vertical direction of described terminal present position, the vertical direction of direction of visual lines when to check described terminal with user.
Pass through the present invention, after detecting that terminal rotates, according to the display interface of the display direction display terminal of user preset, solve the problem that in prior art, intelligent terminal can not can only be met consumers' demand at horizontal screen and the mode of erecting the switching between shielding, the display mode at terminal user is had terminal demonstration interface more flexibly, improves Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the display packing at terminal demonstration interface according to the embodiment of the present invention;
Fig. 2 is the structured flowchart of the display device at terminal demonstration interface according to the embodiment of the present invention;
Fig. 3 is the preferred structure block diagram one of the display device at terminal demonstration interface according to the embodiment of the present invention;
Fig. 4 is that display direction is the rotation schematic diagram of vertical direction according to the preferred embodiment of the invention;
The display schematic diagram at terminal demonstration interface when Fig. 5 is oblique according to the preferred embodiment of the invention reading.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Present embodiments provide a kind of display packing of terminal demonstration interface, Fig. 1 is the schematic flow sheet of the display packing at terminal demonstration interface according to the embodiment of the present invention, and as shown in Figure 1, the method comprises the steps:
Step S102: detect that terminal rotates;
Step S104: after rotation, according to the display interface of the display direction display terminal of user preset.
Adopted when terminal rotates by the embodiment of the present invention, according to the mode of the display interface of the display direction display terminal of user preset, can by arranging the display direction of any direction, make terminal when rotated, display interface is consistent with display direction all the time, solve the problem that in prior art, intelligent terminal can not can only be met consumers' demand at horizontal screen and the mode of erecting the switching between shielding, the display mode at terminal user is had terminal demonstration interface more flexibly, improves Consumer's Experience.
Have multiple according to the mode of the display interface of the display direction display terminal of user preset in above-mentioned steps, in the embodiment of the present invention preferably in the following ways: obtain the angle between the sense of rotation of terminal and the display direction of user preset; According to angle rotational display interface, make the display direction of display interface consistent with the display direction of user preset.
It should be noted that, in how having according to the mode at angle rotational display interface in the embodiment of the present invention, preferably adopt in embodiments of the present invention: according to the opposite direction rotational display interface in terminal rotating direction, wherein, the anglec of rotation of display interface equals angle.
In the embodiment of the present invention, angle can be determined in the following manner: by arranging gyroscope in the terminal and gravity sensor determination angle.It should be noted which does not form restriction to the present invention, all can determine terminal rotating direction and preset direction angle method or be all within the scope protected of the present invention by the mode of hardware determination angle.
Preferably, the display direction of user preset can be the vertical direction of terminal present position or check terminal with user time direction of visual lines vertical direction, these two kinds of preset directions are directions checking terminal that user commonly uses, user in order to the needs of self environment can be other display directions.
The present embodiment additionally provides a kind of display device of terminal demonstration interface, this device is for realizing the disposal route of above-mentioned area interference, Fig. 2 is the structured flowchart of the display device at terminal demonstration interface according to the embodiment of the present invention, as shown in Figure 2, this device comprises: detection module 22, for detecting that terminal rotates; Display module 24 and this detection module are of coupled connections, for after rotation, according to the display interface of the display direction display terminal of user preset.
Module involved in embodiments of the invention, unit can be realized by the mode of software, also can be realized by the mode of hardware.Described module in the present embodiment, unit also can be arranged within a processor, such as, can be described as: a kind of processor comprises detection module and display module.Wherein, the title of these modules does not form the restriction to this module itself under certain conditions, and such as, acquisition module can also be described to " for for the module that terminal rotates being detected ".
Fig. 3 is the preferred structure block diagram one of the display device at terminal demonstration interface according to the embodiment of the present invention, and as shown in Figure 3, display module 24 comprises: acquiring unit 32, for obtaining the angle between the sense of rotation of terminal and the display direction of user preset; Rotary unit 34 and acquiring unit 32 are of coupled connections, and for according to angle rotational display interface, make the display direction of display interface consistent with the display direction of user preset.
It should be noted that, rotary unit 34 can also be used for the opposite direction rotational display interface according to terminal rotating direction, and wherein, the anglec of rotation of display interface equals angle.
In the embodiment of the present invention, angle can be determined in the following manner: by arranging gyroscope in the terminal and gravity sensor determination angle.It should be noted which does not form restriction to the present invention, all can determine terminal rotating direction and preset direction angle method or be all within the scope protected of the present invention by the mode of hardware determination angle.
Preferably, the display direction of user preset can be the vertical direction of terminal present position or check terminal with user time direction of visual lines vertical direction, these two kinds of preset directions are directions checking terminal that user commonly uses, user in order to the needs of self environment can be other display directions.
Below by the preferred embodiments of the present invention, embodiments of the invention are described in detail.
The preferred embodiment of the present invention provides a kind of mobile phone interface to rotate the method controlled, to solve the problem that prior art median surface turnover technology only can realize the switching of mobile phone horizontal/vertical screen.
The preferred embodiment of the present invention have employed following technical scheme, and the method step of the program comprises:
Step Α: the display direction of setting mobile phone;
Wherein, display packing can be set as the vertical direction of mobile phone present position or check the vertical direction of direction of visual lines of mobile phone with people.
Step B: the anglec of rotation obtaining mobile phone;
Wherein, gravity sensor is coordinated to obtain the angle α of mobile phone at sense of rotation and display direction by three-axis gyroscope.
Step C: upper layer application, according to angle α, controls mobile phone interface in real time and keeps display direction consistent;
Wherein, upper layer application is by display interface reverse rotation angle [alpha], thus keeps mobile phone interface consistent with display direction.
Fig. 4 is that display direction is the rotation schematic diagram of vertical direction according to the preferred embodiment of the invention, and as shown in Figure 4, setting vertical 12 o'clock direction is the forward display direction of mobile phone; By three-axis gyroscope and gravity sensor, read the anglec of rotation α of mobile phone; Upper layer application calculates the direction of mobile phone rotation and the angle α of mobile phone display direction, and adjusts the direction of mobile phone display in real time according to the change of α angle, makes it keep forward to show.
Adopting by adopting the preferred embodiment of the present invention keeps in real time the direction of display interface of mobile phone consistent with display direction, cellphone subscriber is had more flexibly mobile phone interface show, can the holding mode of extended mobile phone, improve Consumer's Experience and experience.
The display schematic diagram at terminal demonstration interface when Fig. 5 is oblique according to the preferred embodiment of the invention reading, mobile phone interface clinodiagonal is certainly than the long length of side of mobile phone, calculate according to the resolution of current main flow mobile phone 1920*1080, the length in pixels of the oblique line Α of mobile phone is 2203.2203/1920=114.7%, considers that interfacial angle can not as viewing area, and oblique display can show more character than conventional display, roughly can how 10%.
Generally only focus on a line word when considering that human eye is read in prior art, and contextual content can effectively be taken into account, oblique gripping is also a kind of more comfortable holding mode, so by the display mode of the preferred embodiment of the present invention, thus can make user can oblique display terminal display interface.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.