Interface display processing method, device, electronic device and storage medium

By detecting the shape of the folding screen and adjusting the application interface layout according to the display parameters, the problem that the application interface cannot be adapted when the shape of the folding screen mobile phone changes, achieving seamless switching in different forms and improving user experience.

CN112817675BActive Publication Date: 2025-02-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110087780.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-22
Publication Date
2025-02-18
Estimated Expiration
2041-01-22

AI Technical Summary

Technical Problem

When the folding screen phone changes in shape, the application interface cannot adapt to the new screen size, resulting in poor display effect, unable to cover or incomplete display.

Method used

By detecting the shape of the folded screen, determining the target display area, and obtaining the adapted application interface layout according to the display parameters, ensuring that the interface can adapt to the current display area under different shapes.

Benefits of technology

It realizes seamless switching of the same display content under different forms, improves the user experience and avoids the problem of poor display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112817675B_ABST
    Figure CN112817675B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for processing interface display, which is applied to an electronic device including a folding screen, and the method includes: based on the form of the folding screen of the electronic device, determining the target display area in the form; determining the display parameters of the target display area; based on the display parameters, obtaining the interface layout corresponding to the display parameters in the application interface of the application to be displayed; based on the interface layout corresponding to the display parameters, displaying the application interface in the target display area. In this way, the application interface can automatically adapt to the target display area in the current form of the folding screen to an application interface suitable for the display parameters of the target display area, so that the display effect of the application interface can adapt to the current display area, thereby improving the display effect of the electronic device. The present disclosure also provides an interface display processing device, an electronic device, and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a method, device, electronic device and storage medium for processing interface display. Background Art

[0002] With the continuous development and progress of science and technology, people's pursuit of screens of electronic devices is no longer a single screen display, and foldable screen mobile phones have come into being. In the related art, when the multiple screens of a foldable screen mobile phone are composed of different display area sizes, the application interface corresponding to the display area size is fixedly adapted. When the form of the foldable screen mobile phone changes, for example, when the foldable screen mobile phone changes from a small screen display to a large screen display, the application interface fixed on the small screen cannot be adapted to the large screen, so that the application interface cannot cover the entire display area when displayed on the large screen, or the application interface fixed on the large screen cannot be adapted to the small screen, so that the application interface cannot be fully displayed when displayed on the small screen. This phenomenon often occurs, resulting in the problem of poor display effect when the foldable screen mobile phone switches the display of the same display content in different forms. Summary of the invention

[0003] Embodiments of the present application provide a method, device, electronic device, and storage medium for processing interface display.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for processing an interface display is provided, the method comprising:

[0005] Based on the form of the folding screen of the electronic device, determining a target display area in the form;

[0006] Determining display parameters of the target display area;

[0007] Based on the display parameters, obtaining an interface layout corresponding to the display parameters in an application interface of the application to be displayed;

[0008] Based on the interface layout corresponding to the display parameters, the application interface is displayed in the target display area.

[0009] Optionally, the folding screen includes at least: a first display area and a second display area adjacent to the first display area;

[0010] The form of the folding screen of the electronic device includes: an unfolded form;

[0011] The determining, based on the form of the folding screen of the electronic device, a target display area in the form includes:

[0012] Based on the unfolded state of the folding screen of the electronic device, it is determined that the target display area in the unfolded state is the first display area and the second display area.

[0013] Optionally, determining the form of the folding screen of the electronic device includes:

[0014] If the angle between the first display area and the second display area is greater than or equal to a first angle threshold, it is determined that the form of the folding screen of the electronic device is the unfolded form.

[0015] Optionally, the form of the folding screen of the electronic device further includes: a folding form;

[0016] The determining, based on the form of the folding screen of the electronic device, a target display area in the form includes:

[0017] Based on the folding form of the folding screen of the electronic device, determine that the target display area in the folding form is the first display area or the second display area.

[0018] Optionally, determining the form of the folding screen of the electronic device includes:

[0019] If the angle between the first display area and the second display area is less than a second angle threshold, it is determined that the form of the folding screen of the electronic device is the folding form.

[0020] Optionally, determining the display parameters of the target display area includes:

[0021] Based on the size of the target display area, a resolution of the target display area is determined.

[0022] Optionally, after determining the target display area in the state, the method further includes:

[0023] The touch capacitors in the target display area are activated, and the touch capacitors outside the target display area are turned off.

[0024] According to a second aspect of an embodiment of the present disclosure, a device for processing an interface display is provided, which is applied to an electronic device including a folding screen, and the device includes:

[0025] A first determination module, configured to determine a target display area in a state based on a state of the folding screen of the electronic device;

[0026] A second determining module, used to determine the display parameters of the target display area;

[0027] An acquisition module, configured to acquire, based on the display parameters, an interface layout corresponding to the display parameters in an application interface of the application to be displayed;

[0028] A display module is used to display the application interface in the target display area based on the interface layout corresponding to the display parameters.

[0029] Optionally, the folding screen includes at least: a first display area and a second display area adjacent to the first display area;

[0030] The form of the folding screen of the electronic device includes: an unfolded form;

[0031] The first determination module is further used to determine, based on the unfolded state of the folding screen of the electronic device, that the target display area in the unfolded state is the first display area and the second display area.

[0032] Optionally, the device further comprises:

[0033] The third determination module is used to determine that the form of the folding screen of the electronic device is the unfolded form if the angle between the first display area and the second display area is greater than or equal to a first angle threshold.

[0034] Optionally, the form of the folding screen of the electronic device further includes: a folding form;

[0035] The first determination module is further used to determine, based on the folding form of the folding screen of the electronic device, whether the target display area in the folded form is the first display area or the second display area.

[0036] Optionally, the device further comprises:

[0037] The fourth determination module is used to determine that the form of the folding screen of the electronic device is a folded form if the angle between the first display area and the second display area is less than a second angle threshold.

[0038] Optionally, the second determining module is further configured to:

[0039] Based on the size of the target display area, a resolution of the target display area is determined.

[0040] Optionally, the device further comprises:

[0041] The touch capacitor processing module is used to activate the touch capacitor in the target display area and turn off the touch capacitor outside the target display area after determining the target display area in the state.

[0042] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0043] processor;

[0044] a memory for storing processor-executable instructions;

[0045] The processor is configured to implement any of the method steps described above during execution.

[0046] According to a fourth aspect of an embodiment of the present disclosure, there is provided a non-temporary computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to implement any of the method steps described above.

[0047] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0048] In an embodiment of the present disclosure, a method for processing interface display is applied to an electronic device including a folding screen, and based on the form of the folding screen of the electronic device, a target display area in the form is determined; then the display parameters of the target display area are determined, so that the interface layout corresponding to the display parameters in the application interface of the application to be displayed can be obtained according to the display parameters; based on the interface layout corresponding to the display parameters, the application interface is displayed in the target display area. Since the interface layout corresponding to the display parameters of the current target display area is obtained, the application interface displayed based on the interface layout can adapt to the current target display area, so that the phenomenon of poor visual effects such as failure to cover or failure to display the full display due to the inability of the application interface to adapt to the current screen as described in the related art will not occur. In this way, the embodiment of the present disclosure can enable the folding screen to display the same display content with the display parameters adapted to the target display area in the current form when switching between different forms, which is beneficial to the user's viewing of the same display content in various forms and improves the user experience.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0051] Figure 1 is a flowchart of a method for processing interface display according to an exemplary embodiment;

[0052] Figure 2is a schematic diagram of an application scenario of a method for processing interface display according to an exemplary embodiment;

[0053] Figure 3 is a schematic diagram of another application scenario of a method for processing interface display according to an exemplary embodiment;

[0054] Figure 4 is a technical architecture diagram of an interface display processing according to an exemplary embodiment;

[0055] Figure 5 is a specific flow chart of a method for processing interface display according to an exemplary embodiment;

[0056] Figure 6 is a block diagram of a processing device for interface display according to an exemplary embodiment;

[0057] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0059] Figure 1 is a flowchart of a method for processing an interface display according to an exemplary embodiment. Figure 1 As shown, the method is applied to an electronic device including a folding screen, and the method includes the following steps:

[0060] Step 101: determining a target display area in a foldable screen of the electronic device based on the foldable screen of the electronic device;

[0061] Step 102: Determine display parameters of the target display area;

[0062] Step 103: Based on the display parameters, obtaining an interface layout corresponding to the display parameters in the application interface of the application to be displayed;

[0063] Step 104: Displaying the application interface in the target display area based on the interface layout corresponding to the display parameters.

[0064] Here, the electronic device includes: a mobile electronic device or a fixed electronic device. A mobile electronic device may be, for example, a mobile phone, a tablet computer, a laptop computer, or a wearable device, etc. A wearable device may be a smart watch or a smart bracelet, etc. A fixed electronic device may be a desktop computer or a smart TV, etc. In short, the electronic device described in this embodiment refers to an electronic device with a folding screen.

[0065] Here, the foldable screen is a foldable display screen. In addition to the display functions of a traditional display screen, the foldable screen also has a foldable feature. Here, the form of the foldable screen of the electronic device refers to the different screen states of the foldable screen. Exemplarily, the form of the foldable screen can at least include: a folded form and an unfolded form. When the foldable screen is in the folded form, the space occupied by the electronic device can be reduced; when the foldable screen is in the unfolded form, a larger display screen area can be provided to the user.

[0066] Optionally, in different screen states, the display area available for display is different. Generally, when the foldable screen is in the folded state, the display area available for display is smaller, and when the foldable screen is in the unfolded state, the display area available for display is larger. Of course, the state of the foldable screen may also include: a semi-folded state or a semi-expanded state, etc., without any limitation here.

[0067] It should be noted that the foldable screen can be composed of at least two physical screens that are physically separated from each other, or can be composed of at least two different display areas that can be bent. In short, any screen that can be bent to form at least two different display areas that can display independently belongs to the category of the foldable screen.

[0068] For example, the foldable screen can be designed to fold left and right or up and down, and can also be designed as an outward folding display screen or an inward folding display screen, or a combination of an outward folding display screen and an inward folding display screen. It should be supplemented that the sizes of the at least two display areas formed by folding the foldable screen can be the same or different.

[0069] In some exemplary embodiments, see Figure 2 , Figure 2 is a schematic diagram of an application scenario of a method for processing interface display according to an exemplary embodiment. Figure 2 As shown, the folding screen 20 is designed to be folded left and right, and can be folded outward to form two outward folding display screens, specifically, a first display area 201 and a second display area 202 formed by folding outward. Figure 3 , Figure 3 is a schematic diagram of an application scenario of a method for processing interface display according to an exemplary embodiment. Figure 3As shown, the folding screen 20 can be designed to be folded left and right and up and down, and can be folded to form three display screens, namely the third display area 203, the fourth display area 204 and the fifth display area 205, wherein the fourth display area 204 and the fifth display area 205 are in a folded relationship, and the display area formed by the third display area 203 and the fourth display area 204 and the fifth display area 205 is in a folded relationship. In short, the folding screen of the electronic device described in this embodiment may include folding to form multiple identical and / or different display areas, so that users can use different display areas for display according to different needs. For example, the user can fold the folding screen and only allow the screen at the first preset position after folding to be displayed, for example, only allow the screen located on the outer surface to be displayed; or the folding screen can be unfolded and allow the screen at the second preset position after unfolding to be displayed. For example, the screen in the middle area after unfolding is allowed to be displayed. In short, different forms of the folding screen correspond to different target display areas.

[0070] In some embodiments, the method further includes: setting a correspondence between the form of the folding screen of the electronic device and the target display area; and determining the target display area in the form based on the form of the folding screen of the electronic device includes:

[0071] Based on the form of the folding screen of the electronic device and in accordance with the correspondence between the form and the target display area, the target display area in the form is determined.

[0072] In this embodiment, by introducing the correspondence between the form of the folding screen and the target display area, the target display area can be determined directly based on the form of the folding screen, so that the target display area in different forms can be obtained based on this simple logical judgment.

[0073] In some embodiments, the determining, based on the form of the folding screen of the electronic device, a target display area in the form includes:

[0074] Determining an exposed display area based on the form of the foldable screen of the electronic device;

[0075] According to the revealed display area, a part or all of the revealed display area is determined as the target display area.

[0076] For example, please refer to Figure 2 When the folding screen is in a folded state, the exposed display area is determined to be the first display area 201; based on the exposed display area, the entire display area of ​​the first display area 201 is determined to be the target display area. Alternatively, refer to Figure 3When the folding screen is in the unfolded state, the exposed display areas are determined to be the third display area 203, the fourth display area 204, and the fifth display area 205; then, based on the exposed display areas, the third display area 203, the fourth display area 204, and the fifth display area 205 are determined to be the target display areas, or the fourth display area 204 and the fifth display area 205 are determined to be the target display areas.

[0077] Thus, in this embodiment, the target display area can be automatically determined according to the display area exposed in the state, without the need for the user to set it in advance, which can simplify the user operation. In addition, since the target display area is determined by the display area currently exposed, it can reduce the occurrence of the phenomenon that the user cannot see the display content because the unexposed display area is determined as the target display area.

[0078] Exemplarily, whether the corresponding display area is exposed can be determined through the detection results of the light sensors installed in each display area.

[0079] Please refer to Figure 2 In some embodiments, the light sensor is installed below the display panel of the first display area 201 and / or the second display area 202, and light can penetrate the display panel to irradiate the light sensor, thereby being detected by the light sensor. Specifically, the first display area 201 corresponds to the first light sensor, and the second display area 202 corresponds to the second light sensor, that is, different display areas have different corresponding light sensor identifiers.

[0080] In some embodiments, determining the display area to be exposed may further include:

[0081] Monitor the detection results of each light sensor;

[0082] Obtaining the identification of the corresponding light sensor indicating that the detection result detected the light brightness greater than the brightness threshold;

[0083] Based on the obtained identifier of the light sensor, a display area corresponding to the obtained identifier of the light sensor is determined as the revealed display area.

[0084] Here, the brightness threshold can be determined according to different time periods, for example, during the daytime, the brightness threshold can be set larger, and during the nighttime, the brightness threshold can be set smaller. Of course, the brightness threshold can also be determined according to the environment in which the electronic device is located, for example, if it is indoors, the brightness threshold can be set smaller, and if it is outdoors, the brightness threshold can be set larger.

[0085] In some embodiments, please refer to Figure 2, the folding screen 20 at least includes: a first display area 201 and a second display area 202 adjacent to the first display area 201;

[0086] The configuration of the folding screen 20 of the electronic device includes: an unfolded configuration;

[0087] The determining of the target display area in the state based on the state of the folding screen 20 of the electronic device includes:

[0088] Based on the unfolded state of the folding screen 20 of the electronic device, it is determined that the target display area in the unfolded state is the first display area 201 or the second display area 202.

[0089] In the present embodiment, when the folding screen 20 is in the unfolded form, the target display area of ​​the folding screen is directly determined to be the first display area 201 and the second display area 202. In this way, the target display area in the corresponding unfolded form can be obtained directly based on the unfolded form of the folding screen, thereby providing a basis for providing an application interface adapted to the display of the target display area based on the display parameters of the target display area, and further providing a basis for realizing seamless switching of display content between the target display areas of the folding screen as the form changes.

[0090] It should be supplemented that, taking the example of a foldable screen that can be folded to form a first display area and a second display area, the method may further include detecting the angle between the first display area and the second display area by sensors installed in the first display area and the second display area: if the angle between the first display area and the second display area is greater than or equal to a first angle threshold, determining that the form of the foldable screen of the electronic device is the unfolded form.

[0091] In some other embodiments, please refer to Figure 2 , the form of the folding screen 20 of the electronic device may also include: a folded form;

[0092] The determining of the target display area in the state based on the state of the folding screen 20 of the electronic device may further include:

[0093] Based on the folding state of the folding screen 20 of the electronic device, it is determined that the target display area in the folding state is the first display area or the second display area.

[0094] In the present embodiment, when the folding screen 20 is in a folded form, the target display area of ​​the folding screen 20 is directly determined to be the first display area 201 or the second display area 202. In this way, the target display area in the corresponding folded form can be obtained directly based on the folding form of the folding screen, thereby providing a basis for providing an application interface adapted to the target display area based on the display parameters of the target display area, and further providing a basis for realizing seamless switching of display content between the target display areas of the folding screen as the form of the folding screen changes.

[0095] It should be added that, still taking the example that the foldable screen can be folded to form the first display area and the second display area, the angle between the first display area and the second display area is detected by sensors installed in the first display area and the second display area, and the method may further include:

[0096] If the angle between the first display area and the second display area is less than a second angle threshold, it is determined that the form of the folding screen of the electronic device is the folding form.

[0097] Here, the second angle threshold and the first angle threshold can be the same. When the second angle threshold is the same as the first angle threshold, for example, both are 90 degrees, that is, when the angle between the first display area and the second display area is within 90 degrees, it is determined that the folding screen of the electronic device is in a folded form, and when it is more than 90 degrees, it is determined that the folding screen of the electronic device is in an unfolded form.

[0098] In other embodiments, the second angle threshold is less than the first angle threshold. It can be understood that when the angle between the first display area and the second display area is between the first angle threshold and the second angle threshold, there is randomness in the user's changes to the different forms of the folding screen. If the form of the folding screen is determined at this time, there is a high possibility of misjudgment. Based on this, by setting the second angle threshold to be less than the first angle threshold, a buffer space is left when judging the form of the folding screen, that is, when the angle between the first display area and the second display area is between the first angle threshold and the second angle threshold, it is impossible to determine whether the folding screen of the electronic device is in a folded form or in an unfolded form. In this way, since the form of the folding screen of the electronic device cannot be determined within this interval, the target display area cannot be given, and the display parameters of the target display area cannot be given. Therefore, by setting the second angle threshold to be less than the first angle threshold, the energy consumption of the electronic device can be reduced. At the same time, not determining the target display area between the angle areas can also reduce the phenomenon of erroneous operation in the target display area caused by determining the target display area.

[0099] Here, the display parameters of the target display area may include: resolution or color gamut, etc.

[0100] The resolution refers to a representation of the vertical and horizontal pixels in the target display area. For example, a resolution of 1920*1080 means that the target display area has 1920 pixels horizontally and 1080 pixels vertically. In this embodiment, the resolution of the target display area can be understood as the maximum resolution that the target display area can support. It is understandable that if the target display area is displayed at the maximum resolution that can be supported, the display resources of the target display area can be maximized, and the best display effect can be achieved in a limited display area.

[0101] It should be noted that the maximum resolution supported varies with the size of the display area. For example, the maximum resolution for a 14-inch display is 1024*768, the maximum resolution for a 15-inch display is 1280*1024, the maximum resolution for a 17-inch display is 1600*1280, and the maximum resolution for a 21-inch display is 1600*1280.

[0102] As an optional embodiment, the determining the display parameters of the target display area includes:

[0103] Based on the size of the target display area, a resolution of the target display area is determined.

[0104] It is understandable that the size of the display area is different, and the resolution adapted to the display area is also different. The larger the size of the display area, the higher the maximum resolution that can be supported; on the contrary, the smaller the size of the display area, the lower the maximum resolution that can be supported. That is, the size of the display area is positively correlated with the supported resolution.

[0105] The interface layout of the application interface may include: the size of the application interface, the size and / or position of the elements in the application interface. If an application interface with a larger resolution, that is, a larger application interface size, is displayed in a display area that is smaller than the size of the display area corresponding to the resolution, the application interface may not be fully displayed; and if an application interface with a smaller resolution, that is, a smaller application interface size, is displayed in a display area that is larger than the size of the display area corresponding to the resolution, the application interface may not be fully displayed. For example, if the application interface of an application on a mobile phone is displayed on a tablet computer, the displayed content will not be able to fill the entire tablet screen, and if the application interface of an application on a tablet computer is displayed on a mobile phone, the displayed content will not be fully displayed.

[0106] In this way, if the interface layout of the application interface can match the resolution of the display area displaying the application interface, the displayed application interface can be displayed more closely to the target display area, thereby improving the display effect of the application interface and enhancing the user viewing experience.

[0107] In this embodiment, the resolution of the target display area is determined based on the size of the target display area, and the display interface layout of the corresponding application interface is obtained with a resolution suitable for the size of the target display area, so that it is displayed in the target display area, thereby improving the user's viewing experience.

[0108] Color gamut is a method of encoding a color, or it can be the range of colors that can be displayed in a display area. There are several different standards for color gamut, such as NTSC color gamut, RGB color gamut, etc. Usually, a certain point of the three primary colors of red, green, and blue forms a triangle, and the percentage of the number of colors that can be displayed in the display area can be seen.

[0109] In this embodiment, the color gamut may include a color gamut range that can be displayed in the target display area. It is understandable that different target display areas have different displayable color gamut ranges. If the color gamut range of the application interface can match the displayable color gamut range that the display area of ​​the application interface can support, the displayed application interface can be closer to the originally developed application interface. For example, taking a photography application as an example, the application interface of the photography application can be, for example, a picture. If the displayable color gamut range that the display area that displays the picture can support matches the color gamut range of the picture, the picture can be better displayed and the display effect of the picture can be improved. Based on this, this embodiment obtains the application interface of the application program that matches the color gamut of the target display area according to the color gamut of the target display area, which can also improve the display effect of the application interface and enhance the user's perception.

[0110] In some embodiments, the display parameters of the target display area can be set in advance, that is, the user can set the display parameters of the target display area in advance according to the needs. Specifically, the determination of the display parameters of the target display area includes: determining the display parameters currently set for the target display area. In this way, the electronic device can obtain the interface layout corresponding to the display parameters in the application interface of the application to be displayed based on the display parameters currently set for the target display area, and display the application interface in the target display area based on the interface layout corresponding to the display parameters. In this way, the display of the application interface can be adapted to the currently set display parameters, that is, adapted to the target display area.

[0111] It should be added that since the electronic device with a foldable screen can be folded and unfolded, different types of electronic devices can be constructed based on different forms. For example, when the foldable screen is folded, please refer to Figure 2 , the electronic device can be used as a mobile phone, with the first display area 201 as the display area of ​​the mobile phone, and when the folding screen is unfolded, the electronic device can be used as a tablet computer, with the first display area 201 and the second display area 202 as the display areas of the tablet computer.

[0112] Different types of electronic devices have different application installation packages for the same application in different types of electronic devices, so that the application interface of the application can adapt to the display of different types of electronic devices. For example, the program installation package of the application installed in the mobile phone is different from that of the application installed in the tablet computer. In other words, facing the display parameters of different target display areas, the application has different interface layouts. Here, the interface layout includes: the size of the interface, the size and / or position of the interface elements in the interface. When the currently opened application is an application adapted to the mobile phone, if you switch to the tablet computer usage mode at this time, for example, switch to the display in two display areas, the application interface of the current application will not be able to adapt to the current display area. That is, the application interface fixedly displayed on the small screen cannot be adapted to the large screen, and the application interface fixedly displayed on the large screen cannot be adapted to the small screen.

[0113] Based on this, this embodiment determines the target display area in the form based on the folding screen of the electronic device, and determines the display parameters of the target display area, and then obtains the interface layout corresponding to the display parameters in the application interface of the application to be displayed according to the display parameters, and displays the application interface in the target display area based on the interface layout corresponding to the display parameters, so that the displayed application interface can adapt to the current target display area, so that the multiple states of the folding screen, or when switching between multiple display areas, the same display content can also be seamlessly switched, which is beneficial for users to watch the same display content in various forms and improves the user experience of the electronic device.

[0114] In addition, in the present embodiment, by obtaining the corresponding target display area according to the form of the folding screen of the electronic device, and by using the display parameters of the target display area, the interface layout corresponding to the display parameters in the application interface of the application to be displayed is obtained, and the interface layout is displayed in the target display area. This eliminates the need to manually switch the application after the folding form of the folding screen changes, thereby improving the display processing efficiency of screen switching and further improving the performance of screen switching. Moreover, in the present embodiment, by obtaining the corresponding target display area according to the form of the folding screen of the electronic device, and by using the display parameters of the target display area, the interface layout corresponding to the display parameters in the application interface of the application to be displayed is obtained, and the interface layout is displayed in the target display area. This allows the interface layout of multiple display areas to be performed using a set of judgment logic.

[0115] In some other embodiments, after determining the target display area in the state, the method further includes:

[0116] The touch capacitors in the target display area are activated, and the touch capacitors outside the target display area are turned off.

[0117] In this embodiment, by turning off the touch capacitor outside the target display area, the phenomenon of user's mis-touch in the area outside the target display area is reduced, thereby improving the user experience.

[0118] Furthermore, the present disclosure also provides a specific embodiment to further understand the processing method of the interface display provided by the embodiment of the present disclosure.

[0119] Here, the folding screen can be composed of at least two physical screens that are physically separated from each other, for example, Figure 4 , Figure 4 is a technical architecture diagram of an interface display processing according to an exemplary embodiment. Figure 4 As shown, by constructing a virtual logical screen, the two physical screens are managed and integrated by using the display management module, the window management module, the window display management module, the window display module and the system service. That is, when two physical screens are needed for display, the two physical screens are integrated into one logical screen, and when only one of the physical screens is needed for display, the physical screen that needs to be displayed is used as one logical screen, thereby realizing the seamless switching of the corresponding physical screens under different screen forms of the folding screen to display the application interface of the application.

[0120] For example, see Figure 5 , Figure 5 is a specific flow chart of a method for processing an interface display according to an exemplary embodiment. Figure 5 As shown, the method may include:

[0121] Step 51: The display screen management module determines the physical screen to be displayed according to the form of the folding screen;

[0122] The physical screen to be displayed here can be understood as the target display area described in the above embodiment. Step 41 is equivalent to step 101 described in the above embodiment, that is, it is equivalent to determining the target display area in the form based on the form of the folding screen of the electronic device.

[0123] Step 52: The window management module determines display parameters of the target display area composed of the physical screens to be displayed according to the physical screens to be displayed;

[0124] The window management module here is mainly used to manage all windows of the electronic device, which is actually used to manage the display area of ​​the electronic device. This step 52 is equivalent to step 102 described in the above embodiment, that is, equivalent to determining the display parameters of the target display area. In fact, the target display area composed of the physical screens to be displayed can be identified as a logical screen.

[0125] Step 53: The window display management module obtains the interface layout corresponding to the display parameters from the server of the application program according to the display parameters of the target display area and draws the application interface;

[0126] This step 53 is equivalent to step 103 described in the above implementation, that is, equivalent to obtaining the interface layout corresponding to the display parameters in the application interface of the application to be displayed based on the display parameters.

[0127] Step 55: The window display module draws and renders the application interface according to the interface layout corresponding to the display parameters of the target display area;

[0128] Here, the window display module is mainly used to draw and render the window to be displayed. This step 45 is equivalent to step 104 described in the above embodiment, that is, equivalent to displaying the application interface in the target display area based on the interface layout corresponding to the display parameters.

[0129] Step 56: If the folding screen is in a folded state, the application interface is displayed on the first physical screen;

[0130] Here, the first physical screen may be the first display area described in the above embodiment. Step 46 may be understood as displaying the application interface in the first display area if the folding screen is in a folded form.

[0131] Step 57: If the foldable screen is in the unfolded state, the application interface is unfolded and displayed on the first physical screen and the second physical screen.

[0132] Here, the first physical screen may be the first display area described in the above embodiment, and the second physical screen may be the second display area described in the above embodiment. Step 57 may be understood as displaying the application interface in the first display area and the second display area if the folding screen is in the unfolded form.

[0133] In this embodiment, the display content of the two physical screens of the folding screen is converted by the logical screen during the folding process. That is, in the folded form, the display content is converted to two physical screens for display through the processing of the logical screen, and in the unfolded form, the display content is converted to one physical screen for display through the processing of the logical screen. When the same content is displayed on different physical screens, the same display content can be seamlessly switched in the two forms by re-rendering and drawing the content, and the best content display and user experience can be achieved.

[0134] Figure 6 is a block diagram of a processing device for interface display according to an exemplary embodiment. Figure 6 , the device is applied to an electronic device including a folding screen, and the device includes:

[0135] A first determining module 61, configured to determine a target display area in a state based on a state of the folding screen of the electronic device;

[0136] A second determination module 62, configured to determine display parameters of the target display area;

[0137] An acquisition module, configured to acquire, based on the display parameters, an interface layout corresponding to the display parameters in an application interface of the application to be displayed;

[0138] The display module 63 is configured to display the application interface in the target display area based on the interface layout corresponding to the display parameters.

[0139] In an optional embodiment, the folding screen includes at least: a first display area and a second display area adjacent to the first display area;

[0140] The form of the folding screen of the electronic device includes: an unfolded form;

[0141] The first determination module 61 is further used to determine, based on the unfolded state of the folding screen of the electronic device, that the target display area in the unfolded state is the first display area and the second display area.

[0142] In an optional embodiment, the device further comprises:

[0143] The third determination module is used to determine that the form of the folding screen of the electronic device is the unfolded form if the angle between the first display area and the second display area is greater than or equal to a first angle threshold.

[0144] In an optional embodiment, the form of the folding screen of the electronic device further includes: a folded form;

[0145] The first determination module 61 is further used to determine, based on the folding form of the folding screen of the electronic device, whether the target display area in the folded form is the first display area or the second display area.

[0146] In an optional embodiment, the device further includes:

[0147] The fourth determination module is used to determine that the form of the folding screen of the electronic device is the folding form if the angle between the first display area and the second display area is less than a second angle threshold.

[0148] In an optional embodiment, the second determining module 62 is further configured to:

[0149] Based on the size of the target display area, a resolution of the target display area is determined.

[0150] In an optional embodiment, the device further comprises:

[0151] The touch capacitor processing module is used to activate the touch capacitor in the target display area and turn off the touch capacitor outside the target display area after determining the target display area in the state.

[0152] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0153] Figure 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0154] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0155] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0156] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0157] The power component 706 provides power to the various components of the electronic device 700. The power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.

[0158] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0159] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0160] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0161] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0162] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0163] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0164] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0165] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the screen display control method described in the above embodiments.

[0166] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0167] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for processing interface display, characterized in that: Applicable to an electronic device including a folding screen, the folding screen including at least: a first display area and a second display area adjacent to the first display area; the method includes: Based on the form of the folding screen of the electronic device, determining a target display area in the form; Determining display parameters of the target display area; Based on the display parameters, obtaining an interface layout corresponding to the display parameters in an application interface of the application to be displayed; Based on the interface layout corresponding to the display parameters, displaying the application interface in the target display area; The first display area corresponds to a first light sensor, and the second display area corresponds to a second light sensor; The determining, based on the form of the folding screen of the electronic device, a target display area in the form includes: Based on the shape of the folding screen of the electronic device, monitoring the detection results of each light sensor; Obtaining the identifier of the light sensor corresponding to the light brightness greater than the brightness threshold indicated by the detection result; Determining, based on the identification of the light sensor, an exposed display area in the present state; Based on the revealed display area, the target display area is determined.

2. The method according to claim 1, characterized in that The form of the folding screen of the electronic device includes: an unfolded form; The determining, based on the form of the folding screen of the electronic device, a target display area in the form includes: Based on the unfolded state of the folding screen of the electronic device, it is determined that the target display area in the unfolded state is the first display area and the second display area.

3. The method according to claim 2, characterized in that The method further comprises: If the angle between the first display area and the second display area is greater than or equal to a first angle threshold, it is determined that the form of the folding screen of the electronic device is the unfolded form.

4. The method according to claim 2, characterized in that: The form of the folding screen of the electronic device also includes: a folded form; The determining, based on the form of the folding screen of the electronic device, a target display area in the form includes: Based on the folding form of the folding screen of the electronic device, determine that the target display area in the folding form is the first display area or the second display area.

5. The method according to claim 4, characterized in that The method further comprises: If the angle between the first display area and the second display area is less than a second angle threshold, it is determined that the form of the folding screen of the electronic device is the folding form.

6. The method according to claim 1, characterized in that The determining of the display parameters of the target display area includes: Based on the size of the target display area, a resolution of the target display area is determined.

7. The method according to claim 1, characterized in that After determining the target display area in the state, the method further includes: The touch capacitors in the target display area are activated, and the touch capacitors outside the target display area are turned off.

8. A device for processing interface display, characterized in that: Applicable to an electronic device including a folding screen, the folding screen at least including: a first display area and a second display area adjacent to the first display area; the device includes: A first determination module, configured to determine a target display area in a state based on a state of the folding screen of the electronic device; A second determination module, used to determine the display parameters of the target display area; An acquisition module, configured to acquire, based on the display parameters, an interface layout corresponding to the display parameters in an application interface of the application to be displayed; A display module, configured to display the application interface in the target display area based on the interface layout corresponding to the display parameter; The first display area corresponds to a first light sensor, and the second display area corresponds to a second light sensor; The first determination module is also used to monitor the detection results of each light sensor based on the form of the folding screen of the electronic device; obtain the identification of the corresponding light sensor whose detection result indicates that the light brightness is greater than the brightness threshold; based on the identification of the light sensor, determine the exposed display area in the form; and determine the target display area by the exposed display area.

9. The device according to claim 8, characterized in that The form of the folding screen of the electronic device includes: an unfolded form; The first determination module is further used to determine, based on the unfolded state of the folding screen of the electronic device, that the target display area in the unfolded state is the first display area and the second display area.

10. The device according to claim 9, characterized in that The device also includes: The third determination module is used to determine that the form of the folding screen of the electronic device is the unfolded form if the angle between the first display area and the second display area is greater than or equal to a first angle threshold.

11. The device according to claim 9, characterized in that The form of the folding screen of the electronic device also includes: a folded form; The first determination module is further used to determine, based on the folding form of the folding screen of the electronic device, whether the target display area in the folded form is the first display area or the second display area.

12. The device according to claim 11, characterized in that The device further comprises: The fourth determination module is used to determine that the form of the folding screen of the electronic device is the folding form if the angle between the first display area and the second display area is less than a second angle threshold.

13. The device according to claim 8, characterized in that The second determining module is further used for: Based on the size of the target display area, a resolution of the target display area is determined.

14. The device according to claim 8, characterized in that The device also includes: The touch capacitor processing module is used to activate the touch capacitor in the target display area and turn off the touch capacitor outside the target display area after determining the target display area in the state.

15. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method steps described in any one of claims 1 to 7 when implemented.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method steps described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Interface display method and device and storage medium

    CN109918165A