Vehicle interaction interface creation method, device and electronic equipment
Patent Information
- Application Number
- CN202610836887.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-10
- Publication Date
- 2026-09-01
AI Technical Summary
[0005]本申请实施例提供一种车辆的交互界面创建方法、装置和电子设备,以至少解决车辆的交互界面创建效率低的技术问题
[0023]In this embodiment, the vehicle model is identified; based on the vehicle model, a configuration file is created for the interactive interface to be created; based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result; and the interactive interface is created using the configuration result. Because this embodiment creates a configuration file for the interactive interface to be created based on the identified vehicle model, and combines the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements to configure multiple interactive interface elements in the configuration file to obtain a configuration result, the interactive interface can then be created using the obtained configuration result. This avoids repeatedly copying the relevant code for creating the interactive interface, thus solving the technical problem of low efficiency in creating vehicle interactive interfaces and achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
Smart Images

Figure CN122672790A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicles, and more specifically, to a method, apparatus, and electronic device for creating a vehicle's interactive interface. Background Technology
[0002] Currently, with the widespread adoption and application of intelligent vehicle terminals, the development needs for these terminals are becoming increasingly diverse, especially in terms of the more frequent changes and iterations of the User Interface (UI). For example, in the field of intelligent vehicle applications, a single software product is often deployed across all vehicle models. Furthermore, the UI of the same software product differs across different vehicle models, necessitating that the same software product be compatible with the UI of all vehicle models.
[0003] However, in related technologies, the approach to creating the same software product UI for different vehicles involves either completely copying an existing project, copying it to a different branch, or copying it to a different product flavor. Regardless of which method is used, the amount of code increases exponentially, and the code duplication rate increases directly, leading to the technical problem of low efficiency in creating vehicle interaction interfaces.
[0004] There is currently no effective solution to the technical problem of low efficiency in creating the interactive interface for the aforementioned vehicles. Summary of the Invention
[0005] This application provides a method, apparatus, and electronic device for creating a vehicle's interactive interface, in order to at least solve the technical problem of low efficiency in creating a vehicle's interactive interface.
[0006] According to one aspect of the embodiments of this application, a method for creating a vehicle's interactive interface is provided. The method includes: identifying the vehicle's model; creating a configuration file for the interactive interface to be created based on the vehicle model, wherein the configuration file is used to configure multiple interactive interface elements; configuring the multiple interactive interface elements in the configuration file based on resource information stored in the configuration file location and template information of the multiple interactive interface elements to obtain a configuration result, wherein the resource information is used to represent the content that the multiple interactive interface elements need to present in the interactive interface, and the template information is used to represent the state of the multiple interactive interface elements presented in the element template of the interactive interface; and creating the interactive interface based on the configuration result.
[0007] Furthermore, the resource information includes: resource attribute information and resource location information. The resource attribute information is used to indicate the attributes that multiple interactive interface elements need to have in the interactive interface, and the resource location information is used to indicate the position that multiple interactive interface elements need to be placed in the interactive interface. The template information includes: template attribute information and template location information. The template attribute information is used to indicate the attributes that multiple interactive interface elements already have in the element template, and the template location information is used to indicate the position that multiple interactive interface elements have already been placed in the element template.
[0008] Furthermore, based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain the configuration result, including: determining the information relationship between resource attribute information and template attribute information; and configuring multiple interactive interface elements in the configuration file based on the information relationship, resource location information, and template location information to obtain the configuration result.
[0009] Furthermore, based on information relationships, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain configuration results. This includes: adjusting the template attribute information in response to a difference between the resource attribute information and the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the adjusted template attribute information, resource location information, and template location information to obtain configuration results; and maintaining the template attribute information in response to a similarity between the resource attribute information and the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the maintained template attribute information, resource location information, and template location information to obtain configuration results.
[0010] Furthermore, the resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that interactive interface elements need to possess in the interactive interface; the template attribute information includes: multiple sub-template attribute information, which represents the attributes that interactive interface elements already possess in the element template. Specifically, in response to a difference between the resource attribute information and the template attribute information, the template attribute information is adjusted. Based on the adjusted template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This includes: in response to a difference between the resource attribute information and the template attribute information, adjusting sub-template attribute information that differs from the sub-resource attribute information, maintaining sub-template attribute information that is the same as the sub-resource attribute information; and based on the adjusted sub-template attribute information, the maintained sub-template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
[0011] Furthermore, based on the adjusted sub-template attribute information, the retained sub-template attribute information, the resource location information, and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This includes configuring multiple interactive interface elements in the configuration file according to the attribute values corresponding to the adjusted sub-template attribute information, the attribute values corresponding to the retained sub-template attribute information, and using the location corresponding to the template location information as the location corresponding to the resource location information.
[0012] Furthermore, the resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that interactive interface elements need to possess in the interactive interface; the template attribute information includes: multiple sub-template attribute information, which represents the attributes that interactive interface elements already possess in the element template. Specifically, in response to the information relationship being that the resource attribute information and template attribute information are the same, the template attribute information is maintained. Based on the maintained template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This includes: in response to the information relationship being that the resource attribute information and template attribute information are the same, multiple interactive interface elements are configured in the configuration file according to the attribute values corresponding to the maintained template attribute information, and the position corresponding to the template location information is used as the position corresponding to the resource location information, to obtain the configuration result.
[0013] Furthermore, based on the vehicle model, a configuration file is created for the interactive interface to be created for the vehicle, including: determining the vehicle model relationship between the vehicle model and the historical vehicle models; and creating a configuration file for the interactive interface in response to the vehicle model relationship being different from the historical vehicle models.
[0014] Furthermore, the method also includes: in response to the vehicle model relationship being the same as the historical vehicle model, calling the historical configuration file corresponding to the historical vehicle model for the historical interactive interface; adjusting the historical configuration result corresponding to the historical configuration file; and updating the historical interactive interface according to the adjusted historical configuration result.
[0015] Furthermore, the method also includes: creating an element template for the interactive interface; importing multiple interactive interface elements into the element template to generate template information.
[0016] According to another aspect of the embodiments of this application, a vehicle interactive interface creation apparatus is also provided. The apparatus includes: an identification unit for identifying the vehicle model; a first creation unit for creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model, wherein the configuration file is used to configure multiple interactive interface elements; a configuration unit for configuring multiple interactive interface elements in the configuration file based on resource information stored in the configuration file location and template information of multiple interactive interface elements to obtain a configuration result, wherein the resource information is used to represent the content to be presented by multiple interactive interface elements in the interactive interface, and the template information is used to represent the state of multiple interactive interface elements presented in the element template of the interactive interface; and a second creation unit for creating the interactive interface based on the configuration result.
[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.
[0018] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.
[0019] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0020] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0021] According to another aspect of the embodiments of this application, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this application.
[0022] According to another aspect of the embodiments of this application, a vehicle is also provided, which includes the electronic equipment described in this application.
[0023] In this embodiment, the vehicle model is identified; based on the vehicle model, a configuration file is created for the interactive interface to be created; based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result; and the interactive interface is created using the configuration result. Because this embodiment creates a configuration file for the interactive interface to be created based on the identified vehicle model, and combines the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements to configure multiple interactive interface elements in the configuration file to obtain a configuration result, the interactive interface can then be created using the obtained configuration result. This avoids repeatedly copying the relevant code for creating the interactive interface, thus solving the technical problem of low efficiency in creating vehicle interactive interfaces and achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0025] Figure 1 This is a schematic diagram illustrating an application scenario of a method for creating a vehicle's interactive interface according to an embodiment of this application.
[0026] Figure 2 This is a flowchart of a method for creating a vehicle's interactive interface according to an embodiment of this application;
[0027] Figure 3 This is a schematic diagram of a platform-based implementation system for adapting to multi-project UIs according to an embodiment of this application;
[0028] Figure 4 This is a flowchart of a platform-based implementation method for adapting a multi-project UI according to an embodiment of this application;
[0029] Figure 5 This is a structural block diagram of a vehicle interaction interface creation device according to an embodiment of this application;
[0030] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of this application; Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0032] 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 apparatus 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 apparatus.
[0033] According to an embodiment of this application, an embodiment of a method for creating an interactive interface for a vehicle is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0034] As an optional implementation, the above-described method for creating the vehicle's user interface can be applied, but is not limited to, to applications such as... Figure 1 The application scenarios shown. Figure 1 This is a schematic diagram illustrating an application scenario of a method for creating a vehicle's interactive interface according to an embodiment of this application, such as... Figure 1 As shown, in the application scenario, terminal device 10 can communicate with server 13 via network 11, but is not limited to this. Server 13 can perform operations on the database, such as write or read data operations. Terminal device 10 may include, but is not limited to, a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen can be used to display virtual machines on mobile terminal 10, but is not limited to this. Vehicle 12 can be used to respond to the aforementioned human-computer interaction operations, execute corresponding operations, or generate corresponding instructions and send the generated instructions to server 13.
[0035] It should be noted that the steps shown in the flowcharts in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that presented here. Specifically, the method for creating a vehicle's interactive interface in this application may include: step S102, identifying the vehicle model; step S104, creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model; step S106, configuring multiple interactive interface elements in the configuration file based on resource information stored in the configuration file location and template information of multiple interactive interface elements, obtaining a configuration result; and step S108, creating the interactive interface based on the configuration result.
[0036] It should be noted that all information (including but not limited to resource information and template information) and data involved in this application are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of such data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0037] Figure 2 This is a flowchart of a method for creating a vehicle's user interface according to an embodiment of this application, such as... Figure 2 As shown, the method may include the following steps.
[0038] Step S202: Identify the vehicle model.
[0039] In the technical solution provided by step S202 of this application, the vehicle model can be used to represent the model number of the vehicle. For example, the model number of the vehicle can be any of the following: Model 1 and Model 2, etc.
[0040] In this embodiment, the vehicle model is identified. Optionally, this embodiment reads the Vehicle Identification Number (VIN), matches the read VIN with different preset vehicle models in the database, and uses the preset vehicle model that matches the read VIN as the vehicle model, thereby achieving the purpose of identifying the vehicle model.
[0041] Optionally, the VIN can be identified, and the vehicle model can be determined by analyzing the identified VIN.
[0042] Step S204: Based on the vehicle model, create a configuration file for the interactive interface to be created for the vehicle.
[0043] In the technical solution provided in step S204 of this application, the configuration file can be used to configure multiple interactive interface elements. For example, the configuration file can be a flavor file.
[0044] In this embodiment, the aforementioned interactive interface elements can be used to represent fixed elements within the interactive interface. For example, these fixed page elements may include: navigation bars, buttons, icons, margins, font sizes, corner radii, etc. The attributes of these elements need to be centrally managed to ensure consistency across the entire project and even multiple projects.
[0045] In this embodiment, the interactive interface to be created can be used to represent an interface in which the vehicle interacts with a user object, wherein the user object can be at least one of the following: a driving object and a passenger object, etc. For example, the interactive interface to be created can be a UI interface to be created.
[0046] In this embodiment, after identifying the vehicle model, a configuration file is created based on the model for the interactive interface to be created for the vehicle. Optionally, this embodiment creates display items for the interactive interface corresponding to the aforementioned model, where the display items are development items for the interactive interface. Then, a configuration file is created for the aforementioned display items, thereby achieving the purpose of creating a configuration file for the interactive interface to be created for the vehicle.
[0047] Optionally, if the vehicle model is identified as Model 1, then a development project 1 for the interactive interface is created for the vehicle corresponding to Model 1. Next, a flavor file is created for the aforementioned development project 1. This development project 1 can also be represented as development project 1, and the number of development projects can correspond one-to-one with the number of vehicle models. That is, if the total number of vehicle models is n (where n is a natural number greater than 1), then development projects 1 through n are created sequentially.
[0048] Step S206: Based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, configure multiple interactive interface elements in the configuration file to obtain the configuration result.
[0049] In the technical solution provided by step S206 of this application, the aforementioned resource information can be used to represent the content that multiple interactive interface elements need to present in the interactive interface. For example, the aforementioned resource information can be resources in a specific directory where flavor is located.
[0050] In this embodiment, the aforementioned storage location can be used to indicate the location where the configuration file is stored. For example, the storage location can be a specific directory where the flavor is located.
[0051] In this embodiment, the template information can be used to represent the state of multiple interactive interface elements presented in the element template of the interactive interface. For example, the template information can be the attributes, core code, and layout required to configure the interactive interface elements in the element template.
[0052] In this embodiment, the element template described above can be used to represent a template for interactive interface elements. For example, the element template can be a basic UI.
[0053] In this embodiment, after creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model, multiple interactive interface elements are configured in the configuration file based on resource information and template information of multiple interactive interface elements stored in the configuration file, resulting in a configuration result. Optionally, this embodiment compares the resource information and template information based on the created configuration file to obtain a comparison result, wherein the comparison result can be used to represent the information relationship between the resource information and the template information. Based on the comparison result, multiple interactive interface elements are configured in the configuration file to obtain a configuration result, thereby achieving the goal of combining resource information and template information to configure multiple interactive interface elements in the configuration file and obtain a configuration result.
[0054] Optionally, if the comparison result shows that the resource information and template information are different, the template information is adjusted, and multiple interactive interface elements are configured in the configuration file according to the adjusted template information to obtain the configuration result. If the comparison result shows that the resource information and template information are the same, the template information is kept, and multiple interactive interface elements are configured in the configuration file according to the kept template information to obtain the configuration result.
[0055] It should be noted that the methods described above for obtaining configuration results are merely illustrative examples and are not intended to impose specific limitations. Any method that combines resource information and configures multiple interactive interface elements in a configuration file to obtain configuration results falls within the protection scope of this application's embodiments, and will not be described in detail here.
[0056] Step S208: Create an interactive interface based on the configuration results.
[0057] In the technical solution provided by step S208 of this application, based on the resource information and template information of multiple interactive interface elements in the storage location of the configuration file, multiple interactive interface elements are configured in the configuration file. After obtaining the configuration result, the configuration result is imported into the display item of the interactive interface. In response to the imported display item being in the interface creation state, the interactive interface is created, thereby achieving the purpose of creating an interactive interface through the configuration result.
[0058] Optionally, the rendering engine renders the above configuration results to obtain the rendering result, which may include rendered UI control objects arranged on the interactive interface according to the configured layout hierarchy. Simultaneously, the rendering engine binds the user interaction events (e.g., "clicking a button") defined in the configuration file with the backend business logic, thereby completing the creation of the interactive interface.
[0059] In steps S202 to S208 of this application, the vehicle model is identified; based on the vehicle model, a configuration file is created for the interactive interface to be created; based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result; and the interactive interface is created using the configuration result. Because this embodiment of the application, when creating a vehicle's interactive interface, creates a configuration file based on the identified vehicle model, combines the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, and configures multiple interactive interface elements in the configuration file to obtain a configuration result, and then uses the obtained configuration result to create the interactive interface, it achieves the goal of avoiding multiple copies of the relevant code for creating the interactive interface, thereby solving the technical problem of low efficiency in creating vehicle interactive interfaces, and thus achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
[0060] The resource information and template information described above in this embodiment will be further described below.
[0061] As an optional embodiment, the resource information includes: resource attribute information and resource location information. The resource attribute information is used to represent the attributes that multiple interactive interface elements need to have in the interactive interface, and the resource location information is used to represent the positions that multiple interactive interface elements need to be placed in the interactive interface. The template information includes: template attribute information and template location information. The template attribute information is used to represent the attributes that multiple interactive interface elements already have in the element template, and the template location information is used to represent the positions that multiple interactive interface elements have already been placed in the element template.
[0062] In this embodiment, the resource information may include resource attribute information and resource location information.
[0063] In this embodiment, the aforementioned resource attribute information can be used to represent the attributes that multiple interactive interface elements need to possess in the interactive interface. For example, the aforementioned resource attribute information can be the size, margins, and chamfers that buttons and navigation bars need to possess in the UI interface. This is only an example and is not a specific limitation.
[0064] In this embodiment, the resource location information can be used to represent the positions where multiple interactive interface elements need to be placed in the interactive interface. For example, the resource location information can be the positions where buttons and icons need to be placed in the UI interface; this is only an example and is not a specific limitation.
[0065] In this embodiment, the template information may include template attribute information and template location information.
[0066] In this embodiment, the template attribute information can be used to represent the attributes that multiple interactive interface elements already possess in the element template, and the template attribute information can be stored in the common_dimens.xml file. For example, the template attribute information can be the size, margin, and chamfer that buttons and rounded corner radii already possess in the element template; this is only an example and is not specifically limited.
[0067] In this embodiment, the template location information can be used to indicate the positions where multiple interactive interface elements have been laid out in the element template. For example, the template location information can be the positions where navigation bars and icons shared with the vehicle have been laid out in the element template. This is only an example and is not a specific limitation.
[0068] Since the above resource information can be divided into resource attribute information and resource location information, and the above template information can be divided into template attribute information and template location information, the purpose of further subdividing resource information and template information is achieved, thereby realizing the technical effect of improving the accuracy of resource information and template information.
[0069] The following section further explains the steps of configuring multiple interactive interface elements in the configuration file based on the resource information and template information of multiple interactive interface elements stored in the configuration file, thereby obtaining the configuration result.
[0070] As an optional embodiment, step S206 involves configuring multiple interactive interface elements in the configuration file based on resource information and template information of multiple interactive interface elements stored in the configuration file to obtain a configuration result. This includes: determining the information relationship between resource attribute information and template attribute information; and configuring multiple interactive interface elements in the configuration file based on the information relationship, resource location information, and template location information to obtain a configuration result.
[0071] In this embodiment, the above-mentioned information relationship can be that the resource attribute information and the template attribute information are the same, or the above-mentioned information relationship can be that the resource attribute information and the template attribute information are different.
[0072] In this embodiment, after creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model, the information relationship between resource attribute information and template attribute information is determined. Then, using the information relationship, resource location information and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
[0073] Optionally, based on the created configuration file, the resource attribute information and template attribute information can be compared to obtain the information relationship between them. Based on this relationship, the template attribute information can be adjusted or retained. Combining the adjusted template attribute information, resource location information, and template location information, multiple interactive interface elements can be configured in the configuration file to obtain the configuration result. Alternatively, combining the retained template attribute information, resource location information, and template location information, multiple interactive interface elements can be configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource location information, template attribute information, and template location information to configure multiple interactive interface elements in the configuration file to obtain the configuration result, thereby improving the usability of the configuration result.
[0074] The following section further explains the steps of configuring multiple interactive interface elements in a configuration file based on information relationships, resource location information, and template location information to obtain the configuration result in this embodiment.
[0075] As an optional implementation, multiple interactive interface elements are configured in a configuration file based on information relationships, resource location information, and template location information to obtain a configuration result. This includes: adjusting the template attribute information in response to a difference between the resource attribute information and the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the adjusted template attribute information, resource location information, and template location information to obtain a configuration result; and maintaining the template attribute information in response to a similarity between the resource attribute information and the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the maintained template attribute information, resource location information, and template location information to obtain a configuration result.
[0076] In this embodiment, the aforementioned hybrid prediction information can be used to represent the second initial movement trajectory of the obstacle during the future driving period, as well as the driving path of the vehicle during the future driving period.
[0077] In this embodiment, after determining the information relationship between resource attribute information and template attribute information, in response to the information relationship being different between resource attribute information and template attribute information, the template attribute information is adjusted, and based on the adjusted template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
[0078] Optionally, after comparing the resource attribute information and template attribute information to obtain the information relationship between them, if the information relationship is different between the resource attribute information and the template attribute information, the template attribute information is adjusted. Based on the adjusted template attribute information and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource position information, template attribute information, and template position information to configure multiple interactive interface elements in the configuration file and obtain the configuration result, thereby improving the usability of the configuration result.
[0079] In this embodiment, after determining the information relationship between resource attribute information and template attribute information, in response to the information relationship being that resource attribute information and template attribute information are the same, the template attribute information is maintained, and based on the maintained template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
[0080] Optionally, after comparing the resource attribute information and template attribute information to obtain the information relationship between them, if the information relationship is that the resource attribute information and template attribute information are the same, then the template attribute information is retained. Based on the retained template attribute information and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource position information, template attribute information, and template position information to configure multiple interactive interface elements in the configuration file to obtain the configuration result, thereby achieving the technical effect of improving the usability of the configuration result.
[0081] The following further explains the steps of responding to the above-mentioned information relationship where the resource attribute information and template attribute information are different, adjusting the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the adjusted template attribute information, resource location information, and template location information to obtain the configuration result.
[0082] As an optional embodiment, in response to the information relationship being different between resource attribute information and template attribute information, the template attribute information is adjusted, and multiple interactive interface elements are configured in a configuration file based on the adjusted template attribute information, resource location information, and template location information to obtain a configuration result. This includes: in response to the information relationship being different between resource attribute information and template attribute information, adjusting sub-template attribute information that is different from the sub-resource attribute information, maintaining sub-template attribute information that is the same as the sub-resource attribute information, and configuring multiple interactive interface elements in a configuration file based on the adjusted sub-template attribute information, the maintained sub-template attribute information, resource location information, and template location information to obtain a configuration result.
[0083] In this embodiment, the resource attribute information may include multiple sub-resource attribute information.
[0084] In this embodiment, the aforementioned sub-resource attribute information can be used to represent the attributes that interactive interface elements need to possess in the interactive interface. For example, the aforementioned sub-resource attribute information can be the size, margins, and chamfers that a button needs to possess in the UI interface, etc. This is only an example and is not specifically limited.
[0085] In this embodiment, the template attribute information may include: multiple sub-template attribute information.
[0086] In this embodiment, the aforementioned sub-template attribute information can be used to represent the attributes that interactive interface elements already possess in the element template. For example, the aforementioned sub-template attribute information can be the size of the corner radius, margin, and chamfer that the element template already possesses. This is only an example and is not specifically limited.
[0087] In this embodiment, if the comparison reveals that the resource attribute information and the template attribute information are different, then from the resource attribute information, sub-template attribute information that is different from the sub-resource attribute information and sub-template attribute information that is the same as the sub-resource attribute information are separated. Then, the sub-template attribute information that is different from the sub-resource attribute information and the sub-template attribute information that is the same as the sub-resource attribute information are adjusted. Based on the adjusted sub-template attribute information, the maintained sub-template attribute information, and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource position information, template attribute information, and template position information to configure multiple interactive interface elements in the configuration file to obtain the configuration result, thereby improving the usability of the configuration result.
[0088] For example, in the configured resource directory, a common_dimens.xml file is required. Modifying the values of element attributes in this file achieves UI adaptation. The adaptation process can be as follows: Add a flavor configuration: Create a new flavor for development project 1 in the build system, specifying that the flavor uses a separate resource directory. Copy and modify the attribute file: Copy common_dimens.xml to the specified resource directory, and only adjust the attributes of the fixed elements on the page that need to be changed. Other resources (e.g., layout, code) directly share the version of the base platform. Automatically merge resources during build: The build system prioritizes using resources in the flavor's specific directory; resources not defined will fall back to the main resource.
[0089] The following section further explains the steps of configuring multiple interactive interface elements in a configuration file based on the adjusted sub-template attribute information, the retained sub-template attribute information, resource location information, and template location information to obtain the configuration result in this embodiment.
[0090] As an optional implementation method, based on the adjusted sub-template attribute information, the retained sub-template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This includes configuring multiple interactive interface elements in the configuration file according to the attribute values corresponding to the adjusted sub-template attribute information, the attribute values corresponding to the retained sub-template attribute information, and using the position corresponding to the template location information as the position corresponding to the resource location information, to obtain the configuration result.
[0091] In this embodiment, if the comparison reveals that the resource attribute information and template attribute information are different, then from the resource attribute information, sub-template attribute information that is different from the sub-resource attribute information and sub-template attribute information that is the same as the sub-resource attribute information are identified. Then, the attribute values corresponding to the sub-template attribute information that is different from the sub-resource attribute information are adjusted, while the attribute values corresponding to the sub-template attribute information that is the same as the sub-resource attribute information are maintained. Based on the adjusted attribute values of the sub-template attribute information, the maintained attribute values of the sub-template attribute information, and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource position information, template attribute information, and template position information to configure multiple interactive interface elements in the configuration file to obtain the configuration result, thereby improving the usability of the configuration result.
[0092] For example, copy and modify the property file: Copy common_dimens.xml to the specified resource directory and only adjust the property values that need to be changed (e.g., change the button height from 40px to 44px), keep the property values that do not need to be changed (e.g., keep the navigation key height at 45px), and other resources (e.g., layout, code) directly share the version of the base platform.
[0093] The following further explains the steps of responding to the above-mentioned information relationship in this embodiment, namely, keeping the template attribute information the same as the resource attribute information and the template attribute information, and configuring multiple interactive interface elements in the configuration file based on the kept template attribute information, resource location information and template location information to obtain the configuration result.
[0094] As an optional embodiment, in response to the information relationship that the resource attribute information and the template attribute information are the same, the template attribute information is maintained, and based on the maintained template attribute information, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This includes: in response to the information relationship that the resource attribute information and the template attribute information are the same, multiple interactive interface elements are configured in the configuration file according to the attribute values corresponding to the maintained template attribute information and the position corresponding to the template location information is used as the position corresponding to the resource location information to obtain the configuration result.
[0095] In this embodiment, the resource attribute information may include multiple sub-resource attribute information.
[0096] In this embodiment, the aforementioned sub-resource attribute information can be used to represent the attributes that interactive interface elements need to possess in the interactive interface. For example, the aforementioned sub-resource attribute information can be the size, margins, and chamfers that a button needs to possess in the UI interface, etc. This is only an example and is not specifically limited.
[0097] In this embodiment, the template attribute information may include: multiple sub-template attribute information.
[0098] In this embodiment, the aforementioned sub-template attribute information can be used to represent the attributes that interactive interface elements already possess in the element template. For example, the aforementioned sub-template attribute information can be the size of the corner radius, margin, and chamfer that the element template already possesses. This is only an example and is not specifically limited.
[0099] In this embodiment, if the comparison shows that the resource attribute information and the template attribute information are the same, then it is unnecessary to separate the sub-template attribute information that is different from the sub-resource attribute information and the sub-template attribute information that is the same as the sub-resource attribute information from the resource attribute information; the attribute values corresponding to the template attribute information can be directly maintained. Based on the maintained attribute values corresponding to the sub-template attribute information and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result. This achieves the goal of combining resource attribute information, resource position information, template attribute information, and template position information to configure multiple interactive interface elements in the configuration file and obtain the configuration result, thereby improving the usability of the configuration result.
[0100] For example, in the configured resource directory, a common_dimens.xml file is required. Maintaining the values of the element attributes in this file is sufficient for UI adaptation. The adaptation process can be as follows: Add a new flavor configuration: Create a new flavor for development project 3 in the build system, specifying that the flavor uses a separate resource directory. Copy the attribute file: Copy common_dimens.xml to the specified resource directory, keeping the attribute values unchanged (e.g., keeping the navigation key height at 45px), and other resources (e.g., layout, code) directly share the version of the base platform.
[0101] The following description further explains the steps of creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model in this embodiment.
[0102] As an optional embodiment, step S204 involves creating a configuration file for the interactive interface to be created for the vehicle based on the vehicle model, including: determining the vehicle model relationship between the vehicle model and the historical vehicle model; and creating a configuration file for the interactive interface in response to the vehicle model relationship being different from the historical vehicle model.
[0103] In this embodiment, the aforementioned historical vehicle may be the same as or different from the vehicle.
[0104] In this embodiment, after identifying the vehicle model, the model relationship between the model and the historical model of the historical vehicle is determined. If the model relationship is different from the historical model, then an interactive interface is created and a configuration file is generated.
[0105] Optionally, this embodiment, based on the identified vehicle model, compares the identified vehicle model with historical vehicle models to obtain the vehicle model relationship between the two. If the comparison reveals that the identified vehicle model differs from the historical model, then a display item for the interactive interface is created for the vehicle corresponding to the identified vehicle model. Next, a configuration file is created for the aforementioned display item, thereby achieving the goal of creating a configuration file for the interactive interface to be created for the vehicle, thus improving the technical effect of the configuration file's reliability.
[0106] The following is a further explanation of the method for creating the interactive interface of the vehicle described in this embodiment.
[0107] As an optional embodiment, the method further includes: in response to the vehicle model relationship being the same as the historical vehicle model, calling the historical configuration file corresponding to the historical vehicle model for the historical interactive interface; adjusting the historical configuration result corresponding to the historical configuration file; and updating the historical interactive interface according to the adjusted historical configuration result.
[0108] In this embodiment, in response to the vehicle model relationship being the same as the historical vehicle model, the historical interactive interface corresponding to the historical vehicle model is called. After the historical configuration file that has been created is invoked, the historical configuration result corresponding to the historical configuration file is adjusted. Then, the historical interactive interface is updated according to the adjusted historical configuration result. This achieves the purpose of creating a configuration file for the interactive interface to be created for the vehicle, thereby realizing the technical effect of improving the reliability of the configuration file.
[0109] Optionally, this embodiment, based on the identified vehicle model, compares the identified vehicle model with historical vehicle models to obtain the vehicle model relationship between the two. If the comparison shows that the vehicle model is the same as the historical model, then the historical UI interface corresponding to the historical model is used. The created historical flavor is invoked, and the historical configuration result corresponding to the historical flavor is adjusted, for example, adjusting the historical configuration attributes and / or historical configuration position. The rendering engine then renders the adjusted historical configuration result to obtain a new rendering result. The rendering result may include: newly rendered UI control objects, and the UI control objects are arranged on the UI interface according to the newly configured layout hierarchy; or the rendering result may also include: newly rendered UI control objects, and the UI control objects are arranged on the UI interface according to the original configured layout hierarchy.
[0110] The following is a further explanation of the method for creating the interactive interface of the vehicle described in this embodiment.
[0111] As an optional embodiment, the method further includes: creating an element template for the interactive interface; importing multiple interactive interface elements into the element template to generate template information.
[0112] In this embodiment, after creating the element template of the interactive interface, multiple interactive interface elements are imported into the element template to generate template information.
[0113] Optionally, after centrally defining the attributes of fixed elements on the page and centralizing the attribute values in a unified file, this embodiment implements platform-based development of data types, business logic, and basic capabilities. Then, according to the UI specifications, a basic UI is developed. By importing the fixed elements of the page into the basic UI, template information can be generated. This achieves the goal of determining the state of multiple interactive interface elements in the element template of the interactive interface, thereby realizing the technical effect of improving the effectiveness of template information.
[0114] In this embodiment of the application, when creating a vehicle's interactive interface, a configuration file is created for the interactive interface to be created based on the identified vehicle model. Combining the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result. Then, the interactive interface can be created using the obtained configuration result. This achieves the goal of avoiding the need to repeatedly copy the relevant code for creating the interactive interface, thereby solving the technical problem of low efficiency in creating vehicle interactive interfaces and thus achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
[0115] The technical solutions of the embodiments of this application will be illustrated below with reference to preferred embodiments.
[0116] Currently, with the widespread adoption and application of intelligent vehicle terminals, the development needs for these terminals are becoming increasingly diverse, especially in terms of the more frequent changes and iterations of the user interface (UI). For example, in the field of intelligent vehicle applications, a single software product is often deployed across all vehicle models. Furthermore, the UI of the same software product differs across different vehicle models, necessitating that the same software product be compatible with the UI of all vehicle models.
[0117] However, in related technologies, the approach to creating the same software product UI for different vehicles involves either completely copying an existing project, copying it to a different branch, or copying it to a different flavor. Regardless of the method used, this results in a significant increase in code size and code duplication, leading to the technical problem of inefficient UI creation for vehicles.
[0118] However, this application proposes a method for creating a vehicle's interactive interface. When creating a vehicle's interactive interface, a configuration file is created for the interactive interface to be created based on the identified vehicle model. Combining the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result. Then, the interactive interface can be created using the obtained configuration result. This achieves the goal of avoiding the need to repeatedly copy the relevant code for creating the interactive interface, thereby solving the technical problem of low efficiency in creating vehicle interactive interfaces and thus achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
[0119] In this embodiment, by implementing a platform-based system that adapts to multi-item UIs, the system can call display items that have imported configuration results to create a UI for the corresponding vehicle model. For example, Figure 3 This is a schematic diagram of a platform-based implementation system for adapting to multi-project UIs according to an embodiment of this application, such as... Figure 3 As shown, the system 300 may include: a definition module 301, a platform development module 302, a basic graphical interface development module 303, and configuration and loading modules 3041 to 304n.
[0120] In this embodiment, the definition module 301 can be used to centrally define the attributes of fixed elements on the page and to centralize the attribute values in a unified file. These attributes may include: size, margins, and chamfers, etc.
[0121] In this embodiment, the aforementioned fixed page elements refer to components specified in the UI specification that appear repeatedly in multiple user interfaces and have a consistent visual appearance. For example, these fixed page elements may include: navigation bars, buttons, icons, margins, font sizes, corner radii, etc. The attributes of these elements need to be centrally managed to ensure consistency across the entire project and even multiple projects.
[0122] In this embodiment, the aforementioned unified file can be a file for each developer to reference attributes. For example, the unified file can be a common_dimens.xml file. By having each developer reference the unified file for attribute references, the goal is achieved that when UI specifications are adjusted (e.g., button size changes from 40px to 44px), only one definition in the file needs to be modified for global effect, avoiding hard-coded values scattered throughout the code. It also enables UI designers and developers to collaborate based on the same specification file, reducing communication costs between personnel, and supports rapid adaptation across multiple projects and themes.
[0123] In this embodiment, the attribute values are defined in pixels (px) because pixels are the basic unit of screen display and allow for precise control over visual presentation. It should be noted that in mobile development, density-independent pixels (dp) or scaling-independent pixels (sp) can also be used to adapt to different screen densities. Since UI specifications are directly based on pixel design, or if the project has specific adaptation solutions (e.g., handling multiple resolutions through scaling mechanisms), pixels can be used as the unit of definition.
[0124] In this embodiment, the platform development module 302 can be used to perform platform-based development of data types, business logic, and basic capabilities.
[0125] In this embodiment, encapsulating data types, business logic, and basic capabilities can include: encapsulation of human-machine interface (HMI) side interaction logic, business logic encapsulation, and server-side basic capability encapsulation. This platform-based development improves code reusability, reduces redundant development costs, ensures system stability and maintainability, and creates a set of reusable core platform code.
[0126] In this embodiment, the encapsulation of data types described above can be achieved by defining a unified data model and interface. For example, JSON data returned by a network request can be parsed into standardized Java / Kotlin data classes, which helps avoid redundant definitions of similar structures across different projects.
[0127] In this embodiment, the encapsulation of business logic described above can be achieved by modularizing common business processes (e.g., user login process, data caching process, payment process). For example, the user login process may include UI interaction, network requests, state management, and other functions, which can be encapsulated and directly called by multiple projects.
[0128] In this embodiment, the encapsulation of basic capabilities described above can be achieved as follows: encapsulating network request libraries, database operations, permission management, and logging systems. These components are typically provided in the form of software development kits (SDKs) or modules, for example, using a client (e.g., Retrofit) to make network requests and using a persistent data access library (Room) to manage a local database.
[0129] In this embodiment, the encapsulation of basic server-side capabilities can be implemented as follows: encapsulating API gateways, authentication services, and message queues. The HMI side focuses on the following interface logic: page routing, animation control, and state management, such as the view model in a Model-View-ViewModel (MVVM) architecture.
[0130] In this embodiment, after platformization, new projects only need to rely on this basic codebase and do not need to start from scratch. Differentiated requirements (e.g., configurations for specific business functions) are achieved through configuration files or conditional compilation; for example, different parameters can be specified using flavors or configuration files.
[0131] In this embodiment, the basic graphical interface development module 303 can be used to develop a basic UI according to UI specifications. This basic UI development may include: static layout files, dynamically configured code, and the application of attributes of fixed page elements to the development process.
[0132] In this embodiment, the basic UI can include a static layout file and dynamically set code. Based on this UI, combined with the platform deployment performed by the platform development module 302, a complete UI specification can be implemented and displayed. It should be noted that the resource file path needs to be specified in the script file (e.g., a .gradle file). These resource files can include: layout files, a collection of files storing various visual image resources (e.g., drawable resource files), and a collection of resources defining non-image constants (e.g., value resource files). For example, drawable resources can include icons and backgrounds, and value resources can include strings and colors.
[0133] In this embodiment, the aforementioned static layout file can use Extensible Markup Language (XML) to define the page structure and reference attribute values in common_dimens.xml. The layout file can be modularized; for example, header and footer components can be extracted as independent layouts, thereby facilitating reuse.
[0134] In this embodiment, the aforementioned dynamic setting code can programmatically set UI attributes within the code, especially for elements that need to change based on business status (e.g., text color, visibility). Similarly, these values should be read from common_dimens.xml to ensure consistency.
[0135] In this embodiment, to achieve a complete UI specification, the resource file path needs to be specified in the project's script file.
[0136] In this embodiment, the configuration and loading module 3041 can be used to configure and load different resource file directories for the UI when creating development project 1, and modify the attribute values of fixed elements on the page in the resource files.
[0137] For example, when adding a new development project, a new flavor configuration is needed. However, only the configuration of loading different resource file directories is required to achieve differentiation, without modifying the core code or layout. Specifically, in the configured resource directory, the common_dimens.xml file defined by module 301 needs to be copied, and the values of element attributes in this file need to be modified to achieve UI adaptation. The adaptation process can be as follows: Add flavor configuration: Create a new flavor for development project 1 in the build system, specifying that the flavor uses a separate resource directory; Copy and modify attribute file: Copy common_dimens.xml in the specified resource directory, and only adjust the attribute values that need to be changed (for example, changing the button height from 40px to 44px). Other resources (e.g., layout, code) directly share the version of the base platform; Automatically merge resources during build: The build system prioritizes using resources in the flavor-specific directory, and reverts to the main resource if not defined. In this way, Project 1 can obtain a customized UI while fully reusing the platform logic and basic UI. UI differences are handled only by overriding resource files without modifying the code. Business logic and basic capabilities remain consistent, and maintenance and upgrades can be carried out at the platform layer, thereby reducing redundant development.
[0138] In this embodiment, the configuration and loading module 304n can be used to configure and load different resource file directories for the UI when creating a development project n, and modify the attribute values of fixed elements on the page in the resource files.
[0139] In this embodiment, by using a platform-based implementation method that adapts to multi-item UIs, the display item that has imported the configuration results can be called to create a UI for the corresponding vehicle model. For example, Figure 4 This is a flowchart of a platform-based implementation method for adapting multi-project UIs according to an embodiment of this application, such as... Figure 4 As shown, the method may include the following steps.
[0140] Step S401: Define the attributes of fixed elements on the page in a centralized manner, and centralize the attribute values into a unified file.
[0141] After centrally defining the attributes of fixed elements on the page and centralizing the attribute values in a unified file, step S402 is executed to implement platform-based development of data types, business logic, and basic capabilities.
[0142] After platform-based development of data types, business logic, and basic capabilities, step S403 is executed to develop a basic UI based on UI specifications.
[0143] After developing a basic UI according to the UI specifications, proceed to step S4041. When creating development project 1, configure the loading of different resource file directories for the UI and modify the attribute values of fixed elements on the page in the resource files.
[0144] When creating development project 1, for the UI, different resource file directories are configured to load, and the attribute values of fixed elements on the page in the resource files are modified. Then, step S404n is executed. When creating development project n, for the UI, different resource file directories are configured to load, and the attribute values of fixed elements on the page in the resource files are modified. Figure 4 The ellipsis indicates that when n is any natural number greater than 2, the steps that can be executed between steps S4041 and S404n are: "For the UI, configure loading different resource file directories and modify the attribute values of fixed elements on the page in the resource files".
[0145] In this embodiment, when creating a vehicle's interactive interface, a configuration file is created for the interactive interface to be created based on the identified vehicle model. Combining the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result. Then, the interactive interface can be created using the obtained configuration result. This achieves the goal of avoiding the need to repeatedly copy the relevant code for creating the interactive interface, thereby solving the technical problem of low efficiency in creating vehicle interactive interfaces and thus achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
[0146] According to another aspect of the embodiments of this application, corresponding to the embodiments of the above-described method for creating a vehicle's interactive interface, the embodiments of this application also provide a device for creating a vehicle's interactive interface. Figure 5 This is a structural block diagram of a vehicle interface creation device according to an embodiment of this application, such as... Figure 5 As shown, the vehicle's interactive interface creation device 500 may include: an identification unit 502, a first creation unit 504, a configuration unit 506, and a second creation unit 508.
[0147] The identification unit 502 is used to identify the vehicle model.
[0148] The first creation unit 504 is used to create a configuration file for the interactive interface to be created for the vehicle based on the vehicle model. The configuration file is used to configure multiple interactive interface elements.
[0149] Configuration unit 506 is used to configure multiple interactive interface elements in the configuration file based on resource information and template information of multiple interactive interface elements stored in the configuration file, and obtain configuration results. The resource information is used to represent the content that the multiple interactive interface elements need to present in the interactive interface, and the template information is used to represent the state of the multiple interactive interface elements in the element template of the interactive interface.
[0150] The second creation unit 508 is used to create an interactive interface based on the configuration results.
[0151] Optionally, the configuration unit 506 may include: a first determining module, used to determine the information relationship between resource attribute information and template attribute information; and a configuration module, used to configure multiple interactive interface elements in a configuration file based on the information relationship, resource location information, and template location information, to obtain the configuration result.
[0152] Optionally, the configuration module may include: a first configuration submodule, used to adjust the template attribute information in response to a difference between the resource attribute information and the template attribute information, and to configure multiple interactive interface elements in a configuration file based on the adjusted template attribute information, resource location information, and template location information to obtain a configuration result; and a second configuration submodule, used to maintain the template attribute information in response to a similarity between the resource attribute information and the template attribute information, and to configure multiple interactive interface elements in a configuration file based on the maintained template attribute information, resource location information, and template location information to obtain a configuration result.
[0153] Optionally, the resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that interactive interface elements need to possess in the interactive interface; the template attribute information includes: multiple sub-template attribute information, which represents the attributes that interactive interface elements already possess in the element template. The first configuration submodule can perform the following steps to adjust the template attribute information in response to a difference between the information relationship between resource attribute information and template attribute information, and to configure multiple interactive interface elements in the configuration file based on the adjusted template attribute information, resource location information, and template location information, to obtain the configuration result: In response to a difference between the information relationship between resource attribute information and template attribute information, adjust the sub-template attribute information that is different from the sub-resource attribute information, maintain the sub-template attribute information that is the same as the sub-resource attribute information, and configure multiple interactive interface elements in the configuration file based on the adjusted sub-template attribute information, the maintained sub-template attribute information, resource location information, and template location information, to obtain the configuration result.
[0154] Optionally, the first configuration submodule can configure multiple interactive interface elements in the configuration file based on the adjusted sub-template attribute information, the retained sub-template attribute information, the resource location information, and the template location information by performing the following steps to obtain the configuration result: According to the attribute values corresponding to the adjusted sub-template attribute information, the attribute values corresponding to the retained sub-template attribute information, and using the position corresponding to the template location information as the position corresponding to the resource location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
[0155] Optionally, the resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that interactive interface elements need to possess in the interactive interface; the template attribute information includes: multiple sub-template attribute information, which represents the attributes that interactive interface elements already possess in the element template. The second configuration submodule can execute the following steps to respond to the information relationship being that the resource attribute information and template attribute information are the same, maintain the template attribute information, and configure multiple interactive interface elements in the configuration file based on the maintained template attribute information, resource location information, and template location information, to obtain the configuration result: In response to the information relationship being that the resource attribute information and template attribute information are the same, configure multiple interactive interface elements in the configuration file according to the attribute values corresponding to the maintained template attribute information and using the position corresponding to the template location information as the position corresponding to the resource location information, to obtain the configuration result.
[0156] Optionally, the first creation unit 504 may include: a second determining module for determining the model relationship between the vehicle model and the historical model of the historical vehicle; and a creation module for creating a configuration file for the interactive interface in response to the model relationship being different from the historical model.
[0157] Optionally, the vehicle's interactive interface creation device 500 may further include: a calling unit, used to call a previously created historical configuration file in response to a vehicle model relationship where the vehicle model is the same as a historical vehicle model, for a historical interactive interface corresponding to the historical vehicle model; an adjustment unit, used to adjust the historical configuration result corresponding to the historical configuration file; and an update unit, used to update the historical interactive interface according to the adjusted historical configuration result.
[0158] Optionally, the vehicle's interactive interface creation device 500 may further include: a third creation unit for creating an element template for the interactive interface; and a generation unit for importing multiple interactive interface elements into the element template and generating template information.
[0159] In this embodiment, the vehicle's interactive interface creation device includes the following units: an identification unit for identifying the vehicle model; a first creation unit for creating a configuration file for the interactive interface to be created based on the vehicle model, wherein the configuration file is used to configure multiple interactive interface elements; a configuration unit for configuring multiple interactive interface elements in the configuration file based on resource information and template information of multiple interactive interface elements stored in the configuration file, thereby obtaining a configuration result, wherein the resource information represents the content to be presented by multiple interactive interface elements in the interactive interface, and the template information represents the state of multiple interactive interface elements presented in the element template of the interactive interface; and a second creation unit for creating the interactive interface based on the configuration result. This achieves the goal of avoiding multiple copies of the relevant code for creating the interactive interface, thus solving the technical problem of low efficiency in creating vehicle interactive interfaces, and thereby achieving the technical effect of improving the efficiency of creating vehicle interactive interfaces.
[0160] Embodiments of this application also provide an electronic device, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.
[0161] Embodiments of this application also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.
[0162] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0163] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0164] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.
[0165] Embodiments of this application also provide a vehicle that includes the electronic devices described in this application.
[0166] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0167] According to an embodiment of this application, an electronic device is also provided. Figure 6This is a schematic diagram of an electronic device according to an embodiment of this application, such as... Figure 6 As shown, the electronic device 600 may include a memory 610 and a processor 620, wherein the memory 610 is used to store an executable program; and the processor 620 is used to run the program stored in the memory 610, and the program executes the method of this application when it runs.
[0168] In this application, "multiple" refers to two or more.
[0169] In this application, unless otherwise expressly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0170] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0171] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0172] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the device control method for the vehicle in the embodiment.
[0173] Computer-readable storage media, also known as computer storage media, may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. These propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable storage media can transmit, propagate, or transfer programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0174] The program code contained in a computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, radio frequency, or any suitable combination thereof.
[0175] In the embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0176] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.
[0177] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0178] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for creating a vehicle's interactive interface, characterized in that, include: Identify the vehicle model; Based on the vehicle model, a configuration file is created for the interactive interface to be created for the vehicle, wherein the configuration file is used to configure multiple interactive interface elements; Based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, multiple interactive interface elements are configured in the configuration file to obtain a configuration result. The resource information is used to represent the content that multiple interactive interface elements need to present in the interactive interface, and the template information is used to represent the state of multiple interactive interface elements in the element template of the interactive interface. The interactive interface is created based on the configuration results.
2. The method according to claim 1, characterized in that, The resource information includes: resource attribute information and resource location information. The resource attribute information is used to represent the attributes that the multiple interactive interface elements need to have in the interactive interface. The resource location information is used to represent the positions that the multiple interactive interface elements need to be placed in the interactive interface. The template information includes: template attribute information and template location information. The template attribute information is used to represent the attributes that the multiple interactive interface elements already have in the element template. The template location information is used to represent the positions that the multiple interactive interface elements have already been placed in the element template.
3. The method according to claim 2, characterized in that, Based on the resource information in the storage location of the configuration file and the template information of multiple interactive interface elements, the multiple interactive interface elements are configured in the configuration file to obtain a configuration result, including: Determine the information relationship between the resource attribute information and the template attribute information; Based on the information relationship, the resource location information, and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
4. The method according to claim 3, characterized in that, Based on the information relationships, resource location information, and template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result, including: In response to the information relationship that the resource attribute information and the template attribute information are different, the template attribute information is adjusted, and based on the adjusted template attribute information, the resource location information and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result; In response to the information relationship that the resource attribute information and the template attribute information are the same, the template attribute information is maintained, and based on the maintained template attribute information, the resource location information and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
5. The method according to claim 4, characterized in that, The resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that the interactive interface elements need to possess in the interactive interface. The template attribute information includes: multiple sub-template attribute information, which represents the attributes that the interactive interface elements already possess in the element template. In response to the information relationship being different between the resource attribute information and the template attribute information, the template attribute information is adjusted. Based on the adjusted template attribute information, the resource location information, and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result, including: In response to the information relationship that the resource attribute information and the template attribute information are different, the sub-template attribute information that is different from the sub-resource attribute information is adjusted, the sub-template attribute information that is the same as the sub-resource attribute information is maintained, and based on the adjusted sub-template attribute information, the maintained sub-template attribute information, the resource location information and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
6. The method according to claim 5, characterized in that, Based on the adjusted sub-template attribute information, the retained sub-template attribute information, the resource location information, and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result, including: Based on the adjusted attribute values of the sub-template attribute information, the retained attribute values of the sub-template attribute information, and using the position corresponding to the template position information as the position corresponding to the resource position information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result.
7. The method according to claim 5, characterized in that, The resource attribute information includes: multiple sub-resource attribute information, which represents the attributes that the interactive interface elements need to possess in the interactive interface. The template attribute information includes: multiple sub-template attribute information, which represents the attributes that the interactive interface elements already possess in the element template. In response to the information relationship being that the resource attribute information and the template attribute information are the same, the template attribute information is maintained. Based on the maintained template attribute information, the resource location information, and the template location information, multiple interactive interface elements are configured in the configuration file to obtain the configuration result, including: In response to the information relationship that the resource attribute information and the template attribute information are the same, the multiple interactive interface elements are configured in the configuration file according to the attribute values corresponding to the retained template attribute information and the position corresponding to the template position information as the position corresponding to the resource position information, to obtain the configuration result.
8. The method according to claim 1, characterized in that, Based on the vehicle model, a configuration file is created for the interactive interface to be created for the vehicle, including: Determine the model relationship between the stated model and the historical models of the historical vehicles; In response to the vehicle model relationship being different from the historical vehicle model, the configuration file is created for the interactive interface.
9. The method according to claim 8, characterized in that, The method further includes: In response to the vehicle model relationship being the same as the historical vehicle model, the historical interactive interface corresponding to the historical vehicle model is used, and the created historical configuration file is called. Adjust the historical configuration results corresponding to the historical configuration file; Update the historical interactive interface according to the adjusted historical configuration results.
10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: Create the element template for the interactive interface; Import multiple interactive interface elements into the element template to generate the template information.
11. A device for creating an interactive interface for a vehicle, characterized in that, include: An identification unit is used to identify the vehicle model. The first creation unit is used to create a configuration file for the interactive interface to be created for the vehicle based on the vehicle model, wherein the configuration file is used to configure multiple interactive interface elements; A configuration unit is used to configure multiple interactive interface elements in the configuration file based on resource information in the storage location of the configuration file and template information of multiple interactive interface elements, and obtain a configuration result. The resource information is used to represent the content that the multiple interactive interface elements need to present in the interactive interface, and the template information is used to represent the state of the multiple interactive interface elements in the element template of the interactive interface. The second creation unit is used to create the interactive interface based on the configuration results.
12. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, performs the method according to any one of claims 1 to 10.