CN116431258B - Information display method, information display device, electronic equipment and storage medium - Google Patents

Information display method, information display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116431258B
CN116431258B CN202310133538.9A CN202310133538A CN116431258B CN 116431258 B CN116431258 B CN 116431258B CN 202310133538 A CN202310133538 A CN 202310133538A CN 116431258 B CN116431258 B CN 116431258B
Authority
CN
China
Prior art keywords
display
current display
determining
scene
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310133538.9A
Other languages
Chinese (zh)
Other versions
CN116431258A (en
Inventor
李辉
梁佳
靳铃花
潘佳炜
杨玉昆
刘辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202310133538.9A priority Critical patent/CN116431258B/en
Publication of CN116431258A publication Critical patent/CN116431258A/en
Application granted granted Critical
Publication of CN116431258B publication Critical patent/CN116431258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R11/00Arrangements for holding or mounting articles, not otherwise provided for
    • B60R11/02Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof
    • B60R11/0229Arrangements for holding or mounting articles, not otherwise provided for for radio sets, television sets, telephones, or the like; Arrangement of controls thereof for displays, e.g. cathodic tubes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application provides an information display method, an information display device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a use stage of an information display program; acquiring a current display scene of display equipment, and determining elements to be displayed according to a use stage and the current display scene; determining a target application programming interface matched with an element to be displayed in a plurality of application programming interfaces of the display device, and acquiring target parameters of the target application programming interface; generating a control to be inserted according to the target application programming interface and the target parameters; inserting the control to be inserted into the current display interface of the display device, and displaying the control to be inserted in the current display interface of the display device. The application can adaptively display different information aiming at different scenes or user roles, and improves the flexibility of an information display program.

Description

Information display method, information display device, electronic equipment and storage medium
Technical Field
The present application relates to the field of page display technologies, and in particular, to an information display method, an information display device, an electronic device, and a storage medium.
Background
With the rapid development of technology, the information volume in a network increases exponentially, so that personalized waterfall flow information is also increasingly applied to display devices. The waterfall flow information layout is presented as a staggered multi-column layout and scrolls down with the page scroll bar. In the current waterfall flow information display method, different scenes or user roles cannot be displayed differently depending on configuration through a waterfall flow information display interface generated by a configuration file. At present, how to perform different adaptive waterfall flow information display aiming at different scenes or user roles becomes a problem to be solved urgently.
Disclosure of Invention
In view of the above, the embodiments of the present application provide an information display method, an apparatus, an electronic device, and a storage medium, so as to improve the above-mentioned problems.
According to an aspect of an embodiment of the present application, there is provided an information display method including: acquiring a use stage of an information display program; acquiring a current display scene of display equipment, and determining elements to be displayed according to the use stage and the current display scene; determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display equipment, and acquiring target parameters of the target application programming interface; generating a control to be inserted according to the target application programming interface and the target parameters; inserting the control to be inserted into the current display interface of the display device, and displaying the control to be inserted in the current display interface of the display device.
According to an aspect of an embodiment of the present application, there is provided an information display apparatus including: the acquisition module is used for acquiring the use stage of the information display program; the to-be-displayed element determining module is used for acquiring the current display scene of the display equipment and determining to-be-displayed elements according to the using stage and the current display scene; the determining module is used for determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display equipment and acquiring target parameters of the target application programming interface; the control to be inserted generation module is used for generating a control to be inserted according to the target application programming interface and the target parameters; the waterfall flow display module is used for inserting the control to be inserted into the current waterfall flow display interface of the display device and displaying the control to be inserted in the current waterfall flow display interface of the display device.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor; and a memory having stored thereon computer readable instructions which, when executed by the processor, implement the information display method as described above.
According to an aspect of an embodiment of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor, implement the information display method as described above.
According to the scheme, the elements to be displayed are determined based on the using stages of the information display program and the current display scene of the display device, so that different corresponding elements to be displayed can be determined according to different using stages of the information display program, target parameters corresponding to target application programming interfaces matched with the elements to be displayed and target application programming interfaces are determined in a plurality of application programming interfaces of the display device, and then the controls to be inserted are generated. The application can be suitable for different application programming interfaces, reduces maintenance cost, improves flexibility and safety reliability of the information display program, and determines different elements to be displayed according to different using stages and different display scenes of the display program, thereby reducing the using threshold of the information display program and improving the using feeling of a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flowchart illustrating an information display method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating an information display method according to another embodiment of the present application.
Fig. 3 is a flowchart illustrating specific steps of step 220, according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating specific steps of step 220, according to another embodiment of the present application.
Fig. 5 is a flowchart illustrating an information display method according to still another embodiment of the present application.
FIG. 6 is a flowchart illustrating the specific steps of step 380 according to one embodiment of the present application.
Fig. 7 is a block diagram of an information display apparatus according to an embodiment of the present application.
Fig. 8 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
There has been shown in the drawings, and will hereinafter be described, specific embodiments of the invention with the understanding that the present disclosure is to be considered in all respects as illustrative, and not restrictive, the scope of the inventive concepts being limited to the specific embodiments shown and described.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, apparatus, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices. The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Referring to fig. 1, fig. 1 shows an information display method according to an embodiment of the present application, and in a specific embodiment, the information display method is a waterfall information display method. The information display method can be applied to the information display apparatus 400 shown in fig. 7 and the electronic device 500 (fig. 8) provided with the information display apparatus 400. The specific flow of the present embodiment will be described below, and it will be understood that the method may be performed by an electronic device having computing processing capability, for example, a terminal device such as a desktop computer, a notebook computer, a vehicle-mounted terminal, or a vehicle-mounted large screen, and the method may also be interactively performed by a processing system including a server and a terminal. The following details about the flow shown in fig. 1, the information display method specifically may include the following steps:
step 110, the use phase of the information display program is acquired.
The information may be waterfall flow information, and the waterfall flow is also called waterfall flow layout, is a currently popular page layout, visually appears as a staggered multi-column layout, and as a page scroll bar rolls down, data blocks are continuously loaded and attached to the current tail.
As one way, in order to display the waterfall flow information in the display device, a display program of the layout waterfall flow information, which may be a program configured in an Application (APP) of the display device, needs to be loaded in the display device.
As one way, the display program includes identification information of the use stage, and the use stage of the waterfall flow information display program can be determined by acquiring the identification information. For example, when the waterfall information display program is released for use, the formally used identification information is correspondingly generated, and the waterfall information display program can be determined to be in the application stage by acquiring the identification information.
Step 120, obtaining a current display scene of the display device, and determining an element to be displayed according to the use stage and the current display scene.
As one approach, the current display scene of the display device is selected by the user on the display device. Optionally, the display device responds to a display instruction of the current display scene, and acquires the current display scene of the display device according to the display instruction.
As one way, after determining the use stage of the display program of the waterfall flow and determining the current display scene of the display device, the elements to be displayed of the display program of the waterfall flow in the display device under the current display scene may be determined. The element to be displayed can be a picture to be displayed, a control to be displayed, information to be displayed and the like, and can be set according to actual needs. Optionally, when the obtained current display scene of the display device is a display scene for controlling a vehicle body of the vehicle, and the corresponding use stage of the display program of the waterfall flow in the display device is an application stage, that is, when the application program provides services for all users through test disclosure, it may be determined that the elements to be displayed in the current display scene of the display device include a control element of a vehicle window, a control element of a vehicle door, a control element of a trunk of the vehicle, and the like.
As another way, the element to be displayed may be determined in this way according to a trigger condition set in advance in the current display scene of the display device. The number of the preset triggering conditions in the current display scene may be multiple, at least one display element is correspondingly set in each triggering condition, and when any triggering condition in the current display scene is determined to meet the preset requirement, at least one display element corresponding to the triggering condition meeting the preset requirement is determined to be the element to be displayed.
And 130, determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display device, and acquiring target parameters of the target application programming interface.
An application programming interface (Application Programming Interface, API), also referred to as an application interface, refers to a convention in which the various components of a software system are joined, and an API is a feature that provides an application developer with access to a set of routine functions, regardless of the underlying source code, or understanding of the internal operating mechanisms. An API is abstract in that it defines only one interface and does not involve specific operations of the application in the actual implementation.
As one way, the sources of the APIs in the same usage scenario are different, for example, when the display device is adapted for use in a vehicle, the corresponding APIs may include an ecological API, a vehicle-side API, or the like. The ecological API may include a weather API, a location API, a road condition API, etc., and the vehicle end API may include a vehicle lamp API, an air conditioner API, a vehicle door API, etc. Optionally, the required APIs may be set in advance for the elements to be displayed in different display scenes, the unique identifier may be set for the same element to be displayed, and the same identifier is set in the corresponding APIs, and after the element to be displayed is determined, the target API is determined in the APIs of the display device according to the identifier of the element to be displayed.
As one approach, the target parameter may refer to a parameter of a system domain configuration associated with a corresponding API in a current display scenario of the display device. If the current display device needs to display driving information of the vehicle in the driving process, the parameters of the corresponding system domain configuration associated with the corresponding API may include external parameters of the vehicle, internal parameters of the vehicle, parameters of a simulation meta module of the vehicle, and running log parameters of the vehicle. Optionally, parameters corresponding to the APIs and system domain configuration parameters corresponding to the APIs may be configured in advance for different scenes, and after determining a target API matching with the element to be displayed in the current display scene of the display device, target parameters corresponding to the target API are obtained according to the corresponding relation between the APIs and the parameters configured by the system domain.
And 140, generating a control to be inserted according to the target application programming interface and the target parameters.
As an embodiment, after determining the target API and the target parameter corresponding to the target API, the display device sends the target API and the target parameter corresponding to the target API to the cloud server, the cloud server may determine, in the control library, a control matched with the target API and the target parameter corresponding to the target API and a UI style of the control according to the received target API and the target parameter corresponding to the target API, and then send the control matched with the target API and the target parameter corresponding to the target API and the UI style of the control to the display device, where the display device generates the control to be inserted according to the control matched with the target API and the target parameter corresponding to the target API and the UI style of the control. The UI style of the control may include an input box, a switch button, a radio box, a multi-box, a selector, a stepper, a sliding input bar, a file uploading control, a date selector, a time selector, a map selector, a two-dimensional coordinate positioning control, and the like.
As one approach, the control elements of the generated control to be inserted may include at least one of nouns, value types, and scope restrictions. The control styles of different types, such as string type corresponding input boxes, boolean type corresponding switch buttons, enumeration type corresponding selectors, single-selection box multi-selection boxes and the like, can be matched according to the parameter types of the target API and the target parameters, wherein the range limit can be a range limit with continuously changing numerical values and a range limit with jump values.
And step 150, inserting the control to be inserted into the current display interface of the display device, and displaying the control to be inserted in the current display interface of the display device.
As a mode, the current display interface can be a waterfall flow display interface, the number of columns of the columns to be inserted in the current waterfall flow display interface of the display device can be determined, then the columns of the controls to be inserted which are equal to the number of columns are selected randomly and inserted into the columns to be inserted, the columns to be inserted corresponding to the controls with the smallest height in the columns to be inserted are found out through calculation and comparison, then any control to be inserted is selected randomly, the control to be inserted is inserted into the column to be inserted corresponding to the control with the smallest height, then the column with the smallest sum of heights in all columns is determined continuously, and new controls to be inserted into the back of the column with the smallest sum of heights is continued until all the controls to be inserted are inserted completely.
As a mode, after the display equipment completes the insertion of the control to be inserted, the current waterfall flow display interface can be displayed in a rolling mode, and the display quantity in the current waterfall flow display interface can be adjusted, so that a plurality of controls can be displayed as much as possible.
As another way, the current waterfall flow display interface exposes controls from API related content, and may also display the trigger time and duration of the current display scene.
In the embodiment of the application, the elements to be displayed are determined based on the using stage of the waterfall information display program and the current display scene of the display device, so that different elements to be displayed can be determined according to different using stages of the information display program, target parameters corresponding to a target application programming interface matched with the elements to be displayed and a target application programming interface are determined in a plurality of application programming interfaces of the display device, and then the control to be inserted is generated, so that the control to be inserted from different forms of application programming interfaces can be produced based on a control library described by the abstract application programming interface, the control to be inserted which is convenient to debug is automatically generated, and finally the control to be inserted is inserted into the current display interface of the display device and displayed, so that the corresponding layout is generated. The method and the device can be suitable for different application programming interfaces, reduce maintenance cost, improve flexibility and safety reliability of the information display program, determine different elements to be displayed aiming at different using stages and different display scenes of the waterfall flow display program, reduce the using threshold of the waterfall flow information display program and improve the using feel of a user.
Referring to fig. 2, fig. 2 shows an information display method according to an embodiment of the application. The following details about the flow shown in fig. 2, the information display method specifically may include the following steps:
Step 210, a use phase of the information display program is acquired.
Step 220, acquiring a plurality of trigger conditions of the current display scene, and determining the element to be displayed according to the plurality of trigger conditions and the use stage.
As a way, a plurality of corresponding trigger conditions can be preset for different display scenes, alternatively, a mapping relation between different display scenes and trigger conditions can be set, and after the current display scene of the display device is determined, a plurality of trigger conditions corresponding to the current display scene of the display device can be determined based on the mapping relation. The triggering condition refers to a condition that an element to be displayed needs to be displayed in a current display scene of the display device, and when any triggering condition is met, the element to be displayed corresponding to the triggering condition is determined to need to be displayed.
As a mode, aiming at different using stages of the display program, the waterfall flow display interface of the display device is displayed differently, namely, the determining modes corresponding to the elements to be displayed are different, so that different people can operate the display program conveniently.
In some embodiments, the usage phase includes an application phase, as shown in fig. 3, and the step 220 includes:
step 221, if the usage stage is an application stage, determining whether the current display scene exists in the history of the display device.
As a way, when the waterfall stream display program is in the application stage, whether the current display scene selected by the user in the display device is the scene used by the user before, that is, whether the current display scene exists in the history record of the display device or not is needed, if it is determined that the current display scene exists in the history record of the display device; in the history record, the triggering condition of the current display scene can be directly determined in the history record of the display equipment; if the current display scene does not exist in the history record of the display device, determining that the triggering condition is required to be manually input by a user.
Step 222, if the current display scene does not exist in the history of the display device, acquiring a plurality of trigger conditions of the current display scene.
In another way, the user can manually add the trigger conditions in the display device or adjust a plurality of trigger conditions corresponding to the current display scene in the history, so as to improve the experience of the user.
Step 223, determining a first trigger condition satisfying a first preset condition from the plurality of trigger conditions, and determining an element to be displayed corresponding to the first trigger condition.
As a way, after determining a plurality of trigger conditions corresponding to the current display scene, acquiring information required by the current display scene, and determining a first trigger condition of a first preset condition in the plurality of trigger conditions according to the information, wherein the first preset condition is a preset condition for an element to be displayed, and the first preset condition may be that a corresponding value of the information reaches a preset value, for example, when the current display scene is reminded after the media volume in the vehicle reaches 50 db, the first preset condition is that the media volume of the vehicle is greater than or equal to 50 db. Optionally, after determining the first trigger condition, determining the element to be displayed corresponding to the first trigger condition according to the corresponding relation between the trigger condition and the element to be displayed.
In other embodiments, as shown in fig. 4, the step 220 further includes:
step 224, if the current display scene exists in the history of the display device, determining whether the current display scene is a continuous trigger display scene.
As one way, when it is determined that the current display scene exists in the history of the display device, a determination is made as to the display manner in which the current scene is a scene, that is, whether the current display scene is a continuous trigger display scene or not. The continuous triggering display scene may include a plurality of display sub-scenes, and each display sub-scene has an association relationship, for example, the first display sub-scene triggers the judgment of the second display sub-scene when the first display sub-scene meets the triggering, and the second display sub-scene triggers the judgment of the third display sub-scene when the second display sub-scene meets the triggering, so as to go on, when any display sub-scene does not meet the triggering, the continuous triggering process is jumped out, and the display sub-scene meeting the triggering is displayed.
As one way, the continuous trigger display scene corresponding thereto may be set in advance, and whether the current display scene is the continuous trigger display scene may be determined by determining whether the current display scene has the continuous trigger flag. Optionally, whether the current display scene is a continuous trigger display scene may also be determined by analyzing the current display scene to determine whether the current display scene includes a plurality of display sub-scenes, and whether a continuous trigger relationship exists in the plurality of display sub-scenes.
And 225, if the current display scene is a continuous trigger display scene, determining a second trigger condition meeting a second preset condition in the plurality of trigger conditions according to the trigger sequence of the plurality of trigger conditions of the current display scene.
As one way, when it is determined that the current display scene exists in the history of the display device, a plurality of trigger conditions of the current display scene may be directly acquired in the history of the display device.
Optionally, determining that the second trigger condition meets the second preset condition may be performed according to the following procedure: firstly, determining a triggering condition positioned in a first triggering sequence from a plurality of triggering conditions of a current display scene, and determining whether the triggering condition of the first triggering sequence meets a corresponding second preset condition; when the triggering conditions of the first triggering sequence meet the corresponding second preset conditions, determining the triggering conditions of the second triggering sequence, and determining whether the output value corresponding to the triggering conditions corresponding to the triggering sequence is the input value of the triggering conditions of the second triggering sequence, namely determining whether the triggering conditions of the second triggering sequence meet the corresponding second preset conditions; if the triggering conditions of the second triggering sequence do not meet the corresponding second preset conditions, determining the triggering conditions of the first triggering sequence as the second triggering conditions; if the triggering condition of the second triggering sequence meets the corresponding second preset condition, determining the triggering condition of the third triggering sequence, and repeating the steps of determining the triggering conditions of the first triggering sequence and the second triggering sequence until the step of continuously determining is skipped when the second preset condition is not met or the second preset condition is met in the triggering conditions, and determining the triggering condition meeting the second preset condition as the second triggering condition.
And 226, determining the element to be displayed corresponding to the second triggering condition.
As one way, after determining the second trigger condition, determining the element to be displayed corresponding to the second trigger condition according to the corresponding relation between the trigger condition and the element to be displayed
In other embodiments, the use phase includes a test phase, and the step 220 includes: acquiring a plurality of triggering conditions of the current display scene, and acquiring a plurality of input parameters in the current display scene; and determining target input parameters matched with the trigger conditions from the input parameters according to the trigger conditions, and determining elements to be displayed corresponding to the target input parameters.
As a way, when the usage stage of the waterfall flow display program is in the testing stage, at this time, the tester needs to test the display function of the waterfall flow display program, and needs to input multiple groups of parameters to verify the fault tolerance of the product, so that the tester needs to have increased selection of the group-wise controls, and at this time, needs to have different display scene triggers for the tester.
Optionally, because the logic of each test is different when the waterfall flow display program performs the test in the test stage, the manual input is required for the tester to perform the manual input on the constant adjustment value in the input parameter, and the value with less change in the trigger condition can be recommended as the default value.
As one way, according to a plurality of input parameters input by a tester, determining that a value corresponding to a plurality of trigger conditions meets a target parameter of a corresponding third preset condition, for example, the input parameter is a vehicle speed of 120km/h, and when one trigger condition is a trigger prompt when the vehicle speed is greater than 100km/h in the plurality of trigger conditions of the current display scene, determining that the vehicle speed of 120km/h is the target parameter. Optionally, the trigger condition may further include a trigger time and a trigger duration. Optionally, considering that the current display scene has different trigger conditions, the trigger time of the next display sub-scene can be selected, and the selection is completed, so that all the controls of the input parameters can be displayed.
As a way, display elements corresponding to different parameters may be preset, and then after determining the target parameter, the element to be displayed corresponding to the target parameter may be determined based on the mapping relationship between the different parameters and the display elements.
Step 230, determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display device, and acquiring target parameters of the target application programming interface.
And step 240, generating a control to be inserted according to the target application programming interface and the target parameters.
And step 250, inserting the control to be inserted into the current display interface of the display device, and displaying the control to be inserted in the current display interface of the display device.
The specific step descriptions of step 210 and step 230-step 250 can refer to step 110 and step 130-step 150, and will not be described herein.
In the embodiment of the application, different determination modes of the strip line elements are set according to different use stages and triggering conditions of the current display scene of the display device, so that the use threshold of the waterfall flow display program is reduced, and the waterfall flow display interface of the display device can be automatically and dynamically adjusted along with different use stages, so that the page is self-adaptive, and users with different roles can operate conveniently.
Referring to fig. 5, fig. 5 shows an information display method according to an embodiment of the application. The following details about the flow shown in fig. 5, the information display method specifically may include the following steps:
step 310, the use phase of the information display program is acquired.
Step 320, obtaining a current display scene of the display device, and determining an element to be displayed according to the use stage and the current display scene.
And 330, determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display device, and acquiring target parameters of the target application programming interface.
And step 340, generating a control to be inserted according to the target application programming interface and the target parameters.
The specific step descriptions of steps 310-340 can refer to steps 110-140, and are not described herein.
And step 350, determining the number of the controls to be inserted and the size of the controls to be inserted.
As one approach, the control size of the control to be inserted may include the length or height of the control to be inserted, as well as the width of the control to be inserted.
Step 360, obtaining the layout page size of the display area of the current display interface of the display device, and calculating the length of the coverage area of the current display interface based on the layout page size of the display area.
As one way, the current display interface of the display device may be a current waterfall flow display interface, and the layout page size of the display area of the current waterfall flow display interface of the display device may include a length and a width of a visual area of the display area of the current waterfall flow display interface. Optionally, the visual area of the display area of the current waterfall flow display interface may be the same as or different from the coverage area of the current waterfall flow display interface, and the coverage area of the current waterfall flow display interface may be a smaller area than the visual area of the display area of the current waterfall flow display interface. Optionally, the length of the coverage area of the current waterfall flow display interface may be calculated according to the layout page size of the display area of the current waterfall flow display interface and the size of the display frame set by the user. The size of the display frame can be adjusted according to the preference of a user.
And 370, determining the display number of the current display interface according to the control size of the control to be inserted and the length of the coverage area of the current display interface.
As a way, the number of the current waterfall flow display interfaces displayed can be determined according to the length of the coverage area of the current waterfall flow display interface and the length of the control to be inserted, and the formula can be: n=l1/L2, where n is the number of displays of the current waterfall flow display interface, L1 is the length of the coverage area of the current waterfall flow display interface, and L2 is the size of the control to be inserted.
Alternatively, the number of displays of the current waterfall flow display interface may be a preset number of displays by the user.
And step 380, displaying the control to be inserted in the current display interface of the display interface according to the number of the controls to be inserted and the display number of the current display interface.
As a way, if the number of the controls to be inserted is smaller than or equal to the display number of the current waterfall flow display interface, displaying all the controls to be inserted in the current waterfall flow display interface of the display interface; and if the number of the controls to be inserted is larger than the display number of the current waterfall flow display interface, rolling and displaying the controls to be inserted in the current waterfall flow display interface of the display interface.
In some embodiments, as shown in fig. 6, the step 380 includes:
Step 381, obtaining the number of preset column containers of the current display interface, and pre-inserting at least one column container in the current display interface according to the number of preset column containers to obtain a target column container, wherein the target column container is a column container with the smallest height.
As one way, the preset column container number of the current waterfall flow display interface is directly obtained in the display device. Wherein. The column container is used for storing the control to be inserted, namely, the control to be inserted is inserted into the column container for display.
Optionally, if the number of the preset column containers is two or more, two or more column containers are inserted correspondingly.
Step 382, inserting the control to be inserted into the target column container, and repeating the step of obtaining the target column container.
As one way, if the target column container is one, the control to be inserted is randomly inserted into the target column container. Optionally, when inserting the controls to be inserted, the controls to be inserted in the same column of containers are tightly inserted, or inserted according to a preset gap.
In another way, when the number of the target column containers is two or more, two or more controls to be inserted are selected correspondingly, the two or more controls to be inserted are randomly inserted into the target column containers, one control to be inserted is arranged in the target column container, then the column container with the smallest height is used as the target column container after the control to be inserted is determined, the control to be inserted is inserted again, then the target column container with the smallest height is determined again, the control to be inserted is inserted into the target column container, and the steps of determining the target column container and inserting the control to be inserted into the target column container are repeated until all the controls to be inserted are inserted into the waterfall flow display area.
And 383, when all the controls to be inserted are inserted into the display area, acquiring the control lengths corresponding to the controls to be inserted respectively.
As a way, the control lengths corresponding to the controls to be inserted can be obtained by respectively determining the control lengths of the inserted controls after all the controls to be inserted are inserted into the waterfall flow display area.
And 384, determining the display number of the display areas according to the control length and the length of the coverage area of the current display interface.
As a way, the control lengths of all the controls to be inserted in the column container of the current waterfall flow display interface can be added to obtain the control length combination, if the sum of the lengths is larger than the length of the coverage area of the current waterfall flow display interface, the number of the controls with the same length as the length of the coverage area of the current waterfall flow display interface is determined in the column container of the current waterfall flow display interface, and the number is used as the display number of the waterfall flow display area.
Step 385, if the number of the displayed controls is smaller than the number of the controls, scrolling the controls to be inserted in the display area.
In this embodiment, the display number of the current waterfall flow display interface is determined by the length of the coverage area of the current waterfall flow display interface of the display device and the size of the to-be-inserted control, and whether to scroll the to-be-inserted control on the current waterfall flow display interface is determined based on the number of the to-be-inserted control and the display number of the current waterfall flow display interface, so that the current waterfall flow display interface is more attractive.
Fig. 7 is a block diagram of an information display apparatus according to an embodiment of the present application, and as shown in fig. 7, the information display apparatus 400 includes: an acquisition module 410, an element to be displayed determination module 420, a determination module 430, a control to be inserted generation module 440, and a display module 450.
An obtaining module 410, configured to obtain a use stage of the information display program; the to-be-displayed element determining module 420 is configured to obtain a current display scene of the display device, and determine an element to be displayed according to the usage stage and the current display scene; a determining module 430, configured to determine, among a plurality of application programming interfaces of the display device, a target application programming interface that matches the element to be displayed, and obtain a target parameter of the target application programming interface; the control to be inserted generating module 440 is configured to generate a control to be inserted according to the target application programming interface and the target parameter; and the display module 450 is used for inserting the control to be inserted into the current display interface of the display device and displaying the control to be inserted in the current display interface of the display device.
In some embodiments, the element to be displayed determination module 430 includes: and the element to be displayed determining submodule is used for acquiring a plurality of trigger conditions of the current display scene and determining the element to be displayed according to the trigger conditions and the use stage.
In some embodiments, the usage stage includes an application stage, and the element to be displayed determination submodule includes: a first determining unit, configured to determine whether the current display scene exists in a history of the display device if the usage stage is an application stage; the first acquisition unit is used for acquiring a plurality of trigger conditions of the current display scene if the current display scene exists in the history record of the display device; the first determining unit for the elements to be displayed is used for determining a first trigger condition meeting a first preset condition from the plurality of trigger conditions and determining the elements to be displayed corresponding to the first trigger condition.
In some embodiments, the element to be displayed determination submodule further includes: a second determining unit, configured to determine whether the current display scene is a continuous trigger display scene if the current display scene does not exist in the history of the display device; a third determining unit, configured to determine, according to a triggering sequence of a plurality of triggering conditions of the current display scene, a second triggering condition that meets a second preset condition among the plurality of triggering conditions if the current display scene is a continuous triggering display scene; and the second determining unit is used for determining the element to be displayed corresponding to the second triggering condition.
In other embodiments, the use phase includes a test phase, and the element to be displayed determination submodule includes: the second acquisition unit is used for acquiring a plurality of triggering conditions of the current display scene and acquiring a plurality of input parameters in the current display scene; and the third determining unit for the elements to be displayed is used for determining target input parameters matched with the triggering conditions from the input parameters according to the triggering conditions and determining the elements to be displayed corresponding to the target input parameters.
In some embodiments, the display module 450 includes: the first determining submodule is used for determining the number of the controls to be inserted and the size of the controls to be inserted; the display device comprises an acquisition sub-module, a display module and a control module, wherein the acquisition sub-module is used for acquiring the size of a layout page of a display area of a current display interface of the display device and calculating the length of a coverage area of the current display interface based on the size of the layout page of the display area; the second determining submodule is used for determining the display number of the current display interface according to the control size of the control to be inserted and the length of the coverage area of the current display interface; and the display sub-module is used for displaying the control to be inserted in the current display interface of the display interface according to the number of the controls to be inserted and the display number of the current display interface.
In some embodiments, the display submodule includes: a target column container determining unit, configured to obtain a preset column container number of the current display interface, and pre-insert at least one column container in the current display interface according to the preset column container number, so as to obtain a target column container, where the target column container is a column container with a minimum height; an inserting unit, configured to insert the control to be inserted into the target column container, and repeat the step of obtaining the target column container; the third obtaining unit is used for obtaining the control lengths corresponding to all the controls to be inserted respectively when all the controls to be inserted are inserted into the display area; a fourth determining unit, configured to determine, according to the control length and the length of the coverage area of the current display interface, the display number of the display areas; and the scrolling display unit is used for scrolling and displaying the control to be inserted in the display area if the display number is smaller than the control number.
According to an aspect of the embodiment of the present application, there is further provided an electronic device, as shown in fig. 8, where the electronic device 500 includes a processor 510 and one or more memories 520, and the one or more memories 520 are configured to store program instructions executed by the processor 510, and the processor 510 implements the information display method described above when executing the program instructions.
Further, processor 510 may include one or more processing cores. The processor 510 runs or executes instructions, programs, code sets, or instruction sets stored in the memory 520 and invokes data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware in at least one of digital signal processing (DIGITAL SIGNAL processing, DSP), field-programmable gate array (field-programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 510 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented solely by a single communication chip.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method of any of the embodiments described above.
According to an aspect of the present application, there is also provided a computer-readable storage medium that may be contained in the electronic device described in the above-described embodiment; or may exist alone without being incorporated into the electronic device. The computer readable storage medium carries computer readable instructions which, when executed by a processor, implement the method of any of the above embodiments.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. An information display method, characterized in that the method comprises:
acquiring a use stage of an information display program;
acquiring a current display scene of a display device, and determining an element to be displayed according to the use stage and the current display scene, wherein the acquiring the current display scene of the display device, and determining the element to be displayed according to the use stage and the current display scene, comprises:
if the using stage is an application stage, determining whether the current display scene exists in the history of the display device;
If the current display scene exists in the history record of the display device, determining whether the current display scene is a continuous trigger display scene or not;
If the current display scene is a continuous trigger display scene, determining a second trigger condition meeting a second preset condition from a plurality of trigger conditions according to the trigger sequence of the trigger conditions of the current display scene;
Determining an element to be displayed corresponding to the second triggering condition;
determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display equipment, and acquiring target parameters of the target application programming interface;
Generating a control to be inserted according to the target application programming interface and the target parameters;
inserting the control to be inserted into the current display interface of the display device, and displaying the control to be inserted in the current display interface of the display device.
2. The method of claim 1, wherein the use phase comprises an application phase, wherein the obtaining the plurality of trigger conditions of the current display scene and determining the element to be displayed according to the plurality of trigger conditions and the use phase comprise:
If the current display scene does not exist in the history record of the display device, acquiring a plurality of trigger conditions of the current display scene;
and determining a first trigger condition meeting a first preset condition from the plurality of trigger conditions, and determining an element to be displayed corresponding to the first trigger condition.
3. The method of claim 1, wherein the use phase comprises a test phase, wherein the obtaining a plurality of trigger conditions of the current display scene and determining the element to be displayed according to the plurality of trigger conditions and the use phase comprise:
Acquiring a plurality of triggering conditions of the current display scene, and acquiring a plurality of input parameters in the current display scene;
And determining target input parameters matched with the trigger conditions from the input parameters according to the trigger conditions, and determining elements to be displayed corresponding to the target input parameters.
4. A method according to any of claims 1-3, wherein inserting the control to be inserted into and displaying the control to be inserted in a current display interface of the display device comprises:
determining the number of the controls to be inserted and the size of the controls to be inserted;
acquiring the size of a layout page of a display area of a current display interface of the display device, and calculating the length of a coverage area of the current display interface based on the size of the layout page of the display area;
Determining the display number of the current display interface according to the control size of the control to be inserted and the length of the coverage area of the current display interface;
and displaying the control to be inserted in the current display interface of the display interface according to the number of the controls to be inserted and the display number of the current display interface.
5. The method of claim 4, wherein displaying the control to be inserted in the current display interface of the display interface according to the number of controls of the control to be inserted and the number of displays of the current display interface, comprises:
Obtaining the number of preset column containers of the current display interface, and pre-inserting at least one column container into the current display interface according to the number of preset column containers to obtain a target column container, wherein the target column container is the column container with the minimum height;
Inserting the control to be inserted into the target column container, and repeating the step of obtaining the target column container;
When all the controls to be inserted are inserted into the display area, the control lengths corresponding to the controls to be inserted are obtained;
Determining the display number of the display areas according to the control length and the length of the coverage area of the current display interface;
and if the display number is smaller than the control number, scrolling the control to be inserted in the display area.
6. An information display device, characterized in that the device comprises:
The acquisition module is used for acquiring the use stage of the information display program;
the to-be-displayed element determining module is used for acquiring a current display scene of the display device and determining to-be-displayed elements according to the using stage and the current display scene, wherein the to-be-displayed element determining module comprises:
a first determining unit, configured to determine whether the current display scene exists in a history of the display device if the usage stage is an application stage;
A second determining unit, configured to determine whether the current display scene is a continuous trigger display scene if the current display scene exists in a history of the display device;
A third determining unit, configured to determine, according to a triggering sequence of a plurality of triggering conditions of the current display scene, a second triggering condition that meets a second preset condition among the plurality of triggering conditions if the current display scene is a continuous triggering display scene;
The second determining unit is used for determining the element to be displayed corresponding to the second triggering condition;
the determining module is used for determining a target application programming interface matched with the element to be displayed in a plurality of application programming interfaces of the display equipment and acquiring target parameters of the target application programming interface;
the control to be inserted generation module is used for generating a control to be inserted according to the target application programming interface and the target parameters;
and the display module is used for inserting the control to be inserted into the current display interface of the display device and displaying the control to be inserted in the current display interface of the display device.
7. An electronic device, the electronic device comprising:
A processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1 to 5.
8. A computer readable storage medium having stored therein program code which is callable by a processor to perform the method of any one of claims 1 to 5.
CN202310133538.9A 2023-02-16 2023-02-16 Information display method, information display device, electronic equipment and storage medium Active CN116431258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310133538.9A CN116431258B (en) 2023-02-16 2023-02-16 Information display method, information display device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310133538.9A CN116431258B (en) 2023-02-16 2023-02-16 Information display method, information display device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116431258A CN116431258A (en) 2023-07-14
CN116431258B true CN116431258B (en) 2024-04-19

Family

ID=87083794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310133538.9A Active CN116431258B (en) 2023-02-16 2023-02-16 Information display method, information display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116431258B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126307A (en) * 2016-07-15 2016-11-16 乐视控股(北京)有限公司 A kind of display packing and device
CN112748977A (en) * 2020-12-09 2021-05-04 北京梧桐车联科技有限责任公司 Method, device and system for displaying driving scene
CN113419800A (en) * 2021-06-11 2021-09-21 北京字跳网络技术有限公司 Interaction method, device, medium and electronic equipment
CN113778603A (en) * 2021-09-14 2021-12-10 珠海格力电器股份有限公司 Application interface adjusting method and device, electronic equipment and storage medium
CN115202790A (en) * 2022-07-19 2022-10-18 东软睿驰汽车技术(大连)有限公司 Display method and device of vehicle-mounted control, electronic equipment and readable storage medium
CN115509526A (en) * 2022-10-11 2022-12-23 广州市百果园信息技术有限公司 Control display method, device, equipment, storage medium and product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126307A (en) * 2016-07-15 2016-11-16 乐视控股(北京)有限公司 A kind of display packing and device
CN112748977A (en) * 2020-12-09 2021-05-04 北京梧桐车联科技有限责任公司 Method, device and system for displaying driving scene
CN113419800A (en) * 2021-06-11 2021-09-21 北京字跳网络技术有限公司 Interaction method, device, medium and electronic equipment
CN113778603A (en) * 2021-09-14 2021-12-10 珠海格力电器股份有限公司 Application interface adjusting method and device, electronic equipment and storage medium
CN115202790A (en) * 2022-07-19 2022-10-18 东软睿驰汽车技术(大连)有限公司 Display method and device of vehicle-mounted control, electronic equipment and readable storage medium
CN115509526A (en) * 2022-10-11 2022-12-23 广州市百果园信息技术有限公司 Control display method, device, equipment, storage medium and product

Also Published As

Publication number Publication date
CN116431258A (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN109408685B (en) Thinking guide graph display method and device
CN110597474B (en) Information processing method and electronic equipment
CN105812941A (en) Video playing method and device and electronic equipment
CN110225246B (en) Event script generation method and device, electronic equipment and computer readable storage medium
CN104808959B (en) Information processing method and electronic equipment
CN109045694B (en) Virtual scene display method, device, terminal and storage medium
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
US20170185422A1 (en) Method and system for generating and controlling composite user interface control
CN109544665A (en) Generation method, device and the storage medium of animation poster
CN105868246A (en) Picture display method and apparatus
WO2018226989A1 (en) Displaying images associated with apps based on app processing task progress statuses
CN109814867B (en) Virtual model building method and system
US20160118084A1 (en) Apparatus and method for calculating and virtually displaying football statistics
CN116431258B (en) Information display method, information display device, electronic equipment and storage medium
CN105739936B (en) A kind of user terminal control method and user terminal
CN106060634A (en) Method and device for displaying rolling subtitles
CN109710779A (en) Multimedia file intercepting method, device, equipment and storage medium
CN110597432B (en) Interface control method, device, computer readable medium and electronic equipment
CN104298426A (en) Method and device for displaying terminal application program APP information and mobile terminal
CN104063434A (en) Method and device for displaying search result page
CN115243107A (en) Method, device, system, electronic equipment and medium for playing short video
CN110737380B (en) Thinking guide graph display method and device, storage medium and electronic equipment
CN111199519B (en) Method and device for generating special effect package
CN114066547A (en) Resource display method and device, electronic equipment and medium
KR101918705B1 (en) Screen configuration method and screen configuration systema for reducing cognitive load

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant