Vehicle control information display method and device, equipment and storage medium
By responding to drag and drop operations in the vehicle control application and mapping the source data of vehicle control information to the target control, the problem of user free direction switching is solved and the performance of the application is improved.
Patent Information
- Application Number
- CN202510420122.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-25
AI Technical Summary
When the existing vehicle control application is swiped, it is impossible to switch information in the free direction, and the rendering process is complicated, resulting in low performance.
Determine the displacement in response to the drag operation. After exceeding the preset sliding interval, the source data of the vehicle control information is obtained and mapped to the target control. The target control is set in two controls arranged in the Z-order container, simplifying the rendering process.
It realizes the user's free direction of the vehicle control information switching in the display interface, reduces memory usage, and improves the performance of the vehicle control application.
Smart Images

Figure CN120371190A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technologies, and particularly to a vehicle control information display method, apparatus, device, and storage medium. Background Art
[0002] During the development of vehicle control applications, the problem of displaying multiple vehicle control information often arises. Currently, for the display of vehicle control information, generally, Scrollview (a hierarchical layout container that allows users to scroll and permits the display of more content than actually available) and its subclasses are used as the parent controls, and multiple information controls equal in number to the data source are placed therein. In the case where a user's sliding operation in the up / down or left / right direction on the display interface is detected, the next vehicle control information to be displayed is shown on the display interface; alternatively, three controls are placed in the Scrollview, where the middle control displays the main vehicle control information control, and the left / right or up / down controls display secondary vehicle control information. When a sliding operation is detected, by obtaining the current sliding direction and the index of the current slide, the next data source to be displayed is calculated and the next vehicle control information to be displayed is shown on the display interface based on the next data source to be displayed. However, the above methods cannot achieve free-direction sliding by the user on the display interface, and both require pre-setting multiple information controls, resulting in a relatively complex rendering process and thus a low performance of the vehicle control application.
[0003] Therefore, for vehicle control applications, how to enable the user to switch vehicle control information by freely sliding in the corresponding display interface while improving the performance of the vehicle control application has become an urgent problem to be solved. Summary of the Invention
[0004] The embodiments of this application provide a vehicle control information display method, apparatus, device, and storage medium. For vehicle control applications, it can not only enable the user to switch vehicle control information by freely sliding in the corresponding display interface, but also improve the performance of the vehicle control application.
[0005] In a first aspect, the embodiments of this application provide a vehicle control information display method, which includes:
[0006] Respond to a drag operation triggered in the current information control area on the display interface, and determine the displacement corresponding to the drag operation;
[0007] In the case where the displacement is detected to exceed a preset sliding interval, obtain the source data corresponding to the vehicle control information to be displayed on the display interface;
[0008] Map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container;
[0009] Display the vehicle control information to be displayed associated with the target vehicle control information control on the display interface.
[0010] In one embodiment, when it is detected that the displacement exceeds the preset sliding interval, obtaining the source data corresponding to the vehicle control information to be displayed on the display interface includes: when it is detected that the displacement exceeds the preset sliding interval, determining the sliding direction corresponding to the drag operation; determining, from the state switching configuration information pre-configured for the Z-order container, a target switching method that matches the sliding direction corresponding to the drag operation; the state switching configuration information includes the corresponding relationship between the sliding directions corresponding to multiple drag operations and multiple preset switching methods; based on the target switching method, obtaining the source data corresponding to the vehicle control information to be displayed on the display interface.
[0011] In one embodiment, the method further includes: obtaining view change information of the displayed vehicle control information displayed in the current information control area based on the displacement; the view change information corresponds to at least one action of the displayed vehicle control information, and the at least one action includes at least one of displacement, zoom, rotation, animation, and transition; controlling the view of the displayed vehicle control information based on the view change information.
[0012] In one embodiment, controlling the view of the displayed vehicle control information based on the view change information includes: reading a pre-configured configuration table for controlling the view change of the displayed vehicle control information; the configuration table includes the action type of at least one action, the class variables of each action, the execution order, and the execution logic; assigning the view change information to the class variables corresponding to the corresponding actions; based on the assigned class variables corresponding to each action and the execution order of each action, calling the execution logic corresponding to each action to control the view of the displayed vehicle control information.
[0013] In one embodiment, the method further includes: creating two vehicle control information controls and deploying the two vehicle control information controls in a control array; obtaining the arrangement order of each vehicle control information control in the Z-order container based on the sorting rule of the vehicle control information controls in the control array, and arranging the two vehicle control information controls in the Z-order container according to the arrangement order.
[0014] In one embodiment, based on the sorting rule of the vehicle control information controls in the control array, obtaining the arrangement order of each vehicle control information control in the Z-order container includes: for each vehicle control information control, obtaining the first information carried by the vehicle control information control and the second information carried by the first vehicle control information control in the preset control array; based on the first information, the second information, and the sorting rule, obtaining the arrangement order of the vehicle control information control in the Z-order container.
[0015] In one embodiment, the method further includes: based on the first information, the second information, and the sorting rule, obtaining the arrangement order of each vehicle control information control in the Z-order container, including: when the sorting rule is the first sorting rule and the first information is the same as the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container; when the sorting rule is the first sorting rule and the first information is different from the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is the same as the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is different from the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container.
[0016] In a second aspect, an embodiment of the present application provides a vehicle control information display device, and the device includes:
[0017] A determination module, configured to determine the displacement corresponding to the drag operation in response to a drag operation triggered in the current information control area in the display interface;
[0018] An acquisition module, configured to acquire the source data corresponding to the vehicle control information to be displayed in the display interface when it is detected that the displacement exceeds the preset sliding range;
[0019] A processing module, configured to map the source data corresponding to the vehicle control information to be displayed to a target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container;
[0020] A display module, configured to display the vehicle control information associated with the target vehicle control information control in the display interface.
[0021] In a third aspect, an embodiment of the present application provides a terminal device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the method in the first aspect are implemented.
[0022] Fourthly, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.
[0023] Fifthly, the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.
[0024] For the above vehicle control information display method, device, equipment and storage medium, the terminal device can determine the displacement corresponding to the drag operation in response to the drag operation triggered in the current information control area in the display interface; in the case of detecting that the displacement exceeds the preset sliding interval, obtain the source data corresponding to the vehicle control information to be displayed in the display interface; map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container; display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. By adopting this method, on the one hand, when the terminal device determines that the displacement corresponding to the drag operation triggered by the user in the current information control area in the display interface (which can be understood as the displacement of the gesture sliding) exceeds the preset sliding interval, it can map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control, and display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. In this way, regardless of the direction of the drag operation, the user can switch the vehicle control information by sliding in any direction on the display interface corresponding to the vehicle control application. On the other hand, since the target vehicle control information control belongs to the current vehicle control information control (the vehicle control information control corresponding to the current information control area), and there are two vehicle control information controls arranged in the Z-order container, not only can the memory occupancy be reduced, but also the rendering process can be simplified. Furthermore, the performance of the vehicle control application can be improved. Description of the Drawings
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0026] Figure 1 It is a schematic flowchart of a vehicle control information display method provided by an embodiment of the present application;
[0027] Figure 2 It is a schematic diagram of the area division of a user interface provided by an embodiment of the present application;
[0028] Figure 3 is a schematic flowchart of another vehicle control information display method provided by an embodiment of the present application;
[0029] Figure 4 is a schematic structural diagram of a vehicle control information display device provided by an embodiment of the present application;
[0030] Figure 5 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners
[0031] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] The vehicle control information display method provided by an embodiment of the present application will be described below.
[0033] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a vehicle control information display method provided by an embodiment of the present application. This method can be executed by a terminal device. As Figure 1 shown, the vehicle control information display method may include but is not limited to the following steps:
[0034] S101. Determine the displacement corresponding to the drag operation in response to a drag operation triggered in the current information control area on the display interface.
[0035] Among them, the display interface is the interface corresponding to the vehicle control application program. That is to say, before step S101, the terminal device may also detect a selection operation for the vehicle control application program in the user interface; this selection operation is used to indicate the start of the vehicle control application program; in response to this selection operation, the vehicle control application program is started, and the interface corresponding to the vehicle control application program is displayed.
[0036] Optionally, the selection operation may be a click (or touch) operation, a voice operation, etc. input by the user for the vehicle control application program in the user interface, which is not limited herein.
[0037] For example, multiple icons can be displayed on the main page of the terminal device. Among the multiple icons, there is an icon corresponding to the vehicle control application. For example, it is Icon 1. In this case, the user can input a click operation on Icon 1. In this situation, the terminal device can respond to the click operation, start the vehicle control application, and display the interface corresponding to the vehicle control application. For another example, multiple applications can be displayed on the main page of the terminal device. Among the multiple applications, there is a vehicle control application. The name of the vehicle control application is, for example, APP1. In this case, the user can input a voice command of "Open APP1" on the main page. In this situation, the terminal device can respond to the voice command, start the vehicle control application, and display the interface corresponding to the vehicle control application.
[0038] Among them, the information displayed in the current information control area in the display interface can become the current vehicle control information.
[0039] Optionally, before step S101, the terminal device can also detect a gesture input for the current vehicle control information displayed in the current information control area in the display interface; determine whether the operation corresponding to the gesture is a drag operation; and in the case where it is determined that the operation corresponding to the gesture is a drag operation, execute step S101.
[0040] Exemplarily, the terminal device can classify the gestures input by the user using an enumeration method. For example, if the gesture just touches the current information control area in the display interface, record the state at this time as start; if the gesture starts to slide, record the state at this time as slide, and record the displacement when sliding. Classifying the above two states (start and slide) using an enumeration method can be shown as the following code.
[0041] enum Status {
[0042] case noTouch / / Finger not touching
[0043] case begin / / Start
[0044] case slide(translation: CGSize) / / Slide, translation is the additional value of the enumeration, representing the sliding displacement. It is a CGSize type, representing the displacement in the x and y directions.
[0045] }
[0046] After that, the terminal device can assign an enumeration during the gesture occurrence. Exemplarily, first, the user can set a member variable of type @GestureState with a modifier for the view, named gestureStatus, and its type is the enumeration defined above. It should be noted that @GestureState enables the corresponding response function to be sensed when the gesture occurs, and when the gesture is completed, gestureStatus will be set to the initial value. After that, the terminal device can determine whether the gesture operation is a drag operation by analyzing the input parameter value (value). Exemplarily, if the input parameter value is first (true), it means that the corresponding is the first gesture: press. In this case, the terminal device can assign the value of gestureStatus to begin; if the input parameter value is second (true, let drag), it means that the corresponding is the second gesture: drag. In this case, the terminal device can assign the value of gestureStatus to slide and bring the displacement value, that is, the attribute value of drag.
[0047] S102. When it is detected that the displacement exceeds the preset sliding range, obtain the source data corresponding to the vehicle control information to be displayed in the display interface.
[0048] Among them, the preset sliding range is, for example, [-3, 3], which is set with the center of the user interface of the terminal device as the origin.
[0049] That is to say, when the terminal device detects that the displacement exceeds the preset sliding range and obtains the source data corresponding to the vehicle control information to be displayed in the display interface, it can be when it is detected that the displacement is less than the minimum value (negative value) corresponding to the preset sliding range, or the displacement is greater than the maximum value (positive value) corresponding to the preset sliding range, and obtain the source data corresponding to the vehicle control information to be displayed in the display interface.
[0050] Exemplarily, the pseudo-code corresponding to step S102 can be as follows.
[0051] if gesture.translation.width < the minimum value of the preset sliding range || gesture.translation.width > the maximum value of the preset sliding range {
[0052] Obtain the source data corresponding to the vehicle control information to be displayed in the display interface
[0053] }
[0054] S103. Map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control. Among them, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container.
[0055] In an alternative embodiment, the target vehicle control information control may be a newly added vehicle control information control in the Z-order container after removing the current vehicle control information control corresponding to the current information control area from the Z-order container. That is to say, after step S102, the terminal device can remove the current vehicle control information control from the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and add a new vehicle control information control in the Z-order container; use the new vehicle control information control as the target vehicle control information control. In this case, when the terminal device maps the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control, it may assign the source data corresponding to the vehicle control information to be displayed to the new vehicle control information control.
[0056] In another alternative embodiment, the target vehicle control information control may be another information control in the Z-order container other than the current vehicle control information control corresponding to the current information control area. That is to say, after step S102, the terminal device can use another vehicle control information control in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs as the target vehicle control information control. In this case, when the terminal device maps the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control, it may update the source data associated with the displayed vehicle control information corresponding to the current vehicle control information control to the source data corresponding to the vehicle control information associated with another vehicle control information control in the Z-order container; assign the source data corresponding to the vehicle control information to be displayed to the other vehicle control information control.
[0057] In an alternative embodiment, before step S103, the terminal device may also create a Z-order container in which two vehicle control information controls are arranged. Among them, the specific creation process will be described below.
[0058] S104. Display the vehicle control information to be displayed associated with the target vehicle control information control on the display interface.
[0059] In an embodiment of the present application, the terminal device may determine the displacement corresponding to the drag operation in response to the drag operation triggered in the current information control area of the display interface; in the case where the detected displacement exceeds the preset sliding range, obtain the source data corresponding to the vehicle control information to be displayed in the display interface; map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container; display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. By adopting this method, on the one hand, when the terminal device determines that the displacement corresponding to the drag operation (which can be understood as the displacement of the gesture sliding) triggered by the user in the current information control area of the display interface exceeds the preset sliding range, it can map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control and display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. In this way, regardless of the direction of the drag operation, the user can switch the vehicle control information by sliding in any direction on the display interface corresponding to the vehicle control application. On the other hand, since the target vehicle control information control belongs to the current vehicle control information control (the vehicle control information control corresponding to the current information control area), and there are two vehicle control information controls arranged in the Z-order container, not only can the memory occupancy be reduced, but also the rendering process can be simplified. Furthermore, the performance of the vehicle control application can be improved.
[0060] In an alternative embodiment, Figure 1 In the vehicle control information display method shown, when the terminal device detects that the displacement exceeds the preset sliding range and obtains the source data corresponding to the vehicle control information to be displayed in the display interface, it may include: when detecting that the displacement exceeds the preset sliding range, determining the sliding direction corresponding to the drag operation; determining, from the state switching configuration information pre-configured for the Z-order container, the target switching method that matches the sliding direction corresponding to the drag operation; the state switching configuration information includes the corresponding relationship between the sliding directions corresponding to multiple drag operations and multiple preset switching methods; based on the target switching method, obtaining the source data corresponding to the vehicle control information to be displayed in the display interface.
[0061] Wherein, the sliding direction corresponding to the drag operation may be left, right, up, down or in a free direction, etc.
[0062] In an alternative embodiment, the state switching configuration information includes a first preset switching method corresponding to left (i.e., left swipe) / up (up swipe), a second preset switching method corresponding to right (i.e., right swipe) / down (down swipe), and a third preset switching method corresponding to a free direction (free direction swipe).
[0063] Optionally, the terminal device may, based on a preset rule, consider the free direction as left / upward. In this case, the terminal device may use the first preset switching method as the third preset switching method. The terminal device may also, based on a preset rule, consider the free direction as right / downward. In this case, the terminal device may use the second preset switching method as the third preset switching method.
[0064] The following will give an example of the preset rule in conjunction with Figure 2 . Please refer to Figure 2 , Figure 2 which is a schematic diagram of the area division of a user interface provided by an embodiment of the present application. As Figure 2 shown, the origin corresponds to the center of the user interface of the terminal device. The terminal device may determine the sliding direction corresponding to other drag operations except for the drag operations in the due north, due south, due east, and due west directions in areas 2 and 3 as upward; determine the sliding direction corresponding to other drag operations except for the drag operations in the due north, due south, due east, and due west directions in areas 4 and 5 as leftward; determine the sliding direction corresponding to other drag operations except for the drag operations in the due north, due south, due east, and due west directions in areas 6 and 7 as upward; and determine the sliding direction corresponding to other drag operations except for the drag operations in the due north, due south, due east, and due west directions in areas 8 and 1 as rightward.
[0065] In some embodiments, when the terminal device determines that the target switching method is the first preset switching method, based on the target switching method, the terminal device may obtain the source data corresponding to the vehicle control information to be displayed in the display interface, including: determining the current index of the source data of the displayed vehicle control information in the source data array in the currently displayed information control area; adding 1 to the current index to obtain the updated current index; performing a remainder operation on the updated index and the number of source data in the source data array to obtain the target index of the source data corresponding to the vehicle control information to be displayed in the source data array; and obtaining the source data corresponding to the target index from the source data array as the source data corresponding to the vehicle control information to be displayed. In this way, the terminal device can cyclically obtain source data from the source data array, or rather, can ensure that a source data can be obtained from the source data array each time, so as to achieve the carousel of vehicle control information.
[0066] Exemplarily, assume that the source data array to which the source data of the displayed vehicle control information displayed in the current information control area belongs includes 5 pieces of source data, and assume that the current index of the source data of the displayed vehicle control information in the source data array is 5. Then, the terminal device can increment the current index by 1 to obtain the updated current index, that is, 5 + 1 = 6. After that, perform a remainder operation on the updated current index 6 and the number of source data in the source data array. The target index of the source data corresponding to the vehicle control information to be displayed in the source data array is 6 % 5 = 1. In this case, the terminal device can obtain the source data corresponding to index 1 from the source data array (denoted as source data 1), and use source data 1 as the source data corresponding to the vehicle control information to be displayed.
[0067] In some embodiments, the terminal device can determine that the target switching method is the second preset switching method. In this case, based on the target switching method, obtaining the source data corresponding to the vehicle control information to be displayed in the display interface may include: The second preset switching method may include the following steps: determining the current index of the source data of the displayed vehicle control information displayed in the current information control area in the source data array to which it belongs; decrementing the current index by 1 to obtain the updated current index; performing a remainder operation on the updated index and the number of source data in the source data array to obtain the target index of the source data corresponding to the vehicle control information to be displayed in the source data array; and obtaining the source data corresponding to the target index from the source data array as the source data corresponding to the vehicle control information to be displayed. In this way, the terminal device can cyclically obtain source data from the source data array, or rather, can ensure that a piece of source data can be obtained from the source data array each time, thereby realizing the carousel of vehicle control information.
[0068] Exemplarily, assume that the source data array to which the source data of the displayed vehicle control information displayed in the current information control area belongs includes 5 pieces of source data, and assume that the current index of the source data of the displayed vehicle control information in the source data array is 3. Then, the terminal device can decrement the current index by 1 to obtain the updated current index, that is, 3 - 1 = 2. After that, perform a remainder operation on the updated current index 2 and the number of source data in the source data array. The target index of the source data corresponding to the vehicle control information to be displayed in the source data array is 2 % 5 = 2. In this case, the terminal device can obtain the source data corresponding to index 2 from the source data array (denoted as source data 2), and use source data 2 as the source data corresponding to the vehicle control information to be displayed.
[0069] Adopting this implementation manner, the terminal device can obtain the target switching method that matches the sliding direction corresponding to the drag operation from the pre-configured state switching configuration information; and based on the target switching method, obtain the source data corresponding to the vehicle control information to be displayed in the display interface. In this way, the source data corresponding to the vehicle control information to be displayed can be quickly determined.
[0070] In an alternative embodiment, Figure 1 In the vehicle control information display method shown, the terminal device can also control the view of the displayed vehicle control information in the current information control area. Among them, the terminal device controls the view of the displayed vehicle control information in the current information control area, which may be based on displacement to obtain view change information of the displayed vehicle control information in the current information control area; the view change information corresponds to at least one action of the displayed vehicle control information, and the at least one action includes at least one of displacement, zoom, rotation, animation, and transition; based on the view change information, the view of the displayed vehicle control information is controlled.
[0071] In some embodiments, the view change information of the displayed vehicle control information can all be determined by the terminal device based on the displacement corresponding to the drag operation. The view change information may include, but is not limited to, displacement information, zoom information, rotation information, animation information, and transition information, etc., of the displayed vehicle control information.
[0072] Optionally, the displacement information of the displayed vehicle control information can be determined by the terminal device based on the displacement corresponding to the drag operation and a control factor. For example, the displacement information of the displayed vehicle control information = the displacement corresponding to the drag operation * the control factor. Among them, the control factor can be determined by the terminal device based on business requirements.
[0073] Optionally, the zoom information of the displayed vehicle control information can be determined by the terminal device based on the displacement corresponding to the drag operation and a zoom factor. For example, the zoom information of the displayed vehicle control information = the drag operation? (That is, whether it is moved as enumerated)? The zoom factor: 1.0. Among them, the zoom factor can be determined by the terminal device based on business requirements.
[0074] Optionally, the rotation information of the displayed vehicle control information can be determined by the terminal device based on the displacement corresponding to the drag operation and a rotation factor. For example, the zoom information of the displayed vehicle control information = the displacement corresponding to the drag operation * the rotation factor. Among them, the rotation factor can be determined by the terminal device based on business requirements.
[0075] Optionally, the animation information and other dynamic information, etc., of the displayed vehicle control information can all be determined by the terminal device based on the displacement corresponding to the drag operation.
[0076] Optionally, the transition information of the displayed vehicle control information may include forward transition and negative transition. The transition information can be determined by the terminal device based on the displacement corresponding to the drag operation. Exemplarily, the determination method of the transition information can be shown as the following pseudocode.
[0077] If gesture.translation.width < the minimum value of the preset sliding interval {
[0078] Negative transition
[0079] }
[0080] if the translation width of the gesture > the maximum value of the preset sliding interval {
[0081] Positive transition
[0082] }
[0083] In some embodiments, the terminal device controls the view of the displayed vehicle control information based on the view change information, which may include: reading a configuration table pre-configured for controlling the view change of the displayed vehicle control information; the configuration table includes the action types of at least one action, the class variables of each action, the execution order, and the execution logic; assigning the view change information to the class variables of the corresponding actions; and based on the assigned class variables of each action and the execution order of each action, calling the execution logic corresponding to each action to control the view of the displayed vehicle control information.
[0084] Exemplarily, the user can pre-encapsulate the actions corresponding to the displayed vehicle control information into an action parent class, and each specific action is a subclass inherited from the parent class. Among them, the action parent class includes the action type, the class variables of the action, the execution logic of the action, and the execution order of the action. Among them, the action type is, for example, the above-mentioned zooming, rotation, animation, etc. The class variables of the action correspond to the above-mentioned view change information, such as displacement information, zoom information, etc. The execution logic of the action is, for example, the specific actions of the transition, the trigger conditions, etc. The execution order of the actions can be that the actions are executed in parallel. For example, a number is set for each action, and the numbers corresponding to each action are the same; the execution order of the actions can also be executed in a preset order. For example, a number is set for each action, and the larger the number, the later the execution order of the corresponding action. The action parent class is used to provide an abstract interface, and the specific actions are implemented in the subclasses. After that, during the process of reading the configuration table, every time a specific action is read, the terminal device can create a subclass object corresponding to the specific action. During the process of triggering the action, the terminal device can assign the view change information to the class variables of the corresponding actions; then, read the execution order of the subclasses one by one, and call the execution logic of each action according to the read execution order to control the view of the displayed vehicle control information.
[0085] In an alternative implementation Figure 1In the vehicle control information display method shown, the terminal device can also create a Z-order container including two vehicle control information controls. Among them, the Z-order container of the two vehicle control information controls can be created by the terminal device in the following manner: create two vehicle control information controls, and deploy the two vehicle control information controls in a control array; based on the sorting rule of the vehicle control information controls in the control array, obtain the arrangement order of each vehicle control information control in the Z-order container, and arrange the two vehicle control information controls in the Z-order container according to the arrangement order.
[0086] Among them, a single vehicle control information control includes user interface (UI) design, data display, etc. The data can be text data, picture data, etc.
[0087] Optionally, the proportion of the size of a single vehicle control information control in the entire control area can be determined based on the UI design; the data display of a single vehicle control information control can be determined based on the service requirements; a single vehicle control information control can be a class composed of composite controls or a simple control, etc., which is not limited here.
[0088] Since an array is a data structure with a fixed length for storing data of the same data type, and the data stored in it has a natural order, and in this application, the two created vehicle control information controls need to have a primary-secondary relationship, therefore, the terminal device can create control data and deploy the two created vehicle control information controls in the control array.
[0089] In some embodiments, the terminal device obtains the arrangement order of each vehicle control information control in the Z-order container based on the sorting rule of the vehicle control information controls in the control array, which may include: for each vehicle control information control, obtain the first information carried by the vehicle control information control, and the second information carried by the first vehicle control information control in the preset control array; based on the first information, the second information, and the sorting rule, obtain the arrangement order of the vehicle control information control in the Z-order container.
[0090] Optionally, the first information carried by each vehicle control information control can be the identification information corresponding to the vehicle control information control; the second information carried by the first vehicle control information control in the control array can also be the identification information corresponding to the second information carried by the first vehicle control information control in the control array.
[0091] In some embodiments, the terminal device obtains the arrangement order of each vehicle control information control in the Z-order container based on the first information, the second information, and the sorting rule, which may include: when the sorting rule is the first sorting rule and the first information is the same as the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container; when the sorting rule is the first sorting rule and the first information is different from the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is the same as the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is different from the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container.
[0092] Optionally, the first sorting rule may be ascending order. That is, for each vehicle control information control, the terminal device may set the vehicle control information control as the first vehicle control information control in the Z-order container when the sorting rule of the vehicle control information controls in the control array is in ascending order and the first information carried by any vehicle control information control is the same as the second information carried by the first vehicle control information control in the control array. In this case, the terminal device may set the z value of the vehicle control information control to a value greater than the first preset threshold. The terminal device may also set the vehicle control information control as the second vehicle control information control in the Z-order container when the sorting rule of the vehicle control information controls in the control array is in ascending order and the first information carried by any vehicle control information control is different from the second information carried by the first vehicle control information control in the control array. In this case, the terminal device may set the z value of the vehicle control information control to a value less than the first preset threshold.
[0093] Optionally, the second sorting rule may be descending order. That is, for each vehicle control information control, the terminal device may set the vehicle control information control as the second vehicle control information control in the Z-order container when the sorting rule of the vehicle control information controls in the control array is in descending order and the first information carried by any vehicle control information control is the same as the second information carried by the first vehicle control information control in the control array. In this case, the terminal device may set the z value of the vehicle control information control to a value less than the first preset threshold. The terminal device may also set the vehicle control information control as the first vehicle control information control in the Z-order container when the sorting rule of the vehicle control information controls in the control array is in descending order and the first information carried by any vehicle control information control is different from the second information carried by the first vehicle control information control in the control array. In this case, the terminal device may set the z value of the vehicle control information control to a value greater than the first preset threshold.
[0094] With this embodiment, the terminal device can reduce the memory occupancy and simplify the rendering process by creating a Z-order container arranged with two vehicle control information controls. Furthermore, it is beneficial to improve the performance of the vehicle control application.
[0095] The vehicle control information display method provided by the embodiments of the present application will be described as a whole below. Please refer to Figure 3 , Figure 3 which is a schematic flowchart of another vehicle control information display method provided by the embodiments of the present application. As Figure 3 shown, the vehicle control information display method may include but is not limited to the following steps:
[0096] S301. Create two vehicle control information controls and deploy the two vehicle control information controls in a control array.
[0097] S302. Based on the sorting rule of the vehicle control information controls in the control array, obtain the arrangement order of each vehicle control information control in the Z-order container, and arrange the two vehicle control information controls in the Z-order container according to the arrangement order.
[0098] In an optional embodiment, the relevant descriptions of steps S301 and S302 can refer to the previous description about the terminal device creating a Z-order container including two vehicle control information controls, and will not be elaborated here.
[0099] S303. Create a configuration table corresponding to the view change information of the displayed vehicle control information.
[0100] Among them, the configuration table may include the action type of at least one action corresponding to the view change information of the displayed vehicle control information, the class variables of each action, the execution order, the execution logic, etc.
[0101] S304. In response to a drag operation triggered in the current information control area on the display interface, determine the displacement corresponding to the drag operation.
[0102] S305. When it is detected that the displacement exceeds the preset sliding interval, obtain the source data corresponding to the vehicle control information to be displayed on the display interface.
[0103] S306. Map the source data corresponding to the vehicle control information to be displayed to a target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and two vehicle control information controls are arranged in the Z-order container.
[0104] In an optional embodiment, the relevant descriptions of steps S304 to S306 can refer to the descriptions in the previous steps S101 to S103 respectively, and will not be elaborated here.
[0105] S307. Obtain view change information of the displayed vehicle control information displayed in the current information control area based on the displacement.
[0106] S308. Control the view of the displayed vehicle control information based on the view change information to remove the displayed vehicle control information.
[0107] In an alternative embodiment, for the relevant elaborations of steps S307 and S308, reference can be made to the foregoing related descriptions regarding the control of the view of the displayed vehicle control information in the current information control area by the terminal device, and details will not be repeated here.
[0108] S309. Display the to-be-displayed vehicle control information associated with the target vehicle control information control on the display interface.
[0109] In the embodiments of the present application, on the one hand, by creating a Z-order container arranged with two vehicle control information controls, the terminal device can not only reduce the memory occupation, but also simplify the rendering process. Furthermore, it is beneficial to improve the performance of the vehicle control application program. On the other hand, when the terminal device determines that the displacement corresponding to the drag operation triggered by the user for the current information control area in the display interface (which can be understood as the displacement of the gesture sliding) exceeds the preset sliding range, it maps the source data corresponding to the to-be-displayed vehicle control information to the target vehicle control information control, and displays the to-be-displayed vehicle control information associated with the target vehicle control information control on the display interface. In this way, regardless of the direction of the drag operation, the user can switch the vehicle control information by sliding in any direction on the display interface corresponding to the vehicle control application program.
[0110] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are displayed in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0111] Based on the same inventive concept, an embodiment of the present application further provides a vehicle control information display device for implementing the vehicle control information display method involved above. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the vehicle control information display device provided below can refer to the limitations on the vehicle control information display method in the above text, and will not be elaborated here.
[0112] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of a vehicle control information display device provided by an embodiment of the present application. As Figure 4 shown, the vehicle control information display device may include but is not limited to:
[0113] A determination module 401, configured to determine a displacement corresponding to a drag operation in response to a drag operation triggered in the current information control area on the display interface;
[0114] An acquisition module 402, configured to acquire source data corresponding to vehicle control information to be displayed on the display interface when it is detected that the displacement exceeds a preset sliding range;
[0115] A processing module 403, configured to map the source data corresponding to the vehicle control information to be displayed to a target vehicle control information control; wherein, the target vehicle control information control is set in a Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container;
[0116] A display module 404, configured to display the vehicle control information to be displayed associated with the target vehicle control information control on the display interface.
[0117] In one embodiment, when the acquisition module 402 is configured to acquire source data corresponding to vehicle control information to be displayed on the display interface when it is detected that the displacement exceeds a preset sliding range, it is specifically configured to: when it is detected that the displacement exceeds a preset sliding range, determine the sliding direction corresponding to the drag operation; determine a target switching method that matches the sliding direction corresponding to the drag operation from the state switching configuration information pre-configured for the Z-order container; the state switching configuration information includes the corresponding relationship between multiple sliding directions corresponding to drag operations and multiple preset switching methods; and acquire source data corresponding to vehicle control information to be displayed on the display interface based on the target switching method.
[0118] In one embodiment, the obtaining module 402 is further configured to obtain view change information of the displayed vehicle control information displayed in the current information control area based on displacement; the view change information corresponds to at least one action of the displayed vehicle control information, and the at least one action includes at least one of displacement, zoom, rotation, animation, and transition; the processing module 403 is further configured to control the view of the displayed vehicle control information based on the view change information.
[0119] In one embodiment, when the processing module 403 is configured to control the view of the displayed vehicle control information based on the view change information, it is specifically configured to: read a pre-configured configuration table for controlling the view change of the displayed vehicle control information; the configuration table includes the action types of at least one action, the class variables of each action, the execution order, and the execution logic; assign the view change information to the class variables of the corresponding actions; based on the assigned class variables corresponding to each action and the execution order of each action, call the execution logic corresponding to each action to control the view of the displayed vehicle control information.
[0120] In one embodiment, the device may further include a creation and deployment module, and the creation and deployment module is configured to create two vehicle control information controls and deploy the two vehicle control information controls in a control array; based on the sorting rule of the vehicle control information controls in the control array, obtain the arrangement order of each vehicle control information control in the Z-order container, and arrange the two vehicle control information controls in the Z-order container according to the arrangement order.
[0121] In one embodiment, when the creation and deployment module is configured to obtain the arrangement order of each vehicle control information control in the Z-order container based on the sorting rule of the vehicle control information controls in the control array, it is specifically configured to: for each vehicle control information control, obtain the first information carried by the vehicle control information control and the second information carried by the first vehicle control information control preset in the control array; based on the first information, the second information, and the sorting rule, obtain the arrangement order of the vehicle control information control in the Z-order container.
[0122] In one embodiment, when the creation and deployment module is used to obtain the arrangement order of each vehicle control information control in the Z-order container based on the first information, the second information, and the sorting rule, it is specifically used for: when the sorting rule is the first sorting rule and the first information is the same as the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container; when the sorting rule is the first sorting rule and the first information is different from the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is the same as the second information, setting the vehicle control information control as the second vehicle control information control in the Z-order container; when the sorting rule is the second sorting rule and the first information is different from the second information, setting the vehicle control information control as the first vehicle control information control in the Z-order container.
[0123] Each module in the above vehicle control information display device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of it, or can be stored in the memory in the vehicle control device in software form, so that the processor can call and execute the operations corresponding to the above respective modules.
[0124] In an exemplary embodiment, a new energy vehicle is provided, and its internal structure diagram can be as Figure 5 shown. The new energy vehicle includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the new energy vehicle is used to provide computing and control capabilities. The memory of the new energy vehicle includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the new energy vehicle is used for the processor to exchange information with external devices. The communication interface of the new energy vehicle is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a vehicle control information display method. The display unit of the new energy vehicle is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the new energy vehicle can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided in the new energy vehicle, etc.
[0125] Those skilled in the art can understand, Figure 5The structure shown is only a block diagram of some of the structures related to the solution of this application, and does not constitute a limitation on the new energy vehicle to which the solution of this application is applied. Specifically, the new energy vehicle may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0126] In an exemplary embodiment, the present application provides a new energy vehicle, including a memory and a processor, where the memory stores a computer program; when the processor executes the computer program, the steps in the above-mentioned vehicle control information display methods are implemented.
[0127] In an exemplary embodiment, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned vehicle control information display methods are implemented.
[0128] In an exemplary embodiment, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps in the above-mentioned vehicle control information display methods are implemented.
[0129] It should be noted that the data involved in this application (including but not limited to the vehicle control information to be displayed, the source data corresponding to the vehicle control information to be displayed, the source data array, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant regulations.
[0130] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0131] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in the present application.
[0132] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A vehicle control information display method, characterized in that The method includes: In response to a drag operation triggered in the current information control area of the display interface, determining the displacement corresponding to the drag operation; When it is detected that the displacement exceeds a preset sliding range, obtaining the source data corresponding to the vehicle control information to be displayed in the display interface; Mapping the source data corresponding to the vehicle control information to be displayed to a target vehicle control information control; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container; Displaying the vehicle control information to be displayed associated with the target vehicle control information control in the display interface.
2. The method according to claim 1, characterized in that, The step of, when it is detected that the displacement exceeds a preset sliding range, obtaining the source data corresponding to the vehicle control information to be displayed in the display interface includes: When it is detected that the displacement exceeds a preset sliding range, determining the sliding direction corresponding to the drag operation; Determining a target switching method that matches the sliding direction corresponding to the drag operation from the state switching configuration information pre-configured for the Z-order container; the state switching configuration information includes the corresponding relationships between the sliding directions corresponding to multiple drag operations and multiple preset switching methods; Based on the target switching method, obtaining the source data corresponding to the vehicle control information to be displayed in the display interface.
3. The method according to claim 1, wherein The method further includes: Based on the displacement, obtaining view change information of the displayed vehicle control information displayed in the current information control area; the view change information corresponds to at least one action of the displayed vehicle control information, and at least one of the at least one action includes at least one of displacement, zoom, rotation, animation, and transition; Controlling the view of the displayed vehicle control information based on the view change information.
4. The method according to claim 3, characterized in that, The step of controlling the view of the displayed vehicle control information based on the view change information includes: Reading a pre-configured configuration table for controlling the view change of the displayed vehicle control information; the configuration table includes the action types of at least one action, the class variables of each action, the execution order, and the execution logic; Assigning the view change information to the class variables corresponding to the corresponding actions; Based on the assigned class variables corresponding to each action and the execution order of each action, calling the execution logic corresponding to each action to control the view of the displayed vehicle control information.
5. The method according to claim 1, wherein The method further includes: Creating two vehicle control information controls and deploying the two vehicle control information controls in a control array; Based on the sorting rule of the vehicle control information controls in the control array, obtaining the arrangement order of each vehicle control information control in the Z-order container, and arranging the two vehicle control information controls in the Z-order container according to the arrangement order.
6. The method according to claim 5, wherein The step of, based on the sorting rule of the vehicle control information controls in the control array, obtaining the arrangement order of each vehicle control information control in the Z-order container includes: For each of the vehicle control information controls, obtain the first information carried by the vehicle control information control and the second information carried by the first vehicle control information control in the preset control array. Based on the first information, the second information, and the sorting rule, obtain the arrangement order of the vehicle control information controls in the Z-order container.
7. The method according to claim 6, characterized in that The obtaining the arrangement order of each of the vehicle control information controls in the Z-order container based on the first information, the second information, and the sorting rule includes: When the sorting rule is the first sorting rule and the first information is the same as the second information, set the vehicle control information control as the first vehicle control information control in the Z-order container. When the sorting rule is the first sorting rule and the first information is different from the second information, set the vehicle control information control as the second vehicle control information control in the Z-order container. When the sorting rule is the second sorting rule and the first information is the same as the second information, set the vehicle control information control as the second vehicle control information control in the Z-order container. When the sorting rule is the second sorting rule and the first information is different from the second information, set the vehicle control information control as the first vehicle control information control in the Z-order container.
8. A vehicle control information display device, characterized in that, The device includes: A determination module, configured to determine the displacement corresponding to the drag operation in response to a drag operation triggered in the current information control area of the display interface. An acquisition module, configured to obtain the source data corresponding to the vehicle control information to be displayed on the display interface when it is detected that the displacement exceeds a preset sliding range. A processing module, configured to map the source data corresponding to the vehicle control information to be displayed to a target vehicle control information control; wherein the target vehicle control information control is set in the Z-order container to which the current vehicle control information control corresponding to the current information control area belongs, and there are two vehicle control information controls arranged in the Z-order container. A display module, configured to display the vehicle control information associated with the target vehicle control information control on the display interface.
9. A terminal device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Desktop management method and electronic equipment
CN118502624A
Icon-based user interfaces
US20130145317A1
Devices and Methods for Navigating Between User Interfaces
US20160357404A1