Control processing method and device, terminal equipment, storage medium and program product
Patent Information
- Application Number
- CN202510497745.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2026-10-23
AI Technical Summary
但是,在上述方法中,该结构是固定的结构,在该UI界面添加新的控件时,用户需要重新编辑该UI界面的底层代码,这样导致控件处理的效率较低
[0018]本公开实施例提供一种控件处理方法、装置、终端设备、存储介质及程序产品,终端设备可以获取第一界面的配置信息,其中,配置信息可以包括待在第一界面的多个第一控件中的每个第一控件的参数、以及多个第一控件之间的层级关系,层级关系可以包括多级的嵌套关系,终端设备可以基于多个第一控件的层级关系,确定多个第一控件中的每个第一控件在第一界面中进行显示的结构信息,并基于多个第一控件中的每个第一控件的参数和结构信息,确定多个第一控件的信息,其中,多个第一控件的信息用于在第一界面上显示多个第一控件。在上述方法中,由于层级关系是多级的嵌套关系,换句话说,第一控件可以嵌套另一个第一控件,并且被嵌套的另一个第一控件,还可以继续嵌套第一控件,因此,多个第一控件可以组成复杂、动态的第一界面,提高控件处理的灵活度和效率,并且可以降低第一界面的维护和开发的难度。
Smart Images

Figure CN122963674A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a control processing method, apparatus, terminal device, storage medium, and program product. Background Technology
[0002] Reflection mechanisms for user interface (UI) controls can be used to dynamically load, invoke, and modify the properties of UI controls.
[0003] Currently, the data structure of a UI interface is a container-object structure. For example, a container can be associated with a text control, and the objects within the container can include attributes such as font size and font type. When the terminal device reflects the data of this UI interface back to the UI interface, the text control can contain a font size control. However, in the above method, this structure is fixed. When adding new controls to the UI interface, the user needs to re-edit the underlying code of the UI interface, which leads to low efficiency in control processing. Summary of the Invention
[0004] This disclosure provides a control processing method, apparatus, terminal device, storage medium, and program product to solve technical problems in the prior art.
[0005] In a first aspect, embodiments of this disclosure provide a control processing method, which includes:
[0006] Obtain the configuration information of the first interface, the configuration information including the parameters of each of the multiple first controls to be displayed on the first interface, and the hierarchical relationship between the multiple first controls, the hierarchical relationship including multi-level nesting relationship;
[0007] Based on the hierarchical relationship of the plurality of first controls, determine the structural information of each of the plurality of first controls for display in the first interface;
[0008] Based on the parameters of each of the plurality of first controls and the structural information, the information of the plurality of first controls is determined, and the information of the plurality of first controls is used to display the plurality of first controls on the first interface.
[0009] In a second aspect, embodiments of this disclosure provide a control processing device, which includes an acquisition module, a first determination module, and a second determination module, wherein:
[0010] The acquisition module is used to acquire configuration information of the first interface. The configuration information includes the parameters of each of the multiple first controls to be displayed on the first interface, and the hierarchical relationship between the multiple first controls, including a multi-level nested relationship.
[0011] The first determining module is used to determine the structural information of each of the plurality of first controls displayed in the first interface based on the hierarchical relationship of the plurality of first controls;
[0012] The second determining module is used to determine the information of the plurality of first controls based on the parameters of each of the plurality of first controls and the structural information, and the information of the plurality of first controls is used to display the plurality of first controls on the first interface.
[0013] Thirdly, this disclosure provides a terminal device, including: a processor and a memory;
[0014] The memory stores computer-executed instructions;
[0015] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the first aspect and various control processing methods that may be involved in the first aspect.
[0016] Fourthly, this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the first aspect above and various control processing methods that may be involved in the first aspect.
[0017] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the first aspect above and various control processing methods that may be involved in the first aspect.
[0018] This disclosure provides a control processing method, apparatus, terminal device, storage medium, and program product. The terminal device can obtain configuration information of a first interface. The configuration information may include parameters of each of a plurality of first controls to be displayed on the first interface, and the hierarchical relationship between the plurality of first controls. The hierarchical relationship may include multi-level nesting. Based on the hierarchical relationship of the plurality of first controls, the terminal device can determine the structural information for displaying each of the plurality of first controls on the first interface, and based on the parameters and structural information of each of the plurality of first controls, determine the information of the plurality of first controls. The information of the plurality of first controls is used to display the plurality of first controls on the first interface. In the above method, since the hierarchical relationship is a multi-level nesting relationship, in other words, a first control can nest another first control, and another nested first control can continue to nest first controls. Therefore, multiple first controls can form a complex and dynamic first interface, improving the flexibility and efficiency of control processing, and reducing the difficulty of maintaining and developing the first interface. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0021] Figure 2 A flowchart illustrating a control processing method provided in an embodiment of this disclosure;
[0022] Figure 3 A schematic diagram illustrating the determination of first controls at the same level and their nesting relationships, provided for embodiments of this disclosure;
[0023] Figure 4 This is a schematic diagram illustrating the display of multiple first controls on a first interface, as provided in an embodiment of this disclosure.
[0024] Figure 5 This is a schematic diagram of a method for determining structural information provided in an embodiment of this disclosure;
[0025] Figure 6 This is a schematic diagram of structural information provided in an embodiment of the present disclosure;
[0026] Figure 7 This is a schematic diagram illustrating a method for updating a first interface according to an embodiment of the present disclosure;
[0027] Figure 8 This is a schematic diagram illustrating a process for displaying a third control, provided by an embodiment of the present disclosure.
[0028] Figure 9 This is a schematic diagram of the structure of a control processing device provided in an embodiment of the present disclosure;
[0029] Figure 10 This is a schematic diagram of another control processing device provided in an embodiment of the present disclosure;
[0030] Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation
[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0032] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0033] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0034] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0035] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0036] In related technologies, reflection mechanisms for UI controls can be used to dynamically load and invoke UI controls, as well as modify their properties. For example, if a user modifies the parameters of a UI control within the UI interface, the terminal device can modify the content of the UI interface based on this operation. For example, ... Figure 1 In the illustrated embodiment, if the user changes the font from SimSun to KaiTi, the text "SimSun" displayed to the right of the font control in the first interface will change to "KaiTi". Currently, the data structure of the UI interface can be a fixed structure of container-object. For example, in Figure 1 In the illustrated embodiment, text can represent a container, and the objects within that container can be attributes of the text (font, font size, color, etc.). However, in the above method, this structure is fixed; when adding new controls to the UI, the user needs to re-edit the underlying code of the UI. For example, as... Figure 1 In the embodiments shown, in related technologies, terminal devices cannot edit controls with shadow strokes (which can also represent a container) under text controls. Furthermore, when adding color controls to the UI interface, the user needs to re-edit the underlying code of the UI interface, which results in low efficiency and flexibility in control processing.
[0037] To address the technical problems in related technologies, this disclosure provides a control processing method. A terminal device can obtain configuration information of a first interface. This configuration information includes parameters of each of a plurality of first controls to be displayed on the first interface, and the hierarchical relationship between the multiple first controls. This hierarchical relationship can include multi-level nesting. Based on the hierarchical relationship of the multiple first controls, the terminal device can determine the nesting relationship between first controls at the same level and each of the first controls. Based on the nesting relationship between first controls at the same level and each of the first controls, the terminal device can determine structural information, and based on the parameters and structural information of each of the multiple first controls, determine the information used to display the multiple first controls on the first interface. In this method, because the hierarchical relationship is multi-level nesting—that is, a first control can nest another first control, and another nested first control can further nest first controls—multiple first controls can form a complex and dynamic first interface. Furthermore, the terminal device can accurately display multiple first controls on the first interface based on the information of the multiple first controls, thereby reducing the difficulty of maintaining and developing the first interface, and thus improving the processing efficiency and flexibility of the controls.
[0038] Below, in conjunction with Figure 1 The application scenarios of the embodiments of this disclosure will be described.
[0039] Figure 1This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. Please refer to [link / reference]. Figure 1 This includes: a first interface. The first interface can be a parameter panel, where the first level of controls includes controls for object information and text controls. Below the text controls are second-level controls. When the user clicks on a text control, the terminal device (… Figure 1 (Not shown) The text control can be expanded in the first interface, and the second-level control and the parameters of the second-level control can be displayed.
[0040] Please see Figure 1 The second level of controls includes text controls, font controls, font size controls, shadow / stroke controls, transparency controls, and color controls. Specifically, the text control's parameter is "Today is rainy," the font control's parameter is "SimSun," the font size control's parameter is 14, the transparency control's parameter is 100%, and the color (text color) control's parameter is red.
[0041] Please see Figure 1 The control with the shadow outline includes a third level of controls. When the user clicks the control with the shadow outline, the first interface displays the third level control and its parameters. The third level controls include the shadow color and the stroke width. The shadow color control is set to white, and the stroke width control is set to 2. Thus, in this first interface, the text controls can include not only text attributes but also a new container (the shadow outline), which can contain new attributes. Therefore, multiple first controls can form a complex and dynamic first interface, improving the flexibility of control handling and reducing the difficulty of maintaining and developing the first interface.
[0042] It should be noted that, Figure 1 This is intended to illustrate the application scenarios of the embodiments of this disclosure and is not intended to limit the application scenarios of the embodiments of this disclosure.
[0043] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.
[0044] Figure 2 This is a flowchart illustrating a control processing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 2 The method may include:
[0045] S201. Obtain the configuration information of the first interface. The configuration information includes the parameters of each of the multiple first controls to be displayed on the first interface, as well as the hierarchical relationship between the multiple first controls.
[0046] The execution entity of this disclosure can be a terminal device or a control processing device within the terminal device. The control processing device can be implemented in software, or it can be implemented using a combination of software and hardware; this disclosure does not limit this approach.
[0047] The first interface can be a UI interface. For example, the first interface can be the UI interface of any application, which may include one or more UI controls.
[0048] In some embodiments, the first control can be a control to be displayed on the first interface. For example, the first interface can be a parameter panel for text editing, which may include controls such as text, font, font size, font, and color. The terminal device can determine the control to be displayed in the parameter panel as the first control. For example, the first interface is a UI interface, and the first control can be any control to be displayed in the UI interface.
[0049] The parameters of the first control can be used to indicate the properties of the first control. For example, the parameters of the first control may include appearance parameters, layout parameters, interaction parameters, data parameters, etc., which are not limited in this embodiment.
[0050] For example, the appearance parameters of the first control may include font type, font size, font color, background color, height, width, corner radius, and icon, etc.
[0051] For example, layout parameters may include the position and alignment of the first control (e.g., left-aligned, center-aligned, and right-aligned).
[0052] For example, interaction parameters may include callback functions for events such as click, long press, and swipe, as well as enabled, disabled, visible, and invisible states.
[0053] In some embodiments, data parameters may include attribute values of the first control. For example, the attribute of the first control may be the font type, and the attribute values of the first control may include SimSun, Heiti, and Kaiti, etc. For example, the attribute of the first control may be the font color, and the attribute values of the first control may include red, black, blue, etc. For example, the attribute of the first control may be the width, and the attribute values of the first control may include 100 pixels (a pixel can represent the smallest display unit on the screen), 200 pixels, etc.
[0054] In some embodiments, the terminal device may obtain the parameters of each of the plurality of first controls in the first interface based on any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0055] In some embodiments, the hierarchy can indicate the stacking order of the first controls on the first interface. In other words, the hierarchy can determine the arrangement order of multiple first controls on the Z-axis, i.e., a higher-level control can cover a lower-level control. For example, if the first control 1 is at the same level as the first control 2, then in the first interface, the first control 1 can cover the first control 2. In other words, the first control 1 can be displayed on the first interface, and after the user clicks on the first control 1, the terminal device can display the first control 2 in the area below the first control. That is, the first control 1 can contain the first control 2.
[0056] In some embodiments, the first control may include a parameter indicating the hierarchy. The terminal device can obtain this parameter and determine the hierarchy relationship of multiple first controls based on the parameter. For example, if the parameter indicating the hierarchy of first control A is 1, the parameter indicating the hierarchy of first control B is 1, and the parameter indicating the hierarchy of first control C is 2, then the hierarchy of first control C is higher than the hierarchy of first control A and the hierarchy of first control B, and the hierarchy of first control A is the same as the hierarchy of first control B.
[0057] In some embodiments, the hierarchical relationship may include the hierarchical relationship of all first controls, or the hierarchical relationship of any two first controls, or the hierarchical relationship of all first controls and the hierarchical relationship of any two first controls. This disclosure does not limit this aspect.
[0058] In some embodiments, the hierarchy includes multi-level nesting. Nesting can indicate a parent-child hierarchy between first controls; in other words, when one first control (parent control) can contain another first control (child control), the hierarchy between the two first controls includes a nesting relationship. In some embodiments, multi-level nesting can indicate multiple parent-child hierarchies.
[0059] For example, the first interface includes a first control A, a first control B, and a first control C, wherein the first control A has a higher hierarchy than the first control B, and the first control B has a higher hierarchy than the first control C. When the first control A contains the first control B, and the first control B contains the first control C, the first control A, the first control B, and the first control C can form a multi-level nested relationship, wherein the first control A and the first control B have a first-level nested relationship, and the first control B and the first control C have a second-level nested relationship.
[0060] For example, such as Figure 1In the illustrated embodiment, the text control may include a shadow stroke control, meaning the text control and the shadow stroke control are nested. The shadow stroke control may include a shadow color control and a stroke width control, meaning the shadow stroke control can be nested with the shadow color control and the stroke control. In other words, the text control, shadow stroke control, and shadow color control can form a multi-level nested relationship, and the text control, shadow stroke control, and stroke width control can also form a multi-level nested relationship. It should be noted that in... Figure 1 In the illustrated embodiment, the text control and the font control can be nested. However, since the font control does not contain other controls, the hierarchical relationship between the text control and the font control is a single-level nesting relationship.
[0061] In some embodiments, the terminal device may obtain the hierarchical relationship of multiple first controls and the nesting relationship of multiple first controls based on any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0062] S202. Based on the hierarchical relationship of multiple first controls, determine the structural information of each first control in the first interface for display.
[0063] In some embodiments, structural information can be used to indicate the display method of a first control in a first interface. For example, structural information may include the hierarchy of the first control in the first interface and the nesting relationship between the first control and other first controls. In some embodiments, structural information may also include any information related to the structure of the first interface, such as the layout method of the first control (e.g., flow layout, static positioning, etc.) and the influence range of the style of the first control (e.g., child controls may have the same color as parent controls). This disclosure does not limit this aspect.
[0064] In some embodiments, the terminal device can determine the structural information of multiple first controls displayed in the first interface based on the following feasible implementation: determining the nesting relationship between first controls at the same level and each first control based on the hierarchical information of the multiple first controls; and determining the structural information based on the nesting relationship between first controls at the same level and each first control. In this way, the terminal device can accurately determine the structural information of the first interface, improving the accuracy of control display.
[0065] For example, if the first control A is at level 1, the first control B is at level 2, the first control C is at level 3, and the first control D is at level 1, then the terminal device can determine that the first control A and the first control D are at the same level. That is, the first control A and the first control D are both at level 1. In other words, the first control A and the first control D will not obscure each other.
[0066] For example, if the first control A is at level 1, the first control B is at level 2, and the first control C is at level 3, and if the first control A contains the first control B, and the first control B contains the first control C, then the terminal device can determine the nesting relationship of the first control A as follows: the first control A contains the first control B; the terminal device can determine the nesting relationship of the first control B as follows: the first control B is contained by the first control A; the first control B contains the first control C; and the terminal device can determine the nesting relationship of the first control C as follows: the first control C is contained by the first control B.
[0067] Below, in conjunction with Figure 3 This section explains the process by which terminal devices determine the first controls at the same level and their nesting relationships.
[0068] Figure 3 This is a schematic diagram illustrating the determination of first controls at the same level and their nesting relationships, provided as an embodiment of this disclosure. Please refer to... Figure 3 The hierarchy includes three levels: Level 1, Level 2, and Level 3. Level 1 includes controls A and B; Level 2 includes controls C, D, and E; and Level 3 includes control F. Control A contains controls C and D; control B contains control E; and control D contains control F.
[0069] Please see Figure 3 Terminal equipment ( Figure 3 (Not shown) It can be determined that controls A and B are both at level 1, and controls C, D, and E are all at level 3, with control D being at level 3. In other words, the terminal device determines that controls A and B are at the same level, and controls C, D, and E are at the same level.
[0070] Please see Figure 3 The terminal device can determine the nesting relationships based on the above information. Specifically, control A's nesting relationship is: it contains control C and contains control D. Control B's nesting relationship is: it contains control E. Control C's nesting relationship is: it is contained by control A. Control D's nesting relationship is: it is contained by control A and contains control F. Control E's nesting relationship is: it is contained by control B. Control F's nesting relationship is: it is contained by control D.
[0071] In this way, the terminal device can accurately determine the nesting relationship between the first controls at the same level and the first controls at the same level, and accurately determine the structural information based on the nesting relationship between the first controls at the same level, thereby improving the accuracy of the structural information.
[0072] S203. Based on the parameters and structural information of each of the multiple first controls, determine the information of the multiple first controls.
[0073] In some embodiments, information about a plurality of first controls can be used to display a plurality of first controls on a first interface. For example, the information about a plurality of first controls can indicate the hierarchical structure of the plurality of first controls, the appearance of each first control, the layout method, etc., which are not limited in this embodiment.
[0074] In some embodiments, the terminal device can determine the attribute values, appearance, and other information of the multiple first controls on the first interface based on the parameters of the multiple first controls, and determine the layout of the multiple first controls on the first interface based on the structural information, thereby obtaining the first interface.
[0075] For example, the configuration information includes a text control, a font size control, and the attribute value of the font size. The text control contains the font size control, so that in the first interface, the font size control is displayed after the text control is expanded, and the font size control can display the value of the font size.
[0076] Below, in conjunction with Figure 4 This section explains the process of displaying multiple first controls on the first interface.
[0077] Figure 4 This is a schematic diagram illustrating the display of multiple first controls on a first interface, as provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 4 This includes: nesting relationships, hierarchy, and parameters. Specifically, within the nesting relationship, the text control contains text controls, font controls, font size controls, shadow stroke controls, transparency controls, and color controls. The shadow stroke control contains shadow color controls and stroke width controls. In other words, this is a multi-level nesting relationship.
[0078] Please see Figure 4 In the hierarchy, the text control is at level 1, the text control, font control, font size control, shadow stroke control, transparency control, and color control are at level 2, and the shadow color control and stroke width control are at level 3. Level 1 is higher than level 2, and level 2 is higher than level 3.
[0079] Please see Figure 4 In the parameters, the text control's property value is "Today is Rainy", the font control's property value is "SimSun", the font size control's property value is 14, the transparency control's property value is 100%, the color control's property value is red, the shadow color control's property value is white, and the stroke width's property value is 2.
[0080] Please see Figure 4 Terminal equipment ( Figure 4(Not shown) can display text controls, font controls, font size controls, transparency controls, color controls, shadow stroke controls, shadow color controls, and stroke width controls on the first interface based on nesting relationships, hierarchy, and parameters. Specifically, when a user clicks a text control, the terminal device can display the text control, font control, font size control, shadow stroke control, transparency control, and color control in the area below the text control.
[0081] Please see Figure 4 In the first interface, the text box corresponding to the text control can display the text: Today is rainy; the area corresponding to the font control can display the text: SimSun; the area corresponding to the font size control can display the text: 14; the area corresponding to the transparency control can display the text: 100%; and the area corresponding to the color control can display the text: Red.
[0082] Please see Figure 4 The shadow stroke control is clickable. When the user clicks the shadow stroke control, the area below it displays shadow color and stroke width controls. The area corresponding to the shadow color control can display the text "white," and the area corresponding to the stroke width control can display the text "2." This allows the terminal device to accurately generate the first interface, improving its accuracy.
[0083] In some embodiments, the terminal device may also acquire interaction logic information for each first control, and determine the first interface based on the interaction logic information. For example, the interaction logic information may include the triggering conditions of the first control (e.g., click, hover, and input), response results (e.g., interface jump and data update), and function positioning (e.g., button, input box, and switch). The terminal device may display the first control in the first interface based on the interaction logic information.
[0084] For example, such as Figure 4 In the illustrated embodiment, the text control functions as a button, is triggered by a click, and results in the interface expanding. Thus, when a user clicks the text control, an area can expand below the text control, which can display other controls contained within the text control (such as font controls and font size controls).
[0085] This disclosure provides a control processing method. A terminal device can obtain parameters of multiple first controls on a first interface, as well as the hierarchical relationship between the multiple first controls. This hierarchical relationship can include multi-level nesting. Based on the hierarchical relationship of the multiple first controls, the terminal device can determine the nesting relationship between first controls at the same level and each first control. Based on the nesting relationship between first controls at the same level and each first control, the terminal device can determine the structural information for displaying each of the multiple first controls on the first interface. Based on the parameters and structural information of the multiple first controls, the terminal device can determine the information used to display the multiple first controls on the first interface. In the above method, because the hierarchical relationship is a multi-level nesting relationship—that is, a first control can nest another first control, and another nested first control can continue to nest first controls—multiple first controls can form a complex and dynamic first interface, reducing the difficulty of maintaining and developing the first interface, thereby improving the control processing efficiency and flexibility.
[0086] exist Figure 2 Based on the embodiments shown, the following, in conjunction with Figure 5 The method for determining structural information of the terminal device based on the nesting relationship of first controls at the same level and for any first control in the above control processing method is described in detail.
[0087] Figure 5 This is a schematic diagram illustrating a method for determining structural information according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 5 The method process includes:
[0088] S501. Determine the nesting information of the first control.
[0089] In some embodiments, for any first control, the nesting information of the first control can indicate whether there is a second control that has a nesting relationship with the first control in the previous level and / or the next level.
[0090] In some embodiments, the second control may be a control that is nested with the first control.
[0091] For example, the nesting information of the first control can indicate whether there is a second control in the previous level that has a nesting relationship with the first control. In other words, the nesting information of the first control can indicate whether the first control is contained by other controls. If the first control is contained by other controls, then the other controls can be the second control.
[0092] For example, the nesting information of the first control can indicate whether there is a second control in the next level that has a nesting relationship with the first control. In other words, the nesting information of the first control can indicate whether the first control contains other controls. If the first control contains other controls, the other controls can be the second control.
[0093] For example, the nesting information of the first control can indicate whether there are second controls that have a nesting relationship with the first control in the previous and next levels. In other words, the nesting information of the first control can indicate whether the first control is contained by other controls, and whether the first control contains other controls. If the first control is contained by other controls, then the other controls can be the second control. If the first control contains other controls, then the other controls can also be the second control.
[0094] In some embodiments, if the first control is the highest-level control, then there is no control at the next higher level than the first control in the first interface. Therefore, the terminal device can determine that there is no second control at the next higher level of the first control that has a nested relationship with the first control. In other words, if the first control is the highest-level control, the terminal device can determine that the first control will not be contained by other controls.
[0095] In some embodiments, if the first control is the lowest level control, then there is no control at the next level of the first control in the first interface. Therefore, the terminal device can determine that there is no second control at the next level of the first control that has a nested relationship with the first control. In other words, if the first control is the lowest level control, the terminal device can determine that the first control does not contain other controls.
[0096] In some embodiments, the previous level is higher than the current level, and the next level is lower than the current level; in other words, the previous level is one level higher than the current level, and the next level is one level lower than the current level. For example, in Figure 4 In the illustrated embodiment, the layer above the shadow stroke control is the layer of the text control, and the layer below the shadow stroke control is the layer of the shadow color control and the stroke width control.
[0097] S502. Determine structural information based on nested information.
[0098] In some embodiments, the terminal device can determine the structural information based on the following feasible implementation: if the nesting information indicates that a second control exists in the previous level, the terminal device can determine that the structural information indicates that the second control includes a first control; if the nesting information indicates that a second control exists in the next level, the terminal device can determine that the structural information indicates that the first control includes a second control; if the nesting information indicates that a second control exists in both the previous and next levels, the terminal device can determine that the structural information indicates that the second control in the previous level includes a first control, and the first control includes a second control in the next level. In this way, the terminal device can accurately determine the structural information of the first interface based on the nesting information, thereby improving the accuracy of the first interface.
[0099] For example, in Figure 4 In the illustrated embodiment, the first control can be a shadow-stroke control. If the nesting information of the shadow-stroke control indicates the existence of a second control at the previous level, and this second control is a text control, then the terminal device can determine that the structural information indicates the text control contains a shadow-stroke control. If the nesting information of the shadow-stroke control indicates the existence of a second control at the next level, and this second control includes a shadow color control and a stroke width control, then the terminal device can determine that the structural information indicates the shadow-stroke control contains both a shadow color control and a stroke width control. If the nesting information of the shadow-stroke control indicates the existence of a second control at the previous level, and this second control is a text control, and the nesting information also indicates the existence of a second control at the next level, and this second control includes both a shadow color control and a stroke width control, then the terminal device can determine that the structural information indicates the text control contains a shadow-stroke control, and the shadow-stroke control includes both a shadow color control and a stroke width control. In this way, the terminal device can support multi-level nested structures of object-container-object, improving the flexibility and accuracy of the first interface.
[0100] Below, in conjunction with Figure 6 This provides a detailed description of structural information.
[0101] Figure 6 This is a schematic diagram illustrating structural information provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 6 This includes a root object. The root object can contain root object properties A, B, C, and D. Root object property A can further contain configurations of the object or container of property A (a) and its container (b). Root object property B can also contain configurations of the object or container of property B. In this way, the terminal device can recursively configure multiple levels of nested controls based on this structure, improving the flexibility of control handling.
[0102] In some embodiments, the terminal device can determine whether the first control has a sub-configuration. If the sub-configuration exists, the terminal device can recursively expand the first control. In this way, the terminal device can automatically obtain and process the attribute values of the first control at the current level.
[0103] This disclosure provides a method for determining structural information. A terminal device can determine the nesting information of a first control. If the nesting information indicates the existence of a second control at the previous level, the terminal device can determine that the structural information indicates the second control contains the first control. If the nesting information indicates the existence of a second control at the next level, the terminal device can determine that the structural information indicates the first control contains the second control. If the nesting information indicates the existence of a second control at both the previous and next levels, the terminal device can determine that the structural information indicates the second control at the previous level contains the first control, and the first control contains the second control at the next level. In this method, the terminal device can accurately determine the position, layout, and other information of the first control on the first interface based on the nesting information, thereby improving the accuracy of the first control's display on the first interface.
[0104] Based on any of the above embodiments, the control processing method further includes a method for updating the first interface. Below, in conjunction with... Figure 7 The method for updating the first interface on the terminal device is explained in detail.
[0105] Figure 7 This is a schematic diagram illustrating a method for updating a first interface according to an embodiment of this disclosure. Please refer to... Figure 7 The method process includes:
[0106] S701. In response to interaction with a first control in the first interface, determine the type of the first control.
[0107] In some embodiments, the type of the first control is an attribute type or a container type.
[0108] If the first control is of type attribute, then user interaction with this first control allows modification of its attribute values. In other words, when the first control is of type attribute, its next level will not contain other controls. For example, in... Figure 4 In the illustrated embodiments, the text control, font control, font size control, transparency control, and color control can all be attribute types.
[0109] Where the first control is of type container, user interaction with it allows modification of the property values of the controls it contains. In other words, when the first control is of type container, its next level can contain other controls. For example, in Figure 4In the illustrated embodiment, the text control can be of container type, and the shadow stroke control can also be of container type.
[0110] S702. Update the first interface based on the type of the first control.
[0111] In some embodiments, the terminal device can update the first interface based on the following feasible implementation: if the type of the first control is an attribute type, then the parameters of the first control after interaction are determined and modified to match the parameters of the first control after interaction; if the type of the first control is a container type, then the first control is expanded in the first interface, and the parameters of controls in the next level that have a nested relationship with the first control are displayed in the expanded area. In this way, the UI reflection result differs depending on the type of the first control, improving the flexibility of the first interface.
[0112] For example, such as Figure 4 In the illustrated embodiment, the font control can be of an attribute type. If the user changes the attribute value of the font control from SimSun to KaiTi, the text displayed in the area corresponding to the font control in the first interface can change from SimSun to KaiTi. In other words, when the user interacts with an attribute type control, the terminal device can change the attribute value of the control, that is, the terminal device can change the attribute value of the current object.
[0113] For example, such as Figure 4 In the illustrated embodiment, if the user touches the shadow outline control, the terminal device can expand the shadow outline control and display the shadow color control and the outline width control. Furthermore, when the user changes the shadow color to red, the text displayed in the area corresponding to the shadow color control in the first interface can change from white to red, and the shadow of the text will also change from white to red. In other words, the terminal device can treat the parent object (shadow outline) of the current object (shadow color) as the object of attribute change processing.
[0114] In some embodiments, after the terminal device determines the first interface, the control processing method further includes: adding information about a third control to the configuration information; expanding the first control in the first interface in response to touch on the first control; and displaying the parameters of the third control in the expanded area. This allows users to quickly add new controls to the first interface without recompiling the first interface, improving the efficiency of modifying the first interface.
[0115] In some embodiments, the information of the third control includes the parameters of the third control and the hierarchical relationship of the third control, and the hierarchical relationship of the third control indicates the first control in the previous level that has a nested relationship with the third control. In other words, the third control can be a control contained in the first control in the previous level.
[0116] For example, the terminal device can add information about a third control in the configuration information. This third control is a shadow type control with an external shadow parameter. Furthermore, the hierarchical relationship of this third control is that it is contained within the shadow outline. In this way, the terminal device can add a shadow type control below the shadow outline control on the first interface based on the configuration information and display the attribute value of the external shadow.
[0117] Below, in conjunction with Figure 8 This section explains the process of displaying a third control on a terminal device.
[0118] Figure 8 This is a schematic diagram illustrating a process for displaying a third control according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 8 The interface includes a first interface. The first interface includes text controls. Under the text controls are text controls, font controls, font size controls, and shadow / stroke controls. The shadow / stroke controls further include shadow color controls and stroke width controls. If the user adds a shadow-type control in the configuration information, and the parameter of this shadow-type control is an outer shadow, and the nesting relationship is that it is contained within a shadow / stroke control, then the terminal device can reflect the third control onto the first interface. Thus, when the user clicks the shadow / stroke control, the area below the shadow / stroke control in the first interface can also include a shadow-type control, whose parameter is an outer shadow. This improves the reflection efficiency of UI controls.
[0119] This disclosure provides a method for updating a first interface. In response to interaction with a first control on the first interface, the terminal device can determine the type of the first control. If the first control is of type attribute, the parameters of the first control after interaction are determined and modified accordingly. If the first control is of type container, the first control is expanded on the first interface, and the parameters of controls nested with the first control in the next level are displayed in the expanded area. Furthermore, the terminal device can add information about a third control in the configuration information. In response to touch on the first control, the terminal device expands the third control on the first interface and displays its parameters in the expanded area. In this method, the UI reflection results differ depending on the type of the first control, thereby improving the flexibility of the first interface. Users can quickly add new controls to the first interface without recompiling it, improving the efficiency of modifying the first interface and enhancing the efficiency of UI control reflection.
[0120] Figure 9 This is a schematic diagram of a control processing device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 9The control processing device 900 includes an acquisition module 901, a first determination module 902, and a second determination module 903, wherein:
[0121] The acquisition module 901 is used to acquire configuration information of the first interface. The configuration information includes the parameters of each of the plurality of first controls to be displayed on the first interface, and the hierarchical relationship between the plurality of first controls. The hierarchical relationship includes a multi-level nested relationship.
[0122] The first determining module 902 is used to determine the structural information of each of the plurality of first controls displayed in the first interface based on the hierarchical relationship of the plurality of first controls;
[0123] The second determining module 903 is used to determine the information of the plurality of first controls based on the parameters of each of the plurality of first controls and the structural information, and the information of the plurality of first controls is used to display the plurality of first controls on the first interface.
[0124] According to one or more embodiments of this disclosure, the first determining module 902 is specifically used for:
[0125] Based on the hierarchical relationship of the multiple first controls, determine the first controls at the same level and the nesting relationship of each first control;
[0126] The structural information is determined based on the first controls at the same level and the nesting relationship of each first control.
[0127] In this way, the control processing device can accurately determine the structural information of the first interface, improving the accuracy of control display.
[0128] According to one or more embodiments of this disclosure, the first determining module 902 is specifically used for:
[0129] Determine the nesting information of the first control, wherein the nesting information indicates whether there is a second control that has a nesting relationship with the first control in the previous level and / or the next level;
[0130] Based on the nesting information, the structural information is determined.
[0131] In this way, the control processing device can accurately determine the position, layout, and other information of the first control on the first interface based on the nested information, thereby improving the accuracy of the first control's display on the first interface.
[0132] According to one or more embodiments of this disclosure, the first determining module 902 is specifically used for:
[0133] If the nesting information indicates that a second control exists in the previous level, then it is determined that the structural information indicates that the second control contains the first control;
[0134] If the nesting information indicates that a second control exists in the next level, then it is determined that the structural information indicates that the first control contains the second control;
[0135] If the nesting information indicates that a second control exists in both the previous level and the next level, then it is determined that the structural information indicates that the second control in the previous level contains the first control, and the first control contains the second control in the next level.
[0136] In this way, the control processing device can accurately determine the structural information of the first interface based on the nested information, thereby improving the accuracy of the first interface.
[0137] The control processing device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be repeated here.
[0138] Figure 10 This is a schematic diagram of another control processing device provided in an embodiment of this disclosure. Please refer to... Figure 10 ,exist Figure 9 Based on the illustrated embodiment, the control processing device 900 further includes a third determining module 904, wherein the third determining module 904 is used for:
[0139] In response to interaction with a first control in the first interface, the type of the first control is determined, wherein the type of the first control is an attribute type or a container type;
[0140] The first interface is updated based on the type of the first control.
[0141] The UI reflection results differ depending on the type of the first control, thereby increasing the flexibility of the first interface.
[0142] According to one or more embodiments of this disclosure, the third determining module 904 is specifically used for:
[0143] If the type of the first control is an attribute type, then determine the parameters of the first control after the interaction, and modify the parameters of the first control to the parameters of the first control after the interaction.
[0144] If the first control is of type container, then the first control is expanded in the first interface, and the parameters of the controls that are nested with the first control in the next level are displayed in the expanded area.
[0145] In this way, the UI reflection results will be different when the type of the first control is different, thus improving the flexibility of the first interface.
[0146] According to one or more embodiments of this disclosure, the control processing device 900 further includes a processing module 905, the processing module 905 being used for:
[0147] Add information about a third control to the configuration information. The information about the third control includes the parameters of the third control and the hierarchical relationship of the third control. The hierarchical relationship of the third control indicates the first control in the previous level that has a nested relationship with the third control.
[0148] In response to a touch on the first control, the first control is expanded in the first interface, and the parameters of the third control are displayed in the expanded area.
[0149] In this way, users can quickly add new controls to the first interface without recompiling the first interface, improving the efficiency of modifying the first interface and the efficiency of UI control reflection.
[0150] The control processing device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be repeated here.
[0151] Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 11 The diagram illustrates a structural schematic suitable for implementing the terminal device 1100 of the embodiments of the present disclosure. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 11 The terminal device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0152] like Figure 11As shown, the terminal device 1100 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from storage device 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of the terminal device 1100. The processing unit 1101, ROM 1102, and RAM 1103 are interconnected via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0153] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows terminal device 1100 to exchange data via wireless or wired communication with other devices. Although Figure 11 A terminal device 1100 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0154] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1109, or installed from storage device 1108, or installed from ROM 1102. When the computer program is executed by processing device 1101, it performs the functions defined in the methods of embodiments of this disclosure.
[0155] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), or any suitable combination thereof.
[0156] The aforementioned computer-readable medium may be included in the aforementioned terminal device; or it may exist independently and not assembled into the terminal device.
[0157] The aforementioned computer-readable medium carries one or more programs, which, when executed by the terminal device, cause the terminal device to perform the method shown in the above embodiments.
[0158] This disclosure provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements various methods that may be involved in the above embodiments.
[0159] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements various methods that may be involved in the above embodiments.
[0160] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0161] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than that indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0162] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0163] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), etc.
[0164] The terminal device, computer-readable storage medium, and computer program product provided in this disclosure have a multi-level nested hierarchical relationship. In other words, a first control can nest another first control, and the nested first control can continue to nest first controls. Therefore, multiple first controls can form a complex and dynamic first interface, which improves the flexibility and efficiency of control processing and reduces the difficulty of maintaining and developing the first interface.
[0165] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0166] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0167] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0168] It is understood that the data involved in this technical solution (including but not limited to the data itself, its acquisition, or its use) shall comply with the requirements of relevant laws, regulations, and provisions. Data may include information, parameters, and messages, such as flow control instructions.
[0169] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0170] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments. Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms of implementing the claims.
Claims
1. A control processing method, characterized in that, include: Obtain the configuration information of the first interface, the configuration information including the parameters of each of the multiple first controls to be displayed on the first interface, and the hierarchical relationship between the multiple first controls, the hierarchical relationship including multi-level nesting relationship; Based on the hierarchical relationship of the plurality of first controls, determine the structural information of each of the plurality of first controls for display in the first interface; Based on the parameters of each of the plurality of first controls and the structural information, the information of the plurality of first controls is determined, and the information of the plurality of first controls is used to display the plurality of first controls on the first interface.
2. The method according to claim 1, characterized in that, The step of determining the structural information for displaying each of the plurality of first controls in the first interface based on the hierarchical relationship of the plurality of first controls includes: Based on the hierarchical relationship of the multiple first controls, determine the first controls at the same level and the nesting relationship of each first control; The structural information is determined based on the first controls at the same level and the nesting relationship of each first control.
3. The method according to claim 2, characterized in that, For any given first control; determining the structural information based on the first controls at the same level and the nesting relationship between each first control includes: Determine the nesting information of the first control, wherein the nesting information indicates whether there is a second control that has a nesting relationship with the first control in the previous level and / or the next level; Based on the nesting information, the structural information is determined.
4. The method according to claim 3, characterized in that, Determining the structural information based on the nesting information includes: If the nesting information indicates that a second control exists in the previous level, then it is determined that the structural information indicates that the second control contains the first control; If the nesting information indicates that a second control exists in the next level, then it is determined that the structural information indicates that the first control contains the second control; If the nesting information indicates that a second control exists in both the previous level and the next level, then it is determined that the structural information indicates that the second control in the previous level contains the first control, and the first control contains the second control in the next level.
5. The method according to any one of claims 1-4, characterized in that, After determining the first interface, the method further includes: In response to interaction with a first control in the first interface, the type of the first control is determined, wherein the type of the first control is an attribute type or a container type; The first interface is updated based on the type of the first control.
6. The method according to claim 5, characterized in that, The step of updating the first interface based on the type of the first control includes: If the type of the first control is an attribute type, then determine the parameters of the first control after the interaction, and modify the parameters of the first control to the parameters of the first control after the interaction. If the first control is of type container, then the first control is expanded in the first interface, and the parameters of the controls that are nested with the first control in the next level are displayed in the expanded area.
7. The method according to any one of claims 1-4, characterized in that, After determining the first interface, the method further includes: Add information about a third control to the configuration information. The information about the third control includes the parameters of the third control and the hierarchical relationship of the third control. The hierarchical relationship of the third control indicates the first control in the previous level that has a nested relationship with the third control. In response to a touch on the first control, the first control is expanded in the first interface, and the parameters of the third control are displayed in the expanded area.
8. A control processing device, characterized in that, It includes an acquisition module, a first determination module, and a second determination module, wherein: The acquisition module is used to acquire configuration information of the first interface. The configuration information includes the parameters of each of the multiple first controls to be displayed on the first interface, and the hierarchical relationship between the multiple first controls, including a multi-level nested relationship. The first determining module is used to determine the structural information of each of the plurality of first controls displayed in the first interface based on the hierarchical relationship of the plurality of first controls; The second determining module is used to determine the information of the plurality of first controls based on the parameters of each of the plurality of first controls and the structural information, and the information of the plurality of first controls is used to display the plurality of first controls on the first interface.
9. A terminal device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the control processing method as claimed in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the control processing method as described in any one of claims 1-7.
11. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the control processing method as described in any one of claims 1-7.