CN113190313A - Display control method and device, electronic equipment and storage medium - Google Patents

Display control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113190313A
CN113190313A CN202110473346.3A CN202110473346A CN113190313A CN 113190313 A CN113190313 A CN 113190313A CN 202110473346 A CN202110473346 A CN 202110473346A CN 113190313 A CN113190313 A CN 113190313A
Authority
CN
China
Prior art keywords
interface
posture
electronic device
display
switch
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.)
Pending
Application number
CN202110473346.3A
Other languages
Chinese (zh)
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
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110473346.3A priority Critical patent/CN113190313A/en
Publication of CN113190313A publication Critical patent/CN113190313A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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

Abstract

The disclosure relates to a display control method and apparatus, an electronic device, and a storage medium. The display control method is applied to an electronic device comprising a display screen, wherein the display screen is provided with an opening, and the method comprises the following steps: detecting a change in a posture of the electronic device; if the posture of the electronic equipment is changed from the first posture to the second posture, acquiring a second interface after the first interface displayed on the display screen is inverted; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen; displaying the second interface in the second posture. By the method, the use experience of the user can be improved.

Description

Display control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of display control technologies, and in particular, to a display control method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of electronic technology, terminal devices such as full-screen smart phones and tablet computers have become more and more popular. The full screen is a relatively wide definition of the ultra-high screen ratio design in the industry, and can be understood that the front of the electronic equipment is completely a screen, and four frame positions of the electronic equipment are designed in a frameless manner, so that the screen ratio close to 100% is pursued.
Use the cell-phone as an example, comprehensive screen cell-phone has promoted the color value of cell-phone at first, lets looking of cell-phone have more scientific and technological sense, and the positive area of same fuselage can hold bigger screen in addition, has showing promotion to visual experience
However, due to the limitation of technology, the industry claims that the full-screen terminal is only a terminal with an ultra-high screen ratio temporarily, and a real full screen is not realized temporarily. In the prior art, how to obtain higher screen ratio is still a difficult problem to be solved.
Disclosure of Invention
The disclosure provides a display control method and apparatus, an electronic device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a display control method applied to an electronic device including a display screen, the display screen having an opening, the method including:
detecting a change in a posture of the electronic device;
if the posture of the electronic equipment is changed from the first posture to the second posture, acquiring a second interface after the first interface displayed on the display screen is inverted; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
displaying the second interface in the second posture.
In some embodiments, when the first interface is displayed on a display screen of the electronic device, a status bar including status information of the electronic device is displayed on the display screen;
the method further comprises the following steps:
hiding the status bar when the second interface is displayed in the second pose.
In some embodiments, a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic equipment; the first display setting interface is an interface included in a first system supporting the operation of the electronic equipment;
hiding the status bar when the second interface is displayed in the second pose, including:
and if the first switch is in an on state, hiding the status bar when the second interface is displayed in the second posture.
In some embodiments, a second switch for turning on or off an interface inversion function is arranged on a first display setting interface of the electronic equipment;
the displaying the second interface in the second pose includes:
and if the second switch is in an on state, displaying the second interface under the second posture.
In some embodiments, a third switch for turning on or off an interface inversion function is arranged on a second display setting interface of the electronic equipment; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the displaying the second interface in the second pose includes:
and if the second switch and the third switch are both in an open state, displaying the second interface in the second posture.
In some embodiments, the electronic device has stored therein a white list of applications that support interface inversion functionality;
the displaying the second interface in the second pose includes:
and if the application to which the first interface belongs is the application in the white list, displaying the second interface in the second posture.
In some embodiments, the electronic device includes an angle sensor therein, and the detecting a change in the attitude of the electronic device includes:
detecting an inclination angle of the electronic device through the angle sensor;
the method further comprises the following steps:
and if the inclination angle meets the preset angle threshold, determining that the posture of the electronic equipment is changed from the first posture to the second posture.
According to a second aspect of the embodiments of the present disclosure, there is provided a display control apparatus for use in an electronic device including a display screen having an opening therein, the apparatus including:
a detection module configured to detect a change in a posture of the electronic device;
the acquisition module is configured to acquire a second interface after the first interface displayed on the display screen is inverted if the posture of the electronic equipment is changed from the first posture to the second posture; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
a display module configured to display the second interface in the second pose.
In some embodiments, when the first interface is displayed on a display screen of the electronic device, a status bar including status information of the electronic device is displayed on the display screen;
the device further comprises:
a hiding module configured to hide the status bar when the second interface is displayed in the second pose.
In some embodiments, a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic equipment; the first display setting interface is an interface included in a first system supporting the operation of the electronic equipment;
the hiding module is specifically configured to hide the status bar when the second interface is displayed in the second posture if the first switch is in an on state.
In some embodiments, a second switch for turning on or off an interface inversion function is arranged on a first display setting interface of the electronic equipment;
the display module is specifically configured to display the second interface in the second posture if the second switch is in an on state.
In some embodiments, a third switch for turning on or off an interface inversion function is arranged on a second display setting interface of the electronic equipment; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the display module is specifically configured to display the second interface in the second posture if the second switch and the third switch are both in an on state.
In some embodiments, the electronic device has stored therein a white list of applications that support interface inversion functionality;
the display module is specifically configured to display the second interface in the second posture if the application to which the first interface belongs is the application in the white list.
In some embodiments, an angle sensor is included in the electronic device,
the detection module is specifically configured to detect an inclination angle of the electronic device through the angle sensor;
the device further comprises:
the determining module is configured to determine that the posture of the electronic device changes from the first posture to the second posture if the inclination angle meets the preset angle threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the display control method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the display control method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, when it is detected that the posture of the electronic device is changed from the first posture to the second posture, that is, the direction of the opening is changed to meet the preset angle threshold condition, the first interface displayed on the display screen is displayed after being inverted and changed in a manner of being symmetrical about the center of the display screen. For example, when the electronic device is in the first posture, the opening is located in the upper left corner of the display screen, and when the mobile phone is in the second posture, the opening is located in the lower right corner of the display screen, and at the moment, the display content on the interface is displayed in an inverted manner after being symmetrical about the center of the display screen.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a display control method according to an embodiment of the present disclosure.
Fig. 2a and fig. 2b are schematic diagrams illustrating display changes before and after a mobile phone is turned upside down according to an embodiment of the disclosure.
Fig. 3 is an exemplary diagram of a first display setting interface in an embodiment of the disclosure.
Fig. 4 is a diagram illustrating an exemplary system architecture of a display control method according to an embodiment of the disclosure.
Fig. 5 is an exemplary diagram of a display control method according to an embodiment of the disclosure.
Fig. 6 is a diagram illustrating a display control apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of an electronic device shown in an embodiment of the disclosure.
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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a display control method according to an embodiment of the present disclosure, and as shown in fig. 1, the display control method applied to an electronic device includes the following steps:
s11, detecting the posture change of the electronic equipment;
s12, if the posture of the electronic equipment is changed from the first posture to the second posture, acquiring a second interface obtained after the first interface displayed on the display screen is inverted; an included angle between the hole opening direction in the first posture and the hole opening direction in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
and S13, displaying the second interface in the second posture.
In the embodiment of the disclosure, the electronic device is provided with a display screen which can display pictures. For example, the electronic device is a mobile phone, a tablet computer, or a wearable device.
The electronic device has an opening on a display screen, and a front camera or a speaker is arranged at the opening, for example, so that when the electronic device displays an image by using the display screen, the opening affects the picture display.
In step S11, the electronic device detects a change in the posture of the electronic device, and in step S12, when it is detected that the posture of the electronic device has changed from the first posture to the second posture, the electronic device acquires the inverted second interface from the first interface displayed on the display screen, and then in step S13, displays the second interface in the second posture.
It should be noted that, in the embodiment of the present disclosure, the preset angle threshold is empirically set, and the preset angle threshold may be an empirically set angle range that characterizes a possible inversion of the electronic device, for example, the preset angle threshold is an angle range greater than 160 degrees and less than or equal to 180 degrees. When the included angle between the direction of the hole of the electronic equipment in the first posture and the direction of the hole in the second posture is 160 to 180 degrees, it is determined that the electronic equipment is inverted, and at this time, a second interface after the first interface is inverted needs to be obtained. The first interface includes, for example, one page in an application program or a web page, or a display screen including any image in a picture library, or the like.
Since the electronic device is designed, the opening is usually located at the upper left corner, the upper right corner or the middle of the display screen in consideration of the use habit of the user. For example, the opening is located at the upper left corner, when a user uses a front camera of the mobile phone to take a picture, the user can preview a face and take a picture by lifting the mobile phone with a small amplitude; and if the opening is positioned at the lower left corner of the display screen, the user needs to lift the mobile phone to a higher degree to preview the face and take a picture, so that the user experience is not good.
However, when the electronic device performs interface display in the non-photographing state, the display content above the display screen is usually focused preferentially based on the reading habit of the user from top to bottom. Therefore, when the electronic device utilizes the display screen to display an interface, a user can easily pay attention to the opening, and user experience is poor.
In this regard, the present disclosure displays the first interface displayed on the display screen after the first interface is inverted and changed in the central symmetry of the display screen when it is detected that the posture of the electronic device is changed from the first posture to the second posture, that is, the direction of the opening is changed to meet the preset angle threshold condition. For example, when the electronic device is in the first posture, the opening is located in the upper left corner of the display screen, and when the mobile phone is in the second posture, the opening is located in the lower right corner of the display screen, and at the moment, the display content on the interface is displayed in an inverted manner after being symmetrical about the center of the display screen. When the display content is displayed in the central symmetry of the display screen, for example, for an image, the image can be displayed after being rotated by 180 degrees; for example, for a web page or a page in an application program, after new coordinate values are obtained by symmetrically transforming the coordinate values corresponding to each content on the page with the center of the display screen, the corresponding content is displayed according to the new coordinate values.
It should be noted that, in the embodiment of the present disclosure, the display mode of the electronic device includes a horizontal screen display mode and a vertical screen display mode, and when the electronic device displays the first interface on the display screen, the display mode may be horizontal screen display or vertical screen display. When the posture of the electronic equipment changes to meet the preset angle threshold condition, the original first interface displayed in the transverse screen or the vertical screen in the first posture can still keep the original display mode to display the inverted second picture in the second posture.
Fig. 2a and fig. 2b are schematic diagrams illustrating display changes before and after a mobile phone is turned upside down according to an embodiment of the present disclosure, as shown in fig. 2a, a front camera in the mobile phone is located at an upper left corner of a display screen, and display content on the display screen is displayed in a forward direction. As shown in fig. 2b, after the mobile phone is turned upside down, the front camera is located at the lower right corner of the display screen, and the display content on the display screen is still displayed in the forward direction, so that the reading experience of the user is not influenced, but the influence of the front camera on the display screen on the user is reduced.
In the scheme for realizing the full-screen, one scheme is that a hole is not formed in a display screen, but the full-screen is realized through an ejection type front-mounted camera, but gaps exist in an ejection area, dust and water are easily accumulated, the air tightness is poor, the failure rate is high, the service life of mechanical ejection is short, and in addition, the whole body of the machine body is easily thickened and becomes heavy through the ejection type front-mounted camera. Still another scheme is through the folding screen enlarge the screen thereby promote user experience, but this kind of scheme has with high costs, and folding screen performance may be unstable, and the crease influences visual effect and life's problem.
Therefore, the method and the device have the advantages that the better full-screen experience is realized from the software perspective, the display direction of the display content on the display interface is synchronously changed by detecting the posture change of the electronic equipment, and the method and the device are not limited to the display mode of the display screen and are not limited to a specific display interface. And after a certain interface of the same application is inverted and displayed based on the posture change of the electronic equipment for the first time, the subsequent interface of the application can be inverted and displayed without displaying the original first interface again, but is inverted synchronously based on the inversion of the previous interface. It can be understood that the scheme disclosed by the invention can realize smoother interface switching and improve the user experience.
In one embodiment, a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic equipment; the first display setting interface is an interface included by the electronic equipment based on a first system supporting the electronic equipment to operate;
hiding the status bar when the second interface is displayed in the second pose, including:
and if the first switch is in an on state, hiding the status bar when the second interface is displayed in the second posture.
The status bar may include a current time, a status of a battery, a networking status of the electronic device, and the like. In the embodiment of the disclosure, the status bar may be an independent page, not belong to a page included in the second interface, or not belong to a part of a picture displayed on the second interface and stored locally in the electronic device, so that when the status bar is hidden, the electronic device may set the page corresponding to the status bar to be in a non-display state, thereby hiding the status bar.
In an embodiment of the disclosure, a first switch for turning on or off a status bar hiding function may be disposed on a first display setting interface of an electronic device, where the first display setting interface is an interface included in a first system supporting operation of the electronic device. Taking the android system as an example, the first display setting interface is an interface set by the electronic device based on the native android system.
In an embodiment of the disclosure, when the user sets the first switch to the on state, the status bar may be hidden when the second interface is displayed in the second posture.
It can be understood that the status bar hiding function is turned on or off by setting the switch, and the intelligent status bar hiding function is achieved.
In one embodiment, a second switch for turning on or off an interface inversion function is arranged on a first display setting interface of the electronic equipment;
the displaying the second interface in the second pose includes:
and if the second switch is in an on state, displaying the second interface under the second posture.
In the embodiment of the disclosure, a second switch for turning on or off the interface inversion function is arranged on the first display setting interface, and if the second switch is in an on state, the electronic device may obtain the inverted second interface and display the second interface in the second posture.
It should be noted that, in the embodiment of the present disclosure, if the second switch is in the off state, the electronic device displays the first interface in the second posture. In this case, when the electronic device detects that the second switch is in the off state, the electronic device may not acquire the inverted second interface, and thus directly display the first interface in the second posture; the electronic device may also acquire the inverted second interface, but display the first interface in the second pose. The disclosed embodiments are not limited in this respect.
Fig. 3 is an exemplary diagram of a first display setting interface in an embodiment of the present disclosure, and as shown in fig. 3, the display setting interface includes a control a and a control B, where the control a is a first switch for turning on or off a hidden function of a status bar, and the control a is in a state where the hidden function of the status bar is not turned on; the control B is a second switch for turning on or off the interface inversion function, and the control B is in a state of turning on the interface inversion function.
In one embodiment, a third switch for turning on or off an interface inversion function is arranged on a second display setting interface of the electronic equipment; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the displaying the second interface in the second pose includes:
and if the second switch and the third switch are both in an open state, displaying the second interface in the second posture.
In the embodiment of the disclosure, a third switch for turning on or off the interface inversion function may be arranged on a second display setting interface of the electronic device, the second display setting interface is an interface included in a second system supporting the operation of the electronic device, and the second system may be a system completely different from the first system or a system obtained by optimizing the first system. For example, if the first system is an android system, the second system may be an "MIUI" system in which an android system is optimized by a device vendor to which the electronic device belongs.
In this embodiment, when the second switch and the third switch are both in the on state, the electronic device displays the second interface in the second posture.
It should be noted that, when any one of the second switch and the third switch is in the off state, the electronic device still displays the first interface in the second posture. In the embodiment of the disclosure, when the third switch is in the off state, the electronic device may not acquire the inverted second interface, so as to directly display the first interface in the second posture; the electronic device may also acquire the inverted second interface, but display the first interface in the second pose.
It can be understood that the interface inversion function is turned on or off by setting the switch, the intelligent touch screen has intelligence, and the user experience can be improved.
In one embodiment, the electronic device stores a white list of applications supporting an interface inversion function;
the displaying the second interface in the second pose includes:
and if the application to which the first interface belongs is the application in the white list, displaying the second interface in the second posture.
In an embodiment of the present disclosure, a white list is stored in the electronic device, and an application identifier of an application that supports an interface inversion function is recorded in the white list. When the electronic device determines that the application identifier of the application to which the first interface belongs is the application identifier in the white list, the electronic device determines that the application to which the first interface belongs is the application in the white list, and displays the second interface in the second posture.
It should be noted that, in the embodiment of the present disclosure, if the application to which the first interface belongs is not an application in the white list, the first interface is still displayed in the second posture.
It can be understood that the inversion of the display interface supported by the specified application by setting the white list has intelligence.
In one embodiment, the electronic device includes an angle sensor therein, and the detecting the change in the posture of the electronic device includes:
detecting an inclination angle of the electronic device through the angle sensor;
the method further comprises the following steps:
and if the inclination angle meets the preset angle threshold, determining that the posture of the electronic equipment is changed from the first posture to the second posture.
In this embodiment, an angle sensor, such as a three-axis gyroscope, is included in the electronic device. The electronic equipment can determine the inclination angle of the electronic equipment after the three-axis gyroscope obtains the angular velocity data. And when the inclination angle meets a preset angle threshold, determining that the posture of the electronic equipment is changed from the first posture to the second posture.
Fig. 4 is an exemplary diagram of a system architecture of a display control method according to an embodiment of the present disclosure, which is implemented based on operations of a system bottom layer. Taking an Android (Android) system as an example, as shown in fig. 4, the Android system architecture can be divided into four layers, including: the system comprises a kernel layer, a system operation library layer, an application framework layer and an application layer. The application layer is a user-oriented application, the application layer can receive the operation of a user based on an inverted switch (a second switch/a third switch) and a full-screen switch (a first switch), a monitor of the framework layer starts to work, the position state of the mobile phone is monitored through monitoring components (such as a SensorManager, a SensorService or a SensorDevice), the position state is reported to the kernel layer, when the kernel layer determines that the position state meets the inverted condition, information meeting the inverted condition is reported to the display driving module, then the screen inversion of the application layer is realized through the processing of modules of a display manager, a framework layer window manager and the like of the system operation library layer, and the user can see the inverted second interface based on the application layer.
Fig. 5 is an exemplary diagram of a display control method in an embodiment of the disclosure, and as shown in fig. 5, the display control method includes the following steps:
and S21, detecting the opening operation of the screen inversion control switch.
In this embodiment, the screen inversion control switch is the second switch of the embodiment of the present disclosure, and the second switch is, for example, a control B shown in fig. 5. S22, detecting the operation of turning off the direction lock switch.
In this embodiment, the function of the direction locking switch, that is, the function of the third switch of the present disclosure, is the same as the function of the third switch of the embodiment of the present disclosure, which is turned on.
S23, detecting whether the position change of the electronic equipment meets the inversion condition; if not, go to step S24; if yes, go to step S25.
In this embodiment, it is detected whether the change in position satisfies the flip condition, that is, the change in posture of the electronic device is detected, and it is determined whether the posture of the electronic device is changed from the first posture to the second posture.
And S24, keeping the display interface on the screen unchanged.
In this embodiment, if the electronic device is not flipped, the display interface is maintained, i.e., the first interface is still displayed in the second posture.
S25, displaying whether the application to which the interface belongs is the application in the application white list; if not, go to step S26; if yes, go to step S27.
In this embodiment, it is determined whether the application to which the first interface belongs is an application in the application white list.
And S26, turning the screen upside down.
In this embodiment, if the application to which the first interface belongs is not an application in the white list, the screen inversion is not started, that is, the first interface is still displayed in the second posture.
And S27, intelligently inverting the screen.
In this embodiment, if the application to which the first interface belongs is an application in a white list, the screen is intelligently inverted, that is, a second interface after the first interface is inverted is obtained in the second posture.
S28, detecting whether the true full screen switch is turned on; if not, returning to the step S27; if yes, go to step S29.
In this embodiment, the true full screen switch is the first switch of the embodiment of the present disclosure, and the first switch is, for example, the control a shown in fig. 5.
And S29, displaying on a full screen.
In this embodiment, if the full screen display switch is turned on, the status bar is hidden when the second interface is displayed, thereby realizing full screen display.
According to the technical scheme, the influence of the opening on the display screen on the user can be reduced while the user reading interface content is not influenced, and the full-screen experience of the user is improved.
Fig. 6 is a diagram illustrating a display control apparatus according to an exemplary embodiment. Referring to fig. 6, the apparatus is applied to an electronic device including a display screen having an opening therein, and includes:
a detection module 101 configured to detect a change in the attitude of the electronic device;
the obtaining module 102 is configured to obtain a second interface after inverting the first interface displayed on the display screen if the posture of the electronic device changes from the first posture to the second posture; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
a display module 103 configured to display the second interface in the second posture.
In some embodiments, when the first interface is displayed on a display screen of the electronic device, a status bar including status information of the electronic device is displayed on the display screen;
the device further comprises:
a hiding module 104 configured to hide the status bar when the second interface is displayed in the second pose.
In some embodiments, a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic equipment; the first display setting interface is an interface included in a first system supporting the operation of the electronic equipment;
the hiding module 104 is specifically configured to hide the status bar when the second interface is displayed in the second posture if the first switch is in an on state.
In some embodiments, a second switch for turning on or off an interface inversion function is arranged on a first display setting interface of the electronic equipment;
the display module 103 is specifically configured to display the second interface in the second posture if the second switch is in an on state.
In some embodiments, a third switch for turning on or off an interface inversion function is arranged on a second display setting interface of the electronic equipment; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the display module 103 is specifically configured to display the second interface in the second posture if the second switch and the third switch are both in an on state.
In some embodiments, the electronic device has stored therein a white list of applications that support interface inversion functionality;
the display module 103 is specifically configured to display the second interface in the second posture if the application to which the first interface belongs is the application in the white list.
In some embodiments, an angle sensor is included in the electronic device,
the detection module 101 is specifically configured to detect an inclination angle of the electronic device through the angle sensor;
the device further comprises:
the determining module 105 is configured to determine that the posture of the electronic device changes from the first posture to the second posture if the tilt angle satisfies the preset angle threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram of an electronic device 800 shown in an embodiment of the disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, or the like.
Referring to fig. 7, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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 components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal 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 808 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 800 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational 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 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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 assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 800 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 804 comprising instructions, executable by the processor 820 of the device 800 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 stored thereon that, when executed by a processor of an electronic device, enable the electronic device to perform a display control method, the electronic device including a display screen having an opening therein, the method comprising:
detecting a change in a posture of the electronic device;
if the posture of the electronic equipment is changed from the first posture to the second posture, acquiring a second interface after the first interface displayed on the display screen is inverted; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
displaying the second interface in the second posture.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (16)

1. A display control method, applied to an electronic device including a display screen having an opening, includes:
detecting a change in a posture of the electronic device;
if the posture of the electronic equipment is changed from the first posture to the second posture, acquiring a second interface after the first interface displayed on the display screen is inverted; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
displaying the second interface in the second posture.
2. The method of claim 1, wherein when the first interface is displayed on a display screen of the electronic device, a status bar including status information of the electronic device is displayed on the display screen;
the method further comprises the following steps:
hiding the status bar when the second interface is displayed in the second pose.
3. The method according to claim 2, characterized in that a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic device; the first display setting interface is an interface included in a first system supporting the operation of the electronic equipment;
hiding the status bar when the second interface is displayed in the second pose, including:
and if the first switch is in an on state, hiding the status bar when the second interface is displayed in the second posture.
4. The method according to claim 1, characterized in that a second switch for turning on or off an interface inversion function is arranged on a first display setting interface of the electronic device;
the displaying the second interface in the second pose includes:
and if the second switch is in an on state, displaying the second interface under the second posture.
5. The method according to claim 4, characterized in that a third switch for turning on or off an interface inversion function is arranged on a second display setting interface of the electronic device; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the displaying the second interface in the second pose includes:
and if the second switch and the third switch are both in an open state, displaying the second interface in the second posture.
6. The method of claim 1, wherein the electronic device has a white list of applications that support interface inversion functionality stored therein;
the displaying the second interface in the second pose includes:
and if the application to which the first interface belongs is the application in the white list, displaying the second interface in the second posture.
7. The method of claim 1, wherein the electronic device includes an angle sensor therein, and wherein detecting the change in the attitude of the electronic device comprises:
detecting an inclination angle of the electronic device through the angle sensor;
the method further comprises the following steps:
and if the inclination angle meets the preset angle threshold, determining that the posture of the electronic equipment is changed from the first posture to the second posture.
8. A display control apparatus for use in an electronic device including a display screen having an opening formed therein, the apparatus comprising:
a detection module configured to detect a change in a posture of the electronic device;
the acquisition module is configured to acquire a second interface after the first interface displayed on the display screen is inverted if the posture of the electronic equipment is changed from the first posture to the second posture; an included angle between the direction of the hole in the first posture and the direction of the hole in the second posture meets a preset angle threshold value, and contents in the first interface and the second interface are symmetrical about the center of the display screen;
a display module configured to display the second interface in the second pose.
9. The apparatus of claim 8, wherein when the first interface is displayed on a display screen of the electronic device, a status bar including status information of the electronic device is displayed on the display screen;
the device further comprises:
a hiding module configured to hide the status bar when the second interface is displayed in the second pose.
10. The apparatus according to claim 9, wherein a first switch for turning on or off a status bar hiding function is arranged on a first display setting interface of the electronic device; the first display setting interface is an interface included in a first system supporting the operation of the electronic equipment;
the hiding module is specifically configured to hide the status bar when the second interface is displayed in the second posture if the first switch is in an on state.
11. The apparatus according to claim 8, wherein a second switch for turning on or off an interface inversion function is arranged on the first display setting interface of the electronic device;
the display module is specifically configured to display the second interface in the second posture if the second switch is in an on state.
12. The apparatus according to claim 11, wherein a third switch for turning on or off an interface inversion function is arranged on the second display setting interface of the electronic device; the second display setting interface is an interface included in a second system supporting the operation of the electronic equipment;
the display module is specifically configured to display the second interface in the second posture if the second switch and the third switch are both in an on state.
13. The apparatus of claim 8, wherein the electronic device has a white list of applications that support interface inversion functionality stored therein;
the display module is specifically configured to display the second interface in the second posture if the application to which the first interface belongs is the application in the white list.
14. The apparatus of claim 8, wherein the electronic device includes an angle sensor therein,
the detection module is specifically configured to detect an inclination angle of the electronic device through the angle sensor;
the device further comprises:
the determining module is configured to determine that the posture of the electronic device changes from the first posture to the second posture if the inclination angle meets the preset angle threshold.
15. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the display control method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the display control method of any one of claims 1 to 7.
CN202110473346.3A 2021-04-29 2021-04-29 Display control method and device, electronic equipment and storage medium Pending CN113190313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110473346.3A CN113190313A (en) 2021-04-29 2021-04-29 Display control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110473346.3A CN113190313A (en) 2021-04-29 2021-04-29 Display control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113190313A true CN113190313A (en) 2021-07-30

Family

ID=76980927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110473346.3A Pending CN113190313A (en) 2021-04-29 2021-04-29 Display control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113190313A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656577A (en) * 2017-09-28 2018-02-02 奇酷互联网络科技(深圳)有限公司 A kind of screen open-celled structure, screen boring method and electronic equipment
WO2019154325A1 (en) * 2018-02-09 2019-08-15 维沃移动通信有限公司 Mobile terminal and control method therefor
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device
WO2021052016A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Body posture detection method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656577A (en) * 2017-09-28 2018-02-02 奇酷互联网络科技(深圳)有限公司 A kind of screen open-celled structure, screen boring method and electronic equipment
WO2019154325A1 (en) * 2018-02-09 2019-08-15 维沃移动通信有限公司 Mobile terminal and control method therefor
WO2021052016A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Body posture detection method and electronic device
CN111885265A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen interface adjusting method and related device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苟锐;葛虹言;: "基于用户行为的产品界面姿态选择与设计研究", 包装工程, no. 10 *

Similar Documents

Publication Publication Date Title
CN107526494B (en) Keyboard display method, device, terminal and storage medium
US20220214802A1 (en) Screenshot Method and Electronic Device
US9928811B2 (en) Methods, devices, and computer-readable storage medium for image display
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
US20220197584A1 (en) Foldable screen display method and electronic device
CN111314768A (en) Screen projection method, screen projection device, electronic equipment and computer readable storage medium
US11372516B2 (en) Method, device, and storage medium for controlling display of floating window
CN110262692B (en) Touch screen scanning method, device and medium
CN112383808A (en) Video playing method, device, terminal and storage medium
CN106713656B (en) Shooting method and mobile terminal
CN110956924B (en) Screen brightness adjusting method and device, electronic equipment and readable storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN112799522A (en) Mobile terminal control method and device, mobile terminal and storage medium
CN109255839B (en) Scene adjustment method and device
CN112423092A (en) Video recording method and video recording device
US20230353862A1 (en) Image capture method, graphic user interface, and electronic device
CN113190313A (en) Display control method and device, electronic equipment and storage medium
CN109389547B (en) Image display method and device
CN113360255A (en) Application management method and device
WO2023245334A1 (en) Screen brightness adjustment method and apparatus, and device and storage medium
US11789750B2 (en) Data processing method, apparatus, and medium
WO2023245311A1 (en) Window adjustment method, apparatus, terminal, and storage medium
WO2023240451A1 (en) Screen control method and apparatus, electronic device and storage medium
WO2023245310A1 (en) Window adjustment method and apparatus, and terminal and storage medium
CN113744675B (en) Display effect adjusting method and device of display screen, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination