Application multi-window display method and device, electronic equipment and storage medium

By obtaining and displaying multi-window display application containers in the split-screen operation of the folding screen mobile phone, the problem of inconsistent display ratio in the split-screen state is solved, and a better application interface display effect is achieved.

CN120407062APending Publication Date: 2025-08-01VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510478456.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

When the inner screen of the foldable phone is in the upper and lower split screen state, the aspect ratio of each split screen is similar to that of the horizontal screen display, resulting in the inconsistent display ratio of the application interface, the display information is reduced, and the display effect is poor.

Method used

When a split-screen operation is detected, an application container that supports multi-window display is obtained. Based on its display configuration parameters and interface configuration information, at least two application interfaces are displayed in the screen after split-screen to ensure that the display size of each application interface is consistent with the split-screen size of the screen.

Benefits of technology

The application interface display effect of electronic devices in split screen state is improved, making the display ratio of each application interface more reasonable, and adding the screen display content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120407062A_ABST
    Figure CN120407062A_ABST
Patent Text Reader

Abstract

The invention discloses an application multi-window display method and device, electronic equipment and a storage medium, and belongs to the technical field of electronic equipment. The method comprises the steps that under the condition that screen splitting operation on a screen of the electronic equipment is detected, at least one first application container is obtained, an application interface of an application corresponding to the first application container supports multi-window display, and each first application container corresponds to one screen splitting container; and based on the display configuration parameter of each first application container, the interface configuration information of the corresponding application and the corresponding split screen container, displaying at least two application interfaces corresponding to each first application container in the split screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of electronic devices, and particularly relates to an application multi-window display method, device, electronic device, and storage medium. Background Art

[0002] With the continuous progress of electronic device technology and the development and innovation of screen technology, large-screen electronic devices (such as electronic devices with foldable screens) have emerged, meeting the requirements of users for the screen size and portability of electronic devices. Electronic devices with foldable screens can provide users with richer display content. For example, a foldable screen mobile phone that folds left and right can simultaneously display the application interfaces of two applications.

[0003] Currently, when a foldable screen mobile phone that folds left and right is in the unfolded state, the user can perform a split-screen operation on the foldable screen mobile phone, dividing the large foldable screen into two split-screen screens, so that the foldable screen mobile phone can display the application interface of one application on each split-screen screen. For example, when the inner screen of the foldable screen mobile phone is split vertically, the foldable screen mobile phone can display the application interface of one application on the upper split-screen screen and simultaneously display the application interface of another application on the lower split-screen screen.

[0004] However, in the above method, when the inner screen of the foldable screen mobile phone is in the vertical split-screen state, the aspect ratio of each split-screen screen is approximately the aspect ratio of landscape display, that is, the width of each split-screen screen is much larger than the height of the split-screen screen. At this time, each split-screen screen still displays an application interface in a portrait display mode. Also, since the application interface is displayed on the large foldable screen, the display of the user interface (UI) increases, resulting in an uncoordinated display ratio of the application interface and a reduction in the displayed information. Thus, the display effect of the application interface on the electronic device is poor. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide an application multi-window display method, device, electronic device, and storage medium, which can improve the display effect of the application interface on the electronic device.

[0006] In a first aspect, the embodiments of this application provide an application multi-window display method, which includes: when a split-screen operation on the screen of the electronic device is detected, obtaining at least one first application container, where the application interface corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container; based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, displaying at least two application interfaces corresponding to each first application container on the split screen.

[0007] Second aspect, an embodiment of the present application provides an application multi-window display device, which includes an acquisition module and a display module. The acquisition module is configured to acquire at least one first application container when a split-screen operation on the screen of the application multi-window display device is detected. The application interface of the application corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container respectively. The display module is configured to display at least two application interfaces corresponding to each first application container on the split screen based on the display configuration parameters of each first application container acquired by the acquisition module, the interface configuration information of the corresponding application, and the corresponding split-screen container.

[0008] Third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] Fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.

[0011] Sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when a split-screen operation on the screen of an electronic device is detected, at least one first application container is obtained. The application interface corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container respectively. Based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, at least two application interfaces corresponding to each first application container are displayed on the split screen. In this solution, when the electronic device detects a split-screen operation on the screen of the electronic device by the user, the electronic device can obtain at least one first application container whose corresponding application interface supports multi-window display, and then based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, it can determine the application interfaces to be displayed and the display window size information in the split-screen container corresponding to each first application container, and based on the application interfaces to be displayed and the display window size information, at least two application interfaces corresponding to each first application container are respectively displayed in the split-screen container corresponding to each first application container on the split screen, thereby realizing that at least two application interfaces of an application can be simultaneously displayed in one split screen after the electronic device screen is split, making the display size of each application interface adapt to the split size of the screen and the display ratio of each application interface more reasonable. In this way, the display effect of the application interface on the electronic device is improved. Description of the Drawings

[0013] Figure 1 is a schematic diagram of an example of a chat interface in a split-screen state provided by the related art;

[0014] Figure 2 is one of the flowcharts of the application multi-window display method provided by an embodiment of the present application;

[0015] Figure 3 is another flowchart of the application multi-window display method provided by an embodiment of the present application;

[0016] Figure 4 is the flowchart of determining whether at least one container configuration information meets the multi-window display condition provided by an embodiment of the present application;

[0017] Figure 5 is the flowchart of determining whether the windowingMode context meets the condition for entering the application multi-window display mode provided by an embodiment of the present application;

[0018] Figure 6 is the schematic structural diagram of the split-screen stack structure provided by an embodiment of the present application;

[0019] Figure 7 is the third flowchart of the application multi-window display method provided by an embodiment of the present application;

[0020] Figure 8 It is a schematic diagram of an example of two windows in an application container provided by an embodiment of the present application;

[0021] Figure 9 It is a schematic diagram of an example of an application interface covered by the left area and an application interface covered by the right area provided by an embodiment of the present application;

[0022] Figure 10 It is a schematic diagram of an example of a full-screen covered application interface provided by an embodiment of the present application;

[0023] Figure 11 It is a flowchart for judging the visibility of an application interface provided by an embodiment of the present application;

[0024] Figure 12 It is a flowchart for application interface animation transition provided in the prior art;

[0025] Figure 13 It is a schematic diagram of an example of a chat interface in a split-screen state provided by an embodiment of the present application;

[0026] Figure 14 It is one of the schematic diagrams of an application multi-window display device provided by an embodiment of the present application;

[0027] Figure 15 It is another schematic diagram of an application multi-window display device provided by an embodiment of the present application;

[0028] Figure 16 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;

[0029] Figure 17 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0030] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope protected by the present application.

[0031] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.

[0032] The terms "at least one (item)", "at least one of", etc. in this application refer to any one, any two or a combination of two or more of the objects it contains. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" means two or more, and its meaning is similar to that of "at least one (item)".

[0033] First, the nouns involved in the description of this application are explained.

[0034] Activity: The application user interface in the Android operating system, also known as the "page".

[0035] Activityrecord: An important data structure in the Android system used to represent and manage Activities, storing various information related to Activities.

[0036] Split screen: A solution where two applications on an Android device share the same screen.

[0037] Application multi-window: A window technology solution for large-screen devices that allows an application to display two Activity pages simultaneously to reduce the UI adaptation problems of third-party applications.

[0038] Folding screen mobile phone: A folding screen mobile phone is a form factor of a smartphone, with a flexible active matrix organic light-emitting diode or active matrix organic light-emitting diode (Active Matrix / Organic Light Emitting Diode, AMOLED) screen for the built-in screen. Currently, two popular types of folding screen mobile phones, namely up-and-down and left-and-right, have emerged in the markets of major manufacturers. When the folding screen is opened and closed, two screens, an inner screen and an outer screen, can be used.

[0039] The following, in conjunction with the accompanying drawings, describes in detail the multi-window display method, device, electronic device, and storage medium provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0040] The embodiments of the present application can be applied to scenarios where users require that the display ratio of the application interface in each split screen be not affected after the electronic device is split. For example, when a foldable mobile phone is unfolded, two application interfaces of an application are displayed in full-screen multi-windows. After the user performs a split-screen operation on the foldable mobile phone, the two application interfaces of the application can also be displayed in multiple windows in the corresponding split screen. Alternatively, when a large-screen electronic device displays two application interfaces of an application in full-screen multi-windows, after the user performs a split-screen operation on the large-screen electronic device, the two application interfaces of the application can also be displayed in multiple windows in the corresponding split screen.

[0041] At present, the screen size of large-screen electronic devices is large and the aspect ratio of the screen is approximately equal. For example, when a foldable screen mobile phone is unfolded, the inner screen is large and the width and height of the screen are approximately equal. Many third-party applications have not done a good job of adapting the interface to this nearly square screen. Therefore, when the application interface of third-party applications is displayed on the screen of a large-screen electronic device, there are many UI adaptation issues. Existing large-screen electronic devices, such as foldable screen mobile phones, can solve the interface adaptation problem that exists when displaying the application interface of these third-party applications in full screen mode by applying multi-window display, that is, displaying two application interfaces of an application at the same time. In this way, a system-level low-cost large-screen adaptation solution can be provided when the third-party application has low adaptation willingness and a large adaptation workload.

[0042] However, as the screens of large-screen electronic devices become larger, more users will frequently use the split-screen function to divide the large screen into two split screens, so that the large-screen electronic device can display the application interface of an application on each split screen, that is, display the application interfaces of two applications at the same time. When the screen of the large-screen electronic device is in the upper and lower split-screen state, the aspect ratio of the split screen is similar to the aspect ratio of the horizontal screen display, that is, the width of each split screen is much larger than the height of the split screen. At this time, each split screen still displays an application interface of an application in the vertical display mode. Figure 1 As shown, taking a large-screen electronic device as a foldable screen mobile phone that can be folded left and right as an example, Figure 1 In the above split-screen chat interface, the height of the application interface displayed on the split screen is lower than that of the full-screen state. Furthermore, since the application interface is displayed on the foldable large screen, the display UI is larger, resulting in an unbalanced display ratio of the application interface and reduced information displayed. The display effect is worse than that of the full-screen display, and the display advantages of the foldable large screen cannot be fully utilized. As a result, the electronic device has a poor display effect on the application interface.

[0043] The following uses a specific scenario as an example to exemplarily illustrate the multi-window display method provided by the embodiments of the present application.

[0044] Scenario 1: Assume that the large-screen electronic device is a foldable screen mobile phone that can be folded left and right. The foldable screen mobile phone is in an unfolded state, and two application interfaces of the instant messaging application A are fully displayed on the inner screen: the contact message list interface in the instant messaging application A and the chat interface of contact B. The user performs split-screen input. For example, the user needs to split the foldable screen mobile phone vertically and display the application interface of the instant messaging application A on the upper split screen, and display the application interface of the map application D on the lower split screen. When the foldable screen mobile phone detects the split-screen operation of the foldable screen, it obtains a first application container, such as the application container corresponding to the instant messaging application A. The application interface of the instant messaging application A supports multi-window display, and the application container corresponding to the instant messaging application A corresponds to the upper split container after vertical split-screen; the foldable screen mobile phone calculates and updates the window display parameters of the first window and the second window in the application container corresponding to the instant messaging application A based on the display configuration parameters of the application container corresponding to the instant messaging application A, such as window boundary values, display ratios of the first window and the second window, and the width of the dividing line between the windows, etc. Each window is used to display an application interface in the instant messaging application A; the foldable screen mobile phone obtains two application interfaces in the instant messaging application A based on the interface configuration information of the instant messaging application A, such as the visibility mark of each interface: the contact message list interface in the instant messaging application A and the chat interface of contact B; the foldable screen mobile phone displays the contact message list interface in the instant messaging application A in the first window on the upper split screen after split-screen and displays the chat interface of contact B in the instant messaging application A in the second window based on the upper split container after vertical split-screen and the updated window display parameters of the first window and the second window.

[0045] It should be noted that the above Scenario 1 only exemplarily lists a scenario in which the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to any possible scenario where the split-screen of the electronic device with more user requirements does not affect the display ratio of the application interfaces on each split screen. The embodiments of the present application are not limited here.

[0046] Based on the above scenarios applied in the embodiments of the present application, the application multi-window display method provided by the embodiments of the present application, when detecting a split-screen operation on the screen of the electronic device, obtains at least one first application container, the application interface of the application corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container respectively; based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, at least two application interfaces corresponding to each first application container are displayed on the split screen. In this solution, when the electronic device detects a split-screen operation on the screen of the electronic device, the electronic device can obtain at least one first application container whose application interface of the corresponding application supports multi-window display, and then based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, it can determine the application interfaces to be displayed in the split-screen container corresponding to each first application container and the display window size information, and based on the application interfaces to be displayed and the display window size information, at least two application interfaces corresponding to each first application container are respectively displayed in the split-screen container corresponding to each first application container on the split screen, thereby realizing that at least two application interfaces of an application can be simultaneously displayed in one split screen after the screen of the electronic device is split, making the display size of each application interface adapt to the split size of the screen, and the display ratio of each application interface is more reasonable. In this way, the display effect of the application interface on the electronic device is improved.

[0047] The execution subject of the application multi-window display method provided by the embodiments of the present application can be an application multi-window display device, and the application multi-window display device can be an electronic device, or a functional module or functional entity in the electronic device. Hereinafter, taking the electronic device as an example, the technical solution provided by the embodiments of the present application will be described.

[0048] Figure 2 The flowchart of an application multi-window display method provided by the embodiments of the present application is shown. As Figure 2 shown, the application multi-window display method provided by the embodiments of the present application may include the following steps 301 and 301a.

[0049] Step 301: When the electronic device detects a split-screen operation on the screen of the electronic device, obtain at least one first application container.

[0050] In the embodiments of the present application, the application interface of the application corresponding to the above first application container supports multi-window display.

[0051] In the embodiments of the present application, each first application container corresponds to a split-screen container respectively.

[0052] Optionally, in the embodiments of the present application, the split-screen operation on the screen of the electronic device may be a vertical split-screen operation on the screen of the electronic device.

[0053] It can be understood that the vertical split-screen operation on the screen of the electronic device means dividing the screen of the electronic device into two screen areas, namely, the screen area in the upper half of the screen and the screen area in the lower half of the screen. Each screen area can be called a split-screen screen, that is, a split-screen container.

[0054] Optionally, in the embodiments of the present application, the ways of the split-screen operation on the screen of the electronic device may include, but are not limited to, at least one of the following: switching from a horizontal split-screen to a vertical split-screen of the screen, performing a three-finger upward swipe input on the electronic device to enter the vertical split-screen, and initiating a vertical split-screen in an application responsible for managing the split-screen function. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0055] Optionally, in the embodiments of the present application, the electronic device may be an electronic device with a foldable screen.

[0056] Optionally, in the embodiments of the present application, when the electronic device detects a split-screen operation on the foldable screen, at least one first application container is obtained. The foldable screen is in an unfolded state, and the split-screen operation on the foldable screen refers to a vertical split-screen operation on the inner screen of the foldable screen.

[0057] It can be understood that an application container is related to an application and is responsible for managing all the content in the application, such as managing the set of application interfaces in the application, etc. A split-screen container is related to a split-screen screen after the screen of the above-mentioned electronic device is split, and is responsible for managing the content related to the split-screen screen, such as managing the display mode information of the split-screen screen, etc.

[0058] Optionally, in the embodiments of the present application, in combination with Figure 2 , as Figure 3 shown, before the step of "obtaining at least one first application container" in step 301 above, the application multi-window display method provided by the embodiments of the present application may further include the following step 401, and the step of "obtaining at least one first application container" in step 301 above may be specifically implemented by the following step 402.

[0059] Step 401: When the electronic device detects a split-screen operation on the screen of the electronic device and at least one container configuration information changes, determine whether at least one container configuration information meets the multi-window display condition.

[0060] In an embodiment of the present application, when the electronic device detects a split-screen operation on the screen of the electronic device, the screen of the electronic device will be split vertically, and different application containers will be remounted under their respective corresponding split-screen containers, thereby causing the container configuration information to change. The electronic device detects and judges the changed container configuration information to determine at least one first application container that can be multi-window displayed.

[0061] In an embodiment of the present application, the above container configuration information may be the container configuration information of the split-screen container or the container configuration information of the application container.

[0062] Optionally, in an embodiment of the present application, the above multi-window display conditions include at least one of the following:

[0063] The container corresponding to the above at least one container configuration information is an application container;

[0064] The application corresponding to the container corresponding to the above at least one container configuration information has an application interface that can be multi-window displayed;

[0065] The application corresponding to the container corresponding to the above at least one container configuration information has the permission for multi-window display;

[0066] When the application corresponding to the container corresponding to the above at least one container configuration information is a specific application, the specific application is in an account login state;

[0067] The above at least one container configuration information includes information related to application interface display;

[0068] The above at least one container configuration information includes at least one of application information, split-screen information, and application interface information.

[0069] Optionally, in an embodiment of the present application, the electronic device can determine whether the container corresponding to the above at least one container configuration information is an application container by judging whether the container corresponding to the above at least one container configuration information is a leaf container.

[0070] It can be understood that the above leaf container refers to a container that no longer contains other sub-containers. Since during the split-screen process, the application container is remounted under the split-screen container corresponding to the application container, that is, the application container is a sub-container of the corresponding split-screen container and there are no other sub-containers under the application container. Therefore, when the container corresponding to the above at least one container configuration information is a leaf container, it means that there are no sub-containers under the container corresponding to the container configuration information, so the container corresponding to the container configuration information is an application container rather than a split-screen container, and the container corresponding to the container configuration information meets the basic conditions for multi-window display.

[0071] Optionally, in the embodiments of the present application, the electronic device may determine that the application corresponding to the at least one container configuration information has a multi-window displayable application interface by determining whether the container corresponding to the at least one container configuration information contains a window component for hosting and displaying application interface information.

[0072] It can be understood that if the container corresponding to the at least one container configuration information contains a window component for hosting and displaying application interface information, it indicates that the application corresponding to the container configuration information contains at least one application interface, that is, there is a multi-window displayable application interface, and the container corresponding to the container configuration information meets the basic conditions for multi-window display.

[0073] Optionally, in the embodiments of the present application, the electronic device may determine that the application corresponding to the at least one container configuration information has the permission for multi-window display by determining whether the at least one container configuration information contains permission information related to multi-window display.

[0074] It can be understood that if the at least one container configuration information contains permission information related to multi-window display, it indicates that the user triggers the electronic device to turn on the multi-window display switch of the application corresponding to the container configuration information, and it is determined that the application corresponding to the at least one container configuration information has the permission for multi-window display, and the container corresponding to the container configuration information meets the basic conditions for multi-window display.

[0075] It should be noted that for some specific applications, such as instant messaging applications, when the instant messaging application is in the account login state, the instant messaging application can contain at least two application interfaces at the same time, and then the electronic device may multi-window display at least two application interfaces of the instant messaging application. If the instant messaging application is not in the account login state, it means that the instant messaging application only contains one application interface, that is, the account login interface, and then the electronic device cannot multi-window display at least two application interfaces of the instant messaging application. Therefore, when the application corresponding to the container corresponding to the at least one container configuration information is a specific application and the specific application is in the account login state, the container corresponding to the container configuration information meets the basic conditions for multi-window display.

[0076] It should be noted that the change of the at least one container configuration information may be caused by various factors. When the information that changes in the at least one container configuration information includes information related to application interface display, it indicates that the electronic device performs a split-screen operation on the screen, which causes the change of the container configuration information, and the container corresponding to the container configuration information meets the basic conditions for multi-window display.

[0077] In the embodiments of the present application, the information related to the application interface display may include, but is not limited to, any one of the following: the application interface display boundary (bounds), the application interface window mode (windowingMode), the application interface display orientation (orientation), the application interface layout direction (layoutDirection), etc.

[0078] In the embodiments of the present application, the above-mentioned application interface window mode (windowingMode) may include a full-screen mode, a split-screen mode, or an application multi-window display mode, etc. The above-mentioned application interface display orientation (orientation) may include a landscape display orientation, a portrait display orientation, etc. The above-mentioned application interface layout direction (layoutDirection) may include a layout from left to right, a layout from right to left, etc.

[0079] It should be noted that when the container corresponding to the above at least one container configuration information enters the application multi-window display mode, the electronic device will change the window mode parameter of the container. For example, by calling the setWindowingMode method for setting the window mode corresponding to the container, the windowingMode attribute of the container is set, thereby causing a change in the container configuration information. The change in the container configuration information in this case is a change generated to update the container to a multi-window display, so it is called a secondary configuration information change. Therefore, when determining that the above at least one container configuration information meets the multi-window display condition, the situation where the at least one container configuration information is secondary configuration information can be excluded. It can also be understood that the at least one container configuration information includes the essential configuration information of at least one of the application information, split-screen information, and application interface information, rather than secondary configuration information.

[0080] Step 402: The electronic device determines the containers corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information as at least one first application container.

[0081] It can be understood that when the container configuration information in the above at least one container configuration information meets the multi-window display condition, it indicates that the application corresponding to the container corresponding to the container configuration information supports multi-window display. Therefore, the containers corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information are determined as at least one first application container for subsequent multi-window display operations.

[0082] Optionally, in the embodiments of the present application, the electronic device may further determine whether the container corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information is in the application multi-window display mode and whether the environment where the container is located meets the condition for entering the application multi-window display mode. When the container is not in the application multi-window display mode and the environment where the container is located meets the condition for entering the application multi-window display mode, the container is determined as the at least one first application container.

[0083] It should be noted that for the specific implementation solution of determining whether the environment where the container is located meets the condition for entering the application multi-window display mode, reference can be made to the description of the following embodiments, which will not be elaborated here.

[0084] Exemplarily, Figure 4 shows a flowchart for determining whether at least one container configuration information meets the multi-window display condition provided by the embodiments of the present application. The following will describe in detail Figure 4 the steps for the electronic device to determine whether at least one container configuration information meets the multi-window display condition:

[0085] Step 101: The electronic device triggers the screen to be split vertically.

[0086] Specifically, the electronic device receives the vertical screen splitting operation of the user on the screen of the electronic device, and in response to the splitting operation, triggers the screen to be split vertically.

[0087] Step 102: The electronic device determines the sizes and hierarchies of the split containers.

[0088] Specifically, in the Window Manager Shell (WMShell) in the System User Interface (SystemUI) process of the system, the electronic device calculates the actual sizes and hierarchies of the two split container tasks through the StageCoordinator of the split screen module, that is, calculates the sizes of the screen areas occupied by each split container task respectively, and whether it is in the upper half area or the lower half area of the screen, and stores the calculated data in the native window container transaction (WCT) of the Android system. The electronic device will apply the WCT with the calculated data to the SystemServer process of the system service through the TaskOrganizer.

[0089] It should be noted that StageCoordinator is a component or interface related to split-screen management. It is responsible for coordinating and managing the display, interaction, and switching of two or more application windows (such as the upper split-screen and the lower split-screen) in the split-screen state. When the user triggers the split-screen of the foldable screen, the electronic device can create two containers through StageCoordinator: the main split-screen container mainStage Task and the secondary split-screen container sideStage Task.

[0090] Step 103: The electronic device sets the size of the split-screen container and remounts the application container under the corresponding split-screen container.

[0091] Specifically, in the window management service (WindowManagerService, WMS) of the SystemServer process of the system, the electronic device is responsible for parsing the WCT passed from the SystemUI process through the WindowOrganizerController and actually applying it to the split-screen container task, setting the size and level of the split-screen container task, and reparenting the application container task to the corresponding split-screen container task, making it a child container task of the split-screen container task.

[0092] Step 104: The electronic device detects changes in the container configuration information.

[0093] Specifically, when the electronic device detects that the container configuration information Configuration of the split-screen container task or the application container task has changed, the electronic device calls the onConfigurationChanged method for the configuration change of the container task and inserts a stake at this node to monitor the change of the Configuration of the task.

[0094] Step 105: The electronic device determines whether the container is a leaf container.

[0095] Specifically, if the container task whose container configuration information has changed detected by the electronic device is a leaf task, it means that this container task is the container task where the application is actually located, that is, the application container task, rather than the split-screen container task, then continue; otherwise, this container does not meet the multi-window display condition, and the process ends.

[0096] Step 106: The electronic device determines whether the container has child elements.

[0097] Specifically, if the application container task for which the electronic device detects a change in container configuration information has a child element, such as an Activity record, which is a window container (WindowContainer) specifically used to carry and display the content of the application interface, that is, the application corresponding to the container has an application interface that can be multi-window displayed, then proceed; otherwise, the container does not meet the multi-window display condition and the process ends.

[0098] Step 107: The electronic device determines whether the application corresponding to the container has the multi-window display switch turned on.

[0099] Specifically, if the application corresponding to the application container task for which the electronic device detects a change in container configuration information has the multi-window display switch turned on. For example, if the electronic device is an electronic device with a foldable screen, and the user has turned on the switch for the corresponding application in the foldable screen zone - application multi-window display, then proceed; otherwise, the container does not meet the multi-window display condition and the process ends.

[0100] Step 108: The electronic device determines whether the application corresponding to the container is logged in when it is a specific application.

[0101] Specifically, if the application corresponding to the application container task for which the electronic device detects a change in container configuration information is a specific application, such as an instant messaging application, and the application notifies the WMS framework that the application has logged in through relevant methods of the WindowManagerService, then proceed; if the application corresponding to the application container task is a specific application but is not logged in, then it does not meet the multi-window display condition and the process ends. It should be noted that if the application corresponding to the application container is not a specific application, there is no need to determine whether it is logged in, and the subsequent steps are directly executed.

[0102] Step 109: The electronic device determines whether the specified container configuration information has changed.

[0103] Specifically, if the electronic device detects that the changed container configuration information is information related to the application interface display, then proceed; otherwise, the container does not meet the multi-window display condition and the process ends.

[0104] Step 110: The electronic device determines whether the change in container configuration information is a secondary configuration information change.

[0105] Specifically, if the changed container configuration information detected by the electronic device is not the secondary configuration information change caused by entering the application multi-window display mode, then the container configuration information meets the multi-window display condition, that is, the application container task corresponding to the container configuration information meets the basic multi-window display condition, and the application interface of the application corresponding to the application container task supports multi-window display, and the next judgment is continued; otherwise, the container does not meet the multi-window display condition, and the process ends.

[0106] Step 111: The electronic device determines whether the container is not in the application multi-window display mode and the environment where the container is located meets the condition for entering the application multi-window display mode.

[0107] Specifically, if the application container task that meets the above conditions detected by the electronic device is not in the application multi-window display mode, but the windowingMode context meets the condition for entering the application multi-window display mode, at this time, the electronic device should set the application container task to enter the application multi-window display mode; otherwise, continue to the next step.

[0108] It should be noted that the above condition that the windowingMode context meets the condition for entering the application multi-window display mode means that the environment where the current application container is located meets the condition for entering the application multi-window display mode. For the specific implementation solution for determining whether the environment where the application container is located meets the condition for entering the application multi-window display mode, reference can be made to the description of the following embodiments, which will not be elaborated here.

[0109] Step 112: The electronic device determines whether the container is in the application multi-window display mode and the environment where the container is located does not meet the condition for entering the application multi-window display mode.

[0110] Specifically, if the application container task that meets the above conditions detected by the electronic device is in the application multi-window display mode, but the windowingMode context does not meet the condition for entering the application multi-window display mode, at this time, the electronic device should set the application container task to exit the application multi-window display mode; otherwise, continue to the next step.

[0111] Step 113: The electronic device determines whether the container is in the application multi-window display mode and the environment where the container is located meets the condition for entering the application multi-window display mode.

[0112] Specifically, if the electronic device detects that the application container task that meets the above conditions is in the application multi-window display mode, and the windowingMode context also meets the conditions for entering the application multi-window display mode, it means that the electronic device needs to update the application multi-window display mode based on the new Configuration. For example, if the size of the application interface display boundary bounds changes, the size of the Activity under the application container task is updated; if the application interface layout direction layoutDirection is updated from left to right (Left To Right, LTR) layout to right to left (Right To Left, RTL) layout, the Activity coordinates under the application container task are updated. Otherwise, the process ends.

[0113] For example, assuming that the electronic device is an electronic device with a foldable screen, Figure 5 A flow chart of determining whether the windowingMode context satisfies the conditions for entering the application multi-window display mode is shown in the embodiment of the present application. Figure 5 Detailed description of the steps for an electronic device to determine whether the windowingMode context satisfies the conditions for entering the application multi-window display mode:

[0114] Step 114: The electronic device determines the current windowingMode context.

[0115] It should be noted that the electronic device determining the current windowingMode context refers to the electronic device determining the environment where the current application container is located.

[0116] Step 115: The electronic device determines whether the application container is a desktop container.

[0117] Specifically, if the electronic device detects that the application container task that meets the above multi-window display conditions is not the desktop container homeTask, the process continues; otherwise, the process ends.

[0118] Step 116: The electronic device determines whether the folding screen is in a folded state.

[0119] Specifically, if the electronic device detects that the folding screen of the current electronic device is not in a folded state, that is, the screen state of the folding screen of the electronic device is an unfolded state, then the process continues; otherwise, the process ends.

[0120] Step 117: The electronic device determines whether the application container is a root container.

[0121] Specifically, if the electronic device detects that the application container task that meets the above multi-window display condition is not the root container rootTask, the process continues; otherwise, the process ends.

[0122] Step 118: The electronic device determines whether the electronic device has a foldable screen.

[0123] Specifically, if the electronic device detects that the current electronic device is an electronic device with a foldable screen, continue; otherwise, end the process.

[0124] Step 119: The electronic device determines whether the parent container of the application container is a split-screen container.

[0125] Specifically, if the electronic device detects that the parent container parentTask of the application container task that meets the above multi-window display condition is a split-screen container task, it is determined that the windowingMode context meets the condition for entering the application multi-window display mode; otherwise, end the process.

[0126] It should be noted that the end of the process mentioned in the above embodiments means that the conditions for executing the steps of the application multi-window display method provided in the embodiments of the present application are not met, and the application interface corresponding to the application container task can be displayed according to the existing related technologies.

[0127] In the embodiments of the present application, the electronic device determines whether the container corresponding to the changed container configuration information meets the multi-window display condition by adding a listener in the Window Management Service (WMS), so as to further determine whether the application corresponding to the container can enter the application multi-window display mode, improving the efficiency of the electronic device for application multi-window display.

[0128] Optionally, in the embodiments of the present application, after the above step 402, the application multi-window display method provided in the embodiments of the present application may further include the following step 403.

[0129] Step 403: The electronic device updates the window mode parameter in the container configuration information of at least one first application container to a first parameter.

[0130] In the embodiments of the present application, the above first parameter is used to indicate that the application corresponding to the above first application container supports multi-window display.

[0131] In the embodiments of the present application, the at least one first application container obtained through the above steps 401 and 402 is an application container whose application interface corresponding to the application supports multi-window display. The electronic device can mark the at least one first application container to enter the application multi-window display mode by updating the window mode parameter in the container configuration information of the at least one first application container.

[0132] Exemplarily, the electronic device may, according to whether the two application containers corresponding to the upper and lower split-screen containers of the electronic device's screen support multi-window display of applications, individually or entirely change the windowingMode in the Configuration of the application containers actually corresponding to the upper and lower split-screen containers to the windowingMode corresponding to the multi-window display mode: multi-landscape, that is, the first parameter.

[0133] It should be noted that Figure 6 is a schematic structural diagram of a split-screen stack structure provided by an embodiment of the present application. As Figure 6 shown, the container with Task = 4 represents the upper split-screen container task after the screen of the electronic device is split, and the container with Task = 5 represents the lower split-screen container task after the screen of the electronic device is split. TaskA is the application container task corresponding to the upper split-screen container task, and TaskB is the application container task corresponding to the lower split-screen container task. Assuming that both TaskA and TaskB meet the conditions for multi-window display of applications, the electronic device may change the windowingMode in the Configuration of TaskA and TaskB to the windowingMode corresponding to the multi-window display mode: multi-landscape. As a result, TaskA and TaskB no longer follow their parent container task, that is, the window display mode of the split-screen container task, such as multi-window. Therefore, the electronic device can support the application containers TaskA and TaskB to use the multi-window display mode in the upper and lower split-screen scenarios.

[0134] In the embodiment of the present application, the electronic device updates the window mode parameter in the container configuration information of at least one first application container to the first parameter, thereby cutting off the influence of its parent container task, that is, the split-screen container task, on the windowingMode of the first application container task. Furthermore, the application container task entering the multi-window display mode is identified through the windowingMode identifier, and the size and display or not of the Activity inside the application container task are controlled.

[0135] Step 301a: The electronic device displays at least two application interfaces corresponding to each first application container on the split screen based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container.

[0136] Optionally, in the embodiment of the present application, in combination with Figure 2 , as Figure 7 shown, the above step 301a may be specifically implemented by the following steps 302 to 304.

[0137] Step 302: The electronic device updates the window display parameters of at least two windows in each first application container based on the display configuration parameters of each first application container.

[0138] In the embodiments of the present application, each window is respectively used to display an application interface.

[0139] Exemplarily, when the electronic device is in the up-and-down split-screen state of the screen of the electronic device and enters the application multi-window display mode, the electronic device can correspondingly update the display configuration parameters of the application container task, such as data such as the display boundary of the application container and the layout direction of the application container, and will be based on the current display boundary of the application container task, the application drag ratio, the layout direction of the application container, the width of the dividing line, whether to zoom, etc. factors, recalculate the display parameters of the Activity inside the application container task.

[0140] Optionally, in the embodiments of the present application, before the above step 302, the application multi-window display method provided in the embodiments of the present application may further include the following step 501 and step 502, and the above step 302 may specifically be implemented by the following step 503 and step 504.

[0141] Step 501: The electronic device obtains four gap distances corresponding to each first application container.

[0142] In the embodiments of the present application, a gap distance is the gap distance reserved for one side of a first application container.

[0143] Optionally, in the embodiments of the present application, the electronic device may further obtain the gap distance of the gap reserved for displaying the drag bar in the middle of each first application container.

[0144] Exemplarily, such as Figure 8As shown, the application container task70 includes LeftActivity71 and RightActivity72, as well as the gap 73 reserved on the left side of the application container task70 and the left side of LeftActivity71, the gap 75 reserved on the right side of the application container task70 and the right side of RightActivity72, the gap 74 reserved on the upper side of the application container task70 and the upper side of LeftActivity71 or RightActivity72, the gap 76 reserved on the lower side of the application container task70 and the lower side of LeftActivity71 or RightActivity72, and the gap 77 reserved in the middle of the application container task70 for displaying the drag bar. The electronic device can obtain the gap distances of the gaps 73, 74, 75, 76, and 77, which are leftPadding, topPadding, rightPadding, bottomPadding, and middlePadding respectively.

[0145] Step 502: The electronic device obtains the width value of each first application container and the display ratios of at least two windows within each first application container.

[0146] Exemplarily, assume Figure 8 the width of the application container task70 in is taskwidth, the height is taskheight, the display ratio ratio of the left - hand LeftActivity71 is 0.4, and the application container layout direction of the application container task70 is from left to right.

[0147] Step 503: The electronic device calculates the display coordinate information of at least two windows within each first application container based on the four gap distances corresponding to each first application container, the width value of each first application container, and the display ratios of at least two windows within each first application container.

[0148] Exemplarily, the electronic device can calculate according to the following method Figure 8The display coordinate information of LeftActivity71 and RightActivity72 in it, obtain the gap distances of gap 73, gap 74, gap 75, gap 76 and gap 77, which are leftPadding, topPadding, rightPadding, bottomPadding and middlePadding respectively. The width of the application container task70 is taskwidth and the height is taskheight. The display ratio ratio of the left LeftActivity71 is 0.4. Then the actual length available for displaying LeftActivity71 and RightActivity72 is: ContentW = taskwidth - leftPadding - middlePadding - rightPadding; the width of the left LeftActivity71 is: Leftwidth = ContentW * ratio; the display coordinate area of the left LeftActivity71 is: leftActivity rect = (leftpadding, toppadding, leftpadding + leftwidth, taskheight - bottomPadding); and the width of the right RightActivity72 is: rightWidth = ContentW * (1 - ratio), the coordinate of the left side left of the right RightActivity72 is: leftpoint = leftpadding + leftwidth + middlePadding, and the display coordinate area of the right RightActivity72 is: rightActivityrect =

[0149] (leftpoint, topPadding, leftpoint + rightWidth, taskheight - bottomPadding).

[0150] Step 504, the electronic device updates the window display parameters of at least two windows in each first application container based on the display coordinate information of the at least two windows in each first application container.

[0151] Exemplarily, the electronic device can update the corresponding window display parameters according to the display coordinate areas of the left LeftActivity71 and the right RightActivity72 calculated above.

[0152] In the embodiments of the present application, the electronic device can update the window display parameters of at least two windows in each first application container, facilitating subsequent display of the corresponding application interfaces in a multi-window display manner based on the window display parameters.

[0153] Step 303: The electronic device obtains at least two application interfaces corresponding to each first application container based on the interface configuration information of the application corresponding to each first application container.

[0154] It should be noted that when the electronic device uses the process method in the internal class EnsureActivitiesVisibleHelper for assisting in determining the interface visibility class in the WMS to traverse and refresh the Activity visibility, based on the principle of "invisible when covered", after inserting the visibility judgment logic by instrumentation, in the instrumented method, the visibility of the Activity corresponding to each first application container is determined through the same-position area coverage judgment and the full-screen coverage judgment.

[0155] It can be understood that as Figure 9 shown, the application container task80 includes ActivityA81, ActivityB82, ActivityC83, ActivitD84, ActivityE85, and ActivityF86. In the left area of the application container task80, ActivityA81 is at the topmost and covers ActivityB82 and ActivityC83, so ActivityA81 is visible, while ActivityB82 and ActivityC83 are invisible; in the right area of the application container task80, ActivitD84 is at the topmost and covers ActivityE85 and ActivityF86, so ActivitD84 is visible, while ActivityE85 and ActivityF86 are invisible. As Figure 10 shown, the application container task90 includes ActivityA81, ActivityB82, ActivityC83, ActivitD84, ActivityE85, ActivityF86, ActivityG87, and ActivityH88. ActivityH88 is at the topmost, full-screen, and covers ActivityA81, ActivityB82, ActivityC83, ActivitD84, ActivityE85, ActivityF86, and ActivityG87, so ActivityH88 is visible, and the rest are invisible.

[0156] Optionally, in the embodiments of the present application, step 303 may be specifically implemented by the following steps 601 to 603.

[0157] Step 601: For an application interface corresponding to each first application container, based on the second parameter in the interface configuration information of the application corresponding to each first application container, and the display area and transparency parameter of an application interface, determine whether an application interface is a visible application interface.

[0158] In the embodiments of the present application, the above-mentioned second parameter is used to indicate whether an application interface is covered by an application interface of an application container occupying the corresponding display area.

[0159] In the embodiments of the present application, the above-mentioned display area may be full-screen display, left-side display, and right-side display.

[0160] In the embodiments of the present application, the above-mentioned transparency parameter may be completely opaque, completely transparent, and partially transparent.

[0161] It can be understood that when the display area of the above-mentioned application interface is full-screen display, the above-mentioned second parameter is used to indicate whether the application interface is covered by an application interface of an application container occupying the full-screen area.

[0162] Optionally, in the embodiments of the present application, the above-mentioned second parameter is used to indicate whether the above-mentioned application interface is covered by an application interface of an application container occupying the full-screen area. Exemplarily, the "determine whether an application interface is a visible application interface based on the second parameter in the interface configuration information of the application corresponding to each first application container, and the display area and transparency parameter of an application interface" in step 601 may be specifically implemented by the following steps 701 and 702.

[0163] Step 701: When the value of the second parameter in the interface configuration information of the application corresponding to each first application container is the first value, the electronic device marks an application interface as an invisible application interface.

[0164] It should be noted that when the electronic device determines the visibility of a certain application interface, the second parameter it relies on is the second parameter in the interface configuration information of the application corresponding to the first application container corresponding to the application interface, rather than the second parameters in the interface configuration information of all first application containers corresponding to the applications.

[0165] Exemplarily, the second parameter may be the parameter mBehindFullOccludedForMultiLands in EnsureActivitiesVisibleHelper, which is used to indicate whether the above application interface is covered by the application interface of an application container occupying the full screen area. The first value may be true, indicating that the above application interface is covered by the application interface of an application container occupying the full screen area.

[0166] Step 702: When the value of the second parameter in the interface configuration information corresponding to each first application container is the second value, the electronic device determines whether an application interface is a visible application interface based on the display area and transparency parameter of the application interface.

[0167] Exemplarily, the second value may be false.

[0168] Optionally, in the embodiments of the present application, the step of "the electronic device determines whether an application interface is a visible application interface based on the display area and transparency parameter of the application interface" in the above step 702 may be specifically implemented by the following step 801.

[0169] Step 801: When an application interface is a full-screen and opaque application interface, the electronic device marks the application interface as a visible application interface and updates the value of the second parameter in the interface configuration information corresponding to each first application container to the first value.

[0170] In the embodiments of the present application, the electronic device updates the value of the second parameter in the interface configuration information corresponding to each first application container to the first value for use in subsequent determination of the visibility of other application interfaces.

[0171] It should be noted that the electronic device updates the value of the second parameter in the interface configuration information corresponding to each first application container to the first value, which means that the electronic device updates the value of the second parameter in the interface configuration information corresponding to the first application container corresponding to the above marked visible application interface, rather than updating the values of the second parameters in the interface configuration information corresponding to all first application containers.

[0172] It can be understood that when the electronic device traverses all application interfaces in a first application container, the first traversed application interface is the application interface with the latest creation time, that is, the visible application interface displayed at the top. That is to say, when the electronic device traverses all application interfaces in a first application container, the value of the second parameter in the interface configuration information corresponding to the first application container obtained for the first time is the second value.

[0173] Optionally, in the embodiments of the present application, the step of "the electronic device determines whether an application interface is a visible application interface based on the display area and transparency parameter of an application interface" in step 702 may be specifically implemented by the following steps 802 to 804.

[0174] Step 802: When an application interface is a left application interface, and an application interface is not a top application interface and the value of the third parameter in the interface configuration information of the application corresponding to each first application container is the first value, the electronic device marks the application interface as an invisible application interface.

[0175] In the embodiments of the present application, the third parameter is used to indicate whether the above-mentioned application interface is covered by the application interface of an application container occupying the left area.

[0176] It should be noted that when the electronic device determines the visibility of a certain left application interface, the third parameter it relies on is the third parameter in the interface configuration information of the application corresponding to the first application container corresponding to this application interface, rather than the third parameter in the interface configuration information of all first application containers corresponding to applications.

[0177] Exemplarily, the third parameter may be the parameter mBehindMasterOccludedForMultiLands in EnsureActivitiesVisibleHelper for indicating whether the above-mentioned application interface is covered by the application interface of an application container occupying the left area, and the first value may be true, indicating that the above-mentioned application interface is covered by the application interface of an application container occupying the left area.

[0178] Step 803: When an application interface is a left application interface, and an application interface is a top application interface, the value of the third parameter in the interface configuration information of the application corresponding to each first application container is the second value, and an application interface is an opaque application interface, the electronic device marks the application interface as a visible application interface and updates the value of the third parameter in the interface configuration information of the application corresponding to each first application container to the first value.

[0179] Exemplarily, the second value may be false.

[0180] In the embodiments of the present application, the electronic device updates the value of the third parameter in the interface configuration information of the application corresponding to each first application container to the first value for use in subsequent determination of the visibility of other application interfaces.

[0181] It should be noted that when the electronic device updates the value of the third parameter in the interface configuration information of the application corresponding to each first application container to the first value, it means that the electronic device updates the value of the third parameter in the interface configuration information of the application corresponding to the first application container corresponding to the above-mentioned marked visible application interface, rather than updating the value of the third parameter in the interface configuration information of the applications corresponding to all first application containers.

[0182] It can be understood that when the electronic device traverses all the left-side application interfaces in a first application container, the first left-side application interface traversed is the left-side application interface with the latest creation time, that is, the visible left-side application interface displayed at the top. That is to say, when the electronic device traverses all the left-side application interfaces in a first application container, the value of the third parameter in the interface configuration information of the application corresponding to this first application container obtained for the first time is the second value.

[0183] Step 804: When an application interface is a left-side application interface, and an application interface is a top application interface and the value of the third parameter in the interface configuration information of the application corresponding to each first application container is the second value, and an application interface is a transparent application interface, the electronic device marks an application interface as a visible application interface.

[0184] Optionally, in the embodiments of the present application, the "the electronic device determines whether an application interface is a visible application interface based on the display area and transparency parameter of an application interface" in the above step 702 can be specifically implemented through the following steps 805 to 807.

[0185] Step 805: When an application interface is a right-side application interface, and an application interface is not a top application interface and the value of the fourth parameter in the interface configuration information of the application corresponding to each first application container is the first value, the electronic device marks an application interface as an invisible application interface.

[0186] In the embodiments of the present application, the above fourth parameter is used to indicate whether the above-mentioned application interface is covered by the application interface of an application container occupying the right area.

[0187] It should be noted that when the electronic device determines the visibility of a certain right-side application interface, the fourth parameter it relies on is the fourth parameter in the interface configuration information of the application corresponding to the first application container corresponding to this application interface, rather than the fourth parameter in the interface configuration information of the applications corresponding to all first application containers.

[0188] Exemplarily, the above fourth parameter may be the parameter mBehindSlaveOccludedForMultiLands in EnsureActivitiesVisibleHelper that is used to indicate whether the above one application interface is covered by the application interface of an application container occupying the right area, and the above first value may be true, indicating that the above one application interface is covered by the application interface of an application container occupying the right area.

[0189] Step 806: When one application interface is a right application interface, and one application interface is a top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container for the application is the second value, and one application interface is an opaque application interface, the electronic device marks the one application interface as a visible application interface and updates the value of the fourth parameter in the interface configuration information corresponding to each first application container for the application to the first value.

[0190] Exemplarily, the above second value may be false.

[0191] In the embodiment of the present application, the electronic device updates the value of the fourth parameter in the interface configuration information corresponding to each first application container for the application to the first value for use when determining the visibility of other application interfaces subsequently.

[0192] It should be noted that the electronic device updates the value of the fourth parameter in the interface configuration information corresponding to each first application container for the application to the first value, which means that the electronic device updates the value of the fourth parameter in the interface configuration information corresponding to the first application container for the application corresponding to the above marked visible application interface, rather than updating the values of the fourth parameter in the interface configuration information corresponding to all first application containers for the application.

[0193] It can be understood that when the electronic device traverses all the right application interfaces in a first application container, the first right application interface traversed is the right application interface with the latest creation time, that is, the visible right application interface displayed at the topmost. That is to say, when the electronic device traverses all the right application interfaces in a first application container, the value of the fourth parameter in the interface configuration information corresponding to the first application container for the application obtained for the first time is the second value.

[0194] Step 807: When one application interface is a right application interface, and one application interface is a top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container for the application is the second value, and one application interface is a transparent application interface, the electronic device marks the one application interface as a visible application interface.

[0195] Step 602: The electronic device traverses all application interfaces in the application corresponding to each first application container to determine whether all application interfaces corresponding to each first application container are visible application interfaces.

[0196] In the embodiments of the present application, the electronic device can traverse all application interfaces in the application corresponding to each first application container to determine at least one application interface to be displayed in each subsequent first application container.

[0197] Exemplarily, Figure 11 shows a flowchart for determining the visibility of an application interface provided by the embodiments of the present application. The following Figure 11 details the steps for the electronic device to determine the visibility of the application interface of an application corresponding to a first application container:

[0198] Step 201: The electronic device obtains the interface configuration information corresponding to the Activity.

[0199] Specifically, when the electronic device traverses the Activity visibility through EnsureActivitiesVisibleHelper, it first obtains the interface configuration information of the application corresponding to the first application container corresponding to the Activity, inserts the following visibility judgment logic through instrumentation. When the windowingMode of the application container task corresponding to the Activity is the multi-window display mode multi-landscape, the original visibility result is intercepted and the following instrumentation logic judgment is entered.

[0200] Step 202: The electronic device determines whether the corresponding mBehindFullOccludedForMultiLands holds.

[0201] Specifically, when the electronic device traverses the current Activity, if the mBehindFullOccludedForMultiLands flag of EnsureActivitiesVisibleHelper holds, that is, the value of mBehindFullOccludedForMultiLands is true, it means that the current Activity is under an opaque Activity that fills the application container task, that is, the Activity is covered by an Activity of an application container task that occupies the full screen area. Therefore, the electronic device sets the Activity to be invisible; otherwise, step 203 is executed.

[0202] Step 203: The electronic device determines whether the Activity is a full-screen and opaque application interface.

[0203] Specifically, when the electronic device traverses the current Activity, if this Activity is a full-screen and non-transparent Activity (for example, the parameter occludesParent is true), then step 204 is executed; otherwise, step 205 is executed.

[0204] Step 204: The electronic device sets the mBehindFullOccludedForMultiLands flag to be established.

[0205] Specifically, the electronic device sets the mBehindFullOccludedForMultiLands flag of EnsureActivitiesVisibleHelper to be established, that is, the electronic device sets the value of mBehindFullOccludedForMultiLands to true, and sets the Activity to be visible, that is, sets the visibility of the current Activity to true, indicating that this Activity is the application interface that is full-screen displayed at the top of the application container task.

[0206] Step 205: The electronic device determines whether the Activity is the left application interface.

[0207] Specifically, when the electronic device traverses the current Activity, if it is the left application interface (masterActivity), then step 206 is executed; otherwise, step 209 is executed.

[0208] It should be noted that the electronic device can obtain whether the current Activity is the application interface displayed on the left or the application interface displayed on the right through a specific interface.

[0209] Step 206: The electronic device determines whether the Activity is a non-top-displayed application interface and the corresponding mBehindMasterOccludedForMultiLands is established.

[0210] Specifically, if the current Activity is the left application interface but not the top-displayed application interface, and the mBehindMasterOccludedForMultiLands of EnsureActivitiesVisibleHelper is established, that is, the value of mBehindMasterOccludedForMultiLands is true, it means that this Activity is in the situation of being covered on the left, and the electronic device sets this Activity to be invisible; otherwise, step 207 is executed.

[0211] Step 207, the electronic device determines whether the Activity is an opaque application interface.

[0212] Specifically, if the current Activity is opaque (for example, the parameter occludesParent is true), it means that this Activity is a non-opaque application interface displayed at the top left, and the electronic device executes Step 208; otherwise, it means that the current Activity is a transparent application interface displayed at the top left. The electronic device directly sets the current Activity to be visible, that is, sets the visibility of the current Activity to true. However, because this Activity is transparent and does not completely cover other application interfaces, it cannot determine the visibility of its bottom Activity.

[0213] Step 208, the electronic device sets the mBehindMasterOccludedForMultiLands flag to be established.

[0214] Specifically, the electronic device sets the flag mBehindMasterOccludedForMultiLands of EnsureActivitiesVisibleHelper to true, which is used to determine the visibility of the subsequent left Activity, and sets the current Activity to be visible, that is, sets the visibility of the current Activity to true.

[0215] Step 209, the electronic device determines whether the Activity is a right application interface.

[0216] Specifically, when the electronic device traverses the current Activity, if it is a right application interface (slaveActivity), it executes Step 210; otherwise, it executes Step 213.

[0217] Step 210, the electronic device determines whether the Activity is a non-top-displayed application interface and the corresponding mBehindSlaveOccludedForMultiLands is established.

[0218] Specifically, if the current Activity is a right application interface but not a top-displayed application interface, and the mBehindSlaveOccludedForMultiLands of EnsureActivitiesVisibleHelper is established, that is, the value of mBehindSlaveOccludedForMultiLands is true, it means that this Activity is in a situation of being covered on the right, and the electronic device sets this Activity to be invisible; otherwise, it executes Step 211.

[0219] Step 211: The electronic device determines whether the Activity is an opaque application interface.

[0220] Specifically, if the current Activity is opaque (for example, the parameter occludesParent is true), it means that this Activity is a non-opaque application interface displayed at the top right, and the electronic device executes Step 212; otherwise, it means that the current Activity is a transparent application interface displayed at the top right. The electronic device directly sets the current Activity to be visible, that is, sets the visibility of the current Activity to true. However, because this Activity is transparent and does not completely cover other application interfaces, it cannot determine the visibility of its bottom Activity.

[0221] Step 212: The electronic device sets the mBehindSlaveOccludedForMultiLands flag to be established.

[0222] Specifically, the electronic device sets the flag mBehindSlaveOccludedForMultiLands of EnsureActivitiesVisibleHelper to true, which is used to determine the visibility of subsequent right-side Activities, and sets the current Activity to be visible, that is, sets the visibility of the current Activity to true.

[0223] Step 213: The electronic device returns the original value and sets the visibility of the Activity according to the original value.

[0224] Specifically, if none of the above situations occur, the visibility logic is not intervened, and the original value is directly returned.

[0225] Step 603: The electronic device determines the visible application interfaces among all the application interfaces corresponding to each first application container as at least two application interfaces corresponding to each first application container.

[0226] In the embodiments of the present application, the above at least two application interfaces are application interfaces for subsequent multi-window display.

[0227] In the embodiments of the present application, the electronic device can judge the visibility of all Activities in the application container task according to the principle of "invisible when covered", so that it can be normally displayed according to the visibility of the application interface.

[0228] Step 304: The electronic device displays at least two application interfaces corresponding to each first application container on the split screen based on the split-screen container corresponding to each first application container and the updated window display parameters.

[0229] In an embodiment of the present application, the electronic device may, based on the updated window display parameters obtained in the above steps, display at least two application interfaces corresponding to the first application container corresponding to each split-screen container on the split screen after split-screen.

[0230] An embodiment of the present application provides a method for multi-window display of applications. When the electronic device detects a split-screen operation on the screen of the electronic device, the electronic device may obtain at least one first application container whose application interface supports multi-window display for the corresponding application, and then, based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, determine the application interfaces to be displayed and the display window size information in the split-screen container corresponding to each first application container, and based on the application interfaces to be displayed and the display window size information, display at least two application interfaces corresponding to the first application container in the split-screen container corresponding to each first application container on the split screen after split-screen, thereby achieving that at least two application interfaces of an application can be simultaneously displayed in one split screen after the screen of the electronic device is split-screened, so that the display size of each application interface adapts to the split-screen size of the screen, and the display ratio of each application interface is more reasonable. In this way, the display effect of the application interface on the electronic device is improved.

[0231] Optionally, the method for multi-window display of applications provided in an embodiment of the present application may further include step 305 below.

[0232] Step 305: When the electronic device detects a trigger display event for the first application interface, if the window mode parameter in the container configuration information of the first application container corresponding to the first application interface is the first parameter, display the first application interface. [[ID=I2]]

[0233] In an embodiment of the present application, the above first application interface is an application interface different from the above at least two application interfaces in the application corresponding to the above first application container.

[0234] In an embodiment of the present application, the above first application interface is an application interface different from the above at least two application interfaces in the application corresponding to the first application container corresponding to the first application interface.

[0235] In an embodiment of the present application, after the electronic device displays at least two application interfaces corresponding to each first application container on the split screen, if the user, in the application corresponding to the first application container, triggers the electronic device to display a first application interface different from the at least two application interfaces through a first input, that is, when the electronic device displays a new application interface, the electronic device may, by increasing the compatibility with the first application interface whose window mode parameter in the container configuration information is the first parameter, enable the electronic device to normally display the first application interface in the application multi-window display mode.

[0236] In the existing related technologies, such as Figure 12 shown, in the shellTransition animation process of the native application interface transition in the Android system, the handleRequest method in StageCoordinator is incompatible with the multi-landscape mode. When using the multi-window display method provided in the embodiments of the present application in a split-screen container task, after two application interfaces of an application are simultaneously displayed, if the user needs to open a new application interface, when the electronic device renders and draws the application interface according to the Figure 12 shown animation process, when passing through handleRequest in StageCoordinator, due to the inability to be compatible with the multi-landscape mode in the existing technology, the subsequent animation display will be different from the split screen, and the subsequent process will exit the split-screen scenario. The embodiments of the present application add compatibility for the multi-window display mode multi-landscape of the application, and solve the above problems.

[0237] Exemplarily, in the embodiments of the present application, the electronic device adds compatibility for the multi-window display mode multi-landscape in the split-screen StageCoordinator on the WMShell side to meet the subsequent process of the activity start animation. For example, when the window display mode windowingMode of the application container task corresponding to the first application interface is the multi-window display mode multi-landscape, and the application container task is a sub-container of the split-screen container task, the electronic device does not exit the split-screen scenario and normally displays the first application interface.

[0238] Optionally, in the embodiments of the present application, after the electronic device displays at least two application interfaces corresponding to each first application container in the split-screen screen based on the split-screen container corresponding to each first application container and the updated window display parameters, the electronic device can also add a drag control between each application interface, so that the user can adjust the display size of the application interface in real time by operating the drag control.

[0239] Optionally, in the embodiments of the present application, after the electronic device displays at least two application interfaces corresponding to each first application container in the split-screen screen based on the split-screen container corresponding to each first application container and the updated window display parameters, the electronic device can also adjust the display sizes of at least two application interfaces corresponding to the first application container corresponding to the split-screen container in real time according to the size change of the split-screen container.

[0240] For the scenarios applicable to the embodiments of the present application, combined with the various implementation solutions of the embodiments of the present application above, specific examples are given below to illustrate the implementation process in the specific scenarios of the embodiments of the present application:

[0241] Example 1. Combining the above Scenario 1: Assume that the large-screen electronic device is a foldable screen mobile phone that can be folded left and right. The foldable screen mobile phone is in the unfolded state, and two application interfaces of the instant messaging application A are fully displayed on the inner screen: the contact message list interface in the instant messaging application A and the chat interface of contact B. The user performs split-screen input. For example, the user needs to split the foldable screen mobile phone vertically and display the application interface of the instant messaging application A on the upper split screen and the application interface of the map application D on the lower split screen. When the foldable screen mobile phone detects the user's split-screen operation on the foldable screen, it will initiate a vertical split-screen operation on the inner screen. Assume that the foldable screen mobile phone remounts the application container corresponding to the instant messaging application A under the upper split container after vertical split-screening, and remounts the application container corresponding to the map application D under the lower split container after vertical split-screening. Since some container configuration information will change during the adaptation of split-screening, the foldable screen mobile phone detects the changed container configuration information and determines whether the application container corresponding to the changed container configuration information meets the conditions for multi-window display and whether the environment where the application container is located meets the conditions for entering the application multi-window display mode. Finally, a first application container that meets the above conditions is obtained. The first application container is the application container corresponding to the instant messaging application A. The application interface of the instant messaging application A supports multi-window display. The application container corresponding to the instant messaging application A corresponds to the upper split container after vertical split-screening, and the application container corresponding to the map application D does not meet the conditions for multi-window display; the foldable screen mobile phone calculates and updates the window display parameters of the first window and the second window in the application container corresponding to the instant messaging application A based on the display configuration parameters of the application container corresponding to the instant messaging application A, such as window boundary values, display ratios of the first window and the second window, and the width of the dividing line between windows, etc. Each window is used to display an application interface in the instant messaging application A; the foldable screen mobile phone obtains two application interfaces with a visibility of true in the instant messaging application A based on the interface configuration information of the instant messaging application A, such as the visibility marker, display area, and transparency parameters of each interface: the left application interface, the contact message list interface in the instant messaging application A, and the right application interface, the chat interface of contact B. As Figure 13As shown, based on the upper split-screen container after the folding screen phone is split into upper and lower screens, and the window display parameters of the updated first window 92 and second window 93, the contact message list interface 921 in the instant messaging application A is displayed in the first window 92 on the upper split-screen of the folding screen phone after splitting, and the chat interface 931 of contact B in the instant messaging application A is displayed in the second window 93. Since the application container corresponding to the map application D does not meet the conditions for multi-window display, in the lower split-screen 94 after splitting, an application interface of the map application D, such as the map display interface 941, is still displayed.

[0242] In the above example, combined with Figure 1 and Figure 13 , it can be seen that the technical solution provided by the embodiments of the present application allows the upper and lower split-screen containers task to respectively mount the corresponding application container task. When the application corresponding to the application container task adapts to multi-window display of the full-screen application, without increasing the application adaptation cost, more content can be displayed in the upper and lower split-screens, optimizing the display effect. Thus, the display effect of third-party applications in the upper and lower split-screen scenarios is optimized, allowing the applications corresponding to the application container task in the split-screen to simultaneously display two Activities with a more reasonable aspect ratio, reducing the problem of abnormal application UI display, and displaying more application content. As Figure 13 shown, one Activity on the left and one Activity on the right, with a better display ratio and more display content compared to Figure 1 . At the same time, the technical solution provided by the embodiments of the present application ensures the consistency and continuity of the display effects of the application interfaces after upper and lower split-screen and the display effects of the application interfaces in the full-screen state when the multi-window display permission of a certain application is enabled.

[0243] Each of the above method embodiments, or various possible implementation manners in each method embodiment, can be executed alone, or any two or more of them can be combined with each other. It can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0244] The application multi-window display method provided by the embodiments of the present application may have an application multi-window display device as the execution subject. In the embodiments of the present application, taking the application multi-window display device executing the application multi-window display method as an example, the application multi-window display device provided by the embodiments of the present application is described.

[0245] Figure 14 shows a possible structural schematic diagram of the application multi-window display device involved in some embodiments of the present application. As FigureAs shown, the multi-window display device 10 of the application may include: an acquisition module 11 and a display module 12. The acquisition module 11 is configured to acquire at least one first application container when a split-screen operation on the screen of the multi-window display device 10 of the application is detected. The application interface of the application corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container respectively. The display module 12 is configured to display at least two application interfaces corresponding to each first application container in the split-screened screen based on the display configuration parameters of each first application container acquired by the acquisition module 11, the interface configuration information of the corresponding application, and the corresponding split-screen container.

[0246] In a possible implementation manner, in combination with ​ , such as ​ shown, the above-mentioned multi-window display device 10 of the application may further include: a processing module 13. The processing module 13 is configured to update the window display parameters of at least two windows in each first application container based on the display configuration parameters of each first application container acquired by the above-mentioned acquisition module 11, and each window is used to display an application interface respectively. The acquisition module 11 is further configured to acquire at least two application interfaces corresponding to each first application container based on the interface configuration information of the application corresponding to each first application container. The above-mentioned display module 12 is specifically configured to display at least two application interfaces corresponding to each first application container acquired by the acquisition module 11 in the split-screened screen based on the split-screen container corresponding to each first application container acquired by the acquisition module 11 and the window display parameters updated by the processing module 13.

[0247] In a possible implementation manner, in combination with ​ , such as ​ shown, the above-mentioned multi-window display device 10 of the application may further include: a determination module 14. The determination module 14 is configured to determine whether the at least one container configuration information meets the multi-window display condition when the at least one container configuration information changes before the above-mentioned acquisition module 11 acquires at least one first application container. The determination module 14 is further configured to determine the container corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information as the above-mentioned at least one first application container.

[0248] In a possible implementation, the above multi-window display conditions include at least one of the following: the container corresponding to the above at least one container configuration information is an application container; there is an application interface that can be multi-window displayed for the application corresponding to the container corresponding to the above at least one container configuration information; the application corresponding to the container corresponding to the above at least one container configuration information has the permission for multi-window display; when the application corresponding to the container corresponding to the above at least one container configuration information is a specific application, the specific application is in an account login state; the above at least one container configuration information includes information related to application interface display; the above at least one container configuration information includes at least one of application information, split-screen information, and application interface information.

[0249] In a possible implementation, in combination with ​ , such as ​ shown, the above application multi-window display device 10 may further include: a processing module 13. After the above acquisition module 11 acquires at least one first application container, the processing module 13 is further configured to update the window mode parameter in the container configuration information of the at least one first application container to a first parameter, and the first parameter is used to indicate that the application corresponding to the first application container supports multi-window display.

[0250] In a possible implementation, the above display module 12 is further configured to, when detecting a trigger display event for a first application interface, if the window mode parameter in the container configuration information of the first application container corresponding to the first application interface is the above first parameter, display the first application interface, and the first application interface is an application interface different from the above at least two application interfaces in the application corresponding to the first application container.

[0251] In a possible implementation, the above acquisition module 11 is further configured to, before the processing module 13 updates the window display parameters of at least two windows in each first application container based on the display configuration parameters of each first application container, acquire four gap distances corresponding to each first application container, where one gap distance is the gap distance reserved for one side of a first application container; and acquire the width value of each first application container and the display ratios of at least two windows in each first application container. The processing module 13 is specifically configured to calculate the display coordinate information of at least two windows in each first application container based on the four gap distances corresponding to each first application container, the width value of each first application container, and the display ratios of at least two windows in each first application container acquired by the acquisition module 11; and update the window display parameters of at least two windows in each first application container based on the display coordinate information of at least two windows in each first application container.

[0252] In a possible implementation, in combination with ​ , such as​ As shown, the above-mentioned multi-window display device 10 may further include: a determination module 14. The determination module 14 is configured to determine, based on a second parameter in the interface configuration information of the application corresponding to each first application container and the display area and transparency parameter of the application interface, whether the application interface is a visible application interface, where the second parameter is used to indicate whether the application interface is covered by the application interface of an application container occupying the corresponding display area; and, traverse all application interfaces in the application corresponding to each first application container to determine whether all application interfaces corresponding to each first application container are visible application interfaces; and, determine the visible application interfaces among all application interfaces corresponding to each first application container as at least two application interfaces corresponding to each first application container.

[0253] In a possible implementation manner, the above-mentioned second parameter is used to indicate whether the above-mentioned application interface is covered by the application interface of an application container occupying the full-screen area. Specifically, the determination module 14 is configured to mark the application interface as an invisible application interface when the value of the second parameter in the interface configuration information of the application corresponding to each first application container is a first value; or, when the value of the second parameter in the interface configuration information of the application corresponding to each first application container is a second value, determine whether the application interface is a visible application interface based on the display area and transparency parameter of the application interface.

[0254] In a possible implementation manner, specifically, the determination module 14 is configured to mark the application interface as a visible application interface when the application interface is a full-screen and opaque application interface. The processing module 13 is further configured to update the value of the second parameter in the interface configuration information of the application corresponding to each first application container to the first value.

[0255] In a possible implementation, the above-mentioned determination module 14 is specifically configured to mark the application interface as an invisible application interface when the above-mentioned one application interface is the left application interface, and the one application interface is not the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the first value, where the third parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the left area; or, when the one application interface is the left application interface, and the one application interface is the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface and update the value of the third parameter in the interface configuration information corresponding to each first application container to the first value; or, when the one application interface is the left application interface, and the one application interface is the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

[0256] In a possible implementation, the above-mentioned determination module 14 is specifically configured to mark the application interface as an invisible application interface when the above-mentioned one application interface is the right application interface, and the one application interface is not the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the first value, where the fourth parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the right area; or, when the one application interface is the right application interface, and the one application interface is the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface and update the value of the fourth parameter in the interface configuration information corresponding to each first application container to the first value; or, when the one application interface is the right application interface, and the one application interface is the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

[0257] An embodiment of the present application provides a multi-window display device for applications. When the multi-window display device for applications detects a split-screen operation by a user on the screen of the multi-window display device for applications, the multi-window display device for applications can obtain at least one first application container in which the application interface of the corresponding application supports multi-window display, and then, based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, it can determine the application interface to be displayed in the split-screen container corresponding to each first application container and the display window size information, and based on the application interface to be displayed and the display window size information, display at least two application interfaces of the corresponding first application container in the split-screen container corresponding to each first application container after the screen is split, thereby achieving that at least two application interfaces of an application can be simultaneously displayed in one split screen after the screen of the multi-window display device for applications is split, making the display size of each application interface adapt to the split size of the screen and the display ratio of each application interface more reasonable. In this way, the display effect of the application interface by the multi-window display device for applications is improved.

[0258] The multi-window display device for applications in the embodiment of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., or may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application does not make specific limitations.

[0259] The multi-window display device for applications in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application does not make specific limitations.

[0260] The multi-window display device for applications provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be elaborated here.

[0261] Optionally, as ​ shown, an embodiment of the present application further provides an electronic device 1600, including a processor 1601 and a memory 1602. A program or instruction that can run on the processor 1601 is stored on the memory 1602. When the program or instruction is executed by the processor 1601, each step of the above embodiment of the application multi-window display method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0262] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0263] ​ It is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.

[0264] The electronic device 1700 includes but is not limited to: a radio frequency unit 1701, a network module 1702, an audio output unit 1703, an input unit 1704, a sensor 1705, a display unit 1706, a user input unit 1707, an interface unit 1708, a memory 1709, and a processor 1710 and other components.

[0265] Those skilled in the art can understand that the electronic device 1700 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 1710 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. ​ The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0266] Among them, the above-mentioned processor 1710 is used to obtain at least one first application container when a split-screen operation on the screen of the electronic device 1700 is detected. The application interface of the application corresponding to the first application container supports multi-window display, and each first application container corresponds to a split-screen container respectively. The above-mentioned display unit 1706 is used to display at least two application interfaces corresponding to each first application container on the split screen based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container.

[0267] Optionally, the above-mentioned processor 1710 is further configured to update the window display parameters of at least two windows in each first application container based on the display configuration parameters of each first application container, where each window is respectively used to display an application interface. The processor 1710 is further configured to obtain at least two application interfaces corresponding to each first application container based on the interface configuration information of the application corresponding to each first application container. The above-mentioned display unit 1706 is specifically configured to display at least two application interfaces corresponding to each first application container on the split screen based on the split screen container corresponding to each first application container and the updated window display parameters.

[0268] Optionally, before obtaining at least one first application container, the above-mentioned processor 1710 is further configured to determine whether the at least one container configuration information meets the multi-window display condition in the case where the at least one container configuration information changes. The processor 1710 is further configured to determine the container corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information as the above-mentioned at least one first application container.

[0269] Optionally, the above-mentioned multi-window display condition includes at least one of the following: the container corresponding to the at least one container configuration information is an application container; there is an application interface that can be multi-window displayed for the application corresponding to the container corresponding to the at least one container configuration information; the application corresponding to the container corresponding to the at least one container configuration information has the permission for multi-window display; in the case where the application corresponding to the container corresponding to the at least one container configuration information is a specific application, the specific application is in the account login state; the at least one container configuration information includes information related to application interface display; the at least one container configuration information includes at least one of application information, split screen information, and application interface information.

[0270] Optionally, after obtaining at least one first application container, the above-mentioned processor 1710 is further configured to update the window mode parameter in the container configuration information of the at least one first application container to a first parameter, where the first parameter is used to indicate that the application corresponding to the first application container supports multi-window display.

[0271] Optionally, when detecting a trigger display event for a first application interface, if the window mode parameter in the container configuration information of the first application container corresponding to the first application interface is the above-mentioned first parameter, the above-mentioned display unit 1706 is further configured to display the first application interface, where the first application interface is an application interface different from the above-mentioned at least two application interfaces in the application corresponding to the first application container.

[0272] Optionally, the above-mentioned processor 1710 is further configured to, before updating the window display parameters of at least two windows in each first application container based on the display configuration parameters of each first application container, obtain four gap distances corresponding to each first application container, where one gap distance is the gap distance reserved for one side of a first application container; and obtain the width value of each first application container and the display ratios of at least two windows in each first application container. Specifically, the processor 1710 is configured to calculate the display coordinate information of at least two windows in each first application container based on the four gap distances corresponding to each first application container, the width value of each first application container, and the display ratios of at least two windows in each first application container; and update the window display parameters of at least two windows in each first application container based on the display coordinate information of at least two windows in each first application container.

[0273] Optionally, the above-mentioned processor 1710 is further configured to determine whether an application interface corresponding to each first application container is a visible application interface based on a second parameter in the interface configuration information corresponding to the application of each first application container, and the display area and transparency parameters of the application interface, where the second parameter is used to indicate whether the application interface is covered by an application interface of an application container occupying the corresponding display area; and traverse all application interfaces in the applications corresponding to each first application container to determine whether all application interfaces corresponding to each first application container are visible application interfaces; and determine the visible application interfaces among all application interfaces corresponding to each first application container as at least two application interfaces corresponding to each first application container.

[0274] Optionally, the above-mentioned second parameter is used to indicate whether the application interface is covered by an application interface of an application container occupying the full-screen area. Specifically, the processor 1710 is configured to mark the application interface as an invisible application interface when the value of the second parameter in the interface configuration information corresponding to the application of each first application container is a first value; or determine whether the application interface is a visible application interface based on the display area and transparency parameters of the application interface when the value of the second parameter in the interface configuration information corresponding to the application of each first application container is a second value.

[0275] Optionally, the above-mentioned processor 1710 is specifically configured to mark the application interface as a visible application interface when the application interface is a full-screen and opaque application interface, and update the value of the second parameter in the interface configuration information corresponding to the application of each first application container to the first value.

[0276] Optionally, the above-mentioned processor 1710 is specifically configured to mark the one application interface as an invisible application interface when the one application interface is the left application interface, and the one application interface is not the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the first value, where the third parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the left area; or, when the one application interface is the left application interface, and the one application interface is the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface and update the value of the third parameter in the interface configuration information corresponding to each first application container to the first value; or, when the one application interface is the left application interface, and the one application interface is the top application interface and the value of the third parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

[0277] Optionally, the above-mentioned processor 1710 is specifically configured to mark the one application interface as an invisible application interface when the one application interface is the right application interface, and the one application interface is not the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the first value, where the fourth parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the right area; or, when the one application interface is the right application interface, and the one application interface is the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface and update the value of the fourth parameter in the interface configuration information corresponding to each first application container to the first value; or, when the one application interface is the right application interface, and the one application interface is the top application interface and the value of the fourth parameter in the interface configuration information corresponding to each first application container is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

[0278] An embodiment of the present application provides an electronic device. When the electronic device detects a split-screen operation by the user on the screen of the electronic device, the electronic device can obtain at least one first application container whose corresponding application's application interface supports multi-window display. Then, based on the display configuration parameters of each first application container, the interface configuration information of the corresponding application, and the corresponding split-screen container, the application interface to be displayed and the display window size information in the split-screen container corresponding to each first application container can be determined. And based on the application interface to be displayed and the display window size information, at least two application interfaces of the first application container are respectively displayed in the split-screen container corresponding to each first application container after the screen is split, thereby realizing that at least two application interfaces of an application can be simultaneously displayed in one split screen after the electronic device screen is split, making the display size of each application interface adapt to the split-screen size of the screen and the display ratio of each application interface more reasonable. In this way, the display effect of the application interface on the electronic device is improved.

[0279] The electronic device provided by the embodiment of the present application can implement each process implemented by the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. The beneficial effects of various implementation manners in this embodiment can specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiment. To avoid repetition, it will not be elaborated here.

[0280] It should be understood that in the embodiment of the present application, the input unit 1704 may include a Graphics Processing Unit (GPU) 17041 and a microphone 17042. The graphics processor 17041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1706 may include a display panel 17061, and the display panel 17061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1707 includes at least one of a touch panel 17071 and other input devices 17072. The touch panel 17071 is also called a touch screen. The touch panel 17071 may include two parts: a touch detection device and a touch controller. The other input devices 17072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0281] The memory 1709 can be used to store software programs and various data. The memory 1709 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1709 can include a volatile memory or a non-volatile memory, or the memory 1709 can include both a volatile and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1709 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0282] The processor 1710 can include one or more processing units; optionally, the processor 1710 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1710 either.

[0283] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above embodiments of the application multi-window display method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0284] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0285] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above application multi-window display method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0286] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0287] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above application multi-window display method embodiment, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0288] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0289] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0290] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A method for applying multi-window display, characterized in that, Applied to an electronic device, the method includes: When a split-screen operation on the screen of the electronic device is detected, obtain at least one first application container, where the application interface of the application corresponding to the first application container supports multi-window display, and each of the first application containers corresponds to a split-screen container respectively; Based on the display configuration parameters of each of the first application containers, the interface configuration information of the corresponding application, and the corresponding split-screen container, display at least two application interfaces corresponding to each of the first application containers on the split screen.

2. The method according to claim 1, wherein The step of displaying at least two application interfaces corresponding to each of the first application containers on the split screen based on the display configuration parameters of each of the first application containers, the interface configuration information of the corresponding application, and the corresponding split-screen container includes: Based on the display configuration parameters of each of the first application containers, update the window display parameters of at least two windows in each of the first application containers, and each of the windows is used to display an application interface; Based on the interface configuration information of the application corresponding to each of the first application containers, obtain at least two application interfaces corresponding to each of the first application containers; Based on the split-screen container corresponding to each of the first application containers and the updated window display parameters, display at least two application interfaces corresponding to each of the first application containers on the split screen.

3. The method according to claim 1, characterized in that, Before obtaining the at least one first application container, the method further includes: When at least one container configuration information changes, determine whether the at least one container configuration information meets the multi-window display condition; The step of obtaining the at least one first application container includes: Determine the container corresponding to the container configuration information that meets the multi-window display condition in the at least one container configuration information as the at least one first application container.

4. The method according to claim 3, wherein The multi-window display condition includes at least one of the following: The container corresponding to the at least one container configuration information is an application container; There is an application interface that can support multi-window display for the application corresponding to the container corresponding to the at least one container configuration information; The application corresponding to the container corresponding to the at least one container configuration information has the permission for multi-window display; When the application corresponding to the container corresponding to the at least one container configuration information is a specific application, the specific application is in an account login state; The at least one container configuration information includes information related to application interface display; The at least one container configuration information includes at least one of application information, split-screen information, and application interface information.

5. The method according to claim 3, characterized in that, After obtaining the at least one first application container, the method further includes: Update the window mode parameter in the container configuration information of the at least one first application container to a first parameter, and the first parameter is used to indicate that the application corresponding to the first application container supports multi-window display.

6. The method according to claim 5, wherein The method further includes: In the case of detecting a trigger display event for the first application interface, if the window mode parameter in the container configuration information of the first application container corresponding to the first application interface is the first parameter, then display the first application interface, where the first application interface is the application interface in the application corresponding to the first application container that is different from the at least two application interfaces.

7. The method according to claim 2, wherein Before updating the window display parameters of at least two windows in each of the first application containers based on the display configuration parameters of each of the first application containers, the method further includes: Obtain four gap distances corresponding to each of the first application containers, where one gap distance is the gap distance reserved for one side of one first application container; Obtain the width value of each of the first application containers and the display ratios of at least two windows in each of the first application containers; Updating the window display parameters of at least two windows in each of the first application containers based on the display configuration parameters of each of the first application containers includes: Based on the four gap distances corresponding to each of the first application containers, the width value of each of the first application containers, and the display ratios of at least two windows in each of the first application containers, calculate the display coordinate information of at least two windows in each of the first application containers; Based on the display coordinate information of at least two windows in each of the first application containers, update the window display parameters of at least two windows in each of the first application containers.

8. The method according to claim 2, characterized in that, Obtaining at least two application interfaces corresponding to each of the first application containers based on the interface configuration information of the application corresponding to each of the first application containers includes: For one application interface of the application corresponding to each of the first application containers, based on the second parameter in the interface configuration information of the application corresponding to each of the first application containers, and the display area and transparency parameter of the one application interface, determine whether the one application interface is a visible application interface, where the second parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the corresponding display area; Traverse all application interfaces in the application corresponding to each of the first application containers to determine whether all application interfaces corresponding to each of the first application containers are visible application interfaces; Determine the visible application interfaces among all application interfaces corresponding to each of the first application containers as at least two application interfaces corresponding to each first application container.

9. The method according to claim 8, characterized in that The second parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the full screen area; Determining whether the one application interface is a visible application interface based on the second parameter in the interface configuration information of the application corresponding to each of the first application containers, and the display area and transparency parameter of the one application interface includes: In the case where the value of the second parameter in the interface configuration information of the application corresponding to each of the first application containers is the first value, mark the one application interface as an invisible application interface; When the value of the second parameter in the interface configuration information corresponding to each of the first application containers is the second value, determine whether the one application interface is a visible application interface based on the display area and transparency parameter of the one application interface.

10. The method according to claim 9, wherein The determining whether the one application interface is a visible application interface based on the display area and transparency parameter of the one application interface includes: When the one application interface is a full-screen and opaque application interface, mark the one application interface as a visible application interface, and update the value of the second parameter in the interface configuration information corresponding to each of the first application containers to the first value.

11. The method according to claim 9, wherein The determining whether the one application interface is a visible application interface based on the display area and transparency parameter of the one application interface includes: When the one application interface is a left-side application interface, and the one application interface is not a top application interface and the value of the third parameter in the interface configuration information corresponding to each of the first application containers is the first value, mark the one application interface as an invisible application interface, where the third parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the left area; When the one application interface is a left-side application interface, and the one application interface is a top application interface and the value of the third parameter in the interface configuration information corresponding to each of the first application containers is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface, and update the value of the third parameter in the interface configuration information corresponding to each of the first application containers to the first value; When the one application interface is a left-side application interface, and the one application interface is a top application interface and the value of the third parameter in the interface configuration information corresponding to each of the first application containers is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

12. The method according to claim 9, wherein The determining whether the one application interface is a visible application interface based on the display area and transparency parameter of the one application interface includes: When the one application interface is a right-side application interface, and the one application interface is not a top application interface and the value of the fourth parameter in the interface configuration information corresponding to each of the first application containers is the first value, mark the one application interface as an invisible application interface, where the fourth parameter is used to indicate whether the one application interface is covered by the application interface of an application container occupying the right area; When the one application interface is the right - hand application interface, and the one application interface is the top - hand application interface and the value of the fourth parameter in the interface configuration information of each of the first application containers corresponding to the application is the second value, and the one application interface is an opaque application interface, mark the one application interface as a visible application interface, and update the value of the fourth parameter in the interface configuration information of each of the first application containers corresponding to the application to the first value; When the one application interface is the right - hand application interface, and the one application interface is the top - hand application interface and the value of the fourth parameter in the interface configuration information of each of the first application containers corresponding to the application is the second value, and the one application interface is a transparent application interface, mark the one application interface as a visible application interface.

13. An application multi-window display device, characterized in that, Comprising: An acquisition module and a display module; The acquisition module is configured to, when a split - screen operation on the screen of the application multi - window display device is detected, acquire at least one first application container, the application interface of the application corresponding to the first application container supports multi - window display, and each of the first application containers corresponds to a split - screen container respectively; The display module is configured to, based on the display configuration parameters of each of the first application containers acquired by the acquisition module, the interface configuration information of the corresponding application, and the corresponding split - screen container, display at least two application interfaces corresponding to each of the first application containers on the split - screen screen.

14. The device according to claim 13, characterized in that, The device further comprises: a processing module; The processing module is configured to, based on the display configuration parameters of each of the first application containers acquired by the acquisition module, update the window display parameters of at least two windows in each of the first application containers, and each of the windows is used to display an application interface; The acquisition module is further configured to, based on the interface configuration information of the application corresponding to each of the first application containers, acquire at least two application interfaces corresponding to each of the first application containers; The display module is specifically configured to, based on the split - screen container corresponding to each of the first application containers acquired by the acquisition module and the window display parameters updated by the processing module, display at least two application interfaces corresponding to each of the first application containers acquired by the acquisition module on the split - screen screen.

15. The device according to claim 13, characterized in that, The device further comprises: a determination module; The determination module is configured to, before the acquisition module acquires at least one first application container, when at least one container configuration information changes, determine whether the at least one container configuration information meets the multi - window display condition; The determination module is further configured to determine the container corresponding to the container configuration information that meets the multi - window display condition in the at least one container configuration information as the at least one first application container.

16. An electronic device, characterized in that, Comprising a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the application multi - window display method according to any one of claims 1 - 12 are implemented.

17. A computer-readable storage medium, characterized in that, The program or instruction is stored on the readable storage medium, and when the program or instruction is executed by the processor, the steps of the application multi-window display method described in any one of claims 1-12 are implemented.