Disclosure of Invention
An object of embodiments of the present invention is to provide a display method, an electronic device, and a computer-readable storage medium, so that a display effect is improved.
In order to solve the above technical problem, an embodiment of the present invention provides a display method applied to an electronic device having a foldable screen, including: when the folding screen is bent, dividing the folding screen into a first display area, a second display area and a bent display area, wherein the first display area and the second display area are respectively positioned at two sides of the bent display area; and respectively controlling the first display area, the second display area and the bending display area to independently display.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a display method as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the display method as described above.
Compared with the prior art, when the folding screen is bent, the folding screen is divided into the first display area, the second display area and the bending display area, and the first display area, the second display area and the bending display area are controlled to be independently displayed. Because the display area of buckling is independent demonstration, can control its demonstration content that is more fit for the demonstration, avoid because the folding screen buckles and the regional demonstration deformation of buckling that leads to, effectual promotion display effect.
In addition, before dividing the folding screen into a first display area, a second display area and a bending display area, the method further comprises the following steps: obtaining the bending angle of the folding screen; judging whether the bending angle is within a preset angle interval or not; the method comprises the following steps of dividing the folding screen into a first display area, a second display area and a bending display area, and specifically comprises the following steps: and when the bending angle is within the preset angle interval, dividing the folding screen into a first display area, a second display area and a bending display area. According to the angle of buckling of folding screen, confirm the user state of buckling the screen, when the angle of buckling belongs to and predetermines the angle interval, just will divide into three independent display area, can reduce the interference that user's maloperation brought.
In addition, divide into first display area, second display area and the display area of buckling with the folding screen, specifically include: acquiring a current bending area of the folding screen; and taking the current bending area as the bending display area, taking an area on one side of the bending display area in the folding screen as the first display area, and taking an area on the other side of the bending display area as the second display area. When the folding screen is a multi-folding screen, the display area of the folding screen can be specifically divided according to the current bending area.
In addition, before separately controlling the first display area, the second display area, and the bending display area to perform independent display, the method further includes: acquiring an application program which needs to be displayed currently by the electronic equipment; selecting a display mode corresponding to the application program from a preset corresponding relation; the step of respectively controlling the first display area, the second display area and the bending display area to independently display specifically comprises the following steps: and controlling the first display area, the second display area and the bent display area to display different contents according to the display mode. According to the application program which needs to be displayed currently by the electronic equipment, different contents which need to be displayed in three different display areas are controlled, the application program which needs to be displayed currently can be better displayed, and therefore user experience is effectively improved.
In addition, the controlling the first display area, the second display area and the bending display area to display different contents according to the display mode specifically includes: and when the display mode is a video display mode, controlling the first display area to display a video, controlling the second display area to be closed, and controlling the bent display area to display a progress bar of the video. During the video display mode, the progress bar of the video is displayed in the bending display area, so that the progress bar can be prevented from interfering the normal display of the video, the interference to a user is reduced, and the use experience of the user is further improved. In addition, the second display area is closed, so that the energy consumption can be effectively reduced.
In addition, the controlling the first display area, the second display area and the bending display area to display different contents according to the display mode specifically includes: and when the display mode is a game display mode, controlling the first display area to display a game interface, controlling the second display area to display a virtual keyboard, and controlling the bent display area to display a reminding message. In addition, when the game display mode is adopted, the bent display area is used for displaying the reminding message, so that the reminding message can be prevented from interfering the normal display of the game display interface, the interference to the game of the user is reduced, and the use experience of the user is further improved.
In addition, the controlling the first display area, the second display area and the bending display area to display different contents according to the display mode specifically includes: and when the display mode is a document display mode, controlling the first display area to display the document, controlling the second display area to display the virtual keyboard, and controlling the bending display area to display the function keys related to the document. In addition, during the video display mode, the progress bar for displaying the video in the bent display area is used, so that the progress bar can be prevented from interfering the normal display of the video, the interference to the user is reduced, and the use experience of the user is further improved. In addition, the second display area is closed, so that the energy consumption can be effectively reduced.
In addition, after controlling the second display area to display the virtual keyboard, the method further includes: if the second display area does not receive touch operation within a preset time length, controlling the second display area to be closed; and when the second display area is in a closed state, if the second display area receives the touch operation, controlling the second display area to display the virtual keyboard. If the second display area does not receive the touch operation within the preset time length, the second display area is controlled to be closed, so that the power consumption of the second display area is reduced, and the energy is effectively saved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a display method, which is applied to an electronic device with a foldable screen, and the specific flow is shown in fig. 1, including the following steps:
step S101: when the folding screen is bent, the folding screen is divided into a first display area, a second display area and a bent display area.
Specifically, in the present embodiment, the first display region and the second display region are located on both sides of the bent display region.
Further, in this embodiment, the electronic device detects the display state of the folding screen in real time, and when it is monitored that the folding screen is bent, obtains a current bending area of the folding screen; and taking the current bending area as a bending display area, taking the area on one side of the bending display area in the folding screen as a first display area, and taking the area on the other side of the bending display area as a second display area. The area that will take place to buckle at present is as the display area that buckles, when the folding screen was multizone folding screen, can carry out nimble division to the display area of folding screen according to the area that takes place to buckle at present.
Step S102: and respectively controlling the first display area, the second display area and the bending display area to independently display.
Specifically, in this embodiment, the electronic device may run different applications in different display areas, and display application pages of the applications running in the respective display areas. For example, the electronic device may display a video page for playing a video in the first display area, display a chat page of the running social application in the second display area, and display a progress bar for playing the video in the bent display area, so that a user may view a message and the like received in the social application through the second display area while viewing the video through the first display area, and may obtain the progress bar for playing the video from the bent display area. The first display area and the second display area form a certain angle, so that when the second display area is horizontal, the first display area stands up, the user can watch videos conveniently, the chat page is displayed through the second display area, and the user can reply information conveniently.
It should be noted that, when different applications are run in different display areas, the electronic device may receive and respond to only the operation instructions for the applications in the display area. For example, when a video page is displayed in the first display area, the electronic device may receive and respond to an operation instruction of a user for operating a video application in the display area, for example, when the user performs brightness adjustment in the display area, the electronic device may only adjust the brightness of the display screen in the area, and regarding a picture displayed in the second display area, the brightness of the picture in the second display area is not changed no matter whether the picture which is the same as the first display is currently displayed in the second display area or not. That is, the operation applied to the first display region is effective only for the first display region.
Compared with the prior art, in the display method provided by the first embodiment of the present invention, when the foldable screen is bent, the foldable screen is divided into the first display area, the second display area and the bent display area, and the first display area, the second display area and the bent display area are respectively controlled to perform independent display. Because the display area of buckling is independent demonstration, can control its demonstration content that is more fit for the demonstration, avoid because the folding screen buckles and the regional demonstration deformation of buckling that leads to, effectual promotion display effect.
A second embodiment of the present invention relates to a display method. The second embodiment is substantially the same as the first embodiment, and includes the following steps as shown in fig. 2:
step S201: when the folding screen is bent, the bending angle of the folding screen is obtained.
Specifically, in this step, when the folding screen is folded, the position of the fold on the folding screen is fixed, so that an angle sensor may be disposed at the position of the fold, and the bending angle of the folding screen may be detected by the angle sensor. The bending angle refers to an included angle between the display areas on two sides of the folding line, namely the bending axis. The bending angle can be an acute angle or an obtuse angle, when the display screen is in an unfolded state, namely in an unfolded state, the display areas on two sides of the bending axis are on the same horizontal plane, and at the moment, the bending angle between the display areas and the bending axis is 180 degrees. When the display screen is in a fully folded state, that is, the display areas on both sides of the bending axis are attached together, the bending angle of the display screen is 0 degree.
Step S202: and judging whether the bending angle is within a preset angle interval, if so, executing step S203, and if not, executing step S201.
Step S203: the folding screen is divided into a first display area, a second display area and a bending display area.
Step S204: and respectively controlling the first display area, the second display area and the bending display area to independently display.
Step S203 and step S204 in this embodiment are substantially the same as step S101 and step S102 in the first embodiment, and specific descriptions in the first embodiment may be specifically provided, and are not repeated here.
Compared with the prior art, the display method provided by the second embodiment of the invention maintains all technical effects of the first embodiment, determines the use state of the folding screen according to the bending angle of the folding screen, and divides the folding screen into three independent display areas when the bending angle belongs to the preset angle interval, so that the interference caused by misoperation of a user can be reduced.
A third embodiment of the present invention relates to a display method. The third embodiment is substantially the same as the first embodiment, and includes the following steps as shown in fig. 3:
step S301: when the folding screen is bent, the folding screen is divided into a first display area, a second display area and a bent display area.
Step S301 in the present embodiment is substantially the same as step S101 in the first embodiment, and specific description thereof may be provided according to the specific description in the first embodiment, and details thereof are not repeated here.
Step S302: and acquiring the application program which needs to be displayed currently by the electronic equipment, and selecting the display mode corresponding to the application program from the preset corresponding relation.
Specifically, in this embodiment, each application program is set in advance to correspond to a display mode, a mapping from the application program to the display mode is formed, and when an application program that needs to be displayed currently is acquired, the corresponding display mode can be acquired from the mapping relationship.
Step S303: and controlling the first display area, the second display area and the bent display area to display different contents according to the display mode.
Specifically, in this step, when the display mode is a video display mode, the first display area is controlled to display a video, the second display area is controlled to be closed, and the progress bar for displaying the video in the bent display area is controlled. During the video display mode, the progress bar of the video is displayed in the bending display area, so that the progress bar can be prevented from interfering the normal display of the video, the interference to a user is reduced, and the use experience of the user is further improved. In addition, the second display area is closed, so that the energy consumption can be effectively reduced.
Further, when the display mode is a game display mode, the first display area is controlled to display a game interface, the second display area is controlled to display a virtual keyboard, and the bent display area is controlled to display a reminding message. When the game display mode is adopted, the bent display area is used for displaying the reminding message, so that the reminding message can be prevented from interfering the normal display of the game display interface, the interference to the game of the user is reduced, and the use experience of the user is further improved.
In addition, when the display mode is a document display mode, the first display area is controlled to display a document, the second display area is controlled to display a virtual keyboard, and the bending display area is controlled to display function keys related to the document. During the video display mode, the progress bar of the video is displayed in the bending display area, so that the progress bar can be prevented from interfering the normal display of the video, the interference to a user is reduced, and the use experience of the user is further improved. In addition, the second display area is closed, so that the energy consumption can be effectively reduced.
Preferably, when the virtual keyboard is displayed in the second display area, if the second display area does not receive the touch operation within a preset time period, the second display area is controlled to be closed; and when the second display area is in a closed state, if the second display area receives the touch operation, controlling the second display area to display the virtual keyboard. The second display area does not receive touch operation within the preset time length, and the second display area is controlled to be closed, so that the power consumption of the second display area is reduced, and energy is effectively saved.
Compared with the prior art, the display method provided by the third embodiment of the invention can better display the application program which needs to be displayed currently by controlling the different contents which need to be displayed in the three different display areas according to the application program which needs to be displayed currently while keeping all the technical effects of the first embodiment, thereby effectively improving the user experience.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to an electronic apparatus, as shown in fig. 4, including: at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the display method as described above.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.