CN105159640B - Display interface rotating method and device and mobile terminal - Google Patents

Display interface rotating method and device and mobile terminal Download PDF

Info

Publication number
CN105159640B
CN105159640B CN201510542664.5A CN201510542664A CN105159640B CN 105159640 B CN105159640 B CN 105159640B CN 201510542664 A CN201510542664 A CN 201510542664A CN 105159640 B CN105159640 B CN 105159640B
Authority
CN
China
Prior art keywords
display
display interface
display content
content
page size
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
Application number
CN201510542664.5A
Other languages
Chinese (zh)
Other versions
CN105159640A (en
Inventor
江波
蒋黎峰
丁晓亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc, Beijing Xiaomi Mobile Software Co Ltd filed Critical Xiaomi Inc
Priority to CN201510542664.5A priority Critical patent/CN105159640B/en
Publication of CN105159640A publication Critical patent/CN105159640A/en
Application granted granted Critical
Publication of CN105159640B publication Critical patent/CN105159640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a display interface rotation method, a display interface rotation device and a mobile terminal, wherein the method comprises the following steps: acquiring display content on a display interface; judging whether the direction of a display interface needs to be adjusted or not according to the display content; and if the judgment result is that the direction of the display interface needs to be adjusted, adjusting the direction of the display interface. According to the method and the device, whether the direction of the display interface needs to be adjusted or not can be judged according to the display content, so that the display interface can be automatically rotated even if a user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.

Description

Display interface rotating method and device and mobile terminal
Technical Field
The present disclosure relates to mobile terminal technologies, and in particular, to a display interface rotation method and apparatus, and a mobile terminal.
Background
In the related art, many mobile terminals have a function of automatically rotating a display interface. For example, when the length direction of the mobile terminal is the horizontal direction, the mobile terminal automatically switches the display interface into the horizontal screen display, and when the length direction of the mobile terminal is perpendicular to the ground, the mobile terminal automatically switches the display interface into the vertical screen display, so that great convenience is brought to a user by the function of automatically rotating the display interface.
If the user wants to disable the function, for example, the user operates the mobile terminal while lying, the locking function key provided by the mobile terminal can be used for prohibiting the mobile terminal from automatically rotating the display interface, so that the display interface of the mobile terminal is displayed in a vertical screen mode even if the length direction of the mobile terminal is in a horizontal direction.
Disclosure of Invention
According to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying interface rotation, including:
acquiring display content on a display interface;
judging whether the direction of a display interface needs to be adjusted or not according to the display content;
and if the judgment result is that the direction of the display interface needs to be adjusted, adjusting the direction of the display interface. (ii) a
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying interface rotation, including:
the acquisition module is configured to acquire display content on a display interface;
the first judgment module is configured to judge whether the direction of the display interface needs to be adjusted or not according to the display content, and if the judgment result is that the direction of the display interface needs to be adjusted, the first judgment module triggers the adjustment module;
an adjustment module configured to adjust an orientation of the display interface.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying interface rotation, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring display content on a display interface;
judging whether the direction of a display interface needs to be adjusted or not according to the display content;
and if the judgment result is that the direction of the display interface needs to be adjusted, adjusting the direction of the display interface.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a mobile terminal including the apparatus for rotating a display interface of any one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: whether the direction of the display interface needs to be adjusted or not can be judged according to the display content, so that the display interface can be automatically rotated even if the function of automatically rotating the display interface is not started by a user, and the use of the user is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of displaying interface rotation in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of displaying interface rotation in accordance with another exemplary embodiment.
FIG. 3A is an original schematic diagram of a display interface of a mobile terminal according to an exemplary embodiment;
FIG. 3B is a schematic diagram after rotating the display interface of FIG. 3A;
FIG. 4 is a flowchart illustrating a method of displaying interface rotation, according to another example embodiment.
FIG. 5 is a schematic diagram of the display content of FIG. 3B being enlarged to a full screen display
FIG. 6 is a block diagram illustrating an apparatus for displaying interface rotation, according to an example embodiment.
FIG. 7 illustrates a block diagram of an apparatus to display interface rotation, according to another example embodiment.
FIG. 8 illustrates a block diagram of an apparatus to display interface rotation, according to another example embodiment.
Fig. 9 is a block diagram illustrating an apparatus for displaying interface rotation (general structure of a mobile terminal) according to an exemplary embodiment.
FIG. 10 is a block diagram illustrating an apparatus for displaying interface rotation in accordance with an exemplary embodiment. (general Structure of Server)
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
First, several terms related to the embodiments of the present disclosure are explained:
displaying an interface: the method comprises the steps of presenting a graphical state on a screen of a display in front of a user, wherein the width of the page size of the display interface of the disclosure is equal to the width of the screen, and the length of the page size of the display interface is equal to the length of the screen.
Displaying the content: and displaying the content on the interface, including characters, videos, pictures and the like.
The direction of the display interface: for example, if the screen is a screen of a mobile phone, the display content is text, and the screen is a vertical screen when the user holds the mobile phone, the direction of the text is a normal display direction, if the screen is a horizontal screen when the user holds the mobile phone and the function of rotating the display interface is not started, the direction of the text is unchanged relative to the direction of the mobile phone, the direction of the text is an abnormal display direction, and if the user starts to rotate the function of the display interface, the direction of the text is also changed into the normal display direction.
Fig. 1 is a flowchart illustrating a method for displaying interface rotation according to an exemplary embodiment, where an execution subject of the method for displaying interface rotation is a device for displaying interface rotation, and the device for displaying interface rotation may be disposed in a mobile terminal, and the mobile terminal may be a mobile phone, an IPad, or the like. As shown in fig. 1, the method for rotating the display interface is used in a mobile terminal, and comprises the following steps:
in step S11, display content on the display interface is acquired.
In step S12, it is determined whether or not the orientation of the display interface needs to be adjusted based on the display content.
In step S13, if the determination result is that the orientation of the display interface needs to be adjusted, the orientation of the display interface is adjusted.
According to the method for rotating the display interface, whether the direction of the display interface needs to be adjusted or not can be judged according to the display content, so that the display interface can be automatically rotated even if a user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.
Fig. 2 is a flowchart illustrating a method for displaying interface rotation according to another exemplary embodiment, where an execution subject of the method for displaying interface rotation is a device for displaying interface rotation, and the device for displaying interface rotation may be disposed in a mobile terminal, and the mobile terminal may be a mobile phone, an IPad, or the like. As shown in fig. 2, the method for rotating the display interface is used in a mobile terminal, and includes the following steps:
in step S21, display content on the display interface is acquired.
The display content can be characters, numbers, videos, pictures and the like. How to obtain the display content on the display interface belongs to the prior art, and is not described herein again. Because the types of the content existing on the display interface at the same time can be various, when the area of the display interface occupied by a certain content is greater than or equal to 50%, the content can be determined as the display content, and of course, the content in the center of the display interface can also be used as the display content, which can be specifically set according to actual needs and is not described herein again.
In step S22, it is determined whether the orientation of the display interface needs to be adjusted according to the type of the display content and/or the page size.
In step S23, if the determination result is that the orientation of the display interface needs to be adjusted, the orientation of the display interface is adjusted.
Specifically, whether the direction of the display interface needs to be adjusted may be determined according to the type of the display content, for example, if the user does not start the function of automatically rotating the display interface in the mobile terminal, but it is preset that the display interface can be automatically rotated if the display content is a video, and the display interface can be automatically rotated when the device that rotates the display interface acquires that the display content on the display interface is a video.
Of course, whether the direction of the display interface needs to be adjusted can be judged according to the page size of the display content. For example, a first ratio of the width to the length of the page size of the display content and a second ratio of the width to the length of the page size of the display interface may be first obtained, and if it is determined that one of the first ratio or the second ratio is greater than 1 and the other is less than 1, it is determined that the direction of the display interface needs to be adjusted. Since the length and the width of the screen in the mobile terminal are generally not equal, it can be determined whether the direction of the display interface needs to be adjusted by determining whether the first ratio and the second ratio are both greater than 1 or both less than 1, if the determination result is no, it is determined that the direction of the display interface needs to be adjusted, otherwise the direction of the display interface does not need to be adjusted, as shown in fig. 3A, when the screen 300 of the mobile terminal is a vertical screen, the second ratio of the width L of the screen to the length N is less than 1, the direction of the display interface is also a vertical screen, and the display content of the video 301 is also displayed as a vertical screen, but since the width a of the video 301 is greater than the length B, that is, the first ratio of the width a to the length B is greater than 1, the device for rotating the display interface determines that one of the first ratios is greater than 1 and the other is less than 1, the direction of the display interface needs to, the direction of the display interface is rotated by 90 degrees to the left or the right, and the display interface after adjustment is as shown in fig. 3B.
Optionally, it may also be determined whether the direction of the display interface needs to be adjusted according to the type of the display content and the page size. For example, the user may preset display content, such as a video, that can be rotated when the function of automatically rotating the display interface is not turned on, and then adjust the direction of the display interface when the page size of the video meets a preset rule, such as one of the first ratio or the second ratio is greater than 1 and the other is less than 1.
According to the method for rotating the display interface, whether the direction of the display interface is adjusted or not is determined by judging the type and/or the page size of the display content, so that the display direction of the display content on the screen can better accord with the use habit of a user, the display interface can be automatically rotated even if the user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.
Fig. 4 is a flowchart illustrating a method for displaying interface rotation according to another exemplary embodiment, where an execution subject of the method for displaying interface rotation is a device for displaying interface rotation, and the device for displaying interface rotation may be disposed in a mobile terminal, and the mobile terminal may be a mobile phone, an IPad, or the like. As shown in fig. 4, the method for rotating the display interface is used in a mobile terminal, and includes the following steps:
in step S41, display content on the display interface is acquired.
The display content can be characters, numbers, videos, pictures and the like. How to obtain the display content on the display interface belongs to the prior art, and is not described herein again. Because the types of the content existing on the display interface at the same time can be various, when the area of the display interface occupied by a certain content is greater than or equal to 50%, the content can be determined as the display content, and of course, the content in the center of the display interface can also be used as the display content, which can be specifically set according to actual needs and is not described herein again.
In step S42, it is determined whether the direction of the display interface needs to be adjusted according to the type and/or page size of the display content, and if the determination result is that the direction of the display interface needs to be adjusted, the process goes to step S43, otherwise, the process goes to step S45.
Specifically, whether the direction of the display interface needs to be adjusted may be determined according to the type of the display content, for example, if the user does not start the function of automatically rotating the display interface in the mobile terminal, but it is preset that the display interface can be automatically rotated if the display content is a video, and the display interface can be automatically rotated when the device that rotates the display interface acquires that the display content on the display interface is a video.
Of course, whether the direction of the display interface needs to be adjusted can be judged according to the page size of the display content. For example, a first ratio of the width to the length of the page size of the display content and a second ratio of the width to the length of the page size of the display interface may be first obtained, and if it is determined that one of the first ratio or the second ratio is greater than 1 and the other is less than 1, it is determined that the direction of the display interface needs to be adjusted. Because the length and the width of the screen in the mobile terminal are generally unequal, whether the direction of the display interface needs to be adjusted can be determined by judging whether the first ratio and the second ratio are both greater than 1 or both less than 1, if not, the direction of the display interface needs to be adjusted, otherwise, the direction of the display interface does not need to be adjusted, as shown in fig. 3A, when the screen of the mobile terminal is a vertical screen, the second ratio of the width and the length of the screen is less than 1, the direction of the display interface is also a vertical screen, and the display content of the video is also displayed as a vertical screen, but because the width of the video is greater than the length, namely the first ratio of the width and the length is greater than 1, the device for rotating the display interface determines that one of the first ratios is greater than 1 and the other is less than 1, the direction of the display interface needs to be adjusted, the display interface is automatically rotated, and the direction of the display interface is rotated by 90, the display interface after adjustment is shown in fig. 3B.
Optionally, it may also be determined whether the direction of the display interface needs to be adjusted according to the type of the display content and the page size. For example, the user may preset display content, such as a video, that can be rotated when the function of automatically rotating the display interface is not turned on, and then adjust the direction of the display interface when the page size of the video meets a preset rule, such as one of the first ratio or the second ratio is greater than 1 and the other is less than 1.
In step S43, it is determined whether an adjustment command is received, and if it is determined that an adjustment command is received, the process proceeds to step S44, otherwise, the process proceeds to step S45.
The adjustment instruction of the present embodiment may include any one of the following instructions:
triggering a key of the mobile terminal, triggering when the pressure of a display screen reaches a first preset threshold value, triggering when the moving amplitude of the mobile terminal reaches a second preset threshold value, and triggering when the mobile terminal rotates clockwise or anticlockwise.
For example, if the device for rotating the display interface determines that the direction of the display interface needs to be adjusted, and recognizes that the user shakes the mobile terminal or presses the display screen to reach the first preset threshold or rotates the mobile terminal, for example, the user turns the mobile terminal from a vertical screen to a horizontal screen, it may be determined that the user wishes to adjust the display interface.
In step S44, the orientation of the display interface is adjusted.
In step S45, no adjustment is made.
According to the method for rotating the display interface, after the direction of the display interface needing to be adjusted is judged, whether the direction of the display interface is further judged to be adjusted is judged to be received, whether the direction of the display interface is further judged to be adjusted is judged, the direction of the display interface is adjusted after the adjustment instruction is received, so that the display direction of the display content on the screen can better accord with the use habit of a user, inconvenient misoperation of the user caused by mistaken adjustment of the display interface can be avoided, the display interface can be automatically rotated even if the user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.
In the above embodiment, the step of adjusting the orientation of the display interface includes:
and rotating the direction of the display interface by 90 degrees leftwards or rightwards, and enlarging the page size of the display content so as to enable the page size of the display content to be equal to the page size of the display interface.
As shown in fig. 3A and 3B, before the page size of the display content 301 is not adjusted, even if the direction of the display interface is rotated by 90 degrees to the left or right, the display content 301 is not displayed in a full screen, and another content 302 exists on the display interface. As shown in fig. 5, by enlarging the page size of the display content 301, the page size of the display content 301 and the page size of the display interface can be made equal, that is, full-screen display is realized. In the process, the proportion of the page size of the display content can be adaptively changed, so that the page size of the display content 301 is equal to the page size of the display interface, and the user can rotate the mobile phone, for example, the vertical screen is changed into the horizontal screen, so that the display content 301 conforms to the viewing direction of the user.
In this embodiment, the display content can be displayed in a full screen manner, for example, a video or a picture can be displayed in the full screen manner by enlarging the page size of the display content, so that the use habit of the user is better met, great convenience is brought to the user, even if the user does not start the function of the automatic rotation display interface, the display interface can be automatically rotated, and the user can use the display interface conveniently.
In the above embodiment, after adjusting the direction of the display content, the method further includes:
judging whether the display of the display content is finished or not;
and if the display content is judged to be displayed completely, adjusting the display interface to the original direction.
Specifically, as shown in fig. 5, if the display content is already displayed, the direction of the display interface shown in fig. 3A may be returned.
For example, if the display content is a video, the display of the display content is determined to be completed after the video is displayed, and if the display content is a picture, the display of the display content can be determined to be completed when the user clicks the picture. The setting can be specifically set according to actual needs, and details are not repeated herein.
According to the method for rotating the display interface, the display interface is automatically adjusted to the original direction after the display content is displayed, so that the user is prevented from manually adjusting the original direction of the display interface, inconvenience is brought to the user, and the display process is more in line with the use habit of the user.
FIG. 6 is a block diagram of an apparatus for displaying interface rotation, according to an example embodiment. Referring to fig. 6, the apparatus includes an obtaining module 601, a first determining module 602, and an adjusting module 603.
The detection module 601 is configured to obtain display content on a display interface;
the determining module 602 is configured to determine whether the direction of the display interface needs to be adjusted according to the display content, and if the determination result is that the direction of the display interface needs to be adjusted, trigger the adjusting module 603;
the conversion module 603 is configured to adjust the orientation of the display interface.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
According to the device for rotating the display interface, whether the direction of the display interface needs to be adjusted or not can be judged according to the display content, so that the display interface can be automatically rotated even if a user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.
Optionally, the first determining module of the above embodiment is configured to determine whether the direction of the display interface needs to be adjusted according to the type of the display content and/or the page size. When the first determining module is configured to determine whether the direction of the display interface needs to be adjusted according to the page size, the following may be performed:
acquiring a first ratio of the width to the length of the page size of the display content and a second ratio of the width to the length of the page size of the display interface;
and if one of the first ratio or the second ratio is larger than 1 and the other is smaller than 1, determining that the direction of the display interface needs to be adjusted.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
According to the device for rotating the display interface, whether the direction of the display interface is adjusted or not is determined by judging the type and/or the page size of the display content, so that the display direction of the display content on the screen can better accord with the use habit of a user, the display interface can be automatically rotated even if the user does not start the function of automatically rotating the display interface, and the use of the user is facilitated.
Fig. 7 is a block diagram of an apparatus for displaying interface rotation, according to another exemplary embodiment. Referring to the figure, the apparatus further includes a second determining module 701 in addition to the obtaining module 601, the first determining module 602 and the adjusting module 603, wherein the second determining module 701 is configured to:
whether an adjustment instruction is received is determined, and if the adjustment instruction is determined to be received, the adjustment module 603 is triggered.
The method comprises the following steps of triggering a key of the mobile terminal, triggering when the pressure of a display screen reaches a first preset threshold value, triggering when the moving amplitude of the mobile terminal reaches a second preset threshold value, and triggering when the mobile terminal rotates clockwise or anticlockwise.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
According to the device for rotating the display interface, after the direction of the display interface is judged to be adjusted, whether the adjustment instruction is received or not is further judged, whether the direction of the display interface can be adjusted or not is further judged, the direction of the display interface is adjusted after the adjustment instruction is received, so that the display direction of the display content on the screen can better accord with the use habit of a user, inconvenient misoperation of the user caused by mistaken adjustment of the display interface can be avoided, the display interface can be automatically rotated even if the user does not start the function of the automatic rotation display interface, and the use of the user is facilitated.
Optionally, the adjusting module of the above embodiment is configured to: and rotating the direction of the display interface by 90 degrees leftwards or rightwards, and enlarging the page size of the display content so as to enable the page size of the display content to be equal to the page size of the display interface.
As shown in fig. 3A and 3B, before the page size of the display content 301 is not adjusted, even if the direction of the display interface is rotated by 90 degrees to the left or right, the display content 301 is not displayed in a full screen, and another content 302 exists on the display interface. As shown in fig. 5, by enlarging the page size of the display content 301, the page size of the display content 301 and the page size of the display interface can be made equal, that is, full-screen display is realized. In this process, the proportion of the page size of the display content may be adaptively changed so that the page size of the display content 301 is equal to the page size of the display interface.
In this embodiment, the display content can be displayed in a full screen manner, for example, a video or a picture can be displayed in the full screen manner by enlarging the page size of the display content, so that the use habit of the user is better met, great convenience is brought to the user, even if the user does not start the function of the automatic rotation display interface, the display interface can be automatically rotated, and the user can use the display interface conveniently.
Fig. 8 is a block diagram of an apparatus for displaying interface rotation, according to another exemplary embodiment. Referring to the figure, the apparatus further includes a third determining module 801 in addition to the acquiring module 601, the first determining module 602 and the adjusting module 603, and fig. 8 shows a case where the second determining module 701 is included.
The third determining module 801 of the present embodiment is configured to determine whether the display content is completely displayed, and if the display content is determined to be completely displayed, adjust the display interface to the original direction.
Specifically, as shown in fig. 5, if the display content is already displayed, the direction of the display interface shown in fig. 3A may be returned.
For example, if the display content is a video, the display of the display content is determined to be completed after the video is displayed, and if the display content is a picture, the display of the display content can be determined to be completed when the user clicks the picture. The setting can be specifically set according to actual needs, and details are not repeated herein.
According to the method for rotating the display interface, the display interface is automatically adjusted to the original direction after the display content is displayed, so that the user is prevented from manually adjusting the original direction of the display interface, inconvenience is brought to the user, and the display process is more in line with the use habit of the user.
FIG. 9 is a block diagram illustrating an apparatus 900 for display interface rotation, according to an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 909, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communications component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 909 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 906 provides power to the various components of device 900. The power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 909 includes a display interface that provides an output interface between the device 900 and the user. In some embodiments, the display interface may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display interface includes a touch panel, the display interface may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 909 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, an orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of displaying page rotations, the method comprising:
acquiring display content on a display interface;
judging whether the direction of the display interface needs to be adjusted or not according to the display content;
and if the judgment result is that the direction of the display interface needs to be adjusted, adjusting the direction of the display interface.
Fig. 10 is a block diagram illustrating an apparatus 1000 for displaying interface rotation, according to an example embodiment. For example, the apparatus 1000 may be provided as a server. Referring to fig. 10, the apparatus 1000 includes a processing component 1022 that further includes one or more processors and memory resources, represented by memory 1032, for storing instructions, such as application programs, that are executable by the processing component 1022. The application programs stored in memory 1032 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1022 is configured to execute instructions to perform the above-described method of displaying interface rotation, including:
acquiring display content on a display interface;
judging whether the direction of the display interface needs to be adjusted or not according to the display content;
and if the judgment result is that the direction of the display interface needs to be adjusted, adjusting the direction of the display interface.
The device 1000 may also include a power supply component 1026 configured to perform power management for the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input/output (I/O) interface 1058. The apparatus 1000 may operate based on an operating system stored in memory 1032, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The present disclosure also provides a mobile terminal including the device for displaying interface rotation of any of the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. A method of displaying interface rotation, comprising:
acquiring display content on a display interface, wherein the display content is any content occupying more than or equal to 50% of the area of the display interface, or the display content is content in the center of the display interface, and the display content is any one of characters, numbers, videos and pictures;
judging whether the direction of the display interface needs to be adjusted or not according to the type of the display content and the page size; if the judgment result is that the direction of the display interface needs to be adjusted, judging whether an adjustment instruction is received, wherein the adjustment instruction comprises any one of the following instructions: triggering a key of the mobile terminal, triggering when the pressure of a display screen of the mobile terminal reaches a first preset threshold value, triggering when the movement amplitude of the mobile terminal reaches a second preset threshold value, and triggering when the mobile terminal rotates clockwise or anticlockwise;
if the adjustment instruction is judged to be received, rotating the direction of the display interface by 90 degrees leftwards or rightwards, and expanding the page size of the display content so as to enable the page size of the display content to be equal to the page size of the display interface; judging whether the display content is displayed completely; if the display content is judged to be displayed completely, adjusting the display interface to the original direction;
the judging whether the direction of the display interface needs to be adjusted according to the type of the display content and the page size comprises the following steps:
and when the function of automatically rotating the display interface is not started, the type of the display content is a preset type of the display content capable of rotating, and the page size of the display content meets a preset rule, determining that the direction of the display interface needs to be adjusted.
2. The method for rotating the display interface according to claim 1, wherein determining that the page size of the display content meets a preset rule comprises:
acquiring a first ratio of the width to the length of the page size of the display content and a second ratio of the width to the length of the page size of the display interface;
and if one of the first ratio or the second ratio is larger than 1 and the other is smaller than 1, determining that the page size of the display interface meets the preset rule.
3. An apparatus for displaying interface rotation, comprising:
the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire display content on a display interface, the display content is any content occupying more than or equal to 50% of the area of the display interface, or the display content is content in the center of the display interface, and the display content is any one of characters, numbers, videos and pictures;
the first judgment module is configured to judge whether the direction of the display interface needs to be adjusted or not according to the type and/or the page size of the display content, and if the judgment result shows that the direction of the display interface needs to be adjusted, the second judgment module is triggered;
a second determining module, configured to determine whether an adjustment instruction is received, and if it is determined that the adjustment instruction is received, trigger the adjusting module, where the adjustment instruction includes any one of the following instructions: triggering a key of the mobile terminal, triggering when the pressure of a display screen of the mobile terminal reaches a first preset threshold value, triggering when the movement amplitude of the mobile terminal reaches a second preset threshold value, and triggering when the mobile terminal rotates clockwise or anticlockwise;
the adjusting module is configured to rotate the direction of the display interface by 90 degrees to the left or the right, and enlarge the page size of the display content so that the page size of the display content is equal to the page size of the display interface;
the third judging module is configured to judge whether the display content is displayed completely; if the display content is judged to be displayed completely, adjusting the display interface to the original direction;
the first determination module is configured to:
and when the function of automatically rotating the display interface is not started, the type of the display content is a preset type of the display content capable of rotating, and the page size of the display content meets a preset rule, determining that the direction of the display interface needs to be adjusted.
4. The apparatus for displaying interface rotation according to claim 3, wherein the first determining module is configured to:
acquiring a first ratio of the width to the length of the page size of the display content and a second ratio of the width to the length of the page size of the display interface;
and if one of the first ratio or the second ratio is larger than 1 and the other is smaller than 1, determining that the page size of the display interface meets the preset rule.
5. An apparatus for displaying interface rotation, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring display content on a display interface, wherein the display content is any content occupying more than or equal to 50% of the area of the display interface, or the display content is content in the center of the display interface, and the display content is any one of characters, numbers, videos and pictures;
judging whether the direction of the display interface needs to be adjusted or not according to the type of the display content and/or the page size;
if the judgment result is that the direction of the display interface needs to be adjusted, judging whether an adjustment instruction is received, wherein the adjustment instruction comprises any one of the following instructions: triggering a key of the mobile terminal, triggering when the pressure of a display screen of the mobile terminal reaches a first preset threshold value, triggering when the movement amplitude of the mobile terminal reaches a second preset threshold value, and triggering when the mobile terminal rotates clockwise or anticlockwise;
if the adjustment instruction is judged to be received, rotating the direction of the display interface by 90 degrees leftwards or rightwards, and expanding the page size of the display content so as to enable the page size of the display content to be equal to the page size of the display interface; judging whether the display content is displayed completely; if the display content is judged to be displayed completely, adjusting the display interface to the original direction;
the judging whether the display direction of the display interface needs to be adjusted according to the type of the display content and the page size comprises the following steps:
and when the function of automatically rotating the display interface is not started, the type of the display content is a preset type of the display content capable of rotating, and the page size of the display content meets a preset rule, determining that the direction of the display interface needs to be adjusted.
6. A mobile terminal, characterized in that it comprises means for rotating the display interface according to any one of claims 3-4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the display interface rotation method according to any one of claims 1-2.
CN201510542664.5A 2015-08-28 2015-08-28 Display interface rotating method and device and mobile terminal Active CN105159640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510542664.5A CN105159640B (en) 2015-08-28 2015-08-28 Display interface rotating method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510542664.5A CN105159640B (en) 2015-08-28 2015-08-28 Display interface rotating method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN105159640A CN105159640A (en) 2015-12-16
CN105159640B true CN105159640B (en) 2020-06-12

Family

ID=54800509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510542664.5A Active CN105159640B (en) 2015-08-28 2015-08-28 Display interface rotating method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105159640B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326281A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 A picture display method and device
JP6700775B2 (en) * 2015-12-22 2020-05-27 キヤノン株式会社 Electronic device and control method thereof
CN106980451A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 The method of adjustment and device of the display orientation of image
CN106020654B (en) * 2016-05-16 2019-09-17 微鲸科技有限公司 Intelligent mobile terminal interface display is in the display methods and display system of smart television
CN106454477A (en) * 2016-08-10 2017-02-22 北京金山安全软件有限公司 Live video processing method and device and terminal equipment
CN106161955B (en) * 2016-08-16 2020-02-07 天脉聚源(北京)传媒科技有限公司 Live broadcast shooting method and device
CN106527880B (en) * 2016-09-22 2019-12-06 福建天泉教育科技有限公司 iOS-based page rotation control method and system
CN106341551A (en) * 2016-10-23 2017-01-18 惠州Tcl移动通信有限公司 Method and system to display texts and video contents on mobile terminal and mobile terminal
CN106547456A (en) * 2016-10-27 2017-03-29 北京小米移动软件有限公司 Terminal unit screen rotation method and device
CN108228019A (en) * 2016-12-09 2018-06-29 比亚迪股份有限公司 Display methods, device, car-mounted terminal and the vehicle of car-mounted terminal
CN107291349B (en) * 2017-06-02 2020-01-21 百富计算机技术(深圳)有限公司 Display interface rotation method and device, storage medium and computer equipment
CN107273123B (en) * 2017-06-12 2019-06-07 维沃移动通信有限公司 The method and mobile terminal of application interface are shown under split screen display available state
CN107610624B (en) * 2017-08-23 2020-12-01 深圳易普森科技股份有限公司 Display link driving type automatic horizontal screen control method and system
CN110058682A (en) * 2019-03-15 2019-07-26 努比亚技术有限公司 Wearable device control method, wearable device and computer readable storage medium
CN110557503B (en) * 2019-08-14 2021-06-08 海信电子科技(武汉)有限公司 Screen display direction switching processing method and device and terminal equipment
WO2021136310A1 (en) * 2019-12-31 2021-07-08 Tcl科技集团股份有限公司 Frame display method, storage medium, and terminal apparatus
CN112181261B (en) * 2020-10-09 2022-08-02 珠海格力电器股份有限公司 Control method and device of mobile terminal
CN117009024A (en) * 2023-09-12 2023-11-07 荣耀终端有限公司 Display direction switching method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105999A (en) * 2013-01-17 2013-05-15 广东欧珀移动通信有限公司 Video window adjustment method and mobile intelligent terminal
CN103901901A (en) * 2014-03-21 2014-07-02 小米科技有限责任公司 Method and device for rotating screen of video terminal
CN104581405A (en) * 2013-10-21 2015-04-29 中国移动通信集团公司 Display content processing method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4696865B2 (en) * 2005-11-16 2011-06-08 ブラザー工業株式会社 Document processing device
JP5453717B2 (en) * 2008-01-10 2014-03-26 株式会社ニコン Information display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105999A (en) * 2013-01-17 2013-05-15 广东欧珀移动通信有限公司 Video window adjustment method and mobile intelligent terminal
CN104581405A (en) * 2013-10-21 2015-04-29 中国移动通信集团公司 Display content processing method and equipment
CN103901901A (en) * 2014-03-21 2014-07-02 小米科技有限责任公司 Method and device for rotating screen of video terminal

Also Published As

Publication number Publication date
CN105159640A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105159640B (en) Display interface rotating method and device and mobile terminal
CN107526494B (en) Keyboard display method, device, terminal and storage medium
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
EP3249509A1 (en) Method and device for playing live videos
EP3182716A1 (en) Method and device for video display
CN109557999B (en) Bright screen control method and device and storage medium
CN105282441B (en) Photographing method and device
EP3016048B1 (en) Method and device for displaying a reminder based on geographic criteria
CN104317402B (en) Description information display method and device and electronic equipment
CN105786507B (en) Display interface switching method and device
US20160210726A1 (en) Method and device for adjusting page display
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
CN106354504B (en) Message display method and device
CN105898573B (en) Multimedia file playing method and device
CN107885418B (en) Terminal, split screen display method and device
CN106775235B (en) Screen wallpaper display method and device
CN105389083B (en) Large font implementation method and device and intelligent terminal
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN108984098B (en) Information display control method and device based on social software
CN111614910B (en) File generation method and device, electronic equipment and storage medium
US20180091636A1 (en) Call processing method and device
CN116954540A (en) Application program display method and device and terminal
CN108650412B (en) Display method, display device and computer readable storage medium
CN108647074B (en) Method, device, hardware device and medium for displaying dynamic information in screen locking state
CN107832112B (en) Wallpaper setting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200426

Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085

Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Applicant after: Xiaomi Technology Co.,Ltd.

Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers

Applicant before: Xiaomi Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant