Screen display method and apparatus, device, medium, and product

WO2026199212A1PCT designated stage Publication Date: 2026-10-01ECARX TECHNOLOGY PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/084956
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2026-10-01

Smart Images

  • Figure CN2025084956_01102026_PF_FP_ABST
    Figure CN2025084956_01102026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a screen display method and apparatus, a device, a medium, and a product. The method comprises: acquiring a display configuration file and display requirements, the display configuration file being used to indicate a plurality of display containers having different attributes; on the basis of the display configuration file, determining a target display container that satisfies the display requirements; and sending an identifier of the target display container to a window management service, so that when application software is launched, the application software is displayed in the target display container corresponding to the application software. In the solution of the present application, a plurality of display containers having different display positions, display sizes, and display levels are predefined, and a target display container is matched on the basis of application requirements, thereby avoiding high-load issues resulting from application software calculating display areas on its own, and reducing the performance overhead of screen display.
Need to check novelty before this filing date? Find Prior Art

Description

Screen display methods, devices, equipment, media and products Technical Field

[0001] This application relates to the field of terminal display, and more specifically, to a screen display method, apparatus, device, medium, and product. Background Technology

[0002] With the continuous improvement of the performance of smart terminal devices, terminal display technology has gradually evolved from single-application full-screen display to split-screen display mode that supports multi-task parallel processing.

[0003] In related technologies, when application software displays content on a terminal device's screen, it typically consumes computing resources to monitor the content's location and hierarchy, resulting in a significant processing load. When the terminal device displays in split-screen mode, each application needs to continuously monitor its content, leading to increased system memory usage and impacting the application's response speed and overall system efficiency. Therefore, the current challenge is to reduce the performance consumption of screen displays. Summary of the Invention

[0004] The purpose of this application is to provide a screen display method, apparatus, device, medium, and product to reduce the performance consumption of screen display.

[0005] In a first aspect, this application provides a screen display method, comprising: obtaining a display configuration file and display requirements; wherein the display configuration file is used to indicate multiple display containers with different attributes, the attributes including at least one of the following: display position, display size, and display level; the display requirements include: display container attributes corresponding to the application software; determining a target display container that meets the display requirements according to the display configuration file; and sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts.

[0006] In one implementation, the application software includes multiple components, and different components correspond to different target display containers.

[0007] In one implementation, the method further includes: during the display of multiple components, receiving component status information sent by an activity management service; the component status information includes the identifier of a top-level component, which is a component to be displayed on top; determining a first display container and a second display container that trigger the top-level component; wherein the second display container is the target display container corresponding to the top-level component; determining whether the first display container and the second display container are the same; if so, causing the top-level component to inherit the display container attribute of the first display container so that the top-level component is displayed in the first display container; if not, sending the identifier of the second display container to the window management service so that the top-level component is displayed in the second display container.

[0008] In one implementation, after the top-level component is displayed in the first or second display container, the method further includes: detecting whether a third display container exists in the currently displayed display container; wherein the display area of ​​the third display container overlaps with the target display container corresponding to the top-level component, and the display layer of the third display container is higher than that of the target display container corresponding to the top-level component; if it exists, modifying the display layer of the target display container corresponding to the top-level component, and switching the target display container corresponding to the top-level component to the top level.

[0009] In one implementation, switching the target display container corresponding to the top-level component to the top level specifically includes: performing an animation switch based on the display hierarchy of the first display container and the target display container corresponding to the top-level component to switch the target display container corresponding to the top-level component to the top level.

[0010] In one implementation, after the top-level component is displayed in the first or second display container, the method further includes: assigning the display focus of the target display container corresponding to the top-level component to the top-level component.

[0011] In one implementation, obtaining the display configuration file includes: receiving an initial configuration file sent by a window management service, the initial configuration file including an initial attribute range; determining multiple display containers with different attributes based on the initial configuration file of the display containers, and adding the multiple display containers with different attributes to the initial configuration file to obtain the display configuration file.

[0012] In one implementation, the method further includes: obtaining the process state of the currently running application software, and managing the lifecycle of the target display container corresponding to the application software based on the process state of the application software.

[0013] Secondly, this application provides a screen display device, comprising: an acquisition module for acquiring a display configuration file and display requirements; wherein the display configuration file is used to indicate multiple display containers with different attributes, the attributes including at least one of the following: display position, display size, and display level; the display requirements include: display container attributes corresponding to the application software; a determination module for determining a target display container that meets the display requirements based on the display configuration file; and a sending module for sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts.

[0014] Thirdly, this application provides an electronic device, including: a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the method described above.

[0015] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the above-described method.

[0016] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0017] In conjunction with the above technical solutions, the screen display method, apparatus, device, medium, and product provided in this application include: obtaining a display configuration file and display requirements for indicating multiple display containers with different attributes; determining a target display container that meets the display requirements based on the display configuration file; and sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. The solution of this application, by predefining multiple display containers with different display positions, display sizes, and display levels, and matching the target display container based on application requirements, avoids the high load problem caused by the application software calculating the display area itself, and reduces the performance consumption of screen display. Attached Figure Description

[0018] Figure 1 is a flowchart illustrating the screen display method provided in an embodiment of this application;

[0019] Figure 2 is a schematic diagram of the split-screen display provided in an embodiment of this application;

[0020] Figure 3 is a schematic diagram of the split-screen display provided in an embodiment of this application;

[0021] Figure 4 is a flowchart illustrating the screen display method provided in an embodiment of this application;

[0022] Figure 5 is a flowchart illustrating the screen display method provided in an embodiment of this application;

[0023] Figure 6 is a flowchart illustrating the screen display method provided in an embodiment of this application;

[0024] Figure 7 is an interactive schematic diagram of the screen display method provided in an embodiment of this application;

[0025] Figure 8 is an interactive schematic diagram of the screen display method provided in an embodiment of this application;

[0026] Figure 9 is a schematic diagram of the screen display device provided in an embodiment of this application;

[0027] Figure 10 is a schematic diagram of the structure of the electronic device provided in the embodiment of this application. Detailed Implementation

[0028] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0029] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning. In addition, the terms "comprising" and "having," and any variations thereof, are intended to be omnipresent but not exclusive. For example, a product or device that comprises a series of components is not necessarily limited to those components that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.

[0030] The following disclosure provides many different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. In addition, examples of various specific processes and materials are provided in this invention, but those skilled in the art will recognize the application of other processes and / or the use of other materials.

[0031] First, let me explain the terms used in this application:

[0032] Display Area (DA): Also known as the display region, it is a logical container in the Android system's window management, used to organize and manage different windows (such as the status bar and application interface) in a hierarchical manner, and supports complex display scenarios such as split screen and picture-in-picture.

[0033] Window Manager Service (WMS): A core service of the Android system, responsible for the creation, layout, sorting, and interaction with display hardware of windows, ensuring collaborative rendering of multiple windows.

[0034] Activity Manager Service (AMS): A core service of the Android system that manages the application lifecycle (such as startup / destruction), task stack and component (Activity) state, and coordinates multi-tasking logic.

[0035] In the Android system, after the system boots up, the System Server starts, which in turn starts a series of services, such as WMS and AMS. When an application in the Android system starts and displays content, AMS coordinates the task stack and lifecycle state, while WMS adjusts the window layout and size to adapt to different display modes.

[0036] In related terminal display technologies, when application software needs to output visual content to the user interface, it must achieve content rendering through a complex view management mechanism. This requires each application software to continuously monitor its own display area coordinates, Z-axis hierarchy, and interaction logic with the system status bar, resulting in the application process needing to allocate additional CPU resources for handling interface redrawing and event responses. Especially in split-screen display scenarios, the view management modules of multiple applications running simultaneously will generate cumulative resource consumption, which not only significantly increases the processing latency of individual applications but also causes system-level memory management problems.

[0037] On the other hand, when a terminal executes split-screen display mode, it typically forces a fixed split-screen ratio of 50:50 or 70:30, and only supports a maximum of two applications displayed in parallel. When a user attempts to drag a third application into the split-screen area, the system forcibly interrupts the current workflow. This implementation restricts the user's actual usage scenarios and affects the user experience.

[0038] The technical content provided in this application aims to solve the aforementioned technical problems in related technologies. The screen display method, apparatus, device, medium, and product provided in the embodiments of this application include: obtaining a display configuration file and display requirements for indicating multiple display containers with different attributes; determining a target display container that meets the display requirements based on the display configuration file; and sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. The solution of this application, by predefining multiple display containers with different display positions, display sizes, and display levels, and matching the target display container based on application requirements, avoids the high load problem caused by the application software calculating the display area itself, and reduces the performance consumption of screen display.

[0039] The technical content provided in this application can be used in mobile Android terminals such as smartphones, tablets, foldable screen devices, or in-vehicle Android terminals.

[0040] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0041] Figure 1 is a flowchart illustrating the screen display method provided in an embodiment of this application. As shown in Figure 1, the method includes:

[0042] Step 101: Obtain the display configuration file and display requirements; the display configuration file is used to indicate multiple display containers with different attributes, including at least one of the following: display position, display size, and display hierarchy; the display requirements include: the display container attributes corresponding to the application software;

[0043] Step 102: Based on the display configuration file, determine the target display container that meets the display requirements;

[0044] Step 103: Send the identifier of the target display container to the window management service so that the application software can be displayed in the target display container corresponding to the application software when it starts.

[0045] In practical applications, the execution entity of this method can be a screen display device, which can be implemented in various ways. For example, it can be implemented through a computer program, such as application software; or it can be implemented as a medium storing the relevant computer program, such as a cloud drive; or it can be implemented through a physical device that integrates or installs the relevant computer program, such as a chip. For example, the screen display device can be integrated as a library into the Android system-level application SystemUI.

[0046] For example, the display configuration file can be a pre-compiled configuration file or a new configuration file generated in real time by the window management service in response to device form factor changes (such as unfolding a foldable screen). Specifically, the data structure of the display configuration file can be: a hierarchical data structure representing the relationship between display containers, such as a tree structure containing root nodes and child nodes, where each node stores a set of attributes for the display container. For example, the attribute set can contain the coordinate range stored in the node, where the coordinate range of parent and child nodes can be an inclusion relationship; it can contain the hierarchical order of the nodes, where the parent node is at a higher level than the child node; and it can also contain pointers to parent-child relationships. Optionally, the display configuration file can also be an XML or JSON file.

[0047] Display requirements can originate from declarations in the application software's installation package, such as minimum size and aspect ratio constraints. Optionally, display requirements can also stem from user drag-and-drop and scaling operations. In this example, the display configuration file predetermines display containers with different basic attributes to match real-world needs, improving the efficiency of target display container matching. Optionally, after determining the target display container, display requirements can also include requirements for updating the attributes of that determined target display container, such as adding or modifying attributes.

[0048] In this example, a target display container that meets the display requirements is determined based on the display configuration file. For instance, the display requirements can be converted into a query vector, such as [required width, required height, minimum level]. Further, the set of display container attributes in the configuration file is traversed, such as spatial matching: calculating the containment relationship between the required size and the container's available area, and the level that meets visibility requirements. Optionally, when no matching display container is found, a default display container can be used, or the relevant service can be called to update the display configuration file. For instance, the target display container can correspond to one application or multiple applications, such as multiple applications being displayed in the same display container upon startup.

[0049] After determining the target display container, its identifier is sent to the window management service. This identifier can be a globally unique identifier or a composite key-value pair. It should be noted that after determining the target display container, the application software can display content based on the identifier of the target display container from the window management service. This display process is a common technique and will not be elaborated upon further.

[0050] It is understood that, in practical applications, based on the solution of this embodiment, when multiple applications are opened and at least two of the application software have different target display containers, a split-screen display mode is achieved. Similarly, when three or more application software have different target display area containers, a multi-screen split-screen display mode can be achieved. Figure 2 is a schematic diagram of the split-screen display provided by the embodiment of this application. As shown in Figure 2, in the example of split-screen display with three application software opened simultaneously, the display screen is divided into a status bar, a navigation bar, and three display containers (display container A, display container B, and display container C), corresponding to components 1, 2, and 3, respectively. Figure 3 is a schematic diagram of the split-screen display provided by the embodiment of this application. As shown in Figure 3, in the example of display when only one application is opened, the display screen only includes a status bar, a navigation bar, and one display container (display container D), corresponding to component 4.

[0051] The screen display method provided in this application includes: obtaining a display configuration file and display requirements for indicating multiple display containers with different attributes; determining a target display container that meets the display requirements based on the display configuration file; and sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. This solution, by predefining multiple display containers with different display positions, sizes, and levels, and matching the target display container based on application requirements, avoids the high load problem caused by the application software calculating the display area itself, thus reducing the performance consumption of screen display.

[0052] In one example, the application software includes multiple components, and different components correspond to different target display containers.

[0053] In this example, the display container attributes of the application software included in the display requirements can specifically include the display container attributes of the components within the application software. For instance, if the application software has component A and component B, and their display container attributes are different in the display requirements, then the target display containers for components A and B are also different. It is understood that among multiple components within a component, at least two components will have different target display containers. As an optional example, each component within the application software can also have the same target display container. This example's solution, by setting different display container attributes for components within the application software, allows for the configuration of a separate target display container for each software, enabling the content of the same application software to be displayed in different areas of the screen, thus improving display flexibility.

[0054] Figure 4 is a flowchart illustrating the screen display method provided in an embodiment of this application. As shown in Figure 4, the method further includes:

[0055] Step 201: During the display of multiple components, receive component status information sent by the activity management service; the component status information includes the identifier of the top-level component, which is the component to be displayed on top.

[0056] Step 202: Determine the first display container and the second display container that trigger the top-level component; wherein, the second display container is the target display container corresponding to the top-level component;

[0057] Step 203: Determine whether the first display container and the second display container are the same; if so, make the top-level component inherit the display container property of the first display container so that the top-level component is displayed in the first display container; if not, send the identifier of the second display container to the window management service so that the top-level component is displayed in the second display container.

[0058] In practical applications, by using the task stack information maintained by AMS, we can obtain the Activity component currently at the top of the stack (such as class name, package name, etc.) and the context information of its assigned task. This information reflects what is currently running in the foreground or about to be displayed on top. Specifically, in this example, the top-level component is the component to be displayed on top. For example, by listening to task stack information or receiving task stack information from AMS, we can continuously obtain the top-level component. When the top-level component changes from component A to component B, component B becomes the top-level component in this example.

[0059] In this example, the first display container that triggers the top-level component can be understood as the display container of an application that triggers the top-level component, or a component within an application. This application can be the application to which the top-level component belongs or other applications, and a component within an application is any component other than the top-level component. The second display container is the display container that meets the display requirements of the top-level component; that is, the target display container for the top-level component. For example, when a user clicks on the display content of component A to navigate to component B, where component B is the top-level component, the first display container that triggers the top-level component is the display container that includes the display content of component A. Furthermore, when the first and second display containers are the same, the top-level component can inherit the display container attributes of the first display container and display it directly. If the first and second display containers are different, the identifier of the second display container is sent to the window management service so that the top-level component is displayed in the target display container corresponding to that component. The solution in this example, provided that the component is already displayed in the display container, allows the component to be displayed on top to be displayed in the target display container corresponding to the component when a component within the application triggers the display or a component across applications triggers the display, thus improving the accuracy and efficiency of the display.

[0060] Figure 5 is a flowchart illustrating the screen display method provided in an embodiment of this application. As shown in Figure 5, after the top-level component is displayed in the first or second display container in step 203, the method further includes:

[0061] Step 301: Detect whether there is a third display container in the currently displayed display container; wherein the display area of ​​the third display container overlaps with the target display container corresponding to the top-level component, and the display level of the third display container is higher than that of the target display container corresponding to the top-level component;

[0062] Step 302: If it exists, modify the display layer of the target display container corresponding to the top-level component, and switch the target display container corresponding to the top-level component to the top level.

[0063] For example, by calculating the coordinates and dimensions of two display containers, it can be determined whether their boundaries intersect, and then further determined whether the display area of ​​the third display container coincides with the target display container corresponding to the top-level component. For example, the display layer size of the two display containers can be determined by comparing their display layer attributes. If a third display container exists within the currently displayed display container, the target display layer corresponding to the top-level component is modified to be higher than the display layer of the third display container. This example solution, by managing the display layer of the display containers, ensures that the top-level component is always visually on top, improving the user experience and preventing important information from being obscured.

[0064] As another example, step 302, which switches the target display container corresponding to the top-level component to the top level, specifically includes: performing an animation switch based on the display hierarchy of the first display container and the target display container corresponding to the top-level component to switch the target display container corresponding to the top-level component to the top level.

[0065] This example solution performs animation switching based on the display hierarchy of the first display container and the target display container corresponding to the top-level component, which enhances the aesthetics of display management and provides users with immediate visual feedback, thereby improving the user experience.

[0066] As another example, after the top-level component is displayed in the first or second display container in step 203, the method further includes: assigning the display focus of the target display container corresponding to the top-level component to the top-level component.

[0067] For example, when the display focus is assigned to the top-level component, it is easier to determine if a user's click operation is within the display area of ​​the top-level component. Furthermore, when the display focus is assigned to the top-level component, its CPU resources are allocated with higher priority compared to other components in the target display container, ensuring smooth operation of the top-level component. In this example, by assigning the display focus of the target display container corresponding to the top-level component to the top-level component, users can immediately begin interacting with the component, thus improving operational efficiency. Simultaneously, configuring the display focus on the top-level component increases its priority in acquiring computing resources, thereby improving display smoothness.

[0068] Figure 6 is a flowchart illustrating the screen display method provided in an embodiment of this application. As shown in Figure 6, step 101 involves obtaining a display configuration file, including:

[0069] Step 401: Receive the initial configuration file sent by the window management service. The initial configuration file includes the initial attribute range.

[0070] Step 402: Determine multiple display containers with different attributes based on the initial configuration file of the display container, and add these multiple display containers with different attributes to the initial configuration file to obtain the display configuration file.

[0071] In practical applications, the initial configuration file can be determined based on hardware or software information of the terminal screen, such as predefined by system vendors or device customization strategies. For example, the initial attribute range included in the initial configuration configuration file can be the range between the minimum and maximum display areas, or the range from the minimum to the maximum display level. Further, multiple display containers with different attributes are determined based on the initial configuration file of the display containers, and these multiple display containers with different attributes are added to the initial configuration file to obtain the display configuration file. This example solution, by determining the display configuration file based on the initial configuration file, simplifies the configuration management process and reduces the complexity and error rate of manual configuration through centralized management of display container attributes. It also allows for flexible configuration of display container attributes (such as size, position, and level) to adapt to different application needs and user preferences.

[0072] As another example, the method also includes: obtaining the process state of the currently running application software, and managing the lifecycle of the target display container corresponding to the application software based on the process state of the application software.

[0073] In practical applications, continuously monitor currently running applications and periodically or in real-time obtain their process status. These statuses may include application startup, running, paused, resumed, and closed. For example, when an application starts, its corresponding target display container is created or activated to enable the application to display; if the application enters a paused state, the target display container can be hidden or minimized to save resources; when the application resumes from a paused state, its corresponding target display container can be reactivated; when the application closes, its corresponding display container can be destroyed or released to free up system resources. This example solution simplifies application development by managing the lifecycle of the target display container corresponding to the application, eliminating the need for the application to manage the state changes of the display container itself. In complex scenarios with multiple applications and multiple display containers, it can effectively coordinate the attributes of the display containers, avoiding conflicts and resource contention.

[0074] Figure 7 is an interactive schematic diagram of the screen display method provided in this application embodiment. As shown in Figure 7, the WMS under the System Server sends an initial configuration file to the screen display device in the System UI. The screen display device determines the display configuration file according to the initial configuration file, determines the target display container that meets the display requirements, and returns the identifier of the target display container to the WMS so that the application software is displayed in the corresponding target display container (such as display container 1, display container 2, display container 3). At the same time, the screen display device can also manage the lifecycle of the target display container according to the process state of the application software. Further, the screen display device also receives component status information initiated by the AMS, and determines the target display container corresponding to the top-level component according to the identifier of the top-level component in the component status information. Among them, when the target display container corresponding to the top-level component is covered by other display containers, the screen display device is also used to manage the display layer and switching animation of the display container. It should be noted that the screen display device interacts with the CS service (CarService) in the System Server to call the CAS (CarActivityService) in CarService so that the top-level component is displayed on top.

[0075] Figure 8 is an interactive schematic diagram of the screen display method provided in this application embodiment. As shown in Figure 8, after the WMS sends the initial configuration file to the screen display device, the screen display device first determines the display containers with different attributes such as display level, display position, and display size, and determines the target display container corresponding to each component of the application software to be displayed according to the display requirements. After the component is displayed in the corresponding target display container, the screen display device manages the target display container corresponding to the component according to the process status of the component. Further, when the screen display device receives the component information status including the identifier of the top-level component from the AMS, and determines whether the first display container that triggers the top-level component and the target display container corresponding to the top-level component are consistent, if they are consistent, the top-level component inherits the attributes of the first display container so that the top-level component is displayed in the first display container; if they are inconsistent, the identifier corresponding to the second display container is determined, and the identifier of the second display container is sent to the WMS so that the top-level component is displayed in the second display container. When the first display container or the second display container is covered by the third display container, the screen display device modifies the display layer of the first display container or the second display container, and executes the first display container or the second display container to be on top through animation switching, and the display focus of the first display container or the second display container is assigned to the top-level component.

[0076] The screen display method provided in this application includes: obtaining a display configuration file and display requirements for indicating multiple display containers with different attributes; determining a target display container that meets the display requirements based on the display configuration file; and sending the identifier of the target display container to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. This solution, by predefining multiple display containers with different display positions, sizes, and levels, and matching the target display container based on application requirements, avoids the high load problem caused by the application software calculating the display area itself, thus reducing the performance consumption of screen display.

[0077] Figure 9 is a schematic diagram of the structure of the screen display device provided in an embodiment of this application. As shown in Figure 9, the screen display device includes:

[0078] The acquisition module 91 is used to acquire the display configuration file and display requirements; wherein the display configuration file is used to indicate multiple display containers with different attributes, and the attributes include at least one of the following: display position, display size, and display level; the display requirements include: the display container attributes corresponding to the application software;

[0079] The determination module 92 is used to determine the target display container that meets the display requirements based on the display configuration file;

[0080] The sending module 93 is used to send the identifier of the target display container to the window management service so that the application software can be displayed in the target display container corresponding to the application software when it starts.

[0081] In practical applications, screen display devices can be implemented in various ways. For example, they can be implemented through computer programs, such as application software; or they can be implemented as a medium storing related computer programs, such as cloud storage; or they can be implemented through a physical device that integrates or installs related computer programs, such as a chip. For instance, a screen display device can be integrated as a library into the Android system-level application SystemUI.

[0082] For example, the display configuration file can be a pre-compiled configuration file or a new configuration file generated in real time by the window management service in response to device form factor changes (such as unfolding a foldable screen). Specifically, the data structure of the display configuration file can be: a hierarchical data structure representing the relationship between display containers, such as a tree structure containing root nodes and child nodes, where each node stores a set of attributes for the display container. For example, the attribute set can contain the coordinate range stored in the node, where the coordinate range of parent and child nodes can be an inclusion relationship; it can contain the hierarchical order of the nodes, where the parent node is at a higher level than the child node; and it can also contain pointers to parent-child relationships. Optionally, the display configuration file can also be an XML or JSON file.

[0083] Display requirements can originate from declarations in the application software's installation package, such as minimum size and aspect ratio constraints. Optionally, display requirements can also stem from user drag-and-drop and scaling operations. In this example, the display configuration file predetermines display containers with different basic attributes to match real-world needs, improving the efficiency of target display container matching. Optionally, after determining the target display container, display requirements can also include requirements for updating the attributes of that determined target display container, such as adding or modifying attributes.

[0084] In this example, a target display container that meets the display requirements is determined based on the display configuration file. For instance, the display requirements can be converted into a query vector, such as [required width, required height, minimum level]. Further, the set of display container attributes in the configuration file is traversed, such as spatial matching: calculating the containment relationship between the required size and the container's available area, and the level that meets visibility requirements. Optionally, when no matching display container is found, a default display container can be used, or the relevant service can be called to update the display configuration file. For instance, the target display container can correspond to one application or multiple applications, such as multiple applications being displayed in the same display container upon startup.

[0085] After determining the target display container, its identifier is sent to the window management service. This identifier can be a globally unique identifier or a composite key-value pair. It should be noted that after determining the target display container, the application software can display content based on the identifier of the target display container from the window management service. This display process is a common technique and will not be elaborated upon further.

[0086] It is understandable that, in practical applications, based on the solution of this embodiment, when multiple applications are opened, and at least two of the applications have different target display containers, a split-screen display mode is achieved. Similarly, when three or more applications have different target display area containers, a multi-screen split-screen display mode can be achieved.

[0087] In the screen display device provided in this application embodiment, a display configuration file and display requirements for indicating multiple display containers with different attributes are obtained; a target display container that meets the display requirements is determined according to the display configuration file; and the identifier of the target display container is sent to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. The solution of this application avoids the high load problem caused by the application software calculating the display area itself by predefining multiple display containers with different display positions, display sizes, and display levels, and matching the target display container based on application requirements, thereby reducing the performance consumption of screen display.

[0088] As yet another example, the application software includes multiple components, each with a different target display container.

[0089] In this example, the display container attributes of the application software included in the display requirements can specifically include the display container attributes of the components within the application software. For instance, if the application software has component A and component B, and their display container attributes are different in the display requirements, then the target display containers for components A and B are also different. It is understood that among multiple components within a component, at least two components will have different target display containers. As an optional example, each component within the application software can also have the same target display container. This example's solution, by setting different display container attributes for components within the application software, allows for the configuration of a separate target display container for each software, enabling the content of the same application software to be displayed in different areas of the screen, thus improving display flexibility.

[0090] As yet another example, the screen display device also includes: a management module 94; the management module 94 is used for:

[0091] During the display of multiple components, the system receives component status information sent by the activity management service. The component status information includes the identifier of the top-level component, which is the identifier of the component to be displayed on top.

[0092] Determine the first display container and the second display container that trigger the top-level component; wherein, the second display container is the target display container corresponding to the top-level component;

[0093] Determine whether the first display container and the second display container are the same; if so, make the top-level component inherit the display container property of the first display container so that the top-level component is displayed in the target display container corresponding to the component; if not, send the identifier of the second display container to the window management service so that the top-level component is displayed in the target display container corresponding to the component.

[0094] In practical applications, by using the task stack information maintained by AMS, we can obtain the Activity component currently at the top of the stack (such as class name, package name, etc.) and the context information of its assigned task. This information reflects what is currently running in the foreground or about to be displayed on top. Specifically, in this example, the top-level component is the component to be displayed on top. For example, by listening to task stack information or receiving task stack information from AMS, we can continuously obtain the top-level component. When the top-level component changes from component A to component B, component B becomes the top-level component in this example.

[0095] In this example, the first display container that triggers the top-level component can be understood as the display container of an application that triggered the top-level component, or a component within an application. This application can be the application to which the top-level component belongs or other applications, and a component within an application is any component other than the top-level component. The second display container is the display container that meets the display requirements of the top-level component; that is, the target display container for the top-level component. Furthermore, when the first and second display containers are the same, the top-level component can inherit the display container attributes of the first display container and be displayed directly. If the first and second display containers are different, the identifier of the second display container is sent to the window management service so that the top-level component is displayed in the target display container corresponding to that component. This example's solution, assuming the component is already displayed in a display container, allows the component to be displayed to the top to be displayed in the target display container corresponding to that component when a component within the same application triggers the display or a component across applications triggers the display, thus improving display accuracy and efficiency.

[0096] As yet another example, management module 94 is also used for:

[0097] Detect whether a third display container exists in the currently displayed display container; wherein the display area of ​​the third display container overlaps with the target display container corresponding to the top-level component, and the display layer of the third display container is higher than that of the target display container corresponding to the top-level component;

[0098] If it exists, modify the display layer of the target display container corresponding to the top-level component, and switch the target display container corresponding to the top-level component to the top level.

[0099] For example, by calculating the coordinates and dimensions of two display containers, it can be determined whether their boundaries intersect, and then further determined whether the display area of ​​the third display container coincides with the target display container corresponding to the top-level component. For example, the display layer size of the two display containers can be determined by comparing their display layer attributes. If a third display container exists within the currently displayed display container, the target display layer corresponding to the top-level component is modified to be higher than the display layer of the third display container. This example solution, by managing the display layer of the display containers, ensures that the top-level component is always visually on top, improving the user experience and preventing important information from being obscured.

[0100] As yet another example, management module 94 is specifically used for:

[0101] Animation switching is performed based on the display hierarchy of the first display container and the target display container corresponding to the top-level component.

[0102] This example solution performs animation switching based on the display hierarchy of the first display container and the target display container corresponding to the top-level component, which enhances the aesthetics of display management and provides users with immediate visual feedback, thereby improving the user experience.

[0103] As yet another example, management module 94 is also used for:

[0104] Assign the display focus of the target display container corresponding to the top-level component to the top-level component.

[0105] In this example, by assigning the display focus of the target display container corresponding to the top-level component to the top-level component, users can immediately begin interacting with the component, thereby improving operational efficiency. At the same time, configuring the display focus on the top-level component can increase the priority of the top-level component in acquiring computing resources, thereby improving the smoothness of the display.

[0106] As yet another example, module 91 is used specifically for:

[0107] Receive the initial configuration file sent by the window management service. The initial configuration file includes the initial attribute range.

[0108] Based on the initial configuration file of the display container, determine multiple display containers with different attributes, and add these multiple display containers with different attributes to the initial configuration file to obtain the display configuration file.

[0109] In practical applications, the initial configuration file can be determined based on hardware or software information of the terminal screen, such as predefined by system vendors or device customization strategies. For example, the initial attribute range included in the initial configuration configuration file can be the range between the minimum and maximum display areas, or the range from the minimum to the maximum display level. Further, multiple display containers with different attributes are determined based on the initial configuration file of the display containers, and these multiple display containers with different attributes are added to the initial configuration file to obtain the display configuration file. This example solution, by determining the display configuration file based on the initial configuration file, simplifies the configuration management process and reduces the complexity and error rate of manual configuration through centralized management of display container attributes. It also allows for flexible configuration of display container attributes (such as size, position, and level) to adapt to different application needs and user preferences.

[0110] As yet another example, management module 94 is also used for:

[0111] Get the process status of the currently running application software, and manage the lifecycle of the target display container corresponding to the application software based on the process status of the application software.

[0112] In practical applications, continuously monitor currently running applications and periodically or in real-time obtain their process status. These statuses may include application startup, running, paused, resumed, and closed. For example, when an application starts, its corresponding target display container is created or activated to enable the application to display; if the application enters a paused state, the target display container can be hidden or minimized to save resources; when the application resumes from a paused state, its corresponding target display container can be reactivated; when the application closes, its corresponding display container can be destroyed or released to free up system resources. This example solution simplifies application development by managing the lifecycle of the target display container corresponding to the application, eliminating the need for the application to manage the state changes of the display container itself. In complex scenarios with multiple applications and multiple display containers, it can effectively coordinate the attributes of the display containers, avoiding conflicts and resource contention.

[0113] In the screen display device provided in this application embodiment, a display configuration file and display requirements for indicating multiple display containers with different attributes are obtained; a target display container that meets the display requirements is determined according to the display configuration file; and the identifier of the target display container is sent to a window management service so that the application software is displayed in the target display container corresponding to the application software when it starts. The solution of this application avoids the high load problem caused by the application software calculating the display area itself by predefining multiple display containers with different display positions, display sizes, and display levels, and matching the target display container based on application requirements, thereby reducing the performance consumption of screen display.

[0114] Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 10, the electronic device provided in this embodiment includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can call logical instructions in the memory 292 to execute the method described above.

[0115] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0116] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, it implements the methods in the above method examples.

[0117] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.

[0118] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods described in the above embodiments.

[0119] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described in the above embodiments.

[0120] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A screen display method characterized by, include: Obtain the display configuration file and display requirements; wherein the display configuration file is used to indicate a display container with multiple different attributes, the attributes including at least one of the following: display position, display size, and display hierarchy; The display requirements include: the display container attributes corresponding to the application software; Based on the display configuration file, determine the target display container that meets the display requirements; The identifier of the target display container is sent to the window management service so that the application software is displayed in the target display container corresponding to the application software when it starts.

2. The method of claim 1, wherein, The application software includes multiple components, and different components correspond to different target display containers.

3. The method of claim 2, wherein, The method further includes: During the display of the multiple components, component status information sent by the activity management service is received; the component status information includes the identifier of the top-level component, which is the component to be displayed on top. Determine the first display container and the second display container that trigger the top-level component; wherein the second display container is the target display container corresponding to the top-level component; Determine whether the first display container and the second display container are the same; if so, make the top-level component inherit the display container property of the first display container so that the top-level component is displayed in the first display container; if not, send the identifier of the second display container to the window management service so that the top-level component is displayed in the second display container.

4. The method of claim 3, wherein, After the top-level component is displayed in the first display container or the second display container, the method further includes: Detect whether a third display container exists in the currently displayed display container; wherein the display area of ​​the third display container overlaps with the target display container corresponding to the top-level component, and the display level of the third display container is higher than that of the target display container corresponding to the top-level component; If it exists, modify the display layer of the target display container corresponding to the top-level component, and switch the target display container corresponding to the top-level component to the top level.

5. The method of claim 4, wherein, Switching the target display container corresponding to the top-level component to the top level specifically includes: Based on the display hierarchy of the first display container and the target display container corresponding to the top-level component, an animation switch is performed to switch the target display container corresponding to the top-level component to the top level.

6. The method of claim 3, wherein, After the top-level component is displayed in the first display container or the second display container, the method further includes: The display focus of the target display container corresponding to the top-level component is assigned to the top-level component.

7. The method according to any one of claims 1 to 6, characterized in that, The process of obtaining the display configuration file includes: Receive the initial configuration file sent by the window management service, the initial configuration file including an initial attribute range; Based on the initial configuration file of the display container, a plurality of display containers with different attributes are determined, and the plurality of display containers with different attributes are added to the initial configuration file to obtain the display configuration file.

8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: Obtain the process status of the currently running application software, and manage the lifecycle of the target display container corresponding to the application software based on the process status of the application software.

9. A screen display device, characterized by comprising: include: The acquisition module is used to obtain the display configuration file and display requirements; The display configuration file is used to indicate a display container with multiple different attributes, including at least one of the following: display position, display size, and display hierarchy; The display requirements include: the display container attributes corresponding to the application software; The determination module is used to determine a target display container that meets the display requirements based on the display configuration file. The sending module is used to send the identifier of the target display container to the window management service so that the application software can be displayed in the target display container corresponding to the application software when it starts.

10. An electronic device, comprising: include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1 to 8.

11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 8.

12. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1 to 8.