Search

CN-121996124-A - Method and device for displaying icons in application program of vehicle and electronic equipment

CN121996124ACN 121996124 ACN121996124 ACN 121996124ACN-121996124-A

Abstract

The embodiment of the application provides a method and a device for displaying icons in an application program of a vehicle and electronic equipment, wherein the method comprises the steps of obtaining item information of icon items required by the application program of the vehicle, wherein the icon items come from an icon platform allowing the application program to access, and the item information is used for representing the attribute and the content of the icon items; the method comprises the steps of adjusting the attribute and the content in the item information to obtain adjusted item information, wherein the adjusted item information is used for representing the adjusted attribute and the adjusted content, generating configuration information of an icon to be displayed in an application program based on the adjusted item information, wherein the configuration information is used for representing at least one parameter describing the icon to be displayed through a preset information format, and configuring the icon to be displayed on an interface of the application program according to the configuration information. The application solves the technical problem of low maintenance efficiency of icons.

Inventors

  • ZHU GANG

Assignees

  • 安徽开阳科技有限公司
  • 奇瑞汽车股份有限公司

Dates

Publication Date
20260508
Application Date
20260129

Claims (10)

  1. 1. A method for displaying icons in an application program of a vehicle, comprising: Acquiring item information of an icon item required by an application program of the vehicle, wherein the icon item is from an icon platform allowing the application program to access, and the item information is used for representing the attribute and the content of the icon item; adjusting the attribute and the content in the item information to obtain adjusted item information, wherein the adjusted item information is used for representing the adjusted attribute and the adjusted content; Generating configuration information of an icon to be displayed in the application program based on the adjusted item information, wherein the configuration information is used for representing at least one parameter describing the icon to be displayed through a preset information format; And configuring the icon to be displayed on the interface of the application program according to the configuration information.
  2. 2. The method of claim 1, wherein generating configuration information for icons to be displayed in the application program based on the adjusted item information comprises: Extracting address information from the adjusted item information, wherein the address information is used for representing an address in the content where the font file is stored; Downloading the font file by accessing the address corresponding to the address information; And generating the configuration information based on the downloaded font file.
  3. 3. The method of claim 2, wherein generating the configuration information based on the downloaded font file comprises: Determining a configuration strategy of the font file by using an adaptation platform of the application program, wherein the configuration strategy is used for representing rules for configuring the font file; configuring the font file on the adaptation platform according to the configuration strategy; and generating the configuration information based on the configured font file.
  4. 4. The method of claim 3, wherein generating the configuration information based on the configured font file comprises: Performing name analysis on the configured font file to obtain various kinds of name information, wherein the name information is used for representing the names of icons in the icon items, and the icon items comprise a plurality of icons; Generating coding information mapped with various kinds of name information respectively to obtain various kinds of coding information, and adjusting the configured font file to obtain an adjusted font file, wherein the coding information is used for representing a result obtained by coding the icon; And generating the configuration information by using the plurality of coding information, the adjusted font files and class information of the font files, wherein the class information is used for representing the font types to which the font files belong.
  5. 5. The method of claim 3, wherein the adaptation platform comprises a first adaptation platform and a second adaptation platform, a first number of platforms that extend to the first adaptation platform is less than a second number of platforms that extend to the second adaptation platform, the configuration policy comprises a first configuration policy for representing rules for configuring the font file on the first adaptation platform and a second configuration policy for representing rules for configuring the font file on the second adaptation platform, wherein determining the configuration policy for the font file using the adaptation platform of the application comprises: Determining the configuration policy as the first configuration policy in response to the adaptation platform being the first adaptation platform; and in response to the adaptation platform being the second adaptation platform, determining the configuration policy as the second configuration policy.
  6. 6. The method of claim 5, wherein configuring the font file in accordance with the configuration policy on the adaptation platform comprises: configuring the font file according to the first configuration strategy on the first adaptation platform; and configuring the font file on the second adapting platform according to the second configuration strategy.
  7. 7. The method according to any one of claims 1 to 6, wherein adjusting the attribute and the content in the item information to obtain the adjusted item information includes: Performing structural analysis on the attribute and the content to obtain the analyzed attribute and the analyzed content; and respectively carrying out structural adjustment on the analyzed attribute and the analyzed content to obtain the adjusted item information.
  8. 8. A display device of an icon in an application program of a vehicle, comprising: An acquisition unit configured to acquire item information of an icon item required by an application program of the vehicle, wherein the icon item is from an icon platform that allows the application program to access, and the item information is used to represent an attribute and content of the icon item; the conversion unit is used for adjusting the attribute and the content in the item information to obtain adjusted item information, wherein the adjusted item information is used for representing the adjusted attribute and the adjusted content; The generating unit is used for generating configuration information of the icon to be displayed in the application program based on the adjusted item information, wherein the configuration information is used for representing at least one parameter describing the icon to be displayed through a preset information format; and the configuration unit is used for configuring the icon to be displayed on the interface of the application program according to the configuration information.
  9. 9. An electronic device, comprising: A memory storing an executable program; A processor for executing the program, wherein the program when run performs the method of any of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored executable program, wherein the executable program when run controls a device in which the storage medium is located to perform the method of any one of claims 1 to 7.

Description

Method and device for displaying icons in application program of vehicle and electronic equipment Technical Field The embodiment of the application relates to the technical field of vehicles, in particular to a method and a device for displaying icons in an application program of a vehicle and electronic equipment. Background At present, with the development of man-machine interaction of vehicles, icons of application programs displayed on display devices of vehicles are required to be maintained at irregular intervals as a bridge for man-machine interaction services so as to ensure display effects. In existing methods for maintaining icons, the icons are often stored in a picture format in the development tools of the application. However, the icons are generally scattered in different development projects of the application program, and when icons are newly added, deleted or modified, the maintained codes and the maintained resources are manually synchronized for the different development projects, which causes the technical problem that the maintenance time of the icons is too long and the maintenance efficiency of the icons is low. Aiming at the technical problem of low maintenance efficiency of the icons, no good solution exists at present. Disclosure of Invention The embodiment of the application provides a method and a device for displaying icons in an application program of a vehicle and electronic equipment, and aims to at least solve the technical problem of low maintenance efficiency of the icons. According to one aspect of the embodiment of the application, the method for displaying the icons in the application program of the vehicle comprises the steps of obtaining item information of icon items required by the application program of the vehicle, wherein the icon items are from an icon platform which allows the application program to access, the item information is used for representing the attribute and the content of the icon items, adjusting the attribute and the content in the item information to obtain adjusted item information, wherein the adjusted item information is used for representing the adjusted attribute and the adjusted content, generating configuration information of the icons to be displayed in the application program based on the adjusted item information, wherein the configuration information is used for representing at least one parameter describing the icons to be displayed through a preset information format, and configuring the icons to be displayed on an interface of the application program according to the configuration information. Further, generating configuration information of the icon to be displayed in the application program based on the adjusted item information comprises extracting address information from the adjusted item information, wherein the address information is used for representing an address where a font file in the content is stored, downloading the font file by accessing an address corresponding to the address information, and generating the configuration information based on the downloaded font file. Further, generating configuration information based on the downloaded font file comprises determining a configuration policy of the font file by using an adaptation platform of the application program, wherein the configuration policy is used for representing rules for configuring the font file, configuring the font file according to the configuration policy on the adaptation platform, and generating the configuration information based on the configured font file. Further, generating configuration information based on the configured font file comprises the steps of performing name analysis on the configured font file to obtain various kinds of name information, wherein the name information is used for representing names of icons in icon items, the icon items comprise a plurality of icons, generating coding information mapped with the various kinds of name information respectively to obtain various kinds of coding information, adjusting the configured font file to obtain an adjusted font file, wherein the coding information is used for representing a result obtained by coding the icons, and generating the configuration information by using the various kinds of coding information, the adjusted font file and class information of the font file, wherein the class information is used for representing a font category to which the font file belongs. Further, the adaptation platform comprises a first adaptation platform and a second adaptation platform, the first number of platforms extended to the first adaptation platform is smaller than the second number of platforms extended to the second adaptation platform, the configuration strategy comprises a first configuration strategy and a second configuration strategy, the first configuration strategy is used for representing rules of the font file on the first adaptation platform, the second configuration strat