Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the flow chart of mobile terminal screen display control method embodiment one of the present invention, and as shown in Figure 1, the mobile terminal screen display control method of present embodiment can may further comprise the steps:
Step 101, obtain the current angle of inclination of portable terminal.
For instance, with regard to the portable terminal that has disposed motion sensor, motion sensor detects and obtains the angle of inclination of portable terminal in real time, the angle of inclination of portable terminal mainly is meant the angle of the screen of portable terminal with respect to the general visual angle of user, the general visual angle of promptly supposing mobile terminal user is that the eyes place straight line of mobile terminal user is parallel with horizontal plane or approximate parallel, and the plane of the screen of portable terminal also with the eyes place straight line parallel of mobile terminal user or approximate parallel, this moment portable terminal the angle of inclination be portable terminal screen in the plane, screen place of portable terminal with respect to the anglec of rotation of the eyes place straight line of mobile terminal user.This is because parallel with horizontal plane or approaching when parallel when the screen of portable terminal, can't determine that by motion sensor mobile terminal user routine visual angle is with respect to the screen of the angle of the portable terminal anglec of rotation with respect to the eyes place straight line of mobile terminal user in the plane, screen place of portable terminal.
Step 102, generate angle of inclination information according to the angle of inclination.
For instance, get access to the angle of inclination of portable terminal by step 101 after, can generate corresponding angle of inclination information according to the concrete angle of inclination value at angle of inclination, include concrete angle of inclination value in this angle of inclination information.
Step 103, adjust the screen display angle of portable terminal according to angle of inclination information.
For instance, after the information of step 102 acquisition angle of inclination, both can obtain the angle of inclination value that comprised in this angle of inclination information, according to this angle of inclination value, screen display angle that just can corresponding adjustment portable terminal, promptly content shown in the display screen of portable terminal is rotated according to this angle of inclination value, thereby the screen that makes portable terminal under the situation that the plane at its place rotates relatively, the relative position that the shown content of the screen of portable terminal still can be maintained fixed with the general visual angle of mobile terminal user.
Preferably, the screen display angle according to angle of inclination information adjustment portable terminal can specifically comprise: make the screen display angle of portable terminal equal the angle of inclination.
For instance, for giving mobile terminal user in the process of rotation portable terminal, the screen of portable terminal remains fixing relative position with respect to the general visual angle of mobile terminal user, after obtaining angle of inclination information, according to the angle of inclination that is comprised in the information of angle of inclination, just can make the corresponding same angle of opposite spin of screen of portable terminal to the portable terminal rotation.For example, when portable terminal with respect to the horizontal plane turns clockwise 60 when spending, the angle of inclination is 60 degree, at this moment, the screen display angle of portable terminal also becomes 60 degree, the screen display that is portable terminal is rotated counterclockwise 60 degree with respect to the screen of portable terminal, like this with respect to the general visual angle of mobile terminal user, the screen display of portable terminal still can continue the maintenance level effectively, thereby make mobile terminal user when the recreation of supporting motion sensor, comfortable game experiencing can be arranged.
Further preferred, the plane, screen place of portable terminal and the angle of horizontal plane are greater than 30 degree.
For instance, when the screen of portable terminal is parallel with horizontal plane, portable terminal by motion sensor can't perception this moment mobile terminal user the general visual angle and the angle of mobile terminal screen, at this moment can't be according to the screen display angle of the corresponding adjustment portable terminal of angle of inclination information.Therefore, be to improve the experience property of mobile terminal user, when the plane, screen place of portable terminal was spent greater than 30 with the angle of horizontal plane, portable terminal ability was according to the screen display angle of the corresponding adjustment portable terminal of angle of inclination information.So just can improve portable terminal effectively and adjust the efficient of screen display angle, can give the better experience of user.
Further preferably, can also comprise adjust the screen display angle of portable terminal according to angle of inclination information after: the screen display of stretching portable terminal, showing in full frame mode needs content displayed.
For instance, because the display screen of portable terminal is generally rectangle or square, therefore, after portable terminal was adjusted the screen display angle of portable terminal according to angle of inclination information, the shown content of the screen of portable terminal can't be mated with the screen of portable terminal.Owing to there is not the rounded portable terminal of screen at present, and the content that the screen of portable terminal is shown and the screen of portable terminal do not match, can make the screen display of portable terminal imperfect, thereby after making the screen display angle of adjusting portable terminal, four jiaos of the screen of portable terminal do not have can displaying contents, this moment, mobile terminal user can see that four jiaos of the screen of portable terminal are not had demonstration.The experience sense of mobile terminal user is descended.Present embodiment is after adjusting the screen display angle of portable terminal according to angle of inclination information, screen display to portable terminal carries out stretch processing, thereby the screen display that makes portable terminal can be filled the space of the screen of whole portable terminal, those skilled in the art can need content displayed by showing with the similar full frame mode of terminal display, repeat no more herein.
Preferably, can also comprise after the screen display angle according to angle of inclination information adjustment portable terminal:
The size of the background image of the required demonstration of screen of detection portable terminal; If the size of background image satisfy diameter equal screen catercorner length round inscribe or include, be positioned at the content of the background image of screen scope after then making the screen display portable terminal rotate.
For instance, when mobile terminal user is played, or during browsing pictures, screen with respect to portable terminal, the background image of game environment may be very big, when for example mobile terminal user was carried out some instant strategy or RPG, the actual shown content of the screen of portable terminal only was the sub-fraction of whole map.When mobile terminal user is browsed the bigger picture of resolution, and when observing picture detail, the actual shown content of the screen of portable terminal also only is the sub-fraction of whole picture.In this case, the screen of portable terminal is equivalent to a window of roaming in map or picture, and the corresponding contents that only need complete demonstration to be arranged in window map or picture this moment just can bring good user experience to mobile terminal user.Simultaneously, screen for portable terminal, its fundamental prerequisite that can not exceed in the scope of map or picture in map or picture rotating freely is, map or picture can hold cornerwise circle that diameter equals the screen of portable terminal at least, like this, when the intersection of diagonal of the screen of portable terminal overlapped with the center of circle, no matter how the screen of portable terminal rotated, and can not exceed the scope of map or picture.Therefore, present embodiment is after the screen display angle of carrying out according to angle of inclination information adjustment portable terminal, size to the background image of the required demonstration of screen of portable terminal detects, if by size that detect to find background image satisfy diameter equal screen catercorner length round inscribe or include, be positioned at the content of the background image of screen scope after then can making the screen display portable terminal rotation of portable terminal, thereby bring user experience preferably to mobile terminal user.
The mobile terminal screen display control method of present embodiment can be when mobile phone users rotates portable terminal, adjust the screen display of portable terminal in real time, thereby make the screen display of portable terminal can adapt in the portable terminal rotary course well, the screen of portable terminal is with respect to the variation between the general visual angle of mobile terminal user, thereby improve the experience sense of mobile terminal user effectively, bring better application to experience to mobile terminal user.
Fig. 2 is the structure chart of portable terminal embodiment one of the present invention, and as shown in Figure 2, the portable terminal of present embodiment can comprise:angle acquisition module 1 is used to obtain the current angle of inclination of portable terminal; Angleinformation generation module 2, be used for generating angle of inclination information according to described angle of inclination; Screendisplay adjusting module 3, be used for adjusting the screen display angle of described portable terminal according to described angle of inclination information.
The portable terminal of present embodiment can be used to carry out method embodiment illustrated in fig. 1, and its realization principle and technique effect are similar, repeat no more herein.
Fig. 3 is the structure chart of portable terminal embodiment two of the present invention, and as shown in Figure 3, present embodiment is on the basis of embodiment one, and screen display adjustingmodule 3 specifically can comprise:
Screen display angle adjusting 31, be used to make the screen display angle of portable terminal to equal the angle of inclination.
The portable terminal of present embodiment can be used to carry out the method for preferred embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more herein.
Fig. 4 is the structure chart of portable terminal embodiment three of the present invention, as shown in Figure 4, present embodiment is on the basis of Fig. 2 or embodiment shown in Figure 3, can also comprise the scaledimage module 4 that is connected with screendisplay adjusting module 3, scaledimage module 4 be used to the to stretch screen display of portable terminal, showing in full frame mode needs content displayed.
The portable terminal of present embodiment can be used to carry out the method for preferred embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more herein.
Fig. 5 is the structure chart of portable terminal embodiment four of the present invention, as shown in Figure 4, present embodiment is on the basis of Fig. 2 or embodiment shown in Figure 3, can also comprise the screenbackground image display 5 that is connected with screen display adjustingmodule 3, screenbackground image display 5 is used to detect the size of background image of the required demonstration of screen of portable terminal; If the size of background image satisfy diameter equal screen catercorner length round inscribe or include, be positioned at the content of the background image of screen scope after then making the screen display portable terminal rotate.
The portable terminal of present embodiment can be used to carry out the method for preferred embodiment shown in Figure 1, and its realization principle and technique effect are similar, repeat no more herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.