Interface display methods, devices, equipment, media and program products

By obtaining the configuration information of interface elements and the display information of the display area, and combining relative and absolute layouts, the problem of slow rendering speed caused by too many interface elements is solved, and the application interface is displayed quickly and the smoothness is improved.

CN123114599APending Publication Date: 2026-11-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510639448.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

When there are too many interface elements in an application, the rendering speed of the application interface slows down, resulting in lag or delay.

Method used

By obtaining the configuration information of the interface elements and the display information of the display area, the layout information of the interface elements is determined, and the interface is displayed according to the layout information. Layout components that are compatible with relative and absolute layouts are used to improve the layout speed of interface elements.

Benefits of technology

It improves the rendering speed of the application interface, reduces lag and latency, and enhances display smoothness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123114599A_ABST
    Figure CN123114599A_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, medium, and program product for displaying an interface. The method includes: obtaining configuration information of a set of interface elements corresponding to the interface; determining layout information of the set of interface elements based on the configuration information and display information of the display area corresponding to the interface; and displaying the interface based on the layout information of the set of interface elements. This application improves the rendering speed of the application interface by increasing the layout speed of interface elements in the application interface, thereby reducing stuttering or delays in the application interface display and improving the smoothness of the application interface display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an interface display method, apparatus, device, medium, and program product. Background Technology

[0002] With the rapid development of various applications, the number of interface elements in application interfaces is becoming increasingly numerous. For example, live streaming interfaces can use features such as streamer information, toolbars, comment boxes, and other controls to attract users and enhance interaction between users and streamers. However, when there are too many interface elements in an application interface, it can slow down the rendering speed of the application interface, causing stuttering or lag in the display. Summary of the Invention

[0003] This application provides an interface display method, apparatus, device, medium, and program product. By improving the layout speed of interface elements in the application interface, the rendering speed of the application interface is improved, thereby reducing the phenomenon of stuttering or delay in the display of the application interface and improving the display smoothness of the application interface.

[0004] In a first aspect, embodiments of this application provide an interface display method, including:

[0005] Get the configuration information of a set of interface elements corresponding to the interface;

[0006] Based on the configuration information of the set of interface elements and the display information of the corresponding display area of ​​the interface, the layout information of the set of interface elements is determined;

[0007] The interface is displayed based on the layout information of the set of interface elements.

[0008] Secondly, embodiments of this application provide an interface display device, including:

[0009] The first acquisition module is used to acquire configuration information of a set of interface elements corresponding to the interface.

[0010] The information determination module is used to determine the layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface.

[0011] The interface display module is used to display the interface based on the layout information of the set of interface elements.

[0012] Thirdly, embodiments of this application provide an electronic device, including:

[0013] A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the interface display method as described in the foregoing first aspect embodiment and various implementations.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to execute the interface display method as described in the first aspect embodiment and its various implementations.

[0015] Fifthly, embodiments of this application provide a computer program product containing program instructions, which, when executed on an electronic device, cause the electronic device to perform the interface display method as described in the first aspect embodiment and its various implementations.

[0016] The technical solution disclosed in this application obtains configuration information of a set of interface elements corresponding to the interface, determines layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface, and then displays the interface based on the layout information of the set of interface elements. In this way, by improving the layout speed of interface elements in the application interface, the rendering speed of the application interface is improved, thereby reducing stuttering or delays in the application interface display and improving the smoothness of the application interface display. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart illustrating an interface display method provided in an embodiment of this application;

[0019] Figure 2 A flowchart illustrating how to determine the display attribute information and position information of each interface element in a set of interface elements corresponding to an interface, as provided in this application embodiment;

[0020] Figure 3 A schematic diagram of a two-dimensional coordinate system constructed based on the display area corresponding to the interface, provided for an embodiment of this application;

[0021] Figure 4a A top alignment diagram provided for an embodiment of this application;

[0022] Figure 4b This application provides a schematic diagram of bottom alignment in an embodiment.

[0023] Figure 4c A center alignment diagram provided for an embodiment of this application;

[0024] Figure 5 A schematic block diagram of an interface display device provided in an embodiment of this application;

[0025] Figure 6 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0028] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or solution described as "exemplary" or "for example" in this application should not be construed as being better or more advantageous than other embodiments or solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0029] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more, that is, at least two. "At least one" means one or more. "Any" means any one or any several.

[0030] As mentioned earlier, with the rapid development of various applications, the number of interface elements in application interfaces is increasing. For example, live streaming interfaces can use features such as streamer information, toolbars, comment boxes, and other controls to attract users and enhance interaction between users and streamers. However, when there are too many interface elements in an application interface, it can slow down the rendering speed of the application interface, causing stuttering or delays in the display.

[0031] To address the aforementioned technical problems, this application provides an interface display method, apparatus, device, medium, and program product to solve the problem that when there are too many interface elements in the application interface, the rendering speed of the application interface slows down, causing the application interface display to lag or delay.

[0032] The technical solutions provided by the embodiments of this application will be described in detail below through some examples. The embodiments described below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0033] Figure 1 This is a flowchart illustrating an interface display method provided in an embodiment of this application. The interface display method of this application embodiment can be executed by an interface display device, which can consist of hardware and / or software and can be integrated into an electronic device. In this application embodiment, the electronic device can be, but is not limited to, smartphones, tablets, laptops, desktop computers, smart TVs, and wearable devices. Wearable devices can include smart glasses, smartwatches, and head-mounted devices. No limitations are placed on the type of electronic device herein.

[0034] In some optional embodiments, the electronic device of this application may include a layout component that is compatible with both relative and absolute layouts. This layout component allows for the arrangement of the display position and size of the interface elements corresponding to the application interface using absolute layout while preserving the relative layout within the interface elements themselves. The number of interface elements corresponding to the application interface can be one or more. In this application, one or more interface elements can be described as a group of interface elements. That is, a group of interface elements can contain one or more interface elements.

[0035] In this application, the aforementioned relative layout can be a relative layout implemented by the network layout component UIStackView, or a relative layout implemented by other components. The aforementioned absolute layout can be a frame absolute layout or other absolute layouts, and no specific restrictions are imposed here.

[0036] Relative layout, in particular, uses set attributes such as axis, distribution, alignment, and spacing to generate corresponding constraints to determine the display position, size, and arrangement of interface elements. These constraints can be implemented using Auto Layout constraints, which work by establishing and solving a system of linear equations to determine the display position and size of interface elements. In other words, relative layout constructs a system of linear equations based on the constraints between interface elements, then solves these equations to obtain the final display position and size of each interface element.

[0037] Absolute layout is achieved by setting the absolute display position and absolute display size of interface elements.

[0038] In other words, the layout component in this application can improve the efficiency of interface display by removing the operation of establishing and solving a set of thread equations to obtain the final display position and final display size of each interface element, while retaining the attributes such as axis, distribution, alignment and spacing in relative layout.

[0039] It should be understood that the interface display method provided in this application can be executed by the above-mentioned layout components that are compatible with relative and absolute layouts.

[0040] After describing the layout components included in the electronic device of this application, the following will be combined with... Figure 1 The interface display method provided in the embodiments of this application will be described in detail.

[0041] like Figure 1 As shown, the interface display method may include the following steps:

[0042] S101, obtain the configuration information of a set of interface elements corresponding to the interface.

[0043] In this application, the aforementioned interface can refer to the application interface provided by any type of application, such as a live streaming interface, content details interface, application main interface, settings interface, and any other application interface that needs to be displayed. This application does not impose any specific restrictions on this.

[0044] Each interface element in the above set of interface elements can be understood as a subview of the interface.

[0045] A subview is a view object nested within a parent view. This view object is used to display specific information or functions and can be a button, text box, icon, image, host information, toolbar, comment box, or other controls.

[0046] The parent view mentioned above refers to a layout container used to manage multiple child views. That is, child views depend on the parent view for layout and display, and the parent view provides a platform for the child views to be displayed and interacted with.

[0047] In this application, the aforementioned parent view can refer to the display area corresponding to the interface. This display area refers to a virtual window or virtual area where a set of interface elements are drawn, allowing developers to perform layout operations such as adding, editing, and arranging various interface elements based on this display area. Furthermore, this display area corresponds to the actual visible area of ​​the screen corresponding to the interface. It should be understood that, in this application, the aforementioned display area corresponding to the interface can also be described as a canvas.

[0048] For example, when the interface is a live streaming interface, the parent view can be the display area corresponding to the live streaming interface.

[0049] The configuration information for the aforementioned set of interface elements can be understood as the expected size information set by the developer for the corresponding set of interface elements when developing the interface. This expected size information refers to the size that the developer wants the set of interface elements to appear in the interface. The size information may include width and height information.

[0050] In other words, the configuration information of the aforementioned set of interface elements can be understood as the expected size information of each interface element in the set. This configuration information may include first configuration information and second configuration information, where the first configuration information may be the expected width information and the second configuration information may be the expected height information; or, the first configuration information may be the expected height information and the second configuration information may be the expected width information. The following explanation will focus on an example where the first configuration information can be the expected width information and the second configuration information can be the expected height information.

[0051] In some optional embodiments, when a developer needs to layout any interface, they can first determine the layout logic of each interface element in a set of interface elements corresponding to that interface, and initialize the layout component to obtain the corresponding computing resources. Next, the display information of the display area corresponding to the interface is determined. Then, the developer adds the set of interface elements corresponding to that interface to the layout component through a preset interface. Alternatively, after determining the display information of the display area corresponding to the interface, the layout component can automatically load the set of interface elements corresponding to that interface through a data loading script. Then, the layout component can lay out the set of interface elements corresponding to that interface based on the display information of the display area, thereby achieving automatic layout of interface elements and improving interface display speed and efficiency.

[0052] The display information of the display area includes: first display information and second display information, wherein the first display information can be width information and the second display information can be height information; or, the first display information can be height information and the second display information can be width information. The following explanation uses the example where the first display information can be width information and the second display information can be height information.

[0053] Optionally, the display information for determining the display area corresponding to the interface in this application may include the following:

[0054] Scenario 1: Based on the interface type, obtain the display information of the corresponding display area of ​​the interface from the mapping relationship between the interface and the display information.

[0055] The interface types can include: live streaming interface, settings interface, main interface, and user information interface, etc. There are no restrictions on the interface types here.

[0056] In other words, this application obtains type information of different interfaces and determines the display information of the display area corresponding to different interface type information, thereby establishing a mapping relationship between the interface and the display information. When determining the display information of the display area corresponding to the interface, the display information of the display area corresponding to this type information of the interface can be obtained from the mapping relationship, and the obtained display information of the display area is determined as the display information of the display area corresponding to the interface.

[0057] Scenario 2: Determine the display information of the corresponding display area of ​​the interface based on the screen size and spacing information of the electronic device.

[0058] Among them, the interval information refers to the size of the interval between the display area corresponding to the interface and the screen boundary of the electronic device, and the specific size of the interval is the interval value.

[0059] The aforementioned interval information may include width intervals and height intervals. In this application, the width interval and height interval can be set to the same value or different values, depending on actual needs, and no restrictions are imposed here.

[0060] For example, assuming the screen size of an electronic device has a height of 10 cm, a width of 4 cm, a height interval of 1 cm, and a width interval of 0.5 cm, then the height of the corresponding display area can be determined to be 10 - 1 = 9 cm, and the width of the corresponding display area can be determined to be 4 - 0.5 = 3.5 cm. Therefore, the display area of ​​the corresponding screen can be determined to be 3.5 cm * 9 cm.

[0061] Scenario 3: Determine the screen status of the electronic device. Based on the screen status, screen size, and spacing information, determine the display information of the corresponding display area of ​​the interface.

[0062] The screen status of an electronic device can include: landscape mode and portrait mode.

[0063] In some embodiments, sensors such as accelerometers and gyroscopes in the electronic device can be used to acquire the acceleration values, rotation angles, and directions of the electronic device along three axes. Based on these acceleration values, rotation angles, and directions, the current screen state of the electronic device can be determined as either landscape or portrait mode. Then, based on the screen state, interval information corresponding to that screen state is acquired. Finally, based on the screen size and interval information, the display information for the corresponding display area of ​​the interface is determined. This achieves dynamic determination of the display information for the corresponding display area of ​​the interface based on the screen state of the electronic device, thereby meeting the need for personalized settings of different display information for the corresponding display area of ​​the interface for different screen states.

[0064] For example, assuming that the screen state of the electronic device is currently in landscape mode based on sensors such as accelerometers and gyroscopes, then the specific interval information corresponding to the landscape mode can be obtained as follows: width interval is 1.5 cm, height interval is 0.3 cm, and the screen size in landscape mode is specifically: width information is 20 cm, height information is 17 cm. At this time, the width information of the display area corresponding to the interface can be determined as 20 - 1.5 = 18.5 cm, and the height information of the display area corresponding to the interface is 17 - 0.3 = 16.7 cm, that is, the display area of ​​the interface is 18.5 cm * 16.7 cm.

[0065] For example, assuming that the screen state of an electronic device switches from landscape to portrait mode based on sensors such as accelerometers and gyroscopes, the specific interval information corresponding to the portrait mode can be obtained as follows: width interval is 0.2 cm, height interval is 0.1 cm, and the screen size in landscape mode is specifically: width information is 17 cm, height information is 20 cm. At this point, the width information of the corresponding display area can be determined as 17 - 0.2 = 16.8 cm, and the height information of the corresponding display area is 20 - 0.1 = 19.9 cm, that is, the display area of ​​the corresponding interface is 16.8 cm * 19.9 cm.

[0066] In some embodiments, considering that the layout logic of each interface element in a set of interface elements corresponding to the interface may contain internal constraints, these internal constraints can be used to describe the desired position information and desired size information of the interface elements. Furthermore, when any interface element includes at least one sub-interface element, the internal constraints corresponding to that interface element are used to describe the desired position information and desired size information of each sub-interface element, as well as the spacing value between adjacent sub-interface elements.

[0067] Therefore, after a set of interface elements corresponding to an interface is added to a layout component, the layout component can obtain the expected size information of each interface element from the set of interface elements corresponding to the interface; or, each interface element in the set of interface elements corresponding to the interface can obtain its own expected size information through the internal constraints in its own layout logic and send its own expected size information to the layout component.

[0068] The process of obtaining the expected size information of each interface element in a set of interface elements corresponding to the interface can include the following:

[0069] In the first case, when the internal constraints of any interface element in a set of interface elements describe the expected position and expected size information of the interface element, then obtaining the expected size information of the interface element is the expected size information described by the internal constraints of the interface element.

[0070] In the second scenario, when the internal constraints of any interface element in a set of interface elements describe the expected position and size information of each sub-interface element, as well as the interval value between adjacent sub-interface elements, the expected size information of that interface element is obtained here based on the expected size information of all sub-interface elements plus the interval value between adjacent sub-interface elements.

[0071] For example, if a certain interface element includes two sub-interface elements, and the two sub-interface elements are arranged in a horizontal direction, then when the expected size information of each sub-interface element is a1 cm * a2 cm, and the interval between the two sub-interface elements is b, the expected size information of the interface element is (a1 + a1 + b) cm * a2.

[0072] The horizontal arrangement described above can be understood as a horizontal layout or a horizontal arrangement method. Specifically, a horizontal layout or horizontal arrangement method refers to the arrangement of interface elements from left to right in a horizontal direction.

[0073] S102, determine the layout information of a set of interface elements based on the configuration information of a set of interface elements and the display information of the corresponding display area of ​​the interface.

[0074] The aforementioned layout information may include location information and display attribute information. The location information may include first location information and second location information, and the display attribute information may include first display attribute information and second display attribute information. Specifically, the location information refers to the target location information, and the display attribute information refers to the target size information.

[0075] It should be understood that the first position information mentioned above may refer to the target's horizontal coordinate information, i.e., the target's X-axis coordinate; the second position information mentioned above may refer to the target's vertical coordinate information, i.e., the target's Y-axis coordinate.

[0076] Furthermore, the aforementioned first display attribute information may refer to the target width information; the aforementioned second display attribute information may refer to the target height information.

[0077] Considering that a group of interface elements can be one or more interface elements, in some embodiments, target configuration information can be determined based on the configuration information of a group of interface elements. Then, based on the target configuration information and the display information of the corresponding display area of ​​the interface, the layout information of the group of interface elements is determined.

[0078] In some embodiments, the configuration information of a set of interface elements may include first configuration information and second configuration information. Therefore, this application determines the target configuration information based on the configuration information of a set of interface elements, which may involve determining the layout of a set of interface elements and determining the first target configuration information or the second target configuration information based on the configuration information of that set of interface elements. The first target configuration information refers to the total width information, and the second target configuration information refers to the total height information.

[0079] In some optional embodiments, when a group of interface elements is laid out horizontally, the first configuration information of each interface element in the group can be added together to obtain the first target configuration information of the group of interface elements; when a group of interface elements is laid out vertically, the second configuration information of each interface element in the group can be added together to obtain the second target configuration information of the group of interface elements. Here, vertical layout can be understood as an arrangement in a vertical direction. In this application, vertical arrangement or vertical layout refers to the arrangement of interface elements from top to bottom in a vertical direction.

[0080] For example, suppose a live streaming interface has three elements: element A, element B, and element C. Element A has a width of 0.5 cm x 1 cm, element B has a width of 2 cm x 2 cm, and element C has a width of 10 cm x 5 cm. The layout of this live streaming interface is horizontal. Therefore, based on the initial configuration information of each element (A, B, and C), the first target configuration information is: 0.5 cm + 2 cm + 10 cm = 12.5 cm. In other words, the first target configuration information is the total width.

[0081] Continuing with the example above, let's assume the layout of the interface elements corresponding to the live stream interface is vertical. Then, based on the second configuration information of interface elements A, B, and C within that group, the second target configuration information is: 1 cm + 2 cm + 5 cm = 8 cm. In other words, the second target configuration information is the total height.

[0082] Furthermore, this application can determine the layout information of a set of interface elements based on the target configuration information and the display information of the corresponding display area of ​​the interface. The display information of the display area may include first display information and second display information.

[0083] In some optional embodiments, when the layout of a group of interface elements corresponding to the interface is a horizontal layout, this application can determine whether the first target configuration information of the group of interface elements is the same as the first display information of the display area corresponding to the interface by comparing the first target configuration information of the group of interface elements with the first display information corresponding to the interface. Then, the layout information of the group of interface elements is determined based on the comparison result.

[0084] In some alternative embodiments, determining the layout information of the group of interface elements based on the comparison results may include the following two scenarios:

[0085] In scenario one, when the first target configuration information of the group of interface elements is the same as the first display information of the display area corresponding to the interface, the first configuration information of each interface element in the group of interface elements corresponding to the interface can be determined as the first display attribute information, and the expected first position information in the expected position information of each interface element in the group of interface elements corresponding to the interface can be determined as the first position information. It should be understood that the aforementioned expected position information may include: expected first position information and expected second position information, and the expected first position information is specifically expected horizontal coordinate information, i.e., expected X-axis coordinate, and the expected second position information is specifically expected vertical coordinate information, i.e., expected Y-axis coordinate.

[0086] Furthermore, it can be determined whether the second configuration information of each interface element in the group of interface elements corresponding to the interface is greater than the second display information of the display area corresponding to the interface. Specifically, if the second configuration information of any interface element in the group of interface elements corresponding to the interface is greater than the second display information of the display area corresponding to the interface, then the second configuration information of that interface element is reduced to the second display information of the display area corresponding to the interface, to obtain the second display attribute information of the interface element. In addition, the second coordinate information in the origin coordinates of the two-dimensional coordinate system constructed based on the display area corresponding to the interface can be used as the second position information of the interface element. Specifically, the second coordinate information is the Y-axis coordinate.

[0087] If the second configuration information of any interface element in a set of interface elements corresponding to the interface is less than or equal to the second display information of the display area corresponding to the interface, then the second configuration information of that interface element is determined as the second display attribute information of that interface element. Furthermore, the second position information of the interface element is determined based on the second display information of the display area corresponding to the interface and the second display attribute information of that interface element.

[0088] Scenario Two: When the first target configuration information of a group of interface elements differs from the first display information of the corresponding display area, it indicates that the group of interface elements does not fill the corresponding display area, or that the group of interface elements cannot be fully laid out or displayed within the corresponding display area. In this case, based on the difference between the first target configuration information of the group of interface elements and the first display information of the corresponding display area, the first configuration information of any interface element in the group can be adjusted, such as by shrinking or enlarging it, so that the adjusted first target configuration information of the group of interface elements matches the first display information of the corresponding display area. Then, the layout information of the group of interface elements can be determined based on the adjusted first target configuration information.

[0089] In some alternative embodiments, when the layout of a group of interface elements corresponding to the interface is a vertical layout, this application can determine whether the second target configuration information of the group of interface elements is the same as the second display information of the display area corresponding to the interface by comparing the second target configuration information of the group of interface elements with the second display information of the display area corresponding to the interface. Then, the layout information of the group of interface elements is determined based on the comparison result.

[0090] In some alternative embodiments, determining the layout information of the group of interface elements based on the comparison results may include the following two scenarios:

[0091] In the first scenario, when the second target configuration information of the group of interface elements is the same as the second display information of the display area corresponding to the interface, it can be determined that the second configuration information of each interface element in the group of interface elements corresponding to the interface is the second display attribute information, and the expected second position information in the expected position information of each interface element in the group of interface elements corresponding to the interface is the second position information.

[0092] Furthermore, it can be determined whether the first configuration information of each interface element in a set of interface elements corresponding to the interface is greater than the first display information of the display area corresponding to the interface. Specifically, if the first configuration information of any interface element in a set of interface elements corresponding to the interface is greater than the first display information of the display area corresponding to the interface, then the first configuration information of that interface element is reduced to the first display information of the display area corresponding to the interface, to obtain the first display attribute information of that interface element. In addition, the first coordinate information in the origin coordinates of a two-dimensional coordinate system constructed based on the display area corresponding to the interface can be used as the first position information of the interface element. Specifically, the first coordinate information is the X-axis coordinate.

[0093] If the first configuration information of any interface element in a group of interface elements corresponding to the interface is less than or equal to the first display information of the display area corresponding to the interface, then the first configuration information of the interface element is determined as the first display attribute information of the interface element. Furthermore, the first position information of the interface element is determined based on the first display information of the display area corresponding to the interface and the first display attribute information of the interface element.

[0094] In the second scenario, when the second target configuration information of a group of interface elements differs from the second display information of the corresponding display area, it indicates that the group of interface elements does not fill the corresponding display area, or that the group of interface elements cannot be fully laid out or displayed within the corresponding display area. In this case, based on the difference between the second target configuration information of the group of interface elements and the second display information of the corresponding display area, the second configuration information of any interface element in the group can be adjusted, such as by shrinking or enlarging it, so that the adjusted second target configuration information of the group of interface elements matches the second display information of the corresponding display area. Then, the layout information of the group of interface elements can be determined based on the adjusted second target configuration information.

[0095] S103, Display the interface based on the layout information of a set of interface elements.

[0096] Considering that layout information may include position information and display attribute information, in some embodiments, this application can lay out a set of interface elements into the display area corresponding to the interface based on the position information and display attribute information of a set of interface elements. Then, the display area corresponding to the interface is rendered to obtain the corresponding application interface, and the rendered application interface is displayed on the screen of the electronic device, so that the user can quickly see the content information provided by the application interface, thereby improving the display performance of the application interface.

[0097] It is understood that this application obtains a layout component by making relative layout and absolute layout compatible. Then, the layout component determines the position information and display attribute information of a set of interface elements in the corresponding display area of ​​the interface based on the configuration information of a set of interface elements and the display information of the corresponding display area of ​​the interface. The application interface is then laid out and displayed based on the position information and display attribute information of the set of interface elements, thereby improving the layout speed of interface elements in the application interface, improving the rendering speed of the application interface, and thus improving the display performance of the application interface.

[0098] The technical solution disclosed in this application obtains configuration information of a set of interface elements corresponding to the interface, determines layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface, and then displays the interface based on the layout information of the set of interface elements. In this way, by improving the layout speed of interface elements in the application interface, the rendering speed of the application interface is improved, thereby reducing stuttering or delays in the application interface display and improving the smoothness of the application interface display.

[0099] The following is combined Figure 2The following is a further explanation of step S102 in the foregoing embodiments. For example... Figure 2 As shown, step S102 above may include the following steps: S102-1 to S102-3:

[0100] S102-1, Determine the layout of the interface. If the layout is horizontal, execute S102-2; if the layout is vertical, execute S102-3.

[0101] The interface mentioned above specifically refers to the application interface.

[0102] Considering that developers can configure layout components before displaying the interface, this configuration information can include the interface layout method and whether to perform scaling operations. Furthermore, when determining the interface layout method, the layout component can obtain its own configuration information to determine whether the layout is horizontal or vertical. Additionally, the layout component can also determine whether to perform scaling operations based on its own configuration information.

[0103] S102-2, in response to the interface layout being a horizontal layout, first target configuration information is determined based on the first configuration information of a set of interface elements, first display attribute information and first position information of a set of interface elements are determined based on the first target configuration information and the first display information of the display area corresponding to the interface, and second display attribute information and second position information of a set of interface elements are determined based on the second configuration information of a set of interface elements and the second display information of the display area corresponding to the interface.

[0104] Considering that both the interface and its corresponding display area are two-dimensional planes, and that the interface is based on the layout of interface elements within this display area, the display information of the interface is the same as the display information of its corresponding display area. Here, display information can be understood as size information; that is, the display information of the interface refers to the size of the interface, and the display information of the display area refers to the size of the display area.

[0105] Therefore, this application can establish a two-dimensional coordinate system using the first display information of the corresponding display area of ​​the interface as the first coordinate axis and the second display information of the corresponding display area of ​​the interface as the second coordinate axis. The first coordinate axis can be the X-axis, and the second coordinate axis can be the Y-axis.

[0106] Furthermore, when the layout component determines that the layout of the interface is horizontal based on its own configuration information and scaling is required, it means that in the two-dimensional coordinate system constructed based on the display area of ​​the interface, the first coordinate axis is the primary axis and the second coordinate axis is the secondary axis.

[0107] Therefore, the first configuration information of each interface element in a set of interface elements can be added together to obtain the first target configuration information of the set of interface elements. Then, based on the first target configuration information and the first display information of the display area corresponding to the interface, the first display attribute information and the first position information of each interface element in the set of interface elements corresponding to the interface can be determined. Furthermore, based on the second configuration information of each interface element in the set of interface elements corresponding to the interface and the second display information of the display area corresponding to the interface, the second display attribute information and the second position information of each interface element in the set of interface elements corresponding to the interface can be determined.

[0108] In some optional embodiments, the present application determines the first display attribute information, second display attribute information, first position information, and second position information of each interface element in a set of interface elements corresponding to the interface, which may include the following steps:

[0109] Step S11: Determine whether the first target configuration information and the first display information of the corresponding display area of ​​the interface are the same. If they are not the same, proceed to S12; otherwise, proceed to S16.

[0110] Step S12: In response to the discrepancy between the first target configuration information and the first display information of the corresponding display area of ​​the interface, the first target interface element is determined from a set of interface elements, and the first configuration information of the first target interface element is adjusted to obtain the first display attribute information of the first target interface element.

[0111] The first target configuration information and the first display information of the corresponding display area of ​​the interface are different. This can mean that the first target configuration information is less than the first display information of the corresponding display area of ​​the interface, or the first target configuration information is greater than the first display information of the corresponding display area of ​​the interface.

[0112] Furthermore, in this application, the first target interface element refers to any interface element that needs to have its first configuration information adjusted, that is, any interface element that needs to have its width information adjusted.

[0113] In some alternative embodiments, this application determines the first target interface element from a set of interface elements through the following steps:

[0114] The first step is to determine the first difference between the first target configuration information and the first display information of the corresponding display area of ​​the interface.

[0115] The second step is to determine the first scalable target interface element from a set of interface elements based on the first difference and the first configuration information of a set of interface tuples.

[0116] Optionally, a scalable first target interface element is determined from a set of interface elements corresponding to the interface. Specifically, based on a first difference, the scalable first target interface element is determined from a set of interface elements corresponding to the interface in a left-to-right order along a first coordinate axis. In practice, this may include the following steps:

[0117] Step 11A: Along the first coordinate axis, obtain the priority information of each interface element from the layout settings information of each interface element in a group of interface elements corresponding to the interface in order from left to right.

[0118] Step 12A: Sort each interface element according to its priority information from smallest to largest to obtain the sorting result.

[0119] Step 13A: Determine the first interface element with the lowest priority and adjustable size from the sorting results, in order from front to back.

[0120] Step 14A: Determine whether the first configuration information of the first interface element is greater than or equal to the first difference. If it is greater than or equal to the first difference, determine the first interface element as the first target interface element; otherwise, proceed to step 15A.

[0121] Step 15A: If it is less than, determine the difference between the first configuration information and the first difference of the first interface element, and determine the second interface element with the second lowest priority and adjustable size according to the sorting result from front to back.

[0122] Step 16A: Determine whether the first configuration information of the second interface element is greater than or equal to the difference between the first configuration information of the first interface element and the first difference. If it is greater than or equal to the first interface element and the second interface element, determine the first interface element and the second interface element as the first target interface element. Otherwise, continue to determine the sum of the first configuration information of the first interface element and the first configuration information of the second interface element, and determine the third interface element from the sorting results based on the difference between the sum and the first difference. Repeat step 16A until the sum of the first configuration information of the latest determined interface element and the first configuration information of the interface elements determined before the latest interface element is greater than or equal to the first difference. Then, determine all the interface elements determined in step 16A as the first target interface elements.

[0123] That is, the number of the first target interface elements in this application is one or more.

[0124] For example, suppose the interface is a live broadcast interface, and the number of interface elements in the group corresponding to the live broadcast interface is 4, namely interface element 1, interface element 2, interface element 3 and interface element 4. Then, according to the priority information from smallest to largest, each interface element is sorted, and the sorted result is interface element 4, interface element 3, interface element 1 and interface element 2. And the above 4 interface elements are all resizable interface elements. Then, the interface element 4 located in the first position can be obtained from the sorted result as the first interface element. At this time, it can be determined whether the first configuration information of interface element 4 is greater than the first difference. If it is greater, then interface element 4 is determined as the first target interface element. If the difference is less than the first configuration information of interface element 4, the difference between the first configuration information and the first difference is determined. Then, interface element 3, which is located in the second position, is obtained from the sorting result as the second interface element. At this time, it is determined whether the first configuration information of interface element 3 is greater than the difference between the first configuration information and the first difference of interface element 4. If it is greater than or equal to the first difference, interface element 4 and interface element 3 are determined as the first target interface element. Otherwise, the third interface element is obtained from the sorting result. When the sum of the first configuration information of the third interface element, the first configuration information of the second interface element, and the first configuration information of the first interface element is greater than or equal to the first difference, the first interface element, the second interface element, and the third interface element are determined as the first target interface element.

[0125] It should be noted that when the priority information of the interface elements in a group of interface elements is the same, the interface elements are sorted in ascending order of priority information to obtain the sorting result. When obtaining the first target interface element from the sorting result, the first target interface element can be obtained from the interface elements with the same priority information in the order from front to back.

[0126] In some optional embodiments, after determining the first target interface element from a set of interface elements corresponding to the interface, this application may adjust the first configuration information of the first target interface element to obtain the first display attribute information of the first target interface element.

[0127] Optionally, the first configuration information of the first target interface element can be adjusted based on the first difference between the first target configuration information and the first display information of the corresponding display area of ​​the interface, so as to obtain the first display attribute information of the first target interface element. Specifically, this can include one of the following methods:

[0128] Method 1: If the first difference is greater than the preset value, then based on the first difference, the first configuration information of the first target interface element is reduced to obtain the first display attribute information of the first target interface element.

[0129] Method 2: If the first difference is less than the preset value, then based on the first difference, the first configuration information of the first target interface element is amplified to obtain the first display attribute information of the first target interface element.

[0130] The preset value can be zero.

[0131] In this application, since the number of first target interface elements is one or more, when the number of first target interface elements is one, the first configuration information of the first target interface element can be magnified or reduced according to the first difference to obtain the first display attribute information of the first target interface element. When the number of first target interface elements is one or more, the first configuration information of each first target interface element is magnified or reduced according to the first difference to obtain the first display attribute information of each first target interface element.

[0132] In some embodiments, it is considered that any first target interface element may have internal constraints, i.e., Auto Layout constraints. Since the absolute layout of the layout component in this application cannot directly trigger the internal constraints of the first target interface element, it is necessary to use the internal constraints of the first target interface element to achieve the scaling or enlarging of the first target interface element. Simultaneously, when the internal constraints of the first target interface element take effect, they will override the first display attribute information corresponding to the absolute layout.

[0133] Therefore, before adjusting the first configuration information of the first target interface element, this application can determine whether the first target interface element has internal constraints. If it is determined that the first target interface element has internal constraints, an association relationship is established between the first target interface element and its first display attribute information. The first display attribute information of the first target interface element is then obtained from the association relationship according to a preset instance method. Subsequently, the first configuration information of the first target interface element is adjusted based on its first display attribute information. If it is determined that the first target interface element does not have internal constraints, the first display attribute information corresponding to the absolute layout is determined as the first display attribute information of the target interface element.

[0134] Specifically, the first display attribute information corresponding to absolute layout refers to the first configuration information of the first target interface element that has been enlarged or reduced according to the first difference, so as to obtain the first display attribute information of the first target interface element.

[0135] The association between interface elements and their first display attribute information can be achieved through association attributes.

[0136] It should be understood that associated properties are a mechanism provided by the Objective-C runtime that allows developers to dynamically associate one object with another at runtime, thereby adding additional properties or information to the object. This association does not depend on the object's class definition, so it is possible to add storage space to the object without modifying the original class code.

[0137] Furthermore, the aforementioned preset instance method can be implemented as an instance method for a view, specifically UIViewinvalidateIntrinsicContentSize.

[0138] In some embodiments, obtaining the first display attribute information of the first target interface element from the association relationship according to the preset instance method may include the following steps:

[0139] Step A1: Dynamically create a subclass that inherits from the UI element. This ensures that when the UI element is added to the layout component, it will comply with the layout management of the layout component.

[0140] Step B1: Dynamically add an intrinsic content size method, namely the intrinsicContentSize method, to the subclass, and return the first display attribute information of the first target interface element as the return value.

[0141] Step C1: Call the view implementation instance method to obtain the first display attribute information of the first target interface element, and trigger the internal constraint conditions existing in the first target interface element according to the first display attribute information to perform a width adjustment operation on the first configuration information of the first target interface element, so that the width information of the first target interface element after adjustment is the first display attribute information.

[0142] It should be noted that the aforementioned intrinsicContentSize method is a concept in the Auto Layout system. It enables interface elements to automatically adjust their size according to changes in their content, thereby improving the adaptability and flexibility of the interface.

[0143] Step S13: Determine the first configuration information of the second target interface element in a set of interface elements as the first display attribute information of the second target interface element.

[0144] In this application, the second target interface element in a set of interface tuples corresponding to the interface refers to other interface elements besides the first target interface element, and the first configuration information of the second target interface element has not been adjusted. Therefore, this application can determine the first configuration information of the second target interface element in a set of interface tuples corresponding to the interface as the first display attribute information of the second target interface element.

[0145] Step S14: Determine the first position information of the first target interface element and the first position information of the second target interface element.

[0146] The first position information can be understood as the target's horizontal coordinate information, that is, the target's X-axis coordinate.

[0147] Optionally, this application determines the first position information of the first target interface element and the first position information of the second target interface element through the following steps:

[0148] Step 11B: Determine the first position information of the first target interface element based on the first coordinate information in the origin coordinates of the two-dimensional coordinate system, wherein the two-dimensional coordinate system is constructed based on the display area corresponding to the interface.

[0149] In some optional embodiments, this application can establish a two-dimensional coordinate system using the first display information of the display area corresponding to the interface as the first coordinate axis and the second display information of the display area corresponding to the interface as the second coordinate axis.

[0150] Furthermore, the origin coordinates of the aforementioned two-dimensional coordinate system can be the position of the upper left vertex of the display area corresponding to the interface, such as... Figure 3 As shown.

[0151] Therefore, when there is only one element in the first target interface, the first coordinate information in the origin coordinates of the two-dimensional coordinate system can be used as the first position information of the first target interface element. Specifically, the first coordinate information refers to the X-axis coordinate information, that is, the horizontal coordinate information.

[0152] When there are more than one first target interface element, i.e., multiple elements, the first coordinate information in the origin coordinates of the two-dimensional coordinate system can be determined as the first position information of the first target interface element located at the first position among the multiple first target interface elements. Next, the first position information of the first target interface element located at the first position is used as the starting position, and the sum of this starting position, the first display attribute information (i.e., target width information) of the first target interface element located at the first position, and a preset interval distance is determined. Then, this sum is determined as the first position information of the first target interface element located at the second position. Then, the first position information of the first target interface element located at the second position is used as the new starting position, and the sum of this new starting position, the first display attribute information of the first target interface element located at the second position, and the preset interval distance is determined to determine the first position information of the first target interface element located at the third position, and so on until the first position information of the last first target interface element is determined.

[0153] In this way, the first position information of each first target interface element can be determined.

[0154] The aforementioned preset interval is an adjustable parameter, which can be flexibly set according to the layout requirements of the interface. No specific restrictions are imposed on it here.

[0155] Step 12B: Determine the first position information of the second target interface element based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance.

[0156] In some embodiments, the number of the second target interface elements can be one or more. Therefore, this application can determine the first position information of the second target interface elements in different ways depending on the number of second target interface elements, as described below:

[0157] Method 1: In response to the fact that the number of second target interface elements is one, the first position information of the second target interface element is determined based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance. Specifically, this includes: taking the first position information of the first target interface element as the starting position, determining the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance, and determining the sum as the first position information of the second target interface element.

[0158] When there is one or more first target interface elements, the first position information of the first target interface element located at the first position can be used as the starting position. The sum of this starting position, the first display attribute information of each first target interface element, and all preset interval distances is then determined, and this sum is used as the first position information of the second target interface element. In this application, all the aforementioned preset intervals refer to the total preset interval distance between all first target interface elements and the second target interface element.

[0159] Method 2: In response to the number of multiple second target interface elements, i.e., more than one, the first position information of the second target interface element is determined based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance. Specifically, this includes: taking the first position information of the first target interface element as the starting position, determining the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance, and determining the sum as the first position information of the first second target interface element.

[0160] Next, the first position information of the first second target interface element is used as the new starting position, and the first position information of non-first second target interface elements is determined to obtain the first position information of each second target interface element.

[0161] The above-mentioned determination of the first position information of the non-first third target interface element refers to determining the sum of the new starting position, the first display attribute information of the first second target interface element, and the preset interval distance, and determining the sum as the first position information of the non-first second target interface element, and so on to obtain the first position information of each second target interface element.

[0162] When there are multiple first target interface elements, the first position information of the second target interface elements is determined. Specifically, the first position information of the first target interface element located at the first position is used as the starting position. The sum of the starting position, the first display attribute information of each first target interface element, and all preset interval distances is determined, and this sum is used as the first position information of the first second target interface element. In this application, all the aforementioned preset interval distances refer to the total preset interval distance between all first target interface elements and the first second target interface element.

[0163] Next, the first position information of the first second target interface element is used as the new starting position, and the first position information of non-first second target interface elements is determined to obtain the first position information of each second target interface element.

[0164] Step S15: Determine the second display attribute information and second position information of a set of interface elements based on the second configuration information of a set of interface elements and the second display information of the corresponding display area of ​​the interface.

[0165] In some optional embodiments, this application may first determine a set of second display attribute information, i.e., target height information, of the interface elements based on a set of second configuration information of the interface elements and a set of second display information of the corresponding display area of ​​the interface. Then, a set of second position information of the interface elements is determined. The second position information can be understood as the target vertical coordinate information, i.e., the target Y-axis coordinate.

[0166] In some embodiments, a second display attribute information of a set of interface elements is determined based on the second configuration information of a set of interface elements and the second display information of the display area corresponding to the interface. Optionally, it is first determined whether the second configuration information of each interface element in the set of interface elements is greater than the second display information of the display area corresponding to the interface. If it is determined that the second configuration information of any interface element in the set of interface elements is greater than the second display information of the display area corresponding to the interface, then the second configuration information of the interface element is adjusted according to the second display information of the display area corresponding to the interface, so that the height information of the interface element is the same as the second display information of the display area corresponding to the interface. At this time, the adjusted second configuration information is used as the second display attribute information of the interface element. If it is determined that the second configuration information of any interface element in the set of interface elements is less than or equal to the second display information of the display area corresponding to the interface, then the second configuration information of the interface element is determined as the second display attribute information of the interface element.

[0167] In this application, any interface element for which the second configuration information is greater than the second display information of the corresponding display area of ​​the interface can be at least one of the aforementioned first target interface element and second target interface element.

[0168] In other words, this application determines the second display attribute information of a set of interface elements based on the second configuration information of a set of interface elements and the second display information of the display area corresponding to the interface, including: in response to the second configuration information of any interface element in the set of interface elements being greater than the second display information of the display area corresponding to the interface, adjusting the second configuration information of the interface element according to the second display information of the display area corresponding to the interface to obtain the second display attribute information of the interface element; in response to the second configuration information of any interface element in the set of interface elements being less than or equal to the second display information of the display area corresponding to the interface, determining the second configuration information of the interface element as the second display attribute information of the interface element.

[0169] In some optional embodiments, considering that the number of interface elements in a group of interface elements corresponding to the interface can be one or more, the determination of the second position information of a group of interface elements in this application may include at least one of the following:

[0170] Scenario 1: If the second display attribute information of each interface element is the second display information of the corresponding display area of ​​the interface, then the second position information of each interface element is determined to be the second coordinate information in the origin coordinates of the two-dimensional coordinate system, where the two-dimensional coordinate system is constructed based on the corresponding display area of ​​the interface.

[0171] In this application, the second coordinate information specifically refers to the Y-axis coordinate information, that is, the vertical coordinate information.

[0172] Scenario 2: If the second display attribute information of any interface element is the second display information of the corresponding display area of ​​the interface, then the second position information of the interface element is determined to be the second coordinate information in the origin coordinate system of the two-dimensional coordinate system.

[0173] Case 3: If the second display attribute information of any interface element is its own second configuration information, then the second position information of the interface element is determined to be the expected second position information of the interface element.

[0174] Case 4: If the second display attribute information of each interface element is its own second configuration information, then the second position information of each interface element is determined to be the expected second position information of that interface element.

[0175] In some embodiments, when determining the second position information of a group of interface elements, this application may also obtain a preset alignment method from the configuration information of the layout component, and perform an alignment operation on the group of interface elements according to the preset alignment method. Then, based on the aligned group of interface elements, the second position information of the group of interface elements is determined. This improves the readability and display hierarchy of the interface elements within the corresponding group of interface elements, resulting in a cleaner and more orderly displayed interface.

[0176] In this application, the preset alignment method may include one of the following: top alignment, bottom alignment, center alignment, and other alignment methods.

[0177] Top alignment refers to the alignment of the top edge of each element in a set of interface elements with the top edge of the corresponding display area. For example... Figure 4a As shown.

[0178] Bottom alignment means that the bottom edge of each element in a group of interface elements is aligned with the bottom edge of the corresponding display area of ​​the interface. For example... Figure 4b As shown.

[0179] Center alignment refers to the alignment of each element in a group of interface elements to the center of the corresponding display area. For example... Figure 4c As shown.

[0180] In some alternative embodiments, this application determines a second position information of a set of interface elements based on a set of interface elements after alignment operations, which may include one of the following methods:

[0181] In the first method, if the preset alignment is top alignment, the second coordinate information in the origin coordinates of the two-dimensional coordinate system is used as the second position information of each interface element in the corresponding set of interface elements; where the two-dimensional coordinate system is constructed based on the display area corresponding to the interface.

[0182] The second method, if the preset alignment is bottom alignment, determines the second position information of each interface element in the set of interface elements based on the difference between the second display attribute information of each interface element in the set of interface elements and the second display information of the display area in the set of interface elements.

[0183] As mentioned above Figure 4b Further explanation is needed, such as Figure 4b As shown, this group of interface elements includes three interface elements, namely interface element a1, interface element a2 and interface element a3. Based on the bottom alignment method, after the alignment operation is performed on interface elements a1, interface element a2 and interface element a3, the bottom boundary of each interface element a1, interface element a2 and interface element a3 is aligned with the bottom boundary of the corresponding display area of ​​the interface. Then, at this point, the difference between d1 and d2, d1-d2, can be obtained by subtracting the second display attribute information d2 of interface element a1 from the second display information d1 of the corresponding display area of ​​the interface. This difference d1-d2 can then be determined as the second position information of interface element a1. Similarly, the difference between d1 and d3, d1-d3, can be obtained by subtracting the second display attribute information d3 of interface element a2 from the second display information d1 of the corresponding display area of ​​the interface. This difference d1-d3 can then be determined as the second position information of interface element a2. Finally, the difference between d1 and d4, d1-d4, can be obtained by subtracting the second display attribute information d4 of interface element a3 from the second display information d1 of the corresponding display area of ​​the interface. This difference d1-d4 can then be determined as the second position information of interface element a3.

[0184] The third method, if the preset alignment is center alignment, determines the second position information of each interface element in the corresponding set of interface elements based on the distance information between each interface element in the corresponding set of interface elements and the first boundary of the corresponding display area of ​​the interface.

[0185] The first boundary can be understood as the top boundary of the display area, such as... Figure 4a As shown.

[0186] When the preset alignment is center alignment, each interface element in a set of interface elements will be located in the center of the corresponding display area, and the distance between each interface element and the top and bottom boundaries of the corresponding display area will be equal. Therefore, this application can determine the difference between the second display attribute information of each interface element in a set of interface elements and the second display information of the corresponding display area, and divide the difference by 2 to obtain the spacing information between each interface element and the top boundary of the corresponding display area, and then determine the spacing information as the second position information of each interface element in a set of interface elements.

[0187] Step S16: In response to the first target configuration information being the same as the first display information of the display area corresponding to the interface, determine the first configuration information of each interface element in the set of interface elements corresponding to the interface as the first display attribute information, determine the expected first position information in the expected position information of each interface element in the set of interface elements corresponding to the interface as the first position information, and determine the second display attribute information and the second position information of each interface element in the set of interface elements corresponding to the interface based on the second configuration information of each interface element in the set of interface elements corresponding to the interface and the second display information of the display area corresponding to the interface.

[0188] It should be noted that the implementation principle of determining the second display attribute information and second position information of each interface element in the group of interface elements corresponding to the interface in S16 of this embodiment is the same as or similar to the implementation principle of determining the second display attribute information and second position information of each interface element in the group of interface elements corresponding to the interface in the aforementioned step S15. Therefore, for the specific implementation process of S16, please refer to the aforementioned step S15 section, which will not be elaborated upon here.

[0189] S102-3, in response to the layout mode of the interface being a vertical layout, the second target configuration information is determined based on the second configuration information of a set of interface elements, the second display attribute information and the second position information of a set of interface elements are determined based on the second target configuration information and the second display information of the display area corresponding to the interface, and the first display attribute information and the first position information of a set of interface elements are determined based on the first configuration information of a set of interface elements and the first display information of the display area corresponding to the interface.

[0190] In this application, a two-dimensional coordinate system can be established using the first display information of the display area corresponding to the interface as the first coordinate axis and the second display information of the display area corresponding to the interface as the second coordinate axis. The first coordinate axis can be the X-axis, and the second coordinate axis can be the Y-axis.

[0191] Furthermore, when the layout component determines that the layout of the interface is a vertical layout based on its own configuration information and needs to perform scaling operations, it means that in the two-dimensional coordinate system constructed based on the display area of ​​the interface, the first coordinate axis is the secondary axis and the second coordinate axis is the primary axis.

[0192] Then, the second configuration information of each interface element in a set of interface elements can be added together to obtain the second target configuration information of a set of interface elements. Then, based on the second target configuration information and the second display information of the display area corresponding to the interface, the second display attribute information and the second position information of each interface element in the set of interface elements corresponding to the interface can be determined. Furthermore, based on the first configuration information of each interface element in the set of interface elements corresponding to the interface and the first display information of the display area corresponding to the interface, the first display attribute information and the first position information of each interface element in the set of interface elements corresponding to the interface can be determined.

[0193] In some optional embodiments, determining the first display attribute information, second display attribute information, first position information, and second position information of each interface element in a set of interface elements corresponding to the interface may include the following steps:

[0194] Step S21: Determine whether the second target configuration information and the second display information of the corresponding display area of ​​the interface are the same. If they are not the same, proceed to S22; otherwise, proceed to S26.

[0195] Step S22: In response to the difference between the second target configuration information and the second display information of the corresponding display area of ​​the interface, a third target interface element is determined from a group of interface elements, and the second configuration information of the third target interface element is adjusted to obtain the second display attribute information of the third target interface element.

[0196] The second target configuration information and the second display information of the corresponding display area of ​​the interface are different. This can mean that the second target configuration information is less than the second display information of the corresponding display area of ​​the interface, or the second target configuration information is greater than the second display information of the corresponding display area of ​​the interface.

[0197] Furthermore, in this application, the third target interface element refers to any interface element that needs to be adjusted for the second configuration information, that is, any interface element that needs to be adjusted for height information.

[0198] In some alternative embodiments, this application determines the third target interface element from a set of interface elements through the following steps:

[0199] The first step is to determine the second difference between the second target configuration information and the second display information of the corresponding display area of ​​the interface.

[0200] The second step is to determine a scalable third target interface element from a set of interface elements based on the second difference and the second configuration information of a set of interface tuples.

[0201] Optionally, a scalable third target interface element is determined from a set of interface elements corresponding to the interface. Specifically, based on the second difference, the scalable third target interface element is determined from a set of interface elements corresponding to the interface in a top-to-bottom order along the second coordinate axis. In practice, this may include the following steps:

[0202] Step 21A: Along the second coordinate axis, obtain the priority information of each interface element from the layout settings information of each interface element in a set of interface elements corresponding to the interface in a top-to-bottom order.

[0203] Step 22A: Sort each interface element according to its priority information from smallest to largest to obtain the sorting result.

[0204] Step 23A: Determine the first interface element with the lowest priority and adjustable size from the sorting results, in order from front to back.

[0205] Step 24A: Determine whether the second configuration information of the first interface element is greater than or equal to the second difference. If it is greater than or equal to the second difference, determine that the first interface element is the third target interface element; otherwise, proceed to step 25A.

[0206] Step 25A: If it is less than, determine the difference between the second configuration information and the second difference of the first interface element, and determine the second interface element with the second lowest priority and adjustable size according to the sorting result from front to back.

[0207] Step 26A: Determine whether the second configuration information of the second interface element is greater than or equal to the difference between the second configuration information of the first interface element and the second difference. If it is greater than or equal to the difference, determine the first interface element and the second interface element as the third target interface element. Otherwise, continue to determine the sum of the second configuration information of the first interface element and the second configuration information of the second interface element, and determine the third interface element from the sorting results based on the difference between the sum and the second difference. Repeat step 26A until the sum of the second configuration information of the latest determined interface element and the interface elements determined before the latest determined interface element is greater than or equal to the second difference. Then, determine all the interface elements determined in step 26A as the third target interface elements.

[0208] That is, the number of third target interface elements in this application is one or more.

[0209] It should be noted that when the priority information of the interface elements in a group of interface elements is the same, the interface elements are sorted in ascending order of priority information to obtain the sorting result. When obtaining the third target interface element from the sorting result, the third target interface element can be obtained from the interface elements with the same priority information in the order from front to back.

[0210] In some optional embodiments, after determining the third target interface element from a set of interface elements corresponding to the interface, this application may adjust the second configuration information of the third target interface element to obtain the second display attribute information of the third target interface element.

[0211] Optionally, the second configuration information of the third target interface element can be adjusted based on the second difference between the second target configuration information and the second display information of the corresponding display area of ​​the interface, to obtain the second display attribute information of the third target interface element. Specifically, this can be implemented using one of the following methods:

[0212] Method 1: If the second difference is greater than the preset value, then based on the second difference, the second configuration information of the third target interface element is reduced to obtain the second display attribute information of the third target interface element.

[0213] Method 2: If the second difference is less than the preset value, then based on the second difference, the second configuration information of the third target interface element is amplified to obtain the second display attribute information of the third target interface element.

[0214] The preset value can be zero.

[0215] In this application, since the number of third target interface elements is one or more, when the number of third target interface elements is one, the second configuration information of the third target interface element can be magnified or reduced according to the second difference to obtain the second display attribute information of the third target interface element. When the number of third target interface elements is one or more, the second configuration information of each third target interface element is magnified or reduced according to the second difference to obtain the second display attribute information of each third target interface element.

[0216] In some embodiments, it is considered that any third target interface element may have internal constraints, i.e., Auto Layout constraints. Since the absolute layout of the layout component in this application cannot directly trigger the internal constraints of the third target interface element, it is necessary to use the internal constraints of the third target interface element to achieve the scaling or enlarging of the third target interface element. Simultaneously, when the internal constraints of the third target interface element take effect, they will override the second display attribute information corresponding to the absolute layout.

[0217] Therefore, before adjusting the second configuration information of the third target interface element, this application can determine whether the third target interface element has internal constraints. If it is determined that the third target interface element has internal constraints, an association relationship is established between the third target interface element and its second display attribute information. The second display attribute information of the third target interface element is then obtained from the association relationship according to a preset instance method. Subsequently, the second configuration information of the third target interface element is adjusted based on its second display attribute information. If it is determined that the third target interface element does not have internal constraints, the second display attribute information corresponding to the absolute layout is determined as the second display attribute information of the third target interface element.

[0218] Specifically, the second display attribute information corresponding to the absolute layout refers to the second configuration information of the third target interface element that has been enlarged or reduced according to the second difference, so as to obtain the second display attribute information of the third target interface element.

[0219] The association between interface elements and their second display attribute information can be achieved through association attributes.

[0220] Furthermore, the aforementioned preset instance method can be implemented as an instance method for a view, specifically UIViewinvalidateIntrinsicContentSize.

[0221] In some embodiments, obtaining the second display attribute information of the third target interface element from the association relationship according to the preset instance method may include the following steps:

[0222] Step A2: Dynamically create a subclass that inherits from the UI element. This ensures that when the UI element is added to the layout component, it will comply with the layout management of the layout component.

[0223] Step B2: Dynamically add an intrinsic content size method, namely the intrinsicContentSize method, to the subclass, and return the second display attribute information of the third target interface element as the return value.

[0224] Step C2: Call the view implementation instance method to obtain the second display attribute information of the third target interface element, and trigger the internal constraint conditions of the third target interface element according to the second display attribute information to perform a height adjustment operation on the second configuration information of the third target interface element, so that the width information of the adjusted third target interface element is the second display attribute information.

[0225] Step S23: Determine the second configuration information of the second target interface element in a set of interface elements as the second display attribute information of the second target interface element.

[0226] In this application, the second target interface element in a set of interface tuples corresponding to the interface refers to any interface element other than the third target interface element, and the second configuration information of the second target interface element has not been adjusted. Therefore, this application can determine the second configuration information of the second target interface element in a set of interface tuples corresponding to the interface as the second display attribute information of the second target interface element.

[0227] Step S24: Determine the second position information of the second target interface element and the second position information of the third target interface element.

[0228] The second position information can be understood as the target's vertical coordinate information, that is, the target's Y-axis coordinate.

[0229] Optionally, this application can determine the second position information of the second target interface element and the second position information of the third target interface element through the following steps:

[0230] Step 21B: Determine the second position information of the third target interface element based on the second coordinate information in the origin coordinates of the two-dimensional coordinate system, wherein the two-dimensional coordinate system is constructed based on the display area corresponding to the interface.

[0231] In some optional embodiments, this application can establish a two-dimensional coordinate system using the first display information of the display area corresponding to the interface as the first coordinate axis and the second display information of the display area corresponding to the interface as the second coordinate axis.

[0232] Furthermore, the origin coordinates of the aforementioned two-dimensional coordinate system can be the position of the upper left vertex of the display area corresponding to the interface, as shown below. Figure 3 As shown.

[0233] Therefore, when there is only one third target interface element, the second coordinate information in the origin coordinates of the two-dimensional coordinate system can be used as the second position information of the third target interface element. Specifically, the second coordinate information refers to the Y-axis coordinate, which is the vertical coordinate information.

[0234] When there are more than one third target interface element, i.e., multiple elements, the second coordinate information in the origin coordinates of the two-dimensional coordinate system can be determined as the second position information of the third target interface element located at the first position among the multiple third target interface elements. Next, the second position information of the third target interface element located at the first position is used as the starting position, and the sum of this starting position, the second display attribute information (i.e., target height information) of the third target interface element located at the first position, and a preset interval distance is determined. This sum is then determined as the second position information of the third target interface element located at the second position. Then, the second position information of the third target interface element located at the second position is used as the new starting position, and the sum of this new starting position, the second display attribute information of the third target interface element located at the second position, and the preset interval distance is determined to determine the second position information of the third target interface element located at the third position, and so on until the second position information of the last third target interface element is determined.

[0235] In this way, the second position information of each third target interface element can be determined.

[0236] The aforementioned preset interval is an adjustable parameter, which can be flexibly set according to the layout requirements of the interface. No specific restrictions are imposed on it here.

[0237] Step 22B: Determine the second position information of the second target interface element based on the second position information of the third target interface element, the second display attribute information of the third target interface element, and the preset interval distance.

[0238] In some embodiments, the number of the second target interface elements can be one or more. Therefore, this application can determine the second position information of the second target interface elements in different ways depending on the number of second target interface elements, as described below:

[0239] Method 1: In response to the fact that there is only one second target interface element, the second position information of the second target interface element is determined based on the second position information of the third target interface element, the second display attribute information of the third target interface element, and the preset interval distance. Specifically, this includes: taking the second position information of the third target interface element as the starting position, determining the sum of the starting position, the second display attribute information of the third target interface element, and the preset interval distance, and determining the sum as the second position information of the second target interface element.

[0240] When there is one or more third target interface elements, the second position information of the third target interface element located at the first position can be used as the starting position. The sum of this starting position, the second display attribute information of each third target interface element, and all preset interval distances is then determined, and this sum is used as the second position information of the second target interface element. In this application, all the aforementioned preset intervals refer to the total preset interval distance between all third target interface elements and the second target interface element.

[0241] Method 2: In response to the number of multiple second target interface elements, i.e., more than one, the second position information of the second target interface element is determined based on the second position information of the third target interface element, the second display attribute information of the third target interface element, and the preset interval distance. Specifically, the second position information of the third target interface element is used as the starting position, the sum of the starting position, the second display attribute information of the third target interface element, and the preset interval distance is determined, and the sum is determined as the second position information of the first second target interface element.

[0242] Next, the second position information of the first second target interface element is used as the new starting position to continue to determine the second position information of non-first second target interface elements, so as to obtain the second position information of each second target interface element.

[0243] The above-mentioned determination of the second position information of the non-first second target interface element refers to determining the sum of the new starting position, the second display attribute information of the first second target interface element, and the preset interval distance, and determining the sum as the second position information of the non-first second target interface element, and so on to obtain the second position information of each second target interface element.

[0244] When there are multiple third target interface elements, the second position information of the second target interface elements is determined. Specifically, the second position information of the third target interface element located at the first position is used as the starting position. The sum of the starting position, the second display attribute information of each third target interface element, and all preset interval distances is determined, and this sum is used as the second position information of the first second target interface element. In this application, all the aforementioned preset interval distances refer to the total preset interval distance between all third target interface elements and the first second target interface element.

[0245] Next, the second position information of the first second target interface element is used as the new starting position to continue to determine the second position information of non-first second target interface elements, so as to obtain the second position information of each third target interface element.

[0246] Step S25: Based on the first configuration information of a set of interface elements and the first display information of the corresponding display area of ​​the interface, determine the first display attribute information and the first position information of a set of interface elements.

[0247] In some optional embodiments, this application may first determine a set of first display attribute information of the interface elements, i.e., target width information, based on a set of first configuration information of the interface elements and a set of first display information of the corresponding display area of ​​the interface. Then, a set of first position information of the interface elements is determined, wherein the first position information can be understood as target horizontal coordinate information, i.e., target X-axis coordinate.

[0248] In some embodiments, a first display attribute information of a set of interface elements is determined based on a first configuration information of a set of interface elements and a first display information of a display area corresponding to the interface. Optionally, it is first determined whether the first configuration information of each interface element in the set of interface elements is greater than the first display information of the display area corresponding to the interface. If it is determined that the first configuration information of any interface element in the set of interface elements is greater than the first display information of the display area corresponding to the interface, then the first configuration information of the interface element is adjusted according to the first display information of the display area corresponding to the interface, so that the width information of the interface element is the same as the first display information of the display area corresponding to the interface. At this time, the adjusted first configuration information is used as the first display attribute information of the interface element. If it is determined that the first configuration information of any interface element in the set of interface elements is less than or equal to the first display information of the display area corresponding to the interface, then the first configuration information of the interface element is determined as the first display attribute information of the interface element.

[0249] In this application, any interface element whose first configuration information is greater than the first display information of the display area corresponding to the interface can be at least one of the aforementioned second target interface element and third target interface element.

[0250] That is, this application determines the first display attribute information of a set of interface elements based on the first configuration information of a set of interface elements and the first display information of the display area corresponding to the interface, including: in response to the first configuration information of any interface element in the set of interface elements being greater than the first display information of the display area corresponding to the interface, adjusting the first configuration information of the interface element according to the first display information of the display area corresponding to the interface to obtain the first display attribute information of the interface element; in response to the first configuration information of any interface element in the set of interface elements being less than or equal to the first display information of the display area corresponding to the interface, determining the first configuration information of the interface element as the first display attribute information of the interface element.

[0251] In some optional embodiments, considering that the number of interface elements in a group of interface elements corresponding to the interface can be one or more, the determination of the first position information of a group of interface elements in this application may include at least one of the following:

[0252] Scenario 1: If the first display attribute information of each interface element is the first display information of the corresponding display area of ​​the interface, then the first position information of each interface element is determined to be the first coordinate information in the origin coordinates of the two-dimensional coordinate system, where the two-dimensional coordinate system is constructed based on the corresponding display area of ​​the interface.

[0253] In this application, the first coordinate information specifically refers to the X-axis coordinate, that is, the horizontal coordinate information.

[0254] Scenario 2: If the first display attribute information of any interface element is the first display information of the corresponding display area of ​​the interface, then the first position information of the interface element is determined to be the first coordinate information in the origin coordinate system of the two-dimensional coordinate system.

[0255] Case 3: If the first display attribute information of any interface element is its own first configuration information, then the first position information of the interface element is determined to be the expected first position information of the interface element.

[0256] Case 4: If the first display attribute information of each interface element is its own first configuration information, then the first position information of each interface element is determined to be the expected first position information of that interface element.

[0257] In some embodiments, when determining the first position information of a group of interface elements, this application may also obtain a preset alignment method from the configuration information of the layout component, and perform an alignment operation on the group of interface elements according to the preset alignment method. Then, based on the aligned group of interface elements, the first position information of the group of interface elements is determined. This improves the readability and display hierarchy of the interface elements within the corresponding group, resulting in a cleaner and more orderly displayed interface.

[0258] In this application, the preset alignment method may include one of the following: top alignment, bottom alignment, center alignment, and other alignment methods.

[0259] In some alternative embodiments, this application determines the first position information of a set of interface elements based on a set of interface elements after alignment operations, which may include one of the following methods:

[0260] In the first method, if the preset alignment is top alignment, the first coordinate information of the origin coordinate of the two-dimensional coordinate system is used as the first position information of each interface element in the corresponding set of interface elements; where the two-dimensional coordinate system is constructed based on the display area corresponding to the interface.

[0261] The second method, if the preset alignment is bottom alignment, determines the first position information of each interface element in the corresponding set of interface elements based on the difference between the first display attribute information of each interface element in the corresponding set of interface elements and the first display information of the corresponding display area of ​​the interface.

[0262] The third method, if the preset alignment is center alignment, determines the first position information of each interface element in the set of interface elements based on the distance information between each interface element in the set of interface elements and the second boundary of the display area corresponding to the interface.

[0263] The second boundary can be understood as the left boundary of the display area, such as... Figure 4a As shown.

[0264] Step S26: In response to the second target configuration information being the same as the second display information of the display area corresponding to the interface, determine the second configuration information of each interface element in the set of interface elements corresponding to the interface as the second display attribute information, determine the expected second position information in the expected position information of each interface element in the set of interface elements corresponding to the interface as the second position information, and determine the first display attribute information and the first position information of each interface element in the set of interface elements corresponding to the interface based on the first configuration information of each interface element in the set of interface elements corresponding to the interface and the first display information of the display area corresponding to the interface.

[0265] It should be noted that the implementation principle of S26 in this application is the same as or similar to the implementation principle of S25 mentioned above. For the specific implementation process of S26, please refer to the S25 section mentioned above. It will not be elaborated on here.

[0266] Considering that the number of interface elements in a set of interface elements corresponding to the interface of this application can be multiple, i.e., more than one, when the layout of the interface is vertical, one or more child canvas elements can be set in multiple interface elements, and other types of interface elements can be arranged in each child canvas element. Among them, other types of interface elements refer to elements such as buttons, text boxes, icons, images, broadcaster information, toolbars, comment boxes, and other controls.

[0267] Next, the first target configuration information and second target configuration information of all other types of interface elements in each sub-canvas element are determined. Each first target configuration information is used as the width information of the corresponding sub-canvas element, and each second target configuration information is used as the height information of the corresponding sub-canvas element. Then, the second target configuration information of all sub-canvas elements is determined. Based on the second target configuration information of all sub-canvas elements and the second display information of the corresponding display area of ​​the interface, the second display attribute information and second position information of each other type of interface element in the interface are determined. Furthermore, based on the first configuration information of each sub-canvas element and the first display information of the corresponding display area of ​​the interface, the first display attribute information and first position information of each other type of interface element in the interface are determined. Specifically, the first configuration information of each sub-canvas element refers to the largest first configuration information among the first configuration information of the other types of interface elements arranged within each sub-canvas element.

[0268] When the interface layout is horizontal, one or more sub-canvas elements can be set within multiple interface elements, and other types of interface elements can be arranged within each sub-canvas element. Then, the first and second target configuration information for all other types of interface elements within each sub-canvas element are determined. Each first target configuration information is used as the width information of the corresponding sub-canvas element, and each second target configuration information is used as the height information of the corresponding sub-canvas element. Next, the first target configuration information for all sub-canvas elements is determined. Based on the first target configuration information of all sub-canvas elements and the first display information of the corresponding display area, the first display attribute information and first position information of each other type of interface element in the interface are determined. Similarly, based on the second configuration information of each sub-canvas element and the second display information of the corresponding display area, the second display attribute information and second position information of each other type of interface element in the interface are determined. Specifically, the second configuration information of each sub-canvas element refers to the largest second configuration information among the second configuration information of the other types of interface elements arranged within each sub-canvas element. This method improves the diversity of interface layouts, thereby meeting the personalized needs of interface display.

[0269] It should be noted that the implementation principle of determining the first display attribute information and first position information of each other type of interface element in the interface based on the first target configuration information of all sub-canvas elements and the first display information of the corresponding display area of ​​the interface, and determining the second display attribute information and second position information of each other type of interface element in the interface based on the second configuration information of each sub-canvas element and the second display information of the corresponding display area of ​​the interface, is the same as or similar to the implementation principle of S102-2 mentioned above. Therefore, the specific implementation process can be found in the aforementioned S102-2 section, and will not be elaborated on here.

[0270] Furthermore, the implementation principle of determining the second display attribute information and second position information of each other type of interface element in the interface based on the second target configuration information of all sub-canvas elements and the second display information of the display area corresponding to the interface, and the implementation principle of determining the second display attribute information and first position information of each other type of interface element in the interface based on the first configuration information of each sub-canvas element and the first display information of the display area corresponding to the interface, is the same as or similar to the implementation principle of S102-3 mentioned above. Therefore, the specific implementation process can be found in the aforementioned S102-3 section, and will not be elaborated on here.

[0271] The solution disclosed in this application avoids the process of establishing and solving a system of multivariate linear equations, thereby improving the layout speed of interface elements and the rendering speed of the application interface. This reduces stuttering or lag in the application interface display and improves the smoothness of the display. Furthermore, the view-based instance method can resolve the incompatibility issues between relative and absolute layouts, ensuring that the internal constraints of each interface element are correctly implemented.

[0272] In some optional embodiments, considering that when determining the display attribute information and position information of a set of interface elements in the aforementioned step S102-2, there may be a first target configuration information of a set of interface elements that is less than the first display information of the display area corresponding to the interface, and the configuration information of the layout component may be such that when the first target configuration information of a set of interface elements is less than the first display information of the display area corresponding to the interface, no adjustment operation is performed on the first configuration information of a set of interface elements.

[0273] Therefore, step S102-2 above may include the following steps S102-21 to S102-25:

[0274] S102-21, in response to the first target configuration information of a group of interface elements being less than the first display information of the corresponding display area of ​​the interface, and the configuration information being that when the first target configuration information of a group of interface elements is less than the first display information of the corresponding display area of ​​the interface, the first configuration information of the group of interface elements is not adjusted, and the number of intervals between interface elements is determined according to the number of interface elements in the group of interface elements corresponding to the interface.

[0275] For example, suppose a live streaming interface has four interface elements: interface element 1, interface element 2, interface element 3, and interface element 4. The layout of these four interface elements is horizontal. Then, the first configuration information of each of the four interface elements is added together to determine the first target configuration information. When the first target configuration information is less than the first display information of the corresponding display area of ​​the interface, it can be determined that there is a gap between interface element 1 and interface element 2, a gap between interface element 2 and interface element 3, and a gap between interface element 3 and interface element 4. Thus, the number of gaps between the interface elements in the live streaming interface is 3.

[0276] S102-22, determine the value of each interval based on the number of intervals between interface elements and the difference between the first display information and the first target configuration information of the corresponding display area of ​​the interface.

[0277] In some embodiments, the value of each interval can be obtained by dividing the difference between the first display information and the first target configuration information of the display area corresponding to the interface by the number of intervals corresponding to the horizontal layout of the interface elements. The value of each interval is the same.

[0278] S102-23, the first coordinate information in the origin coordinates of the two-dimensional coordinate system is determined as the first position information of the first interface element in a group of interface elements corresponding to the interface, the first configuration information of the first interface element is determined as the first display attribute information of the first interface element, and the first configuration information of the non-first interface element in a group of interface elements is determined as the first display attribute information of the non-first interface element.

[0279] S102-24, determine the first position information of non-first interface elements based on the first position information of the first interface element, the first display attribute information of the first interface element, and the interval.

[0280] In some embodiments, the number of non-first interface elements in a group of interface elements can be one or more. Therefore, this application can determine the first position information of non-first interface elements using different methods based on the number of non-first interface elements, as described below:

[0281] Method 1: If there is only one non-first interface element, then the first position information of the non-first interface element is determined based on the first position information of the first interface element, the first display attribute information of the first interface element, and the interval. Specifically, the first position information of the first interface element is used as the starting position, the sum of the starting position, the first display attribute information of the first interface element, and the interval is determined, and the sum is determined as the first position information of the non-first interface element.

[0282] Method 2: If there are multiple non-first interface elements, i.e. more than one, then the first position information of the non-first interface elements is determined based on the first position information of the first interface element, the first display attribute information of the first interface element, and the interval. Specifically, the first position information of the first interface element is used as the starting position, the sum of the starting position, the first display attribute information of the first interface element, and the interval is determined, and the sum is determined as the first position information of the first non-first interface element.

[0283] Next, the first position information of the first non-first interface element is used as the new starting position to determine the first position information of the second non-first interface element, and so on, until the first position information of each non-first interface element is obtained.

[0284] The above-mentioned determination of the first position information of the second non-first interface element refers to determining the new starting position, the first display attribute information of the first non-first interface element, and the sum of the intervals, and determining the sum as the first position information of the second non-first interface element, and so on to obtain the first position information of each non-first interface element.

[0285] S102-25, based on the second configuration information of each interface element in a set of interface elements corresponding to the interface and the second display information of the display area corresponding to the interface, determine the second display attribute information and the second position information of each interface element in a set of interface elements.

[0286] The implementation process of S102-25 can be found in the aforementioned step S15 section, and will not be elaborated further here.

[0287] In other words, when the first target configuration information is less than the first display information of the corresponding display area of ​​the interface, the difference between the first display information of the display area and the first target configuration information can be directly determined. The difference and the number of intervals between interface elements are used to determine the value of each interval, so as to evenly distribute the difference between the first display information of the display area and the first target configuration information. Then, according to the value of each interval, the expected first position information of each interface element in a group of interface elements corresponding to the interface is adjusted to obtain the first position information of each interface element without adjusting the width of the first configuration information of each interface element. This can further improve the layout speed of interface elements in the application interface, thereby improving the rendering speed of the application interface, reducing the phenomenon of stuttering or delay in the display of the application interface, and improving the display smoothness of the application interface.

[0288] In some optional embodiments, considering that when determining the display attribute information and position information of a set of interface elements in the aforementioned steps S102-3, there may be a second target configuration information of a set of interface elements that is less than the second display information of the corresponding display area of ​​the interface, and the configuration information of the layout component may be such that when the second target configuration information of a set of interface elements is less than the second display information of the corresponding display area of ​​the interface, no adjustment operation is performed on the second configuration information of a set of interface elements.

[0289] Therefore, step S102-3 above may include the following steps S102-31 to S102-35:

[0290] S102-31, in response to the second target configuration information of a group of interface elements being less than the second display information of the corresponding display area of ​​the interface, and the configuration information being that when the second target configuration information of a group of interface elements is less than the second display information of the corresponding display area of ​​the interface, the second configuration information of the group of interface elements is not adjusted, and the number of intervals between interface elements is determined according to the number of interface elements in the group of interface elements corresponding to the interface.

[0291] For example, suppose there are four interface elements in a set of interface elements corresponding to a live broadcast interface, namely interface element 11, interface element 12, interface element 13 and interface element 14, and the layout of the above four interface elements is vertical. Then, the second configuration information of each of the above four interface elements can be added together to obtain the second target configuration information. When the second target configuration information is less than the second display information of the display area corresponding to the interface, it can be determined that there is a gap between interface element 11 and interface element 12, a gap between interface element 12 and interface element 13, and a gap between interface element 13 and interface element 14. Thus, it can be known that the number of gaps between interface elements in the live broadcast interface is 3.

[0292] S102-32, determine the value of each interval based on the number of intervals between interface elements and the difference between the second display information and the second target configuration information of the corresponding display area of ​​the interface.

[0293] In some embodiments, the value of each interval can be obtained by dividing the difference between the second display information and the second target configuration information of the display area corresponding to the interface by the number of intervals corresponding to the vertical layout of the interface elements. The value of each interval is the same.

[0294] S102-33, the second coordinate information in the origin coordinates of the two-dimensional coordinate system is determined as the second position information of the first interface element in a group of interface elements corresponding to the interface, the second configuration information of the first interface element is determined as the second display attribute information of the first interface element, and the second configuration information of the non-first interface element in a group of interface elements is determined as the second display attribute information of the non-first interface element.

[0295] S102-34, determine the second position information of non-first interface elements based on the second position information of the first interface element, the second display attribute information of the first interface element, and the interval.

[0296] In some embodiments, the number of non-first interface elements in a group of interface elements can be one or more. Therefore, this application can determine the second position information of non-first interface elements using different methods based on the number of non-first interface elements, as described below:

[0297] Method 1: If there is only one non-first interface element, then the second position information of the non-first interface element is determined based on the second position information of the first interface element, the second display attribute information of the first interface element, and the interval. Specifically, the second position information of the first interface element is used as the starting position, the sum of the starting position, the second display attribute information of the first interface element, and the interval is determined, and the sum is used as the second position information of the non-first interface element.

[0298] Method 2: If there are multiple non-first interface elements, i.e. more than one, then the second position information of the non-first interface elements is determined based on the second position information of the first interface element, the second display attribute information of the first interface element, and the interval. Specifically, the second position information of the first interface element is used as the starting position, the sum of the starting position, the second display attribute information of the first interface element, and the interval is determined, and the sum is determined as the second position information of the first non-first interface element.

[0299] Next, the second position information of the first non-first interface element is used as the new starting position to continue determining the second position information of the second non-first interface element, until the second position information of each non-first interface element is obtained.

[0300] The above-mentioned determination of the second position information of the second non-first interface element refers to determining the new starting position, the second display attribute information of the first non-first interface element, and the sum of the intervals, and determining the sum as the second position information of the second non-first interface element, and so on to obtain the second position information of each non-first interface element.

[0301] S102-35, based on the first configuration information of each interface element in a set of interface elements corresponding to the interface and the first display information of the display area corresponding to the interface, determine the first display attribute information and the first position information of each interface element in a set of interface elements.

[0302] The implementation process of S102-35 can be found in the aforementioned step S25 section, and will not be elaborated further here.

[0303] In other words, when the second target configuration information is less than the second display information of the corresponding display area of ​​the interface, the difference between the second display information of the display area and the second target configuration information can be directly determined. The difference and the number of intervals between interface elements are used to determine the value of each interval. This allows the difference between the second display information of the display area and the second target configuration information to be evenly distributed. Then, based on the value of each interval, the expected second position information of each interface element in a set of interface elements corresponding to the interface is adjusted to obtain the second position information of each interface element. This eliminates the need to adjust the second configuration information of each interface element. This can further improve the layout speed of interface elements in the application interface, thereby improving the rendering speed of the application interface. This can reduce the phenomenon of stuttering or delay in the display of the application interface and improve the smoothness of the application interface display.

[0304] The following is a reference to the appendix. Figure 5 This application describes an interface display device based on an embodiment. Figure 5 As shown, the interface display device 400 includes: a first acquisition module 410, an information determination module 420, and an interface display module 430.

[0305] The first acquisition module 410 is used to acquire configuration information of a set of interface elements corresponding to the interface.

[0306] The information determination module 420 is used to determine the layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface.

[0307] The interface display module 430 is used to display the interface according to the layout information of the set of interface elements.

[0308] In one optional implementation of this application embodiment, the configuration information includes first configuration information and second configuration information, and the display information includes first display information and second display information; the information determination module 420 is specifically used for:

[0309] In response to the interface being a horizontal layout, first target configuration information is determined based on first configuration information of the group of interface elements; first display attribute information and first position information of the group of interface elements are determined based on the first target configuration information and first display information of the display area corresponding to the interface; and second display attribute information and second position information of the group of interface elements are determined based on second configuration information of the group of interface elements and second display information of the display area corresponding to the interface; or,

[0310] In response to the interface being a vertical layout, second target configuration information is determined based on the second configuration information of the set of interface elements. Based on the second target configuration information and the second display information of the display area corresponding to the interface, second display attribute information and second position information of the set of interface elements are determined. Based on the first configuration information of the set of interface elements and the first display information of the display area corresponding to the interface, first display attribute information and first position information of the set of interface elements are determined.

[0311] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0312] In response to the fact that the first target configuration information and the first display information of the display area corresponding to the interface are different, a first target interface element is determined from the group of interface elements, and the first configuration information of the first target interface element is adjusted to obtain the first display attribute information of the first target interface element.

[0313] The first configuration information of the second target interface element in the group of interface elements is determined as the first display attribute information of the second target interface element;

[0314] Determine the first position information of the first target interface element and the first position information of the second target interface element.

[0315] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0316] Determine a first difference between the first target configuration information and the first display information of the display area corresponding to the interface;

[0317] Based on the first difference and the first configuration information of the set of interface elements, a scalable first target interface element is determined from the set of interface elements.

[0318] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0319] Based on the first difference between the first target configuration information and the first display information of the display area corresponding to the interface, the first configuration information of the first target interface element is adjusted to obtain the first display attribute information of the first target interface element.

[0320] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0321] In response to the first difference being greater than a preset value, the first configuration information of the first target interface element is reduced based on the first difference to obtain the first display attribute information of the first target interface element.

[0322] In response to the first difference being less than a preset value, the first configuration information of the first target interface element is amplified based on the first difference to obtain the first display attribute information of the first target interface element.

[0323] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0324] Based on the first coordinate information in the origin coordinates of the two-dimensional coordinate system, the first position information of the first target interface element is determined, wherein the two-dimensional coordinate system is constructed based on the display area corresponding to the interface.

[0325] The first position information of the second target interface element is determined based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance.

[0326] In an optional implementation of this application embodiment, in response to the number of the third target interface elements being one, the information determination module 420 is further configured to:

[0327] Using the first position information of the first target interface element as the starting position, the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance is determined, and the sum is determined as the first position information of the second target interface element.

[0328] In an optional implementation of this application embodiment, in response to the number of the third target interface elements being multiple, the information determination module 420 is further configured to:

[0329] Using the first position information of the first target interface element as the starting position, the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance is determined, and the sum is determined as the first position information of the first second target interface element.

[0330] Using the first position information of the first second target interface element as the new starting position, we continue to determine the first position information of non-first second target interface elements to obtain the first position information of each second target interface element.

[0331] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0332] In response to the second configuration information of any interface element in the group of interface elements being greater than the second display information of the display area corresponding to the interface, the second configuration information of the interface element is adjusted according to the second display information of the display area corresponding to the interface to obtain the second display attribute information of the interface element;

[0333] In response to the second configuration information of any interface element in the group of interface elements being less than or equal to the second display information of the display area corresponding to the interface, the second configuration information of the interface element is determined as the second display attribute information of the interface element.

[0334] In one optional implementation of this application embodiment, the interface display device 400 further includes:

[0335] The alignment module is used to perform alignment operations on the group of interface elements according to a preset alignment method.

[0336] In one optional implementation of this application embodiment, the information determination module 420 is further configured to:

[0337] In response to the preset alignment method being top alignment, the second coordinate information in the origin coordinates of the two-dimensional coordinate system is used as the second position information of the group of interface elements; wherein, the two-dimensional coordinate system is constructed based on the display area corresponding to the interface;

[0338] In response to the preset alignment method being bottom alignment, the second position information of the set of interface elements is determined based on the difference between the second display attribute information of the set of interface elements and the second display information of the corresponding display area of ​​the interface.

[0339] In response to the preset alignment method being center alignment, the second position information of the group of interface elements is determined based on the distance information between the group of interface elements and the first boundary of the display area corresponding to the interface.

[0340] In one optional implementation of this application embodiment, the information determination module 420 is specifically used for:

[0341] In response to the fact that the second target configuration information and the second display information of the display area corresponding to the interface are different, a third target interface element is determined from the group of interface elements, and the second configuration information of the third target interface element is adjusted to obtain the second display attribute information of the third target interface element;

[0342] The second configuration information of the second target interface element in the group of interface elements is determined as the second display attribute information of the second target interface element;

[0343] Determine the second position information of the third target interface element and the second position information of the second target interface element.

[0344] In one optional implementation of this application embodiment, the interface display device 400 further includes:

[0345] The relationship establishment module is used to establish an association between the target interface element and the display attribute information of the target interface element in response to determining that the target interface element has internal constraints. The target interface element includes a first target interface element and a third target interface element, and the display attribute information includes first display attribute information and second display attribute information.

[0346] The second acquisition module is used to acquire the display attribute information of the target interface element from the association relationship according to a preset instance method;

[0347] The adjustment module is used to adjust the configuration information of the target interface element according to the display attribute information of the target interface element.

[0348] It should be understood that the device embodiments and the foregoing method embodiments can correspond to each other, and similar descriptions can be found in the first aspect of the method embodiments. To avoid repetition, further details are omitted here. Specifically, Figure 5 The device 400 shown can perform Figure 1 The corresponding method embodiments, and the foregoing and other operations and / or functions of each module in device 400 are respectively implemented to achieve Figure 1 For the sake of brevity, the corresponding processes in each method are not described in detail here.

[0349] The apparatus 400 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the first aspect method embodiment in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the first aspect method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the first aspect method embodiment described above.

[0350] Figure 6 This is a schematic block diagram of an electronic device provided as an embodiment of this application. Figure 6 As shown, the electronic device 500 may include a memory 510 and a processor 520. The memory 510 stores computer programs and transmits the program code to the processor 520. In other words, the processor 520 can call and run the computer program from the memory 510 to implement the interface display method described in the first aspect of this application embodiment.

[0351] For example, the processor 520 can be used to execute the interface display method described in the first aspect above according to the instructions in the computer program.

[0352] In some embodiments of this application, the processor 520 may include, but is not limited to:

[0353] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0354] In some embodiments of this application, the memory 510 includes, but is not limited to:

[0355] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0356] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to complete the interface display method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the electronic device.

[0357] like Figure 5 As shown, the electronic device 500 may further include:

[0358] Transceiver 530, which can be connected to processor 520 or memory 510.

[0359] The processor 520 can control the transceiver 530 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 530 may include a transmitter and a receiver. The transceiver 530 may further include antennas, and the number of antennas may be one or more.

[0360] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.

[0361] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the interface display method described in the first aspect above.

[0362] This application also provides a computer program product containing program instructions that, when executed on an electronic device, cause the electronic device to perform the interface display method as described in the first aspect.

[0363] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0364] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0365] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0366] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0367] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0368] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An interface display method characterized by, include: Get the configuration information of a set of interface elements corresponding to the interface; Based on the configuration information of the set of interface elements and the display information of the corresponding display area of ​​the interface, the layout information of the set of interface elements is determined; The interface is displayed based on the layout information of the set of interface elements.

2. The method of claim 1, wherein, The configuration information includes first configuration information and second configuration information, and the display information includes first display information and second display information; determining the layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface includes: In response to the interface being a horizontal layout, first target configuration information is determined based on first configuration information of the group of interface elements; first display attribute information and first position information of the group of interface elements are determined based on the first target configuration information and first display information of the display area corresponding to the interface; and second display attribute information and second position information of the group of interface elements are determined based on second configuration information of the group of interface elements and second display information of the display area corresponding to the interface; or, In response to the interface being a vertical layout, second target configuration information is determined based on the second configuration information of the set of interface elements. Based on the second target configuration information and the second display information of the display area corresponding to the interface, second display attribute information and second position information of the set of interface elements are determined. Based on the first configuration information of the set of interface elements and the first display information of the display area corresponding to the interface, first display attribute information and first position information of the set of interface elements are determined.

3. The method of claim 2, wherein, The step of determining the first display attribute information and first position information of the set of interface elements based on the first target configuration information and the first display information of the display area corresponding to the interface includes: In response to the fact that the first target configuration information and the first display information of the display area corresponding to the interface are different, a first target interface element is determined from the group of interface elements, and the first configuration information of the first target interface element is adjusted to obtain the first display attribute information of the first target interface element. The first configuration information of the second target interface element in the group of interface elements is determined as the first display attribute information of the second target interface element; Determine the first position information of the first target interface element and the first position information of the second target interface element.

4. The method of claim 3, wherein, Determining the first target interface element from the set of interface elements includes: Determine a first difference between the first target configuration information and the first display information of the display area corresponding to the interface; Based on the first difference and the first configuration information of the set of interface elements, a scalable first target interface element is determined from the set of interface elements.

5. The method of claim 3, wherein, The step of adjusting the first configuration information of the first target interface element to obtain the first display attribute information of the first target interface element includes: Based on the first difference between the first target configuration information and the first display information of the display area corresponding to the interface, the first configuration information of the first target interface element is adjusted to obtain the first display attribute information of the first target interface element.

6. The method according to claim 5, characterized in that, The step of adjusting the first configuration information of the first target interface element based on the first difference between the first target configuration information and the first display information of the display area corresponding to the interface to obtain the first display attribute information of the first target interface element includes: In response to the first difference being greater than a preset value, the first configuration information of the first target interface element is reduced based on the first difference to obtain the first display attribute information of the first target interface element. In response to the first difference being less than a preset value, the first configuration information of the first target interface element is amplified based on the first difference to obtain the first display attribute information of the first target interface element.

7. The method according to claim 3, characterized in that, Determining the first position information of the first target interface element and the first position information of the second target interface element includes: The first position information of the first target interface element is determined based on the first coordinate information in the origin coordinates of the two-dimensional coordinate system, wherein the two-dimensional coordinate system is constructed based on the display area corresponding to the interface. The first position information of the second target interface element is determined based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance.

8. The method according to claim 7, characterized in that, In response to the fact that the number of the second target interface elements is one, the step of determining the first position information of the second target interface element based on the first position information of the first target interface element, the first display attribute information of the first target interface element, and the preset interval distance includes: Using the first position information of the first target interface element as the starting position, the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance is determined, and the sum is determined as the first position information of the second target interface element.

9. The method according to claim 7, characterized in that, In response to the fact that there are multiple second target interface elements, the step of determining the first position information of the second target interface elements based on the first position information of the first target interface elements, the first display attribute information of the first target interface elements, and a preset interval distance includes: Using the first position information of the first target interface element as the starting position, the sum of the starting position, the first display attribute information of the first target interface element, and the preset interval distance is determined, and the sum is determined as the first position information of the first second target interface element. Using the first position information of the first second target interface element as the new starting position, we continue to determine the first position information of non-first second target interface elements to obtain the first position information of each second target interface element.

10. The method according to claim 2, characterized in that, The step of determining the second display attribute information of the set of interface elements based on the second configuration information of the set of interface elements and the second display information of the display area corresponding to the interface includes: In response to the second configuration information of any interface element in the group of interface elements being greater than the second display information of the display area corresponding to the interface, the second configuration information of the interface element is adjusted according to the second display information of the display area corresponding to the interface to obtain the second display attribute information of the interface element; In response to the second configuration information of any interface element in the group of interface elements being less than or equal to the second display information of the display area corresponding to the interface, the second configuration information of the interface element is determined as the second display attribute information of the interface element.

11. The method according to claim 10, characterized in that, The method further includes: The group of interface elements is aligned according to a preset alignment method.

12. The method according to claim 11, characterized in that, The step of determining the second position information of the set of interface elements based on the second configuration information of the set of interface elements and the second display information of the display area corresponding to the interface includes: In response to the preset alignment method being top alignment, the second coordinate information in the origin coordinates of the two-dimensional coordinate system is used as the second position information of the group of interface elements; wherein, the two-dimensional coordinate system is constructed based on the display area corresponding to the interface; In response to the preset alignment method being bottom alignment, the second position information of the set of interface elements is determined based on the difference between the second display attribute information of the set of interface elements and the second display information of the corresponding display area of ​​the interface. In response to the preset alignment method being center alignment, the second position information of the group of interface elements is determined based on the distance information between the group of interface elements and the first boundary of the display area corresponding to the interface.

13. The method according to claim 2, characterized in that, The step of determining the second display attribute information and second position information of the set of interface elements based on the second target configuration information and the second display information of the display area corresponding to the interface includes: In response to the fact that the second target configuration information and the second display information of the display area corresponding to the interface are different, a third target interface element is determined from the group of interface elements, and the second configuration information of the third target interface element is adjusted to obtain the second display attribute information of the third target interface element; The second configuration information of the second target interface element in the group of interface elements is determined as the second display attribute information of the second target interface element; Determine the second position information of the third target interface element and the second position information of the second target interface element.

14. The method according to claim 3 or 13, characterized in that, The method further includes: In response to determining that the target interface element has internal constraints, an association relationship is established between the target interface element and the display attribute information of the target interface element. The target interface element includes a first target interface element and a third target interface element, and the display attribute information includes first display attribute information and second display attribute information. According to the preset instance method, the display attribute information of the target interface element is obtained from the association relationship; Adjust the configuration information of the target interface element based on its display attribute information.

15. An interface display device, characterized in that, include: The first acquisition module is used to acquire configuration information of a set of interface elements corresponding to the interface. The information determination module is used to determine the layout information of the set of interface elements based on the configuration information of the set of interface elements and the display information of the display area corresponding to the interface. The interface display module is used to display the interface based on the layout information of the set of interface elements.

16. An electronic device, characterized in that, include: A processor and a memory, the memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the method as described in any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the method as described in any one of claims 1 to 14.

18. A computer program product containing program instructions, characterized in that, When the program instructions are executed on the electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1 to 14.