Wallpaper full-screen display method, folding screen equipment and storage medium
By switching between the folded state and the expanded state of the folded screen device, the full screen displays through the wallpaper and lock screen interface, solving the problem of how to make full use of the home screen and the back screen, and achieving the effect of improving user experience and back screen utilization.
Patent Information
- Application Number
- CN202311224994.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-19
- Publication Date
- 2025-03-28
AI Technical Summary
When existing folding screen devices switch between different states, how to make full use of the home screen and the back screen has become an urgent problem.
When the folding screen device is in a folded state, the full screen is powered on, and the through-wall wallpaper is displayed on the home screen and the back screen is displayed, and the lock screen interface is displayed on the home screen. When the device switches from folded to expanded, the through-wallpaper and other layers are displayed on the home and back screens.
It realizes the use of the home screen and the back screen to display together, creating a cool wallpaper mode, which improves the user experience and improves the utilization rate of the back screen.
Smart Images

Figure CN119728842A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a wallpaper full-screen display method, a folding screen device and a storage medium. Background Art
[0002] At present, people's demand for foldable screen devices that combine portability and large screen sizes is becoming increasingly strong.
[0003] Take the foldable phone as an example. When the foldable phone is in the folded state, the main screen faces the user and the back screen faces away from the user. The foldable phone is similar to a straight-screen phone. In this case, the user only uses the main screen and does not pay attention to the back screen, which makes the back screen idle. When the foldable phone is in the unfolded state, both the main screen and the back screen face the user, and the foldable phone is similar to a large-screen device. When the foldable phone switches between different states, how to make full use of the main screen and the back screen becomes an urgent problem to be solved. Summary of the invention
[0004] The present application provides a wallpaper full-screen display method, a folding screen device, and a storage medium. When the folding screen device is in the folded state and the lock screen is on, the through wallpaper is displayed in full screen on the main screen and the back screen, and other layers are displayed on the main screen; when the folding screen device switches from the folded state to the unfolded state, the through wallpaper and other layers are displayed in full screen on the main screen and the back screen. In this way, the main screen and the back screen are used for collaborative display to create a cool wallpaper mode, which improves the user experience.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In the first aspect, an embodiment of the present application provides a wallpaper full-screen display method. The method is applied to a foldable screen device. Taking an external folding screen device as an example, the external folding screen device is provided with a display screen, and the display screen may include a main screen area and a back screen area. The method may include: receiving a first operation of the user when the angle between the main screen area and the back screen area is a first folding angle and the display screen is off. In response to the first operation, the main screen area and the back screen area are lit, the first wallpaper is displayed in the main screen area and the back screen area, and the first lock screen interface is displayed in the main screen area. Then, a second operation of the user adjusting the angle between the main screen area and the back screen area to a second folding angle is received, and the second folding angle is greater than the first folding angle. In response to the second operation, the second wallpaper is displayed in the main screen area and the back screen area, and the second lock screen interface is displayed in the main screen area and the back screen area. Among them, the size of the second non-lock screen interface is larger than the size of the first lock screen interface, and the first lock screen interface and the second lock screen interface refer to interfaces that have not been unlocked, such as calendars, clocks, shortcut controls, and lock screen prompt graphics.
[0007] In the above scheme, when the folding screen device is in the folded state and the display screen is powered off, if the user wants to use the folding screen device, the user can press the power button to power on the folding screen device in full screen, light up the main screen area and the back screen area, display a complete through wallpaper on the main screen and the back screen, and display the lock screen interface on the main screen. When the folding screen device switches from the folded state to the stand state or the unfolded state, the through wallpaper is displayed in full screen on the main screen and the back screen, and the lock screen interface is expanded from the main screen to the full screen. In this way, the main screen and the back screen are displayed in coordination to create a cool wallpaper mode, which not only improves the utilization rate of the back screen, but also improves the user experience when the device is locked.
[0008] In a possible implementation, the first folding angle is less than or equal to a preset angle, and the second folding angle is greater than the preset angle. Taking the preset angle of 30° as an example, when the angle between the main screen area and the back screen area is less than or equal to 30°, the folding screen device is in a folded state, and the main screen area and the back screen area are in opposite directions; when the angle between the main screen area and the back screen area is greater than 30°, the folding screen device is in a support state or an unfolded state. For example, when the angle between the main screen area and the back screen area is greater than 90°, the folding screen device switches to the unfolded state, so that the main screen area and the back screen area are in substantially the same direction.
[0009] In the above solution, when the user unfolds the folding screen device, the user may need to use the entire display screen. By expanding the lock screen interface from the main screen area to the entire display screen, it is easier for the user to unlock the display screen, which is more in line with the user's usage habits.
[0010] In a possible implementation, the widths of the first wallpaper, the second wallpaper, and the second lock screen interface are all equal to the width of the display screen, and the heights of the first wallpaper, the second wallpaper, and the second lock screen interface are all equal to the height of the display screen. The width of the first lock screen interface is equal to the width of the main screen area, and the height of the first lock screen interface is equal to the height of the display screen.
[0011] In a possible implementation, in response to the first operation, after displaying the first wallpaper in the main screen area and the back screen area, and displaying the first lock screen interface in the main screen area, the method may further include: receiving a third operation of the user in the back screen area, keeping displaying the first wallpaper in the main screen area and the back screen area, and keeping displaying the first lock screen interface in the main screen area. Receiving a fourth operation of the user in the main screen area, turning off the back screen area, and displaying the first non-lock screen interface in the main screen area.
[0012] In the above scheme, when the folding screen device is in the folded state, the user's attention is mainly focused on the main screen. The probability of operating the main screen is high, and the probability of operating the back screen is low. Therefore, setting the back screen area to not support responding to user operations and setting the main screen area to support responding to user operations can further enhance the user experience.
[0013] In one possible implementation, in response to a second operation, a second wallpaper is displayed in the main screen area and the back screen area, and after a second lock screen interface is displayed in the main screen area and the back screen area, the method may further include: receiving a fifth operation of the user in the main screen area or the back screen area, and displaying a second non-lock screen interface in the main screen area and the back screen area.
[0014] In the above scheme, when the folding screen device is in the stand state or the unfolded state, the user's focus is expanded to the entire display screen, so the logical screen is expanded from the main screen area to the entire display screen. When the user operates any area of the display screen, it supports responding to user operations, thereby facilitating the user to unlock the screen, which is more in line with user habits.
[0015] It should be noted that the first non-lock screen interface and the second non-lock screen interface refer to interfaces other than the lock screen interface, such as the desktop interface, the shutdown interface, the charging interface, the password input interface, the third-party application interface, the emergency call interface, etc.
[0016] In one possible implementation, in response to the second operation, after displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area, the method may further include: receiving a sixth operation in which the user adjusts the angle between the main screen area and the back screen area to a third folding angle, the third folding angle being smaller than the second folding angle; in response to the sixth operation, displaying the first wallpaper in the main screen area and the back screen area, and displaying the first lock screen interface in the main screen area.
[0017] In the above scheme, when the folding screen device switches from the stand state or the unfolded state to the folded state, the display mode of the mobile phone can also switch from the full-screen state back to the wallpaper-through state, creating a cool wallpaper mode.
[0018] In a possible implementation, in response to the second operation, displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area, may include: in response to the second operation, displaying the first full-screen screenshot in the main screen area and the back screen area at a first time point. At the second time point, the second wallpaper and the second lock screen interface covered by the second full-screen screenshot are displayed in the main screen area and the back screen area, and the transparency of the second full-screen screenshot is greater than the transparency of the first full-screen screenshot. At a third time point, the second wallpaper and the second lock screen interface covered by the third full-screen screenshot are displayed in the main screen area and the back screen area, and the transparency of the third full-screen screenshot is greater than the transparency of the second full-screen screenshot. At a fourth time point, the second wallpaper and the second lock screen interface not covered by the full-screen screenshot are displayed in the main screen area and the back screen area. Among them, the first full-screen screenshot, the second full-screen screenshot and the third full-screen screenshot are screenshots corresponding to the first wallpaper and the first lock screen interface. The second time point is later than the first time point, the third time point is later than the second time point, and the fourth time point is later than the third time point.
[0019] In the above scheme, after the user unfolds the display screen, the folding screen device can display the wallpaper and lock screen interface in full screen. At the initial moment, the wallpaper and lock screen interface have not been drawn yet, and the user can see the full-screen screenshot without the problem of flashing black screen. Then, the full-screen screenshot can gradually fade out of the full screen at a certain speed. For example, at time 1, the alpha value of the full-screen screenshot is Alpha = 255; at time 2, the alpha value of the full-screen screenshot is Alpha = 127; at time 3, the alpha value of the full-screen screenshot is Alpha = 63; at time 4, the alpha value of the full-screen screenshot is Alpha = 0. Among them, the Alpha value is used to indicate the transparency of the color. Generally, the Alpha value ranges from 0 to 255. If a color with an Alpha value of 0 is drawn to a Surface object, there is no effect because the color is completely transparent and invisible. If a color with an Alpha value of 255 is drawn to a Surface object, the color will cover other layers, causing the other layers to be invisible. In this way, by reducing the Alpha value of the full-screen screenshot, the user can see the full-screen screenshot gradually fade out of the secondary screen, and gradually show the wallpaper and lock screen interface in the full screen.
[0020] In a possible implementation, at a second time point, displaying the second wallpaper and the second lock screen interface covered by the second full-screen screenshot in the main screen area and the back screen area may include: at the second time point, displaying the second wallpaper covered by the second full-screen screenshot in the main screen area and the back screen area, and displaying the first content in the second lock screen interface covered by the second full-screen screenshot in the first area of the display screen. At a third time point, displaying the second wallpaper and the second lock screen interface covered by the third full-screen screenshot in the main screen area and the back screen area may include: at the third time point, displaying the second wallpaper covered by the third full-screen screenshot in the main screen area and the back screen area, and displaying the second content in the second lock screen interface covered by the third full-screen screenshot in the second area of the display screen. Among them, the first area belongs to the main screen area, the second area belongs to the main screen area and the back screen area, and the second area may include the first area; the second content may include the first content.
[0021] In the above solution, after the user unfolds the display screen, the second lock screen gradually moves from the main screen area to the back screen area, and the second lock screen gradually appears in a dynamic way similar to a sliding door until it fills the entire screen. From the user's perspective, the transition from the first lock screen in the main screen area to the full-screen second lock screen is more natural, without visual jumps, which is more in line with the user's viewing habits.
[0022] In a possible implementation, after receiving a second operation by the user to adjust the angle between the main screen area and the back screen area to a second folding angle, before the first time point, the method may further include: setting the display area and the projection area to the entire area of the display screen, the display area refers to the area supporting the display of the projected image, and the projection area refers to the actual projection range of the projected image in the display area, and the projected image is composed of multiple application layers. Move the multiple application layers to the right to the main screen area. Move the wallpaper layer in the multiple application layers to the left to the back screen area. Move the screenshot layer to the left to the back screen area. Among them, the multiple application layers include wallpaper layers, screenshot layers and other layers, the wallpaper layer can be used to draw the second wallpaper, and the screenshot layer can be used to draw the first full-screen screenshot, the second full-screen screenshot and the third full-screen screenshot.
[0023] Exemplarily, before setting the display area and the projection area to the entire area of the display screen, a coordinate system can be established with the upper left corner of the display screen as the origin, the horizontal rightward direction along the width direction of the display screen as the first coordinate axis, and the vertical downward direction along the height direction of the display screen as the second coordinate axis. The widths of the display area and the projection area are both equal to the width of the display screen, and the heights of the display area and the projection area are both equal to the height of the display screen. First, the upper left corners of the display area and the projection area are set at the origin, so that the display area and the projection area are set to the entire area of the display screen. Then, multiple application layers are moved a first distance along the positive direction of the first coordinate axis. Then, the wallpaper layer is moved a first distance along the negative direction of the first coordinate axis, and the first full-screen screenshot is moved a first distance along the negative direction of the first coordinate axis. Wherein, the first distance is equal to the width of the back screen area.
[0024] In the above scheme, after setting the upper left corner of the display area and the projection area at the origin, the layers need to be moved, for example, all layers are moved 928 pixels to the right (i.e., the width of the back screen). However, the size of the wallpaper layer and the screenshot layer is larger than the size of the main screen, so that part of the wallpaper layer and the screenshot layer is located outside the display screen. In this case, it is necessary to further offset the wallpaper layer and the screenshot layer to the left, for example, offset the wallpaper layer and the screenshot layer to the left by 928 pixels. After these steps, if the moved layers are synthesized and sent to the display screen, the wallpaper layer and the full-screen screenshot are displayed in full screen.
[0025] In a possible implementation, the second wallpaper may include N frames of wallpaper, where N is an integer greater than or equal to 2. Displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area may include: starting from the first frame of the N frames of wallpaper, playing each frame of the N frames of wallpaper in the main screen area and the back screen area in sequence until the last frame of the N frames of wallpaper. In the process of playing each frame of the wallpaper, the second lock screen interface is kept displayed in the main screen area and the back screen area. After the playback of the N frames of wallpaper is completed, the last frame of the wallpaper and the second lock screen interface are kept displayed in the main screen area and the back screen area.
[0026] In the above scheme, the wallpaper set by the user for the folding screen device may be a video resource. The video resource may consist of multiple frames. After the user unfolds the display screen, the folding screen device can display the first frame wallpaper of the video resource in full screen. Then, starting from the first frame wallpaper, each frame wallpaper of the video resource is played in sequence until the last frame wallpaper of the video resource. In this process, the folding screen device can also keep displaying the lock screen interface in full screen. After the full-screen animation of the video resource ends, the folding screen device can keep displaying the last frame wallpaper in full screen and keep displaying the lock screen interface on the main screen. In this way, the cool effect of the wallpaper displayed when the display screen is unfolded is further enhanced, improving the user's visual experience.
[0027] In one possible implementation, in response to a second operation, after displaying a second wallpaper in the main screen area and the back screen area, and displaying a second lock screen interface in the main screen area and the back screen area, the method may further include: if no unlocking operation from the user is received within a preset time period, turning off the main screen area and the back screen area.
[0028] In the above scheme, after the folding screen device displays the through wallpaper on the main screen and the back screen for a period of time, if the user does not perform any operation on the folding screen device, such as unlocking it, it means that the user may not have the need to use the folding screen device temporarily. Therefore, the folding screen device can actively power off the display screen, thereby reducing unnecessary power loss and improving the battery life of the folding screen device.
[0029] In a second aspect, the present application provides a device, the device comprising a unit for executing the method in the first aspect. The device may correspond to executing the wallpaper full-screen display method described in the first aspect. For the relevant description of the unit in the device, please refer to the description of the first aspect, which will not be repeated here for the sake of brevity.
[0030] In a third aspect, the present application provides a folding screen device, the folding screen device comprising a memory and one or more processors. The memory is used to store computer program code, and the computer program code comprises computer instructions. When the computer instructions are called by the processor, the folding screen device executes the wallpaper full-screen display method provided in any one of the first aspects.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When the computer instructions are executed on a folding screen device, the folding screen device performs a wallpaper full-screen display method as provided in the first aspect and any possible implementation thereof.
[0032] In a fifth aspect, the present application provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the wallpaper full-screen display method provided in the first aspect and any possible implementation thereof.
[0033] In a sixth aspect, the present application provides a chip system. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by lines. The chip system can be applied to a folding screen device including a communication module and a memory. The interface circuit is used to receive a signal from the memory of the folding screen device and send the received signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor calls the computer instruction, the folding screen device can execute the wallpaper full-screen display method provided in the first aspect and any possible implementation thereof.
[0034] It can be understood that the beneficial effects that can be achieved by the above-mentioned second aspect apparatus, third aspect folding screen device, fourth aspect computer-readable storage medium, fifth aspect computer program product and sixth aspect chip system can be referred to as the beneficial effects in the first aspect and any possible implementation method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1A-Figure 1C A schematic diagram of an outward folding screen mobile phone provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a scene in which a wallpaper is displayed on the main screen when the mobile phone is in a folded state provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the relationship between the device status and the display status provided in the embodiment of the present application;
[0038] Figure 4A-4F A schematic diagram of a scenario of entering a through state provided in an embodiment of the present application;
[0039] Figure 5A-5D A schematic diagram of another scenario of entering a through state provided in an embodiment of the present application;
[0040] Figure 6A-6B A schematic diagram of a scene for playing a dynamic wallpaper in a through state provided in an embodiment of the present application;
[0041] Fig. 7A A schematic diagram of a scenario of switching from a through state to a full-screen state provided in an embodiment of the present application;
[0042] Figure 7B A schematic diagram of a scenario of switching from a full-screen state to a through-screen state provided in an embodiment of the present application;
[0043] Figure 8 A schematic diagram of the relationship between the display screen, display area and projection area provided in an embodiment of the present application;
[0044] Fig. 9A A schematic diagram of layer changes when entering a through state when powered on provided in an embodiment of the present application;
[0045] Fig. 9B A schematic diagram of layer changes when switching from a through state to a full-screen state when the folding angle increases, provided in an embodiment of the present application;
[0046] Fig. 9C A schematic diagram of layer changes when switching from a full-screen state to a through-screen state when the folding angle is reduced, provided in an embodiment of the present application;
[0047] Figures 10A-10I For Fig. 9B A corresponding schematic diagram of an example scenario;
[0048] Fig.11 A schematic diagram of the architecture of a folding screen device provided in an embodiment of the present application;
[0049] Fig.12 A flowchart of a method for displaying wallpaper in full screen when switching from a through state to a full screen state provided in an embodiment of the present application;
[0050] Fig.13 A schematic diagram of the hardware structure of the folding screen device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them.
[0052] For example, Figure 1A-Figure 1C A schematic diagram of an outward folding screen mobile phone is shown.
[0053] The foldable screen mobile phone is provided with a display screen, which can be bent into two display areas. Usually, the larger display area of at least two display areas is called the main screen or main screen area, and the smaller display area is called the back screen, sub-screen, back screen area or sub-screen area. Figure 1AAs shown, when the back screen is folded to be flush with the surface where the rear camera is located, the folding angle between the main screen and the back screen is less than or equal to the first angle. At this moment, the external folding screen mobile phone is in a folded state, and the main screen and the back screen face different directions, the main screen faces the user, and the back screen faces away from the user. Figure 1B As shown, when the external folding screen mobile phone is in the stand state, the folding angle between the main screen and the back screen is greater than or equal to the first angle and less than the second angle. Figure 1C As shown, when the external folding screen mobile phone is in the unfolded state, the main screen and the back screen are oriented in the same direction, and the folding angle between the two display areas is greater than or equal to the second angle. The second angle is greater than the first angle. For example, the first angle can be 30° or 45°, and the second angle can be 90° or 120°.
[0054] based on Figure 1A-Figure 1C The external folding screen mobile phone provided, Figure 2 FIG. 1 shows a schematic diagram of a scene in which a wallpaper is displayed on the main screen when the external folding screen mobile phone is in a folded state. Figure 2 As shown in the figure, when the phone is in a folded state, the main screen and the back screen face different directions, the main screen faces the user, and the back screen faces away from the user. At this moment, if the user powers on, the main screen lights up and the back screen turns off. Then, the phone displays wallpaper, status bar, unlock interface, etc. on the main screen. Then, the user can trigger the unlocking of the phone by swiping up on the main screen, thereby switching to a non-lock screen interface such as the desktop interface. In this process, the back screen is always idle, resulting in a low utilization rate of the back screen.
[0055] In view of the above problems, the present application provides a method for full-screen display of wallpaper when a folding screen device is in a folded state. This method can be applied to folding screen devices, such as external folding screen mobile phones. When the folding screen device is in a folded state and the lock screen is on, the full screen is powered on, and a complete through wallpaper is displayed on the main screen and the back screen, and other layers such as the unlock interface and status bar are displayed on the main screen, thereby creating a cool wallpaper mode. In this way, not only the utilization rate of the back screen is improved, but also the user experience when the mobile phone screen is on is improved.
[0056] For example, Figure 3 A schematic diagram showing the relationship between the device status and display status of a foldable screen device.
[0057] This application provides four device states: unfolded state, folded state, stand state and tent state.
[0058] After the foldable screen device is powered on, if the folding angle is detected to be greater than or equal to 90°, the foldable screen device enters the unfolded state. After the foldable screen device is powered on, if the folding angle is detected to be less than or equal to 30°, the foldable screen device enters the folded state. After the foldable screen device is powered on, if the folding angle is detected to be greater than 30° and less than 90°, the foldable screen device enters the support state.
[0059] In addition to these three states, this application also provides a special state: tent state. After the folding screen device is powered on, if it is detected that the tent state conditions are met, then the tent state is entered. Among them, the tent state conditions include: 1. The folding angle is within the preset angle range, for example, the preset angle range is 45° to 105°; 2. The folding screen device is placed in a tent shape, that is, the two sides of the folding screen device are placed on the desktop; 3. The static time of the folding screen device in the tent shape is greater than or equal to the preset time, for example, the preset time is 300 milliseconds.
[0060] During the screen lighting process, if the user changes the folding angle of the folding screen device, the folding screen device can switch between these device states. For example, at the initial moment, the folding screen device is in the folded state, and the user can increase the folding angle of the folding screen device. When it is detected that the folding angle is greater than 30°, the folding screen device switches from the folded state to the stand state. Then, the user can continue to increase the folding angle of the folding screen device. When it is detected that the folding angle is greater than 90°, the folding screen device switches from the stand state to the unfolded state.
[0061] This application also provides the following five display states:
[0062] Full screen mode (DISPLAY_MODE_FULL) means that the display area and the logical screen are in the entire display screen. At this moment, the full screen display interface is displayed and the user can operate the full screen. When the folding screen device is in the unfolded state or the stand state, the corresponding display state is the full screen state.
[0063] The main screen state (DISPLAY_MODE_MAIN) means that when the foldable screen device is in the folded state or tent state, the display area and the logical screen are in the main screen, the back screen is frozen, and the main screen displays the interface, and the user can operate the main screen. For example, when the foldable screen device switches from the stand state to the folded state, the corresponding display state is the main screen state. For another example, when the foldable screen device is in the folded state, the screen is on and not locked, and the corresponding display state is the main screen state.
[0064] Sub-screen state (DISPLAY_MODE_SUB) means that when the foldable screen device is in the folded state, the display area and the logical screen are on the sub-screen, the main screen is frozen, and the back screen displays the interface. The user can operate the back screen. For example, when the user starts the rear selfie, the display state is the sub-screen state.
[0065] The collaborative state (DISPLAY_MODE_COORDINATON) means that when the foldable screen device is in the folded state, both the display area and the logical screen are set. For example, when the user starts the front camera and the rear camera to take a collaborative selfie, the display state is the collaborative state.
[0066] Wallpaper through state (DISPLAY_MODE_FULL_WALLPAPER) means that when the foldable screen device is in the folded state, the display area is on the entire display screen, and the logical screen is on the main screen. In this case, a through wallpaper is displayed in full screen on the main screen and the back screen, and other layers except the wallpaper layer are displayed on the main screen.
[0067] It should be noted that the above-mentioned logical screen refers to the area that supports / allows response to user operations. For example, when the logical screen is set as the main screen, the user touches the main screen, and the phone responds to the user operation and switches the interface, such as switching to the unlock interface, the interface containing shortcut controls, the desktop interface or the camera interface. However, if the user touches the back screen, the phone does not respond to the user operation and keeps displaying the current interface. When the logical screen is set to full screen, the entire display screen can respond to user operations.
[0068] Below, taking a foldable screen mobile phone as an example, the wallpaper penetration state provided by this application is illustrated in combination with several scenario examples.
[0069] Scenario Example 1
[0070] like Figure 4A As shown in the figure, at the initial moment, the phone is in a folded state and the entire display screen is powered off. If the main screen faces the user, the user can see that the main screen is off. If the user flips the phone with the back screen facing him / herself, the user can see that the back screen is off. When the user wants to use the phone, Figure 4B As shown, the user can press the power button set on the side frame of the main screen. In response to the user's pressing operation, the wallpaper is turned on, the full screen is powered on, and the backlight module is lit. Among them, the backlight module is used to supply sufficient brightness and uniformly distributed light source so that the display screen can display normally. Figure 4C As shown in the figure, the phone displays a frame of wallpaper in full screen, and displays other layers on the main screen, such as the unlock layer and the status bar layer, but because the wallpaper on the back screen is covered by a black mask, the user can only see the other layers and part of the wallpaper displayed on the main screen. Then, the black mask can move to the left side of the display at a certain speed, for example, first displaying Figure 4D The interface shown in the figure is displayed. Figure 4E The interface shown in the figure is then displayed as follows Figure 4F In this way, users can see that the size of the black mask gradually decreases, and the entire wallpaper gradually appears in a dynamic way similar to a sliding door until it fills the entire screen.
[0071] Scenario Example 2
[0072] This application also provides another solution for displaying wallpaper effects. Figure 4BAs shown, the power button is pressed to enter the wallpaper through state, and the full screen is lit. Figure 5A As shown in the figure, the phone can display a frame of wallpaper in full screen and display other layers on the main screen, such as the unlock layer and the status bar layer, but because the wallpaper on the back screen is covered by a black mask, the user can only see the other layers and part of the wallpaper displayed on the main screen. Then, the black mask can gradually fade out of the back screen at a certain speed. For example, at time 1, Figure 5A The alpha value of the black mask shown is Alpha=255; at time 2, Figure 5B The alpha value of the black mask shown is Alpha=127; at time 3, Figure 5C The alpha value of the black mask shown is Alpha=63; at time 4, Figure 5D The alpha value of the black mask shown is Alpha=0. Among them, time 2 is later than time 1, time 3 is later than time 2, and time 4 is later than time 3. Alpha value is used to indicate the transparency of color. Usually, the value range of Alpha value is 0-255. If a color with an Alpha value of 0 is drawn to a Surface object, there will be no effect because this color is completely transparent and invisible. If a color with an Alpha value of 255 is drawn to a Surface object, this color will cover other layers, making other layers invisible. In this way, by gradually reducing the Alpha value of the black mask, the user can see the black mask gradually fade out of the secondary screen.
[0073] The above scenario examples 1 and 2 provide two animation effects based on the black mask set on the back screen. As another example, the mobile phone may not set a black mask on the back screen. Figure 4B After pressing the power button to light up the full screen, the phone may not display the following Figure 4C-4F The sliding door animation shown does not display the Figure 5A-5D The black mask shown gradually fades out, but directly displays the full-screen through wallpaper interface, for example, directly from Figure 4B Switch to Figure 4F , or from Figure 4B Switch to Figure 5D .
[0074] Scenario Example 3
[0075] The above-mentioned scenario examples 1 and 2 are illustrated by taking a frame of wallpaper as an example. The present application also provides another solution for displaying wallpaper effects. The wallpaper resource in scenario example 3 is a video resource, and the video resource includes multiple frames. Figure 4B As shown, the power button is pressed to enter the wallpaper through state, and the full screen is lit. Fig. 6AAs shown in the figure, the mobile phone can display the first frame wallpaper of the video resource in full screen, and display other layers on the main screen, such as the unlock layer and the status bar layer. Then, the mobile phone can start from the first frame wallpaper and play each frame wallpaper of the video resource in sequence until the Figure 6B The last frame of wallpaper shown. During this process, other layers are displayed on the main screen. After the animation of the video resource ends, the mobile phone can continue to display the last frame of wallpaper in full screen and continue to display other layers on the main screen. Among them, other layers are located above the wallpaper layer.
[0076] As another example, when the wallpaper resource is a video resource, the mobile phone can simultaneously display the video resource playback dynamic effect and the black mask playback dynamic effect. Figure 4B As shown in the figure, by pressing the power button to enter the wallpaper through state and lighting up the full screen, the mobile phone can display the first frame wallpaper of the video resource in full screen, and cover the upper layer of the wallpaper on the back screen with a black mask. Then, the mobile phone can play each frame wallpaper of the video resource in turn, and in the process of playing the dynamic wallpaper, it will display the following Figure 4C-4F The sliding door effect shown, or Figure 5A-5D The black mask shown gradually fades out. This application does not specifically limit the playback speed of the two effects. For example, the two effects can start and end at the same time; or, the two effects can start at the same time, and the black mask effect ends before the wallpaper resource effect; or, the two effects can start at the same time, and the wallpaper resource effect ends before the black mask effect.
[0077] Scenario Example 4
[0078] In response to the user's Figure 4B After the pressing operation of the power button shown enters the wallpaper through state, the mobile phone displays a frame of wallpaper in full screen through. Thereafter, the user may operate the mobile phone, or the user may not operate the mobile phone. Exemplarily, after a frame of wallpaper is displayed in full screen through, the mobile phone can start timing. If the user's operation of increasing the folding angle is received within the preset time, the mobile phone can switch from the folded state to its bracket state or unfolded state, and switch the display state to the full screen state; or, if the user's unlocking operation is received within the preset time, the mobile phone can remain in the folded state and switch from the wallpaper through state to the main screen state; or, if the user's pressing operation of the power button is received again within the preset time, the full screen can be powered off. If the mobile phone still does not receive any operation from the user when the timing time is greater than or equal to the preset time, the full screen can be powered off and the display screen is turned off, thereby reducing the power consumption of the entire mobile phone. Among them, the preset time can be customized by the system or set by the user, such as the preset time can be 1 minute, 5 minutes or 10 minutes.
[0079] For example, when a user increases the folding angle of the display screen within a preset time period, the display state of the mobile phone switches from the wallpaper through state to the full screen state. Fig. 7A A schematic diagram showing a scenario in which a mobile phone switches from a through-screen state to a full-screen state.
[0080] like Figure 4F , Figure 5D or Figure 6B As shown in FIG. 1 , when the mobile phone is in the folded state, the mobile phone displays a frame of wallpaper in the full screen and displays the lock screen interface on the main screen. Then, as Fig. 7A As shown in (1) in the figure, the user can hold the phone with both hands and gradually increase the folding angle between the main screen and the back screen. When the phone detects that the folding angle is greater than 30°, the display state of the phone switches from the wallpaper through state to the full screen state. Fig. 7A As shown in (2) in , the mobile phone obtains a full-screen screenshot of the current display. Fig. 7A As shown in (3) in the figure, the Alpha value of the full-screen screenshot is reduced, the full-screen screenshot begins to fade out, the new wallpaper layer is displayed in full screen, and the new lock screen interface moves from the right side of the display screen to the left side of the display screen. Fig. 7A As shown in (4) in the figure, the Alpha value of the full-screen screenshot is further reduced, the transparency of the full-screen screenshot is further increased, the new wallpaper layer is displayed in full screen, and the new lock screen interface continues to move to the left side of the display screen. Fig. 7A As shown in (5) in , the Alpha of the full-screen screenshot is 0, the full-screen screenshot is completely faded out, and the new wallpaper layer and the new lock screen interface are displayed in full screen. If the new wallpaper resource is a video resource, then Fig. 7A As shown in (6), under the premise of keeping the new lock screen interface in full screen, the mobile phone can continue to play the animation effect of the new wallpaper layer until the last frame. After that, the last frame of the wallpaper and the new lock screen interface are kept displayed in full screen.
[0081] As an example, if the user's unlocking operation is received within the preset time, the mobile phone will display a new application interface in full screen, such as a desktop interface or a game application interface, etc. If the timing time is greater than or equal to the preset time and the user's unlocking operation is still not received, the display screen will be turned off, thereby reducing unnecessary power consumption.
[0082] It should be noted that Fig. 7AThe example of reducing the Alpha value of the full-screen screenshot so that the new wallpaper layer and the new other layers gradually appear is used for illustration, and it does not limit the present application. In actual implementation, the full-screen screenshot can also adopt a sliding door effect. For example, the mobile phone can first cover the full-screen screenshot on top of the new wallpaper layer and the new other layers. Then, while the position of the new wallpaper layer remains unchanged, the full-screen screenshot can be gradually moved to the left side of the display screen at a first speed, and at the same time, the new other layers can be moved to the left side of the display screen at a second speed. Among them, the first speed is greater than or equal to the second speed. As an example, the ratio of the first speed to the second speed is equal to the ratio of the width of the display screen to the width of the back screen, so that when the full-screen screenshot is completely removed from the display screen, the new other layers can be displayed in full screen.
[0083] Scenario Example 5
[0084] After the display state of the mobile phone is switched from the wallpaper through state to the full screen state, the user may or may not unlock the lock screen interface. For example, when the display state of the mobile phone is in the full screen state, the user may reduce the folding angle between the main screen and the back screen, so that the display state of the mobile phone returns from the full screen state to the wallpaper through state.
[0085] For example, Figure 7B A schematic diagram showing a scenario in which a mobile phone returns from a full-screen state to a wallpaper-through state.
[0086] like Figure 7B As shown in (1) in FIG. 1 , when the device state of the mobile phone is in the unfolded state and the display mode is in the full screen state, if the user does not unlock the lock screen interface, the mobile phone keeps displaying the lock screen interface. Figure 7B As shown in (2) in the figure, the user can hold the phone with both hands and gradually reduce the folding angle between the main screen and the back screen. When the phone detects that the folding angle is less than or equal to 30°, the display state of the phone switches from the full screen state to the wallpaper through state. Figure 7B As shown in (3) in , the mobile phone obtains a full-screen screenshot of the current display. Figure 7B As shown in (4) in the figure, the Alpha value of the full-screen screenshot is reduced, the full-screen screenshot begins to fade out, the new wallpaper layer is displayed in full screen, and the new lock screen interface moves from the left side of the display screen to the right side of the display screen. Figure 7B As shown in (5) in the figure, the Alpha value of the full-screen screenshot is further reduced, the transparency of the full-screen screenshot is further increased, the new wallpaper layer is displayed in full screen, and the new lock screen interface continues to move to the right side of the display screen. Figure 7BAs shown in (6), the Alpha of the full-screen screenshot is 0, the full-screen screenshot completely fades out, the new wallpaper layer is displayed in the full screen, and the new lock screen interface is displayed on the main screen. As an example, if the new wallpaper resource is a video resource, then under the premise of keeping the new lock screen interface on the main screen, the mobile phone can continue to play the animation effect of the new wallpaper layer in full screen until the last frame. After that, the last frame of the wallpaper is displayed in full screen, and the new lock screen interface is displayed on the main screen.
[0087] The above embodiments illustrate the wallpaper through state and full screen state through several scenario examples, which do not limit the present application. It should be understood that in actual implementation, the wallpaper through state and full screen state can also be applied to other possible scenarios. In addition, the full screen through display solution when the mobile phone switches from the through state to the full screen state can also be applied to other applications. For example, when running a game application, a map application or a video application, the layers of these applications are displayed in full screen through.
[0088] Before formally introducing the specific implementation principle of switching from the wallpaper through state to the full-screen state, several important concepts involved in this application are introduced first: display screen, display area and projection area. Among them, the display screen refers to the physical display screen of the folding screen, and the display screen includes the main screen area and the back screen area. The display area refers to the area that supports the display of the projected image. The projection area refers to the actual projection range of the projected image in the display area. Among them, the projected image is composed of multiple application layers.
[0089] Figure 8 A schematic diagram showing the relationship between a display screen, a display area, and a projection area based on an external folding screen mobile phone is shown.
[0090] like Figure 8 As shown in the figure, the frame of the external folding screen mobile phone is equipped with a display screen, which can be bent into two display areas: the main screen and the back screen. The width of the display screen is 2016 pixels, and the height of the display screen is 2348 pixels. The width of the main screen is 1088 pixels, and the height of the main screen is 2348 pixels. The width of the back screen is 928 pixels, and the height of the back screen is 2348 pixels.
[0091] When the device state and / or display state of the mobile phone is changed, the relative position relationship between the display screen and the display area may change. For ease of description, a first coordinate system is established with the pixel point in the upper left corner of the display screen as the origin (0, 0), the horizontal rightward along the width direction as the x-axis, and the vertical downward along the height direction as the y-axis. With the first coordinate system as a reference, the pixel point coordinates in the upper left corner of the display area are (x1, y1), the width of the display area is m, and the height is n.
[0092] As an example, if x1=0, y1=0, m=2016, and n=2348, the display area covers the entire display screen, that is, the entire display screen can be used to display interface content.
[0093] As another example, if x1=928, y1=0, m=1088, n=2348, the display area covers the main screen, that is, the main screen can be used to display interface content, and the back screen cannot be used to display interface content.
[0094] As another example, if x1=0, y1=0, m=928, n=2348, the display area covers the back screen, that is, the back screen can be used to display interface content, and the main screen cannot be used to display interface content.
[0095] In addition, the relative position relationship between the display area and the projection area may change. A second coordinate system is established with the pixel point in the upper left corner of the display area as the origin (0, 0), the horizontal rightward direction along the width direction as the X axis, and the vertical downward direction along the height direction as the Y axis. With the second coordinate system as a reference, when the pixel point coordinates (x2, y2) of the upper left corner of the projection area are (0, 0), the pixel point in the upper left corner of the projection area is in the same position as the pixel point in the upper left corner of the display area.
[0096] It should be understood that Figure 8 The relationship diagram of the display screen, display area and projection area shown is only an example. When the position of the display area in the display screen is changed, the position actually used for imaging in the display screen can be changed, such as imaging in the full screen, imaging only on the main screen, and imaging only on the back screen. When the relative position relationship between the display screen and the display area is fixed, the position of the projection area in the display area can be changed. Figure 8 As shown, when the trapezoidal projection area is located within the display area, the display screen can display the projection content in the projection area, but when the projection area is completely moved outside the display area, the display screen will not be able to display the projection content in the projection area.
[0097] Let's combine Fig. 9A , an example is given to illustrate the layer changes that enter the through state when power is turned on; then combined with Fig. 9B , an example is given to illustrate the layer changes from the wallpaper through state to the full screen state when the folding angle is increased; combined with Fig. 9C , an example is given to illustrate the layer changes when switching from the full-screen state to the wallpaper-through state when the folding angle is reduced.
[0098] For example, Fig. 9A A schematic diagram showing layer changes when switching from a wallpaper-through state to a full-screen state when the folding angle is increased is shown.
[0099] At the initial moment, the phone is in a folded state and the entire display screen is powered off. When the user wants to use the phone, the user can press the power button set on the side frame of the main screen. In response to the user's pressing operation, the phone enters the wallpaper through state and the full screen is powered on. Then, the phone can perform the following layer change process:
[0100] like Fig. 9A As shown in (1), the display area is set to full screen display, that is, the display area covers the entire display screen.
[0101] The size of the wallpaper layer is greater than or equal to the size of the display screen, and the sizes of other layers except the wallpaper layer are equal to the size of the main screen. In order to display other layers on the main screen, such as Fig. 9A As shown in (2) in , all layers are moved to the right. Then, Fig. 9A As shown in (3), all layers are moved to the main screen so that the upper left corners of all layers coincide with the upper left corner of the main screen, other layers cover the entire main screen, and the right half of the wallpaper layer is outside the display screen.
[0102] like Fig. 9A As shown in (3) in , the wallpaper layer is moved to the left while keeping the positions of other layers unchanged. Then, Fig. 9A As shown in (4), the upper left corner of the wallpaper layer coincides with the upper left corner of the display screen, so that the wallpaper layer covers the entire screen and other layers cover the main screen.
[0103] like Fig. 9A As shown in (5), a black mask is covered on the wallpaper layer of the back screen, so that the wallpaper layer on the back screen is invisible to the user.
[0104] like Fig. 9A As shown in (6), while keeping the positions of the wallpaper layer and other layers unchanged, the black mask layer is moved to the left by reducing the x-axis coordinate, thereby revealing a portion of the wallpaper layer covered by the black mask layer.
[0105] like Fig. 9A As shown in (7), while keeping the positions of the wallpaper layer and other layers unchanged, the x-axis coordinate is further reduced so that the black mask continues to move left, thereby revealing more wallpaper layers covered by the black mask.
[0106] like Fig. 9A As shown in (8), after the black mask is completely removed from the display screen, the black mask is deleted, thereby displaying a frame of wallpaper in full screen and displaying other layers on the main screen.
[0107] For example, in Fig. 9A Based on (8), Fig. 9B A schematic diagram showing layer changes when switching from a wallpaper-through state to a full-screen state when the folding angle is increased is shown.
[0108] When the phone is in the folded state, the phone displays a frame of wallpaper in full screen and displays the lock screen interface on the main screen. If the user holds the phone with both hands and gradually increases the folding angle between the main screen and the back screen, the phone can detect the change of the folding angle in real time through the sensor. When the phone detects that the folding angle is greater than 30°, the display state of the phone switches from the wallpaper through state to the full screen state.
[0109] like Fig. 9B As shown in (1), when switching from the wallpaper through state to the full screen state, the mobile phone can take a screenshot of all the contents of the current display screen to obtain a full screen screenshot. In the full screen screenshot, the wallpaper layer is displayed in full screen, and other layers are displayed on the main screen.
[0110] like Fig. 9B As shown in (2), the mobile phone starts to redraw the window, that is, the new wallpaper layer and the new other layer. Before the new wallpaper layer and the new other layer are drawn, the full screen screenshot is displayed on the display to prevent the screen from flashing black. Among them, the new other layer refers to other layers except the wallpaper layer, such as the lock screen layer, the status bar layer, etc.
[0111] like Fig. 9B As shown in (3), the new wallpaper layer and the new other layer are drawn. The width of the new wallpaper layer and the new other layer is equal to the width of the display screen, and the height of the new wallpaper layer and the new other layer is equal to the height of the display screen. The upper left corner of the new wallpaper layer coincides with the upper left corner of the display screen, so that the wallpaper layer covers the entire screen. The upper left corner of the new other layer coincides with the upper left corner of the main screen, the left half of the new other layer covers the main screen, and the right half of the new other layer is outside the display screen.
[0112] like Fig. 9B As shown in (4), while keeping the positions of the new wallpaper layer and the full-screen screenshot unchanged, the new other layer is moved to the left by reducing the x-axis coordinate. At the same time, the alpha value of the full-screen screenshot is reduced to increase the transparency of the full-screen screenshot, so that the wallpaper layer covered by the full-screen screenshot begins to appear on the back screen.
[0113] like Fig. 9B As shown in (5), while keeping the positions of the new wallpaper layer and the full-screen screenshot unchanged, the x-axis coordinate is further reduced to move the new other layer further to the left. At the same time, the alpha value of the full-screen screenshot is further reduced to further increase the transparency of the full-screen screenshot, thereby further revealing the wallpaper layer covered by the full-screen screenshot.
[0114] like Fig. 9BAs shown in (6), after the full-screen screenshot Alpha value is set to 0, the full-screen screenshot becomes completely transparent and the full-screen screenshot is deleted. In addition, the new wallpaper layer and the new other layers are displayed in the full screen.
[0115] For example, in Fig. 9B On the basis of Fig. 9C A schematic diagram showing layer changes when switching from a full-screen state to a wallpaper-through state when the folding angle is reduced is shown.
[0116] When the phone is in the unfolded state or the stand state, the phone displays the wallpaper and lock screen interface in full screen. If the user holds the phone with both hands and gradually reduces the folding angle between the main screen and the back screen, the phone can detect the change of the folding angle in real time through the sensor. When the phone detects that the folding angle is less than or equal to 30°, the display state of the phone switches from the full screen state to the wallpaper through state.
[0117] like Fig. 9C As shown in (1), when the mobile phone is in full screen mode, the wallpaper and other layers are displayed in full screen.
[0118] like Fig. 9C As shown in (2), when switching from full screen mode to wallpaper through mode, the mobile phone can take a screenshot of all the contents of the current display screen and obtain a full screen screenshot. The coordinates of the upper left corner of the full screen screenshot coincide with the coordinates of the upper left corner of the display screen. The resolution of the full screen screenshot is equal to the resolution of the display screen.
[0119] like Fig. 9C As shown in (3), the phone starts to redraw the window, i.e., the new wallpaper layer and the new other layer. Before the new wallpaper layer and the new other layer are drawn, the full screen screenshot is displayed on the display screen to prevent the screen from flashing black. The new other layer refers to other layers except the wallpaper layer, such as the lock screen layer, the status bar layer, etc.
[0120] like Fig. 9C As shown in (4), the new wallpaper layer and the new other layer are drawn. The width of the new wallpaper layer is equal to the width of the display screen, and the height of the new wallpaper layer is equal to the height of the display screen. The width of the new other layer is equal to the width of the main screen, and the height of the new other layer is equal to the height of the main screen. The upper left corner of the new wallpaper layer coincides with the upper left corner of the display screen, so that the wallpaper layer covers the entire screen. The upper left corner of the new other layer coincides with the upper left corner of the display.
[0121] like Fig. 9C As shown in (5), while keeping the positions of the new wallpaper layer and the full-screen screenshot unchanged, the new other layer is moved to the right by increasing the x-axis coordinate of the new other layer. At the same time, the alpha value of the full-screen screenshot is reduced to increase the transparency of the full-screen screenshot, so that the new wallpaper layer covered by the full-screen screenshot begins to appear in the full screen.
[0122] like Fig. 9C As shown in (6), while keeping the positions of the new wallpaper layer and the full-screen screenshot unchanged, the x-axis coordinate of the new other layer is continued to increase to achieve the further right-left movement of the new other layer. At the same time, the alpha value of the full-screen screenshot is continued to be reduced to further increase the transparency of the full-screen screenshot, thereby further revealing the wallpaper layer covered by the full-screen screenshot.
[0123] like Fig. 9C As shown in (7), after the full-screen screenshot Alpha value is set to 0, the full-screen screenshot becomes completely transparent and the full-screen screenshot is deleted.
[0124] like Fig. 9C As shown in (8), the new wallpaper layer is displayed in the full screen, the new other layers are displayed in the main screen, and the logical screen is set as the main screen.
[0125] For example, Figures 10A-10I Shown with Fig. 9B A schematic diagram of a corresponding scenario example.
[0126] exist Figures 10A-10I In the embodiment, the width of the display screen is 2016 pixels, and the height of the display screen is 2348 pixels. The display screen includes two display areas: a main screen and a back screen. Among them, the width of the main screen is 1088 pixels, and the height of the main screen is 2348 pixels. The width of the back screen is 928 pixels, and the height of the back screen is 2348 pixels. In actual implementation, the width and height of the display screen can be adjusted according to the use requirements, and this application does not make specific restrictions.
[0127] The first step is to set the display area to full screen after the phone switches from wallpaper through state to full screen state.
[0128] The first coordinate system is established with the pixel point in the upper left corner of the display screen as the origin (0, 0), the horizontal rightward along the width direction as the x-axis, and the vertical downward along the height direction as the y-axis. With the first coordinate system as a reference, if the pixel point coordinates in the upper left corner of the display area are (0, 0), the width of the display area is 2016 pixels, and the height is 2348 pixels, then the entire display screen will be used as the display area, and the entire display screen supports displaying interface content.
[0129] The second coordinate system is established with the pixel point in the upper left corner of the display area as the origin (0, 0), the horizontal rightward along the width direction as the X axis, and the vertical downward along the height direction as the Y axis. With the second coordinate system as a reference, the pixel point coordinates in the upper left corner of the projection area are (0, 0), the width of the projection area is 2016 pixels, and the height is 2348 pixels. Since the upper left corner of the display area is located at the same position as the upper left corner of the display screen, the first coordinate system and the second coordinate system are the same coordinate system. With the first coordinate system as a reference, the pixel point coordinates in the upper left corner of the projection area are still (0, 0).
[0130] like Fig. 10A As shown, at the initial moment of switching from the wallpaper through state to the full screen state, with reference to the first coordinate system, the pixel coordinates of the upper left corner of the wallpaper layer are (0, 0), the width of the wallpaper layer is 2016 pixels, the height of the wallpaper layer is 2348 pixels, and the pixel coordinates of the upper left corners of other layers are (0, 0), the width of other layers is 1088 pixels, and the height of other layers is 2348 pixels. That is, the size of the wallpaper layer is equal to the size of the display screen, and the sizes of other layers except the wallpaper layer are equal to the size of the main screen. If the wallpaper layer and other layers are synthesized and sent to the display screen, part of the content of the other layers is displayed on the back screen, and the other part of the content of the other layers is displayed on the main screen.
[0131] In the second step, move all layers to the right by 928 pixels (the width of the back screen).
[0132] The phone can use the setPosition(displayContent,getSurfaceControl(),928,0) function to move all layers 928 pixels in the positive direction of the x-axis, so that the pixel coordinates of the upper left corner of the wallpaper layer are updated to (928, 0), and the pixel coordinates of the upper left corners of other layers are also updated to (928, 0). Fig. 10B As shown in the figure, if the moved wallpaper layer and other layers are synthesized and sent to the display screen, the other layers can be fully displayed on the main screen. However, the size of the wallpaper layer is larger than the size of the main screen, the left half of the wallpaper layer is located on the main screen, and the right half of the wallpaper layer is located outside the display screen, which has not yet achieved the purpose of displaying the wallpaper layer in the full screen. In this case, the wallpaper layer needs to be offset to the left.
[0133] Step 3: Offset the wallpaper layer 928 pixels to the left.
[0134] The phone can use the setPosition(getTopVisibleWallpaper(),-928,0) function to move the wallpaper layer 928 pixels in the negative direction of the x-axis, so that the pixel coordinates of the upper left corner of the wallpaper layer are updated to (0, 0), while the pixel coordinates of the upper left corners of other layers remain (928, 0). Fig. 10C As shown, if the moved wallpaper layer and other layers are synthesized and sent to the display screen, the wallpaper layer is displayed through the full screen and the other layers are all displayed on the main screen.
[0135] It should be noted that the above Fig. 10A , Fig. 10B and Fig. 10C It is only used to explain the setting principle of the display area. In actual implementation, the mobile phone may not need to display these interfaces, but directly complete the parameter settings of the display area and layer.
[0136] The fourth step is to take a screenshot of all contents on the current display screen and obtain a full-screen screenshot.
[0137] The mobile phone can obtain a full-screen screenshot of the current display and set the display position for the full-screen screenshot through the setPosition(mScreenShotLayer,-928,0) function. Fig. 10D As shown, the width of the full-screen screenshot is 2016 pixels, the height of the full-screen screenshot is 2348 pixels, and the initial position of the coordinates of the upper left corner pixel of the full-screen screenshot is (928, 0). The full-screen screenshot cannot cover the back screen. The full-screen screenshot is moved 928 pixels to the left through the above function. The coordinates of the upper left corner pixel of the full-screen screenshot are updated to (0, 0). Since the new wallpaper layer and the new other layers have not been drawn yet, the moved full-screen screenshot can be sent to the display screen. At this moment, the user can see the full-screen screenshot displayed in full screen.
[0138] Step 5. The new wallpaper layer and new other layers are drawn.
[0139] like Fig.10E As shown in the figure, the upper left corner pixel coordinates of the new wallpaper layer are (0, 0), the width of the new wallpaper layer is 2016 pixels, and the height of the new wallpaper layer is 2348 pixels. The upper left corner pixel coordinates of the new other layer are (928, 0), the width of the new other layer is 2016 pixels, and the height of the new other layer is 2348 pixels. If the new wallpaper layer, the new other layer, and the full-screen screenshot are projected onto the display area, part of the projection area of the new other layer is outside the display area, so that part of the content of the new other layer cannot be fully displayed on the display screen.
[0140] Step 6. Offset the new layer to the left by x and reduce the alpha value of the full-screen screenshot.
[0141] Wherein, x represents the offset each time, and x is an integer greater than or equal to 1 pixel and less than 928 pixels.
[0142] The phone can use the interpolator to calculate the movement speed of the layer and the fade-out speed of the full-screen screenshot. For example, the phone can first use the setPosition(displayContent.getSurfaceControl(),-x,0) function to offset all layers to the left by x; then use the setPosition(getTopVisibleWallpaper().getSurfaceControl(),x,0) function to offset the wallpaper layer to the right by x; and then use the setPosition(mScreenShot,-X,0) function to offset the full-screen screenshot to the right by x. After completing these function settings, the positions of the wallpaper layer and the full-screen screenshot remain unchanged, and the other layers are offset to the left by x.
[0143] In addition, the phone can also reduce the Alpha value of the full-screen screenshot through the setAlpha(mScreenShot,0,-a) function. Among them, a represents the Alpha value reduced each time, and x is a positive integer less than 255. Fig.10F As shown, the user can see that the new other layer is moving to the left at a speed of x pixels per frame, and the transparency of the full-screen screenshot is gradually increasing.
[0144] Step 7. Continue to offset the new layer to the left by x and continue to reduce the Alpha value of the full-screen screenshot.
[0145] Referring to the sixth step above, the mobile phone can use the above three functions to keep the positions of the wallpaper layer and the full-screen screenshot unchanged, and continue to offset the new other layers to the left by x. In addition, the mobile phone can also use the setAlpha(mScreenShot,0,-a) function to further reduce the Alpha value of the full-screen screenshot. Figure 10G As shown, the user can see that the new other layer continues to move to the left, and the transparency of the full-screen screenshot gradually increases, and the wallpaper layer and the new other layer covered by the full-screen screenshot gradually appear.
[0146] Step 8. Delete the full-screen screenshot when it completely fades out.
[0147] like Fig. 10H As shown, after the full-screen screenshot reduces the Alpha value multiple times, if the Alpha value of the full-screen screenshot is updated to 0, the full-screen screenshot can be deleted. In this case, the full-screen screenshot is no longer needed and can be deleted.
[0148] In addition, after the new other layer is moved to the left multiple times, if the coordinates of the upper left corner pixel of the new other layer are (0,0), it means that the new other layer has been displayed in full screen and does not need to be moved any further.
[0149] Step 9. Continue to play the dynamic wallpaper in full screen.
[0150] If the new wallpaper resource is a video resource, then Fig.10I As shown, under the premise of maintaining the new lock screen interface in full screen, the mobile phone can continue to play the animation effect of the new wallpaper layer until the last frame of the video resource, and then keep displaying the last frame of wallpaper and the new lock screen interface in full screen.
[0151] In order to more clearly understand the solution of switching from the wallpaper-through state to the full-screen state when the folding angle is increased, the system architecture of the folding screen device is first illustrated with an example, and then the solution is illustrated with an example in combination with the system architecture.
[0152] The software system of the folding screen device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the system structure of the folding screen device.
[0153] Fig.11 A schematic diagram of the system architecture of a folding screen device is shown.
[0154] like Fig.11 As shown, the folding screen device can adopt a layered architecture to divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software layers of the software structure are divided from top to bottom into: application layer, application framework (framework, FWK) layer, native layer (native), hardware abstraction layer (HAL) layer, kernel layer. The above software architecture runs on the hardware layer, and the hardware layer may include an image processor (GPU), a display screen, a HWC hardware module, a sensor, etc. Among them, the sensor can be used to collect the angle between the two display areas of the display screen. For example, the sensor can be a gyroscope sensor, a gravity sensor and / or a magnetic sensor.
[0155] The application layer, referred to as the application layer, can include a series of applications and APKs, such as theme setting modules, wallpaper applications, camera applications, system user interfaces (system UI), codec modules (MediaCodec.java), etc. When these applications and APKs are running, they can access the various service modules provided by the application framework layer through the application programming interface (API) and perform corresponding intelligent services. Among them, the theme setting module is used to provide users with various theme wallpapers and set theme wallpapers for the display screen according to user operations. The wallpaper application sets the display state according to the power-on status and folding angle, etc. The system user interface is a native application of the Android system, which is responsible for controlling the change of rounded corners, etc. The codec module is a class in the android.media framework, which provides a Java API to the application side for developers to use, so as to load video resources, configure animation properties, and play wallpaper animations, etc. It should be noted that when the user turns on the display screen, the wallpaper application will obtain the screen-on event, which is also called the thawing event, which is used to trigger the display screen to switch from the off state to the on state.
[0156] The application framework layer, also known as the framework layer, is used to support the operation of each application in the application layer. For example, the framework layer may include device state manager service, folding screen management service, window management service (window manager service, WMS), display management service (display managerservice, DMS) wallpaper service framework, animation management service, Surface (surface) control service, video encoding and decoding service (JMediaCodec.c++), etc. Among them, the device state management service is responsible for managing the device state, such as the change of folding angle. The folding screen management service is used to set the display state, such as wallpaper through state, full screen state and main screen state. WMS is used to allocate and manage window properties (such as hierarchy, size, display order, etc.) for applications, as well as manage the display and switching of lock screen windows and wallpaper windows, and manage the display of wallpaper upper elements (such as icons). Wallpaper management service is used to manage the operation and switching of wallpapers, and provides an interface for operating wallpapers to the outside world through the WallpaperManager class. When switching wallpapers through the WallpaperManagaer interface, the wallpaper management service will determine whether it is necessary to cancel the currently bound wallpaper service and start the wallpaper service of the new wallpaper. The animation management service is responsible for wallpaper through-effects and full-screen effects. The Surface control service is used to send layer rendering and synthesis tasks to SurfaceFlinger. The video codec service (JMediaCodec.C++) is a bridge for transmitting messages between the codec module (MediaCodec-java) of the application layer and the local codec module (MediaCodec.C++, ACodec.C++, OMXCllent.C++) of the local layer.
[0157] The local layer includes local codec modules (MediaCodec.C++, ACodec.C++, OMXCllent.C++), sensor services (SensorService) and SurfaceFlinger. Among them, SurfaceFlinger runs in the system process and is mainly responsible for allocating graphics buffers, synthesizing graphics buffers and managing vertical synchronization (vertical synchronization, Vsync) signals. The Vsync signal is a periodic signal used to control the drawing, rendering and synthesis of layers.
[0158] It should be noted that the combination of the codec module (MediaCodec.java) of the application layer, the video codec service (JMediaCodec.C++) of the application framework layer, and the local codec module (MediaCodec.C++, ACodec.C++, OMXCllent.C++) of the local layer is called MediaCodec. MediaCodec is an audio and video codec tool provided by the Android system. It mainly encapsulates the upper layer interface and provides it to developers. The codec function is actually completed in the local layer service.
[0159] The hardware abstraction layer (HAL) is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware and hide the hardware interface details of a specific platform. For example, the hardware abstraction layer can include the hardware composer (HWC) and the display HAL. Among them, the HWC is a module for window synthesis and display, providing hardware support for the system drawing core.
[0160] The kernel layer is the layer between hardware and software. The kernel layer includes display drivers, sensor drivers, and GPU drivers.
[0161] It should be noted that Fig.11 The layers in the system architecture shown and the components contained in each layer do not constitute a specific limitation on the folding screen device. In other embodiments, the folding screen device may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in this application.
[0162] It is understandable that in order to implement the solution of displaying the through wallpaper in full screen in the embodiment of the present application, the folding screen device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments.
[0163] Based on the above Fig.11 The system architecture of the folding screen device shown in the figure is combined with the interaction flow diagram to explain in detail the specific interaction process between various functional structures in the process of implementing the solution of switching from the wallpaper through state to the full-screen state.
[0164] Fig.12 A flow chart of a method for displaying wallpaper in full screen when switching from wallpaper through state to full screen state is shown.
[0165] This method can be applied to foldable screen devices, such as Figure 1A-Figure 1C The external folding screen device shown.
[0166] like Fig.12 As shown, the method may include the following S1 to S20.
[0167] S1, when the folding screen device is in the folded state, the device state management service detects the change of the folding angle between the main screen area and the back screen area in real time.
[0168] S2, when the device state management service detects that the folding angle is greater than or equal to the first angle, the device state management service notifies the wallpaper application to switch from the wallpaper through state to the full screen state. Then, the wallpaper application notifies the folding screen management service to switch from the wallpaper through state to the full screen state.
[0169] Exemplarily, when the mobile phone is in the folded state, the mobile phone displays a frame of wallpaper in full screen and displays the lock screen interface on the main screen. If the user holds the mobile phone with both hands and gradually increases the folding angle between the main screen and the back screen, the mobile phone can detect the change of the folding angle in real time through the sensor. When the mobile phone detects that the folding angle is less than or equal to 30°, the display state of the mobile phone remains in the wallpaper through state. When the mobile phone detects that the folding angle is greater than 30°, the display state of the mobile phone switches from the wallpaper through state to the full screen state. In addition, the device state of the folding screen device switches from the folded state to the bracket state or the unfolded state.
[0170] S3, the folding screen management service sets the full-screen dynamic mode and notifies the WMS to enable full-screen animation.
[0171] S4, WMS notifies the Surface control service to set the display area to full screen.
[0172] For example, take the case where the width of the display screen is 2016 pixels and the height of the display screen is 2348 pixels. WMS can notify the Surface control service to set the display area to full screen through the setDisPlayPorjection(0,(0,0,2016,2348),(0,0,2016,2348)) function. The first parameter "0" in the function indicates that the rotation angle of the display screen is 0°, that is, the display screen is in a vertical display state and has not rotated. The second parameter (0,0,2016,2348) in the function indicates that in the second coordinate system, the pixel coordinates of the upper left corner of the projection area are (0,0), the width of the projection area is 2016 pixels, and the height is 2348 pixels. The third parameter (0,0,2016,2348) in the function indicates that in the first coordinate system, the pixel coordinates of the upper left corner of the display area are (0,0), the width of the display area is 2016 pixels, and the height is 2348 pixels. The first coordinate system is a coordinate system established with the pixel point at the upper left corner of the display screen as the origin (0, 0), the horizontal rightward along the width direction as the x-axis, and the vertical downward along the height direction as the y-axis; the second coordinate system is a coordinate system established with the pixel point at the upper left corner of the display area as the origin (0, 0), the horizontal rightward along the width direction as the x-axis, and the vertical downward along the height direction as the y-axis. Since the upper left corner of the display area is located at the same position as the upper left corner of the display screen, the first coordinate system and the second coordinate system are the same coordinate system. Through this function, it can be determined that the display screen, display area, and projection area are exactly the same.
[0173] S5, WMS notifies the Surface control service to move all layers to the main screen area.
[0174] All the above layers include: wallpaper layer, and other layers except wallpaper layer.
[0175] For example, WMS can move all layers to the main screen area through the setPosition(displayContent,getSurfaceControl(),928,0) function. The displayContent in this function is used to obtain all layers, the getSurfaceControl() in this function is used to control the movement of all layers, the parameter "928" in this function is used to indicate moving 928 pixels along the positive direction of the x-axis, and the parameter "0" in this function is used to indicate remaining unchanged in the y-axis direction. In this way, all layers are moved 928 pixels in the positive direction of the x-axis, so that the pixel coordinates of the upper left corner of each layer are updated to (928, 0).
[0176] S6, the WMS module notifies the Surface control service to shift the wallpaper layer to the left to the back screen area.
[0177] Exemplarily, WMS can offset the wallpaper layer to the left to the back screen area through the setPosition(getTopVisibleWallpaper(),-928,0) function. The getTopVisibleWallpaper() in the function is used to obtain the wallpaper layer, the parameter "-928" in the function is used to indicate moving 928 pixels in the negative direction of the x-axis, and the parameter "0" in the function is used to indicate remaining unchanged in the y-axis direction. In this way, the wallpaper layer is moved 928 pixels in the negative direction of the x-axis, and the pixel coordinates of the upper left corner of the wallpaper layer are updated to (0, 0), while the pixel coordinates of the upper left corners of other layers remain (928, 0).
[0178] S7, the folding screen management service notifies WMS to execute the full-screen animation through the configChange() function.
[0179] In addition, the folding screen management service can also notify WMS to switch the logical screen from the main screen area to the full screen, thereby supporting full-screen response to user operations.
[0180] S8, WMS notifies the screen rotation animation module in the animation management service to create a new animation for the wallpaper penetration state.
[0181] The screen rotation animation module determines whether a new animation can be created. If the screen rotation animation module determines that a new animation cannot be created, the following S9 is executed. If the screen rotation animation module determines that a new animation can be created, the following S10 is executed.
[0182] S9: The screen rotation animation module returns a response message to the folding screen management service indicating that a new animation cannot be created.
[0183] S10, the screen rotation animation module notifies the outer folding screen animation module to create a new animation.
[0184] It should be noted that the screen rotation animation module is a native animation module of the Android system and does not have the ability to play full-screen animation effects. Therefore, the screen rotation animation module can call the external folding screen animation module to create a new animation. Among them, the external folding screen animation module is a subclass of the screen rotation animation module.
[0185] In addition, WMS will also notify the screen rotation animation module to dismiss the original animation.
[0186] S11, the outer folding screen animation module creates full-screen screenshots.
[0187] Among them, the above full-screen screenshot is a screenshot of the interface content currently displayed on the display screen.
[0188] The resolution of the full-screen screenshot is equal to the resolution of the display. Fig. 10D As shown, the width of the full-screen screenshot and the display screen are both 2016 pixels, and the height of the full-screen screenshot and the display screen are both 2348 pixels.
[0189] S12, the outer folding screen animation module notifies the Surface control service to shift the full-screen screenshot to the left to the back screen area.
[0190] Exemplarily, the outer folding screen animation module can set the display position for the full-screen screenshot through the setPosition(mScreenShotLayer,-928,0) function. The width of the full-screen screenshot is 2016 pixels, the height of the full-screen screenshot is 2348 pixels, and the initial position of the upper left corner pixel coordinates of the full-screen screenshot is (928, 0). The full-screen screenshot cannot cover the back screen. The full-screen screenshot is moved 928 pixels to the left through the above function. The coordinates of the upper left corner pixel of the full-screen screenshot are updated to (0, 0). Since the new wallpaper layer and the new other layers have not been drawn yet, the moved full-screen screenshot can be sent to the display screen. At this moment, the user can see the full-screen screenshot displayed in full screen.
[0191] S13, the outer folding screen animation module notifies the animation implementation module in the animation management service to create a new animation.
[0192] S14, the screen rotation animation module notifies the outer folding screen animation module to start playing the animation.
[0193] S15, the outer folding screen animation module notifies the animation implementation module to start playing the animation.
[0194] S16, the animation implementation module uses an interpolator to calculate the movement speed of the new other layer and the fade-out speed of the full-screen screenshot, and moves the new other layer to the left according to the movement speed of the new other layer, and gradually reduces the Alpha value of the full-screen screenshot according to the fade-out speed of the full-screen screenshot.
[0195] The above-mentioned “moving speed of the new other layers” and “fading-out speed of the full-screen screenshot” may be equal, that is, when all the new other layers are moved into the display screen, the Alpha of the full-screen screenshot is 0.
[0196] S17, when all other new layers are moved to the display screen and the Alpha value of the full-screen screenshot is equal to 0, the outer folding screen animation module determines that the animation ends and notifies the folding screen management service that the animation ends (OnAnimationEnd).
[0197] S18, the outer folding screen animation module deletes the full-screen screenshot and clears the animation.
[0198] S19, the outer folding screen animation module notifies the Surface control service to set the display area to full screen.
[0199] S20, the folding screen management service notifies the surface control service to set the projection area of all layers to full screen.
[0200] After the dynamic effect of the wallpaper is ended, the folding screen management service can reset the display area through S19-S20. For example, the folding screen management service can set the display area to full screen through the setDisPlayPorjection(0,(0,0,2016,2348),(0,0,2016,2348)) function, and set the projection area of all layers to full screen through the setPosition(displayContent.getSurfaceControl(),0,0) function and the setPosition(getTopVisibleWallpaper().getSurfaceControl(),0,0) function. For the specific implementation of these three functions, please refer to the description of the above embodiments, which will not be repeated here.
[0201] It should be noted that the above embodiment is illustrated by taking the example of shifting other layers to the left to the back screen area based on the sliding door effect, which does not limit the present application. In actual implementation, other layers can be directly set to full-screen display. In addition, full-screen screenshots can also use sliding door effects. For example, the mobile phone can first cover the full-screen screenshot above the new wallpaper layer and the new other layers. Then, while the position of the new wallpaper layer remains unchanged, the full-screen screenshot can be gradually moved to the left side of the display screen at a first speed, and the new other layers can be moved to the left side of the display screen at a second speed. Among them, the first speed is greater than or equal to the second speed.
[0202] In addition, the above S1 to S20 provide a detailed description of the specific implementation method of the method for displaying wallpaper in full screen when switching from the wallpaper through state to the full screen state. It should be understood that the specific implementation method of the method for displaying wallpaper in full screen when switching from the full screen state to the wallpaper through state is similar and will not be repeated here.
[0203] In the above-mentioned method of displaying a through wallpaper in full screen provided by the present application, when the folding screen device is in a folded state and the display screen is powered off, if the user wants to use the folding screen device, the user can press the power button set on the side frame of the folding screen device, so that the folding screen device is powered on in full screen, and a complete through wallpaper is displayed on the main screen and the back screen, and other layers are displayed on the main screen. When the folding screen device switches from a folded state to an unfolded state, the through wallpaper is displayed in full screen on the main screen and the back screen, and the lock screen interface is expanded from the main screen to the full screen. In this way, the main screen and the back screen are displayed in coordination to create a cool wallpaper mode, which improves the user experience.
[0204] For example, Fig.13A schematic diagram of the hardware structure of a folding screen device is shown.
[0205] like Fig.13 As shown, the folding screen device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, etc.
[0206] The processor 110 may include one or more processing units. For example, the processor 110 may include a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an image signal processor (ISP), etc.
[0207] GPU, also known as display core, visual processor or display chip, is a microprocessor for graphics and image processing. GPU connects display screen 194, AP and CPU. GPU can be used to perform complex mathematical and geometric calculations, floating-point operations, parallel calculations, and can also be used for graphics rendering. GPU reduces the graphics card's dependence on the CPU, especially when processing 3D graphics. GPU uses core technologies such as cubic environment material mapping and vertex blending, so GPU performs some of the work originally done by the CPU.
[0208] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the folding screen device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application (application, APP) required for at least one function, such as an album application, etc. The data storage area can store configuration files of each APP, as well as data created during the use of the folding screen device 100.
[0209] The display screen 194 may include a display panel for displaying images and videos, etc. For example, wallpaper, desktop, etc. In the present application, the display screen 194 may include at least two display areas, such as a main screen area and a back screen area.
[0210] The sensor module 180 can be used to collect the folding angle between the two display areas and report it to the processor 110. The processor 110 can determine that the device state has changed and switch to the display state corresponding to the device state. For example, when the sensor module 180 collects that the folding angle switches from 0° to 180° and reports it to the processor 110, the processor 110 can determine that the device state switches from the folded state to the unfolded state according to the change in the folding angle, and switches the display state from the wallpaper through state to the full screen state.
[0211] In an embodiment of the present application, the display screen 194 may include a main screen area and a back screen area. When the folding screen device is in a folded state, if the user's screen light operation is received, the processor 110 controls the display screen 194 to power on in full screen, and controls the display of a complete through wallpaper in the main screen area and the back screen area, and controls the superposition of other layers such as the status bar and the unlocking interface on the wallpaper in the main screen area. In addition, when the folding screen device switches from a folded state to an unfolded state, the processor 110 controls the display screen 194 to display the through wallpaper and other layers in full screen on the main screen and the back screen. In this way, the main screen and the back screen are displayed in coordination to create a cool wallpaper mode, which improves the user experience. Please refer to the specific description of the above embodiment, which will not be repeated here.
[0212] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer-readable storage medium is run on a folding screen device, the folding screen device executes the method shown in the above embodiment. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that contains one or more servers that can be integrated with the medium. The available medium can be a magnetic medium, an optical medium, a semiconductor medium, etc.
[0213] An embodiment of the present application also provides a computer program product, which includes a computer program code. When the computer program code runs on a folding screen device, the folding screen device executes the methods in the above embodiments.
[0214] The embodiment of the present application further provides a chip, which is coupled to a memory and is used to read and execute computer programs or instructions stored in the memory to execute the methods in the above embodiments. The chip can be a general-purpose processor or a dedicated processor.
[0215] The folding screen device, computer-readable storage medium, computer program product and chip provided in the embodiments of the present application are all used to execute the methods provided in the above embodiments. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects corresponding to the methods provided above, and will not be repeated here.
[0216] In the description of this application, " / " means or, for example, A / B can mean A or B. In the description of this application, "and / or" is just a way to describe the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0217] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects. For example, a first operation and a second operation are used to distinguish different operations, rather than to describe a specific order of operations. In the embodiments of this application, "plurality" refers to two or more.
[0218] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0219] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A wallpaper full-screen display method, characterized in that: The method is applied to a folding screen device, wherein the folding screen device is provided with a display screen, wherein the display screen includes a main screen area and a back screen area; the method includes: When the angle between the main screen area and the back screen area is a first folding angle and the display screen is turned off, receiving a first operation from the user; In response to the first operation, lighting up the main screen area and the back screen area, displaying a first wallpaper in the main screen area and the back screen area, and displaying a first lock screen interface in the main screen area; receiving a second operation of the user adjusting the angle between the main screen area and the back screen area to a second folding angle, wherein the second folding angle is greater than the first folding angle; In response to the second operation, a second wallpaper is displayed in the main screen area and the back screen area, and a second lock screen interface is displayed in the main screen area and the back screen area.
2. The method according to claim 1, characterized in that After displaying the first wallpaper in the main screen area and the back screen area, and displaying the first lock screen interface in the main screen area, the method further includes: receiving a third operation of the user in the back screen area, keeping displaying the first wallpaper in the main screen area and the back screen area, and keeping displaying the first lock screen interface in the main screen area; A fourth operation of the user in the main screen area is received, the back screen area is turned off, and a first non-lock screen interface is displayed in the main screen area.
3. The method according to claim 1, characterized in that After displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area, the method further includes: A fifth operation of the user in the main screen area or the back screen area is received, and a second non-lock screen interface is displayed in the main screen area and the back screen area.
4. The method according to claim 1, characterized in that: After displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area, the method further includes: receiving a sixth operation of the user adjusting the angle between the main screen area and the back screen area to a third folding angle, wherein the third folding angle is smaller than the second folding angle; In response to the sixth operation, a first wallpaper is displayed in the main screen area and the back screen area, and a first lock screen interface is displayed in the main screen area.
5. The method according to any one of claims 1 to 4, characterized in that The displaying of the second wallpaper in the main screen area and the back screen area, and the displaying of the second lock screen interface in the main screen area and the back screen area, comprises: At a first time point, displaying a first full-screen screenshot in the main screen area and the back screen area; At a second time point, the second wallpaper and the second lock screen interface covered by the second full-screen screenshot are displayed in the main screen area and the back screen area, and the transparency of the second full-screen screenshot is greater than the transparency of the first full-screen screenshot; At a third time point, the second wallpaper and the second lock screen interface covered by the third full-screen screenshot are displayed in the main screen area and the back screen area, and the transparency of the third full-screen screenshot is greater than the transparency of the second full-screen screenshot; At a fourth time point, the second wallpaper and the second lock screen interface that are not covered by the full-screen screenshot are displayed in the main screen area and the back screen area; Among them, the first full-screen screenshot, the second full-screen screenshot and the third full-screen screenshot are screenshots corresponding to the first wallpaper and the first lock screen interface.
6. The method according to claim 5, characterized in that The method of displaying the second wallpaper and the second lock screen interface covered by the second full-screen screenshot in the main screen area and the back screen area at the second time point includes: displaying the second wallpaper covered by the second full-screen screenshot in the main screen area and the back screen area at the second time point, and displaying the first content in the second lock screen interface covered by the second full-screen screenshot in the first area of the display screen; The step of displaying the second wallpaper and the second lock screen interface covered by the third full-screen screenshot in the main screen area and the back screen area at the third time point includes: displaying the second wallpaper covered by the third full-screen screenshot in the main screen area and the back screen area at the third time point, and displaying the second content in the second lock screen interface covered by the third full-screen screenshot in the second area of the display screen; The first area belongs to the main screen area, the second area belongs to the main screen area and the back screen area, and the second area includes the first area; and the second content includes the first content.
7. The method according to claim 5, characterized in that After receiving a second operation of adjusting the angle between the main screen area and the back screen area to a second folding angle by the user, and before the first time point, the method further includes: The display area and the projection area are set to be the entire area of the display screen, wherein the display area refers to the area supporting the display of the projection image, and the projection area refers to the actual projection range of the projection image in the display area, and the projection image is composed of multiple application layers; Moving the multiple application layers to the right of the main screen area; Moving the wallpaper layer among the multiple application layers to the left of the back screen area; Move the screenshot layer to the left of the back screen area; The wallpaper layer is used to draw the second wallpaper, and the screenshot layer is used to draw the first full-screen screenshot, the second full-screen screenshot, and the third full-screen screenshot.
8. The method according to claim 7, characterized in that Before setting the display area and the projection area to the entire area of the display screen, the method further includes: establishing a coordinate system with the upper left corner of the display screen as the origin, with the horizontal rightward direction along the width direction of the display screen as the first coordinate axis, and with the vertical downward direction along the height direction of the display screen as the second coordinate axis; The moving the multiple application layers to the right to the main screen area comprises: moving the multiple application layers along the positive direction of the first coordinate axis by a first distance; The moving the wallpaper layer among the multiple application layers to the left to the back screen area comprises: moving the wallpaper layer by the first distance along the negative direction of the first coordinate axis; The moving the screenshot layer to the left to the back screen area comprises: moving the screenshot layer by the first distance along the negative direction of the first coordinate axis; The first distance is equal to the width of the back screen area.
9. The method according to any one of claims 1 to 8, characterized in that The width of the first wallpaper, the second wallpaper, and the second lock screen interface are all equal to the width of the display screen, and the height of the first wallpaper, the second wallpaper, and the second lock screen interface are all equal to the height of the display screen; the width of the first lock screen interface is equal to the width of the main screen area, and the height of the first lock screen interface is equal to the height of the display screen.
10. The method according to any one of claims 1 to 9, characterized in that The second wallpaper includes N frames of wallpaper, where N is an integer greater than or equal to 2; The displaying of the second wallpaper in the main screen area and the back screen area, and the displaying of the second lock screen interface in the main screen area and the back screen area, comprises: Starting from the first frame of the N frames of wallpaper, each frame of the N frames of wallpaper is played in sequence in the main screen area and the back screen area until the last frame of the N frames of wallpaper; During the process of playing each frame of the wallpaper, the second lock screen interface is kept displayed in the main screen area and the back screen area; After the playing of the N frames of wallpaper is finished, the last frame of wallpaper and the second lock screen interface are kept displayed in the main screen area and the back screen area.
11. The method according to any one of claims 1 to 10, characterized in that After displaying the second wallpaper in the main screen area and the back screen area, and displaying the second lock screen interface in the main screen area and the back screen area, the method further includes: if no unlocking operation by the user is received within a preset time period, turning off the main screen area and the back screen area.
12. The method according to any one of claims 1 to 11, characterized in that The first folding angle is less than or equal to a preset angle, and the second folding angle is greater than the preset angle.
13. The method according to claim 12, characterized in that When the angle between the main screen area and the back screen area is less than or equal to the preset angle, the folding screen device is in a folded state, and the main screen area and the back screen area are in opposite directions; When the angle between the main screen area and the back screen area is greater than the preset angle, the folding screen device is in an unfolded state, and the main screen area and the back screen area are oriented in the same direction.
14. A folding screen device, characterized in that: comprising a processor, and a memory coupled to the processor; Among them, instructions are stored in the memory, and the processor calls the instructions so that the folding screen device executes the wallpaper full-screen display method as described in any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a folding screen device, the folding screen device executes the wallpaper full-screen display method as described in any one of claims 1 to 13.