CN106339092B - Horizontal/vertical screen switching method and apparatus - Google Patents
Horizontal/vertical screen switching method and apparatus Download PDFInfo
- Publication number
- CN106339092B CN106339092B CN201610796571.XA CN201610796571A CN106339092B CN 106339092 B CN106339092 B CN 106339092B CN 201610796571 A CN201610796571 A CN 201610796571A CN 106339092 B CN106339092 B CN 106339092B
- Authority
- CN
- China
- Prior art keywords
- preset
- vertical screen
- angle
- gripping
- angular range
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F3/0488—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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
The disclosure is directed to a kind of horizontal/vertical screen switching method and apparatus.Angle is held this method comprises: obtaining, whether judge to hold angle in preset transverse screen angular range or preset vertical screen angular range, if holding angle not in transverse screen angular range, and angle is held also not in vertical screen angular range, screens switch mode is then determined according to preset gripping touch-control decision procedure, it realizes to first pass through and whether judges to hold angle in preset transverse screen angular range or preset vertical screen angular range, if holding angle neither in preset transverse screen angular range, also not in preset vertical screen angular range, then screens switch mode is determined further according to preset gripping touch-control decision procedure, in compared to the prior art, only according to the decision procedure for holding angle and preset angular range, the horizontal/vertical screen switching mode is finer, it is more in line with the use habit of user, in turn, improve the accurate of switching Property and improve user experience.
Description
Technical field
This disclosure relates to the communication technology more particularly to a kind of horizontal/vertical screen switching method and apparatus.
Background technique
With the development of the communication technology and terminal device, more and more users select using terminal equipment to watch text
Information and viewing video information etc..In order to make user possess better experience, terminal device can be according to user in using terminal
When the process of equipment, terminal device state in which switches the display pattern of display screen, i.e., transverse screen display and vertical screen display it
Between switch over.
In the related technology, terminal device can determine the inclination of center axis thereof with respect to the horizontal plane by gravity sensor
Angle.When the tilt angle within the preset angle range when, terminal device be transverse screen display mode;When the tilt angle exceeds
When preset angular range, terminal device is vertical screen display mode.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of horizontal/vertical screen switching method and apparatus.
According to the first aspect of the embodiments of the present disclosure, a kind of horizontal/vertical screen switching method is provided, comprising:
It obtains and holds angle;It is described to hold the angle that angle is terminal device central axis and horizontal plane;
Judge the gripping angle whether in preset transverse screen angular range or in preset vertical screen angular range;
If the gripping angle is not in the transverse screen angular range, and the gripping angle is not also in the vertical screen angle
In range, then screens switch mode is determined according to preset gripping touch-control decision procedure.
With reference to first aspect, in the first possible implementation of the first aspect, described to be touched according to preset gripping
Control decision procedure determines screens switch mode, comprising:
Obtain the gripping contact information with the terminal device two sides of the centerline axis parallel, the gripping contact information packet
It includes: holding the position of contact and the contact area of each gripping contact;
If the gripping contact information of the terminal device two sides meets preset vertical screen condition, the terminal device switching
To vertical screen mode;The vertical screen condition includes: to be parallel to the first side of the terminal device of the central axis there are the first touchings
Point area is in the first preset touch areal extent, and there are the second contact areas to touch in preset face for the first side
It touches in areal extent;
If the gripping contact information of the terminal device two sides meets preset transverse screen condition, the terminal device switching
To transverse screen mode;The transverse screen condition includes: to be parallel to the first side of the terminal device of the central axis to only exist uniquely
Third contact area in the second preset touch areal extent, and be parallel to the central axis terminal device
There are at least one the 4th contact areas in the preset touch areal extent of third for two side faces.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect
In, the gripping contact information of the acquisition and the terminal device two sides of the centerline axis parallel, comprising:
The gripping contact information of the two sides of the terminal device is obtained by edge touch technology.
With reference to first aspect, in a third possible implementation of the first aspect, the transverse screen angular range is 0-
30 degree;The vertical screen angular range is 60-90 degree.
With reference to first aspect, the possible implementation of the first of first aspect is into the third possible implementation
In any possible implementation, in a fourth possible implementation of the first aspect, the method also includes:
If the gripping angle is in the transverse screen angular range, the terminal device switches to transverse screen mode.
With reference to first aspect, the possible implementation of the first of first aspect is into the third possible implementation
In any possible implementation, in the fifth possible implementation of the first aspect, the method also includes:
If the gripping angle is in the vertical screen angular range, the terminal device switches to transverse screen mode.
According to the second aspect of an embodiment of the present disclosure, a kind of horizontal/vertical screen switching device is provided, comprising:
Module is obtained, is configured as obtaining gripping angle;The gripping angle is the horizontal/vertical screen switching device central axis
The angle of line and horizontal plane;
Judgment module is configured as judging whether the gripping angle is in preset transverse screen angular range or preset
In vertical screen angular range;
Determining module is configured as working as the gripping angle not in the transverse screen angular range, and the gripping angle
When also not in the vertical screen angular range, screens switch mode is determined according to preset gripping touch-control decision procedure.
In conjunction with second aspect, in the first possible implementation of the second aspect, the determining module includes:
Acquisition submodule is configured as obtaining and touch with the gripping of the horizontal/vertical screen switching device two sides of the centerline axis parallel
Point information, the contact information that holds includes: the position for holding contact and each contact area for holding contact;
First switching submodule is configured as presetting when the gripping contact information of horizontal/vertical screen switching device two sides meets
Vertical screen condition when, switch to vertical screen mode;The vertical screen condition includes: the horizontal/vertical screen switching dress for being parallel to the central axis
There are the first contact areas in the first preset touch areal extent for the first side set, and there are for the first side
Two contact areas touch in areal extent in preset face;
Second switching submodule is configured as presetting when the gripping contact information of horizontal/vertical screen switching device two sides meets
Transverse screen condition when, the horizontal/vertical screen switching device switches to transverse screen mode;The transverse screen condition includes: to be parallel to the center
The first side of the horizontal/vertical screen switching device of axis only exists unique third contact area in the second preset touch area
In range, and it is parallel to the second side of horizontal/vertical screen switching device of the central axis there are at least one the 4th contact areas
In the preset touch areal extent of third.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect
In, the acquisition submodule includes:
Acquiring unit is configured as obtaining the gripping touching of the two sides of the horizontal/vertical screen switching device by edge touch technology
Point information.
In conjunction with second aspect, in the third possible implementation of the second aspect, the transverse screen angular range is 0-
30 degree;The vertical screen angular range is 60-90 degree.
In conjunction with second aspect, second aspect the first possible implementation into the third possible implementation
In any possible implementation, in the fourth possible implementation of the second aspect, described device further include:
First switching module is configured as switching to transverse screen when the gripping angle is in the transverse screen angular range
Mode.
In conjunction with second aspect, second aspect the first possible implementation into the third possible implementation
In any possible implementation, in a fifth possible implementation of the second aspect, described device further include:
Second switching module is configured as switching to transverse screen when the gripping angle is in the vertical screen angular range
Mode.
According to the third aspect of an embodiment of the present disclosure, a kind of horizontal/vertical screen switching device is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
It obtains and holds angle;It is described to hold the angle that angle is the horizontal/vertical screen switching device central axis and horizontal plane;
Judge the gripping angle whether in preset transverse screen angular range or in preset vertical screen angular range;
If the gripping angle is not in the transverse screen angular range, and the gripping angle is not also in the vertical screen angle
In range, then screens switch mode is determined according to preset gripping touch-control decision procedure.With reference to first aspect, in first aspect
In the first possible implementation,
The technical scheme provided by this disclosed embodiment can include the following benefits:
In one embodiment, hold angle by obtaining, judge to hold angle whether in preset transverse screen angular range or
The preset vertical screen angular range of person if holding angle not in transverse screen angular range, and holds angle also not in vertical screen angle model
In enclosing, then screens switch mode is determined according to preset gripping touch-control decision procedure, judgement can be first passed through by, which realizing, holds angle
Whether degree is in preset transverse screen angular range or preset vertical screen angular range, if holding angle neither at preset transverse screen angle
It spends range and then determines screens switch side further according to preset gripping touch-control decision procedure also not in preset vertical screen angular range
Formula, compared to the prior art in, only according to hold angle and preset angular range decision procedure, the horizontal/vertical screen switching mode
It is more fine, it is more in line with the use habit of user, in turn, the accuracy of switching is improved and improves user experience.
In another embodiment, by holding angle not within the scope of transverse screen, and angle is held also not in vertical screen angle
When in range, the gripping contact information with the terminal device two sides of centerline axis parallel is obtained, if the gripping of terminal device two sides
Contact information meets preset vertical screen condition, then switches to vertical screen mode, if the gripping contact information of terminal device two sides meets
Preset transverse screen condition, then switch to transverse screen mode, also defines specific transverse screen condition and vertical screen condition, horizontal/vertical screen switched
Decision procedure in journey is finer, in turn, improves the accuracy of switching and improves user experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of horizontal/vertical screen switching method shown according to an exemplary embodiment;
Fig. 2 is the schematic diagram that angle is held in embodiment illustrated in fig. 1;
Fig. 3 is a kind of flow chart of the horizontal/vertical screen switching method shown according to another exemplary embodiment;
Fig. 4 A is the schematic diagram of the holding mode of preset vertical screen condition in Fig. 3 embodiment;
Fig. 4 B is the schematic diagram of the holding mode of preset transverse screen condition in Fig. 3 embodiment;
Fig. 5 is the schematic diagram of one of embodiment illustrated in fig. 3 user interface change procedure;
Fig. 6 is a kind of block diagram of horizontal/vertical screen switching device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the horizontal/vertical screen switching device shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of the horizontal/vertical screen switching device shown according to a further exemplary embodiment;
Fig. 9 is a kind of block diagram of horizontal/vertical screen switching device shown according to another exemplary embodiment;
Figure 10 is a kind of block diagram of horizontal/vertical screen switching device shown according to an exemplary embodiment;
Figure 11 is a kind of block diagram of horizontal/vertical screen switching device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Noun involved in the embodiment of the present disclosure is explained first:
Vertical screen mode: when referring to that terminal device is shown on the screen, the length of screen is less than the mould of the width of screen
Formula.
Transverse screen mode: when referring to that terminal device is shown on the screen, the length of screen is greater than the mould of the width of screen
Formula.
Fig. 1 is a kind of flow chart of horizontal/vertical screen switching method shown according to an exemplary embodiment.As shown in Figure 1, this
Horizontal/vertical screen switching method that open embodiment provides the following steps are included:
In a step 101, it obtains and holds angle.
Wherein, the angle that angle is terminal device central axis and horizontal plane is held.
The horizontal/vertical screen switching method that the embodiment of the present disclosure provides can be executed by terminal device.Terminal device can be hand-held
Equipment, wearable device, calculates equipment and various forms of user equipmenies (User Equipment at mobile unit;Referred to as:
UE), mobile station (Mobile Station;Referred to as: MS) and terminal (terminal) etc..
In the embodiment of the present disclosure, the central axis of terminal device is referred to: when terminal device is horizontal positioned with short side, long
It is parallel with the long side of terminal device when side Vertical Square is set, line vertical with short side and that short side is divided into two sections of equal length.
In a kind of concrete implementation mode, it can be obtained by gravity sensor and hold angle.Gravity sensor can be with
The tilt angle of terminal device central axis with respect to the horizontal plane is determined in turn by measuring the acceleration as caused by gravity,
That is the angle of central axis and horizontal plane.
In a step 102, judge to hold angle whether in preset transverse screen angular range or in vertical screen angular range.
Preset transverse screen angular range and preset vertical screen angular range can rule of thumb data be set.Fig. 2 is
The schematic diagram of angle is held in embodiment illustrated in fig. 1.As shown in Fig. 2, preset transverse screen angular range is 0 ° of-α, preset vertical screen
Angular range is β -90 °.Optionally, α can be 30 °, and β can be 60 °, i.e., preset transverse screen angular range is 0 ° -30 °, in advance
If vertical screen angular range be 60 ° -90 °.
After getting and holding angle, judge the gripping angle whether in preset transverse screen angular range or vertical screen angle
It spends in range.
It should be noted that the arrow M in Fig. 2 is shown when terminal device is rotated in the clockwise direction, it is preset
Transverse screen angular range and preset vertical screen angular range.Arrow N in Fig. 2 is shown when terminal device turns in the counterclockwise direction
When dynamic, preset transverse screen angular range and preset vertical screen angular range.
In step 103, if holding angle not in transverse screen angular range, and angle is held also not in vertical screen angular range
It is interior, then screens switch mode is determined according to preset gripping touch-control decision procedure.
Preset touch-control decision procedure can be what terminal device was set according to the gripping habit of user.Preset touching
Control decision procedure may include vertical screen condition and transverse screen condition, and terminal device judgement meets vertical screen condition, then enters vertical screen mode,
Terminal device judgement meets transverse screen condition, then enters transverse screen mode.Vertical screen condition and transverse screen condition can pass through counting user
Habit is held to get.For example, user is in transverse screen mode, using the thumb grip of left hand or the right hand in terminal device
Side is held in the other side of terminal device using at least one of remaining 4 fingers, then transverse screen condition can be set as
There is contact area in the side of terminal device, and there is at least one contact area in the other side.It is understood that can also have others
The setting means of transverse screen condition.The embodiment of the present disclosure to preset touch-control decision procedure with no restriction.
Please continue to refer to Fig. 2, the gripping angle of present terminal device is θ, and θ is greater than α, is less than β.That is, θ is neither preset
In transverse screen angular range, also not in preset vertical screen angular range, then illustrate terminal device according to its present state in which,
Both it is likely to be and needs transverse screen display, it is also possible to be to need vertical screen display, at this point, terminal device is according to preset gripping touch-control
Decision procedure determines screens switch mode.In compared to the prior art, only according to holding sentencing for angle and preset angular range
Determine mode, the horizontal/vertical screen switching mode is finer, is more in line with the use habit of user, in turn, improves the accurate of switching
Property.
It should be noted that terminal device switches to transverse screen mode when gripping angle is located within the scope of preset transverse screen;
If gripping angle is located in preset vertical screen angular range, terminal device switches to vertical screen mode.
The embodiment of the present disclosure provide horizontal/vertical screen switching method, by obtain hold angle, judge hold angle whether
Preset transverse screen angular range or preset vertical screen angular range if holding angle not in transverse screen angular range, and are held
Angle also not in vertical screen angular range, then determines screens switch mode according to preset gripping touch-control decision procedure, realizes
It can first pass through and judge to hold angle whether in preset transverse screen angular range or preset vertical screen angular range, if holding angle
Degree also not in preset vertical screen angular range, is then sentenced neither in preset transverse screen angular range further according to preset gripping touch-control
Determine mode and determine screens switch mode, compared to the prior art in, only according to hold angle and preset angular range judgement
Mode, the horizontal/vertical screen switching mode is finer, is more in line with the use habit of user, in turn, improves the accuracy of switching
And improve user experience.
Fig. 3 is a kind of flow chart of the horizontal/vertical screen switching method shown according to another exemplary embodiment.The present embodiment mentions
The horizontal/vertical screen switching method of confession on the basis of embodiment shown in Fig. 1, shields to being determined according to preset gripping touch-control decision procedure
Curtain switching mode is described in detail.As shown in figure 3, the horizontal/vertical screen switching method that the embodiment of the present disclosure provides includes following step
It is rapid:
In step 301, it obtains and holds angle.
Wherein, the angle that angle is terminal device central axis and horizontal plane is held.
In step 302, judge to hold angle whether in preset transverse screen angular range or in vertical screen angular range.
Step 301, step 302 are similar with step 101, the realization process of step 102 and technical principle, no longer superfluous herein
It states.
In step 303, if holding angle not in transverse screen angular range, and angle is held also not in vertical screen angular range
It is interior, then obtain the gripping contact information with the terminal device two sides of centerline axis parallel.
Wherein, holding contact information includes: the position for holding contact and each contact area for holding contact.
Terminal device can obtain the position of the gripping contact of the two sides of terminal device and each by edge touch technology
Hold the contact area of contact.
The two sides with centerline axis parallel of terminal device, i.e. side where the two of terminal device long side, this two
Sensing device is provided on side.Edge touch technology can be acted on and the touch letter on two sides by incuding user
Breath, to get the position for holding contact and each contact area for holding contact.
In step 304, if the gripping contact information of terminal device two sides meets preset vertical screen condition, terminal device
Switch to vertical screen mode.
Wherein, vertical screen condition includes: to be parallel to the first side of the terminal device of central axis there are the first contact areas
In the first preset touch areal extent, and there are the second contact areas in preset face touch areal extent for first side
It is interior.
First preset touch area and preset face touch area, and rule of thumb numerical value is set.
Fig. 4 A is the schematic diagram of the holding mode of preset vertical screen condition in Fig. 3 embodiment.As shown in Figure 4 A, the gripping side
Formula shows user and uses left-handed terminal device.There are in the first side with centerline axis parallel of terminal device
There is also the second contact areas 42 pre- in the first preset touch areal extent, and in first side for one contact area 41
If face touch areal extent in.In the mode shown in Fig. 4 A, first side is the left side of terminal device.It is understood that
It is that, when user holds terminal device using the right hand, first side is the right side of terminal device.Terminal is shown in Fig. 4 A to set
For holding mode when being rotated in the clockwise direction.
It can be seen that, the first contact area 41 is formed by thumb, and the second contact area 42 is by hand from Fig. 4 A
What the palm was formed.First preset touch areal extent is less than preset face and touches areal extent.
In step 305, if the gripping contact information of terminal device two sides meets preset transverse screen condition, terminal device
Switch to transverse screen mode.
Wherein, transverse screen condition includes: and is parallel to the first side of the terminal device of central axis to only exist unique third
Contact area is in the second preset touch areal extent, and the second side for being parallel to the terminal device of central axis exists
At least one the 4th contact area is in the preset touch areal extent of third.
Second preset touch areal extent is that rule of thumb numerical value is set with the preset touch area of third
's.It should be noted that the first preset touch areal extent, the second preset touch area and the preset point touching of third
Touching area can be equal, be also possible to unequal.Optionally, it is preset to be greater than second for the first preset touch area
Touch area, the second preset touch area are greater than the preset touch area of third.
Fig. 4 B is the schematic diagram of the holding mode of preset transverse screen condition in Fig. 3 embodiment.As shown in Figure 4 B, the gripping side
Formula shows user and uses left-handed terminal device.It illustrates on a side of terminal device, there is thumb to be formed
Third contact area 43 have that at least one of remaining 4 finger is formed on another side of terminal device
Four contact areas 44.Fig. 4 B shows holding mode when terminal device rotates in the counterclockwise direction.
There is no sequential relationship between step 304 and step 305.That is step 304 and step 305 may be performed simultaneously, can also
To execute in any order.In step 304 and step 305, when terminal device switches over, for example, being switched by transverse screen mode
For the process of vertical screen mode, can be carried out according to switching mode in the prior art, details are not described herein again.
It is realized by step 304 and step 305 when gripping angle is neither in preset transverse screen angular range nor pre-
If vertical screen angular range in when, can be according to the gripping contact informations of terminal device two sides to determine whether meeting preset perpendicular
Set of hanging scrolls part and preset transverse screen condition, decision procedure are finer.
The above process is illustrated with a specific example below.Fig. 5 is that one of embodiment illustrated in fig. 3 user interface becomes
The schematic diagram of change process.As shown in figure 5, user's using terminal is set when the first user interface 501 in Fig. 5 indicates original state
When standby browsing pictures, the content shown in the user interface of terminal device, at this point, terminal device is vertical screen mode.In Fig. 5
Two user interfaces 502 indicate that user rotates terminal device along clockwise direction, and the gripping angle of terminal device neither exists
Preset transverse screen angular range also not in preset vertical screen angular range, also, uses holding mode as shown in Figure 4 B
When, the content shown in the user interface of terminal device, at this point, terminal device is transverse screen mode.
The horizontal/vertical screen switching method that the embodiment of the present disclosure provides by holding angle not within the scope of transverse screen, and is held
Angle also not in vertical screen angular range when, obtain the gripping contact information with the terminal device two sides of centerline axis parallel, if
The gripping contact information of terminal device two sides meets preset vertical screen condition, then switches to vertical screen mode, if terminal device two sides
Gripping contact information meet preset transverse screen condition, then switch to transverse screen mode, also define specific transverse screen condition and perpendicular
Set of hanging scrolls part, the decision procedure in horizontal/vertical screen handoff procedure is finer, in turn, improves the accuracy of switching and improves use
Family experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 6 is a kind of block diagram of horizontal/vertical screen switching device shown according to an exemplary embodiment.Horizontal/vertical screen switching dress
Setting can be become by being implemented in combination with for software, hardware or both comprising some or all of of terminal device.Such as Fig. 6 institute
Show, the device of horizontal/vertical screen switching device provided in this embodiment includes:
Module 61 is obtained, is configured as obtaining gripping angle.
Wherein, the angle that angle is horizontal/vertical screen switching device central axis and horizontal plane is held.
Judgment module 62 is configured as judging whether gripping angle is in preset transverse screen angular range or preset perpendicular
Shield in angular range.
Optionally, preset transverse screen angular range can be 0 ° -30 °, preset vertical screen angular range can for 60 ° -
90°。
Determining module 63 is configured as working as gripping angle not in transverse screen angular range, and holds angle also not in vertical screen
When in angular range, screens switch mode is determined according to preset gripping touch-control decision procedure.
The horizontal/vertical screen switching device that the embodiment of the present disclosure provides obtains module by setting, is configured as obtaining gripping angle
Whether degree, judgment module are configured as judge gripping angle in preset transverse screen angular range or preset vertical screen angle
In range, determining module is configured as working as gripping angle not in transverse screen angular range, and holds angle also not in vertical screen angle
When in range, screens switch mode is determined according to preset gripping touch-control decision procedure, judgement can be first passed through by, which realizing, holds
Whether angle is in preset transverse screen angular range or preset vertical screen angular range, if holding angle neither in preset transverse screen
Angular range then determines screens switch further according to preset gripping touch-control decision procedure also not in preset vertical screen angular range
Mode, compared to the prior art in, only according to hold angle and preset angular range decision procedure, the horizontal/vertical screen switching side
Formula is finer, is more in line with the use habit of user, in turn, improves the accuracy of switching and improves user experience.
Fig. 7 is a kind of block diagram of the horizontal/vertical screen switching device shown according to another exemplary embodiment.As shown in fig. 7, this
On the basis of the horizontal/vertical screen switching device embodiment shown in Fig. 6 that open embodiment provides, determining module 63 includes:
Acquisition submodule 631 is configured as obtaining and touch with the gripping of the horizontal/vertical screen switching device two sides of centerline axis parallel
Point information.
Wherein, holding contact information includes: the position for holding contact and each contact area for holding contact.
First switching submodule 632 is configured as presetting when the gripping contact information of horizontal/vertical screen switching device two sides meets
Vertical screen condition when, switch to vertical screen mode.
Wherein, vertical screen condition includes: that there are the first touchings for the first side of the horizontal/vertical screen switching device for being parallel to central axis
Point area is in the first preset touch areal extent, and there are the second contact areas in preset face touch surface for first side
In product range.
Second switching submodule 633 is configured as presetting when the gripping contact information of horizontal/vertical screen switching device two sides meets
Transverse screen condition when, horizontal/vertical screen switching device switches to transverse screen mode.
Wherein, transverse screen condition includes: that the first side for the horizontal/vertical screen switching device for being parallel to central axis only exists uniquely
Third contact area in the second preset touch areal extent, and be parallel to the horizontal/vertical screen switching device of central axis
There are at least one the 4th contact areas in the preset touch areal extent of third for second side.
Optionally, acquisition submodule 631 includes acquiring unit 6311, is configured as obtaining by edge touch technology vertical and horizontal
Shield the gripping contact information of the two sides of switching device.
The horizontal/vertical screen switching device that the embodiment of the present disclosure provides is configured as obtaining in by the way that acquisition submodule is arranged
The gripping contact information of the parallel horizontal/vertical screen switching device two sides of mandrel line, the first switching submodule are configured as working as horizontal/vertical screen
When the gripping contact information of switching device two sides meets preset vertical screen condition, vertical screen mode is switched to, the second switching submodule,
It is configured as when the gripping contact information of horizontal/vertical screen switching device two sides meets preset transverse screen condition, horizontal/vertical screen switching device
Switch to transverse screen mode, the decision procedure in horizontal/vertical screen handoff procedure is finer, in turn, improve switching accuracy and
Improve user experience.
Fig. 8 is a kind of block diagram of the horizontal/vertical screen switching device shown according to a further exemplary embodiment.As shown in figure 8, this
On the basis of the horizontal/vertical screen switching device embodiment shown in Fig. 6 that open embodiment provides, further includes:
First switching module 81 is configured as switching to transverse screen mode when holding angle in transverse screen angular range.
The horizontal/vertical screen switching device that the embodiment of the present disclosure provides is configured as by the way that the first switching module is arranged when gripping
When angle is in transverse screen angular range, transverse screen mode is switched to, horizontal/vertical screen mode can be switched by realizing, and improve user's body
It tests.
Fig. 9 is a kind of block diagram of horizontal/vertical screen switching device shown according to another exemplary embodiment.As shown in figure 9, this
On the basis of the horizontal/vertical screen switching device embodiment shown in Fig. 6 that open embodiment provides, further includes:
Second switching module 91 is configured as switching to transverse screen mould when holding angle in the vertical screen angular range
Formula.
The horizontal/vertical screen switching device that the embodiment of the present disclosure provides is configured as holding angle by the way that the second switching module is arranged
When degree is in vertical screen angular range, vertical screen mode is switched to, horizontal/vertical screen mode can be switched by realizing, and improve user experience.
The foregoing describe the built-in function of horizontal/vertical screen switching device and structures.Figure 10 is shown according to an exemplary embodiment
A kind of horizontal/vertical screen switching device block diagram.As shown in Figure 10, the horizontal/vertical screen switching device that the embodiment of the present disclosure provides can be realized
Are as follows:
Processor 111;
Memory 112 for 111 executable instruction of storage processor;
Wherein, processor 111 is configured as:
It obtains and holds angle;Hold the angle that angle is horizontal/vertical screen switching device central axis and horizontal plane;Judgement is held
Whether angle is in preset transverse screen angular range or in preset vertical screen angular range;If holding angle not in transverse screen angle
In range, and angle is held also not in vertical screen angular range, then determine that screen is cut according to preset gripping touch-control decision procedure
Change mode.
Figure 11 is a kind of block diagram of horizontal/vertical screen switching device shown according to an exemplary embodiment.For example, device 800 can
To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for
Body equipment, personal digital assistant etc..
Referring to Fig.1 1, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor module 814, Yi Jitong
Believe component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of terminal device
When device executes, so that terminal device is able to carry out a kind of horizontal/vertical screen switching method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (10)
1. a kind of horizontal/vertical screen switching method characterized by comprising
It obtains and holds angle;It is described to hold the angle that angle is terminal device central axis and horizontal plane, wherein the terminal is set
The angle of standby central axis and horizontal plane is the acceleration as caused by gravity measured according to gravity sensor, and the folder determined
Angle;
Judge the gripping angle whether in preset transverse screen angular range or in preset vertical screen angular range;
If the gripping angle is not in the transverse screen angular range, and the gripping angle is not also in the vertical screen angular range
It is interior, then screens switch mode is determined according to preset gripping touch-control decision procedure;
It is described that screens switch mode is determined according to preset gripping touch-control decision procedure, comprising:
The gripping contact information with the terminal device two sides of the centerline axis parallel is obtained, the gripping contact information includes:
Hold the position of contact and the contact area of each gripping contact;
If the gripping contact information of the terminal device two sides meets preset vertical screen condition, the terminal device switches to perpendicular
Screen mode;The vertical screen condition includes: to be parallel to the first side of the terminal device of the central axis there are the first contact faces
Product is in the first preset touch areal extent, and there are the second contact areas in preset face touch surface for the first side
In product range, the first preset touch areal extent is less than the preset face and touches areal extent;
If the gripping contact information of the terminal device two sides meets preset transverse screen condition, the terminal device switches to cross
Screen mode;The transverse screen condition includes: to be parallel to the first side of the terminal device of the central axis to only exist unique
Three contact areas are parallel to second side of the terminal device of the central axis in the second preset touch areal extent
There are at least one the 4th contact areas in the preset touch areal extent of third in face, the first preset touch face
Product is greater than the described second preset touch area, and the second preset touch area is greater than the preset point touching of the third
Touch area.
2. the method according to claim 1, wherein the terminal device of the acquisition and the centerline axis parallel
The gripping contact information of two sides, comprising:
The gripping contact information of the two sides of the terminal device is obtained by edge touch technology.
3. the method according to claim 1, wherein the transverse screen angular range is 0-30 degree;The vertical screen angle
Degree range is 60-90 degree.
4. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
If the gripping angle is in the transverse screen angular range, the terminal device switches to transverse screen mode.
5. method according to any one of claims 1 to 3, which is characterized in that the method also includes:
If the gripping angle is in the vertical screen angular range, the terminal device switches to transverse screen mode.
6. a kind of horizontal/vertical screen switching device characterized by comprising
Module is obtained, is configured as obtaining gripping angle;The gripping angle be the horizontal/vertical screen switching device central axis with
The angle of horizontal plane;
Whether judgment module is configured as judging the gripping angle in preset transverse screen angular range or preset vertical screen
In angular range;
Determining module is configured as when the gripping angle is not in the transverse screen angular range, and the gripping angle is not yet
When in the vertical screen angular range, screens switch mode is determined according to preset gripping touch-control decision procedure;
The determining module includes:
Acquisition submodule is configured as obtaining and believe with the gripping contact of the horizontal/vertical screen switching device two sides of the centerline axis parallel
Breath, the contact information that holds includes: the position for holding contact and each contact area for holding contact, wherein terminal device
The angle of central axis and horizontal plane is the acceleration as caused by gravity measured according to gravity sensor, and the folder determined
Angle;
First switching submodule is configured as meeting preset erect when the gripping contact information of horizontal/vertical screen switching device two sides
When set of hanging scrolls part, vertical screen mode is switched to;The vertical screen condition includes: to be parallel to the horizontal/vertical screen switching device of the central axis
There are the first contact areas in the first preset touch areal extent for first side, and there are the second touchings for the first side
Point area touches in areal extent in preset face, and the first preset touch areal extent is less than the preset face touching
Touch areal extent;
Second switching submodule is configured as meeting preset cross when the gripping contact information of horizontal/vertical screen switching device two sides
When set of hanging scrolls part, the horizontal/vertical screen switching device switches to transverse screen mode;The transverse screen condition includes: to be parallel to the central axis
The first side of horizontal/vertical screen switching device only exist unique third contact area in the second preset touch areal extent
It is interior, and be parallel to the second side of horizontal/vertical screen switching device of the central axis there are at least one the 4th contact areas
In three preset touch areal extents, the first preset touch area is greater than the described second preset touch face
Product, the second preset touch area are greater than the preset touch area of the third.
7. device according to claim 6, which is characterized in that the acquisition submodule includes:
Acquiring unit is configured as obtaining the gripping contact letter of the two sides of the horizontal/vertical screen switching device by edge touch technology
Breath.
8. device according to claim 6, which is characterized in that the transverse screen angular range is 0-30 degree;The vertical screen angle
Degree range is 60-90 degree.
9. according to the described in any item devices of claim 6 to 8, which is characterized in that described device further include:
First switching module is configured as switching to transverse screen mode when the gripping angle is in the transverse screen angular range.
10. according to the described in any item devices of claim 6 to 8, which is characterized in that described device further include:
Second switching module is configured as switching to transverse screen mode when the gripping angle is in the vertical screen angular range.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796571.XA CN106339092B (en) | 2016-08-31 | 2016-08-31 | Horizontal/vertical screen switching method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796571.XA CN106339092B (en) | 2016-08-31 | 2016-08-31 | Horizontal/vertical screen switching method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106339092A CN106339092A (en) | 2017-01-18 |
CN106339092B true CN106339092B (en) | 2019-08-13 |
Family
ID=57822449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610796571.XA Active CN106339092B (en) | 2016-08-31 | 2016-08-31 | Horizontal/vertical screen switching method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106339092B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234763B (en) * | 2017-12-29 | 2021-02-26 | 阿里巴巴(中国)有限公司 | Horizontal and vertical screen switching method and device and terminal |
CN111566607A (en) * | 2018-03-30 | 2020-08-21 | 华为技术有限公司 | Terminal display method and terminal |
CN111050071A (en) * | 2019-12-23 | 2020-04-21 | 维沃移动通信有限公司 | Photographing method and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436304A (en) * | 2011-11-14 | 2012-05-02 | 华为技术有限公司 | Method and terminal for switching horizontal and vertical display modes of screen |
CN102789322A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Screen picture rotation method and system |
CN103617000A (en) * | 2013-11-26 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system for switching screen of mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI631506B (en) * | 2013-04-29 | 2018-08-01 | 群邁通訊股份有限公司 | Method and system for whirling view on screen |
-
2016
- 2016-08-31 CN CN201610796571.XA patent/CN106339092B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789322A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Screen picture rotation method and system |
CN102436304A (en) * | 2011-11-14 | 2012-05-02 | 华为技术有限公司 | Method and terminal for switching horizontal and vertical display modes of screen |
CN103617000A (en) * | 2013-11-26 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system for switching screen of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106339092A (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103995666B (en) | A kind of method and apparatus of setting operating mode | |
CN104571922B (en) | Touch-responsive method, apparatus and terminal | |
JP6033502B2 (en) | Touch input control method, touch input control device, program, and recording medium | |
CN105657173B (en) | Volume adjusting method, device and mobile terminal | |
CN105607805B (en) | The footmark processing method and processing device of application icon | |
CN106127129A (en) | Fingerprint typing reminding method and device | |
CN104571709B (en) | The processing method of mobile terminal and virtual key | |
CN106547466A (en) | Display control method and device | |
WO2017161826A1 (en) | Functional control method and terminal | |
CN107402676A (en) | Trigger action processing method, device and computer-readable recording medium | |
CN104793843B (en) | desktop display method and device | |
KR20120001941A (en) | Mobile terminal and control method for mobile terminal | |
CN107422977A (en) | Trigger action processing method, device and computer-readable recording medium | |
US10061497B2 (en) | Method, device and storage medium for interchanging icon positions | |
CN106339092B (en) | Horizontal/vertical screen switching method and apparatus | |
CN107037965A (en) | A kind of information displaying method based on input, device and mobile terminal | |
CN109144385A (en) | The moving method and device of suspension ball | |
CN113867550A (en) | Attitude detection method and device for electronic equipment and storage medium | |
CN108540653A (en) | Terminal device and interaction control method and device | |
CN106127132B (en) | The reminding method and device, electronic equipment of slidingtype typing fingerprint | |
CN106126050B (en) | Menu display method and device | |
CN106354383B (en) | The method and device on hide tools column | |
CN107908346A (en) | For controlling the method and device of screen display | |
CN104951228B (en) | Laying method, device and the terminal device of icon | |
CN106775352A (en) | The moving method of suspension key, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |