Vehicle control information display method, device, equipment and storage medium
Patent Information
- Application Number
- CN202510420122.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2045-04-03
AI Technical Summary
然而,上述方法均不能实现用户在显示界面中自由方向上的滑动,且均需要预先设置多个信息控件,从而导致渲染过程较为复杂,进而导致车控应用程序性能较低
[0024]上述车控信息显示方法、装置、设备和存储介质,终端设备可响应于在显示界面中当前信息控件区域触发的拖拽操作,确定拖拽操作对应的位移;在检测到位移超出预设滑动区间的情况下,获取显示界面中待显示的车控信息对应的源数据;将待显示的车控信息对应的源数据映射至目标车控信息控件;其中,目标车控信息控件设置在当前信息控件区域对应的当前车控信息控件所属的Z次序容器中,Z次序容器中排列有两个车控信息控件;在显示界面显示目标车控信息控件关联的待显示的车控信息。采用该方法,一方面,终端设备可在确定用户针对显示界面中的当前信息控件区域触发的拖拽操作对应的位移(可以理解为手势滑动的位移)超出预设滑动区间的情况下,将待显示的车控信息对应的源数据映射到目标车控信息控件,并在显示界面显示目标车控信息控件关联的待显示的车控信息,这样,无需考虑拖拽操作对应的方向,可使得用户通过在车控应用程序对应的显示界面中自由方向上的滑动实现车控信息的切换;另一方面,由于目标车控信息控件为当前车控信息控件(当前信息控件区域对应的车控信息控件)所属的,且排列有两个车控信息控件的Z次序容器中,从而,不但可减少内存的占用,而且能够简化渲染的过程,进而,可提升车控应用程序的性能。
Smart Images

Figure CN120371190B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to a method, apparatus, device and storage medium for displaying vehicle control information. Background Technology
[0002] In the development of vehicle control applications, the display of multiple vehicle control information items is often encountered. Currently, the display of vehicle control information generally uses ScrollView (a hierarchical layout container that allows users to scroll and display more content than is actually displayed) and its subclasses as parent controls, containing multiple information controls as many as the data source. When a user's swipe operation is detected in the vertical / horizontal direction of the display interface, the next vehicle control information to be displayed is shown. Alternatively, three controls are placed in the ScrollView, with the middle control displaying the main vehicle control information and the left, right, or vertical controls displaying secondary vehicle control information. When a swipe operation is detected, the current swipe direction and the index of the swipe are obtained to calculate the next data source to be displayed, and the next vehicle control information to be displayed is shown based on the next data source. However, neither of the above methods allows users to swipe freely in any direction on the display interface, and both require the pre-setting of multiple information controls, resulting in a complex rendering process and consequently, low performance of the vehicle control application.
[0003] Therefore, for vehicle control applications, how to enable users to switch vehicle control information by swiping freely 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] This application provides a vehicle control information display method, device, equipment, and storage medium. For vehicle control applications, it not only allows users to switch vehicle control information by swiping freely in the corresponding display interface, but also improves the performance of vehicle control applications.
[0005] In a first aspect, embodiments of this application provide a method for displaying vehicle control information, the method comprising:
[0006] In response to a drag operation triggered in the current information control area of the display interface, determine the displacement corresponding to the drag operation;
[0007] If the displacement exceeds the preset sliding range, the source data corresponding to the vehicle control information to be displayed on the display interface is obtained;
[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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container;
[0009] The display interface shows the vehicle control information to be displayed that is associated with the target vehicle control information control.
[0010] In one embodiment, when the displacement is detected to exceed a preset sliding range, the source data corresponding to the vehicle control information to be displayed on the display interface is obtained, including: when the displacement is detected to exceed the 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 correspondence between multiple sliding directions corresponding to drag operations and multiple preset switching methods; and obtaining the source data corresponding to the vehicle control information to be displayed on the display interface based on the target switching method.
[0011] In one embodiment, the method further includes: acquiring view change information of the displayed vehicle control information 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, the at least one action including at least one of displacement, scaling, rotation, animation, and transition; and 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 view change information includes: reading a pre-configured configuration table for controlling view changes of the displayed vehicle control information; the configuration table includes at least one action type, class variables of each action, execution order, and execution logic; assigning 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.
[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 rules 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, the arrangement order of each vehicle control information control in the Z-order container is obtained based on the sorting rules of the vehicle control information controls in the control array, including: 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 pre-set control array; and obtaining the arrangement order of the vehicle control information controls in the Z-order container based on the first information, the second information and the sorting rules.
[0015] In one embodiment, the method further includes: obtaining 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, including: 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 and the second information are the same; setting the vehicle control information control as the second vehicle control information control in the Z-order container when the sorting rule is the first sorting rule and the first information and the second information are different; 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 and the second information are the same; and setting the vehicle control information control as the first vehicle control information control in the Z-order container when the sorting rule is the second sorting rule and the first information and the second information are different.
[0016] Secondly, embodiments of this application provide a vehicle control information display device, the device comprising:
[0017] The determination module is used 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.
[0018] The acquisition module is used to acquire the source data corresponding to the vehicle control information to be displayed on the display interface when the displacement is detected to exceed the preset sliding range.
[0019] The processing module is used to 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container;
[0020] The display module is used to display the vehicle control information to be displayed that is associated with the target vehicle control information control on the display interface.
[0021] Thirdly, embodiments of this application provide a terminal device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect.
[0022] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0023] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.
[0024] The aforementioned vehicle control information display method, device, equipment, and storage medium allow the terminal device to respond to a drag operation triggered in the current information control area of the display interface, determine the displacement corresponding to the drag operation, and, if the displacement exceeds a preset sliding range, acquire 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container; and display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. Using this method, on the one hand, the terminal device can map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control when the displacement (which can be understood as the displacement of the gesture swipe) corresponding to the drag operation triggered by the user on the current information control area in the display interface exceeds the preset swipe range. Then, it can display the vehicle control information associated with the target vehicle control information control on the display interface. In this way, there is no need to consider the direction of the drag operation, which allows the user to switch vehicle control information by swiping freely in 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 is arranged in the Z-order container of two vehicle control information controls, not only can the memory usage be reduced, but the rendering process can also be simplified, thereby improving the performance of the vehicle control application. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is a flowchart illustrating a vehicle control information display method provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the area division of a user interface provided in an embodiment of this application;
[0028] Figure 3 This is a flowchart illustrating another vehicle control information display method provided in an embodiment of this application;
[0029] Figure 4 This is a schematic diagram of the structure of a vehicle control information display device provided in an embodiment of this application;
[0030] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0032] The vehicle control information display method provided in the embodiments of this application will be described below.
[0033] Please see Figure 1 , Figure 1 This is a flowchart illustrating a vehicle control information display method provided in an embodiment of this application. This method can be executed by a terminal device. Figure 1 As shown, the method for displaying vehicle control information may include, but is not limited to, the following steps:
[0034] S101. In response to a drag operation triggered in the current information control area of the display interface, determine the displacement corresponding to the drag operation.
[0035] The display interface is the interface corresponding to the vehicle control application. That is, before step S101, the terminal device can also detect a selection operation on the vehicle control application in the user interface; the selection operation is used to instruct the vehicle control application to be launched; in response to the selection operation, the vehicle control application is launched and the interface corresponding to the vehicle control application is displayed.
[0036] Optionally, the selected operation can be a click (or touch) operation, voice operation, etc., entered by the user in the vehicle control application in the user interface, and there is no limitation here.
[0037] For example, the main page of the terminal device may display multiple icons, including one corresponding to the vehicle control application, such as icon 1. The user can click on icon 1, and the terminal device will respond to this click, launching the vehicle control application and displaying its interface. As another example, the main page of the terminal device may display multiple applications, including a vehicle control application named, for example, APP1. The user can then input the voice command "Open APP1" on the main page, and the terminal device will respond to this voice command, launching the vehicle control application and displaying its interface.
[0038] The information displayed in the current information control area of the display interface can be used as the current vehicle control information.
[0039] Optionally, before step S101, the terminal device may also detect a gesture input to the current vehicle control information displayed in the current information control area of the display interface; determine whether the operation corresponding to the gesture is a drag operation; and if it is determined that the operation corresponding to the gesture is a drag operation, execute step S101.
[0040] For example, the terminal device can use an enumeration method to classify user-input gestures. For instance, if the gesture has just begun to touch the current information control area on the display interface, the state at this point is recorded as "start"; if the gesture begins to slide, the state at this point is recorded as "slide," and the displacement during the slide is also recorded. The enumeration method for classifying these two states (start and slide) can be illustrated in the following code.
[0041] enum Status {
[0042] case noTouch / / Finger not in contact
[0043] case begin / / start
[0044] case slide(translation: CGSize) / / Slide, translation is an enumerated additional value that represents the sliding displacement. It is of type CGSize and represents the displacement in the x and y directions.
[0045] }
[0046] Afterwards, the terminal device can assign values to the enumeration during the gesture. For example, first, the user can set a member variable of type `@GestureState` in the view, named `gestureStatus`, whose type is the enumeration defined above. It should be noted that `@GestureState` allows the corresponding response function to be aware of the gesture, and `gestureStatus` will be set to its initial value when the gesture is completed. Then, the terminal device can determine whether the gesture operation is a drag operation by analyzing the input parameter value. For example, if the input parameter value is `first` (true), it indicates the first gesture: pressing. 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 indicates the second gesture: drag. In this case, the terminal device can assign the value of `gestureStatus` to `slide`, along with the displacement value, i.e., the `drag` attribute value.
[0047] S102. When the displacement is detected to exceed the preset sliding range, the source data corresponding to the vehicle control information to be displayed on the display interface is obtained.
[0048] 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] In other words, when the terminal device detects that the displacement exceeds the preset sliding range, it can obtain the source data corresponding to the vehicle control information to be displayed on the display interface. This can be done when the detected displacement is less than the minimum value (negative value) of the preset sliding range or greater than the maximum value (positive value) of the preset sliding range.
[0050] For example, the pseudocode corresponding to step S102 can be shown below.
[0051] If gesture.translation.width < minimum value of preset swipe range || gesture.translation.width > maximum value of preset swipe range {
[0052] Obtain the source data corresponding to the vehicle control information to be displayed on 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; wherein, the target vehicle control information control is set in the Z-order container to which the current vehicle control information control belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container.
[0055] In one optional implementation, the target vehicle control information control can 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, 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 belongs, and add a new vehicle control information control to the Z-order container; the new vehicle control information control is then used as the target vehicle control information control. In this case, the terminal device maps the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control by assigning the source data corresponding to the vehicle control information to be displayed to the new vehicle control information control.
[0056] In another optional implementation, the target vehicle control information control can be another information control in the Z-order container besides the current vehicle control information control corresponding to the current information control area. That is, 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, the terminal device maps the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control. This can be done by updating the source data associated with the currently displayed vehicle control information control to the source data associated with the vehicle control information of the other vehicle control information control in the Z-order container; and assigning the source data corresponding to the vehicle control information to be displayed to the other vehicle control information control.
[0057] In an optional implementation, prior to step S103, the terminal device may also create a Z-order container with two vehicle control information controls arranged in sequence. The specific creation process is described below.
[0058] S104. Display the vehicle control information to be displayed that is associated with the target vehicle control information control on the display interface.
[0059] In this embodiment, the terminal device can respond to a drag operation triggered in the current information control area of the display interface, determine the displacement corresponding to the drag operation; when the displacement exceeds a 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container; and display the vehicle control information to be displayed associated with the target vehicle control information control in the display interface. Using this method, on the one hand, the terminal device can map the source data corresponding to the vehicle control information to be displayed to the target vehicle control information control when the displacement (which can be understood as the displacement of the gesture swipe) corresponding to the drag operation triggered by the user on the current information control area in the display interface exceeds the preset swipe range. Then, it can display the vehicle control information associated with the target vehicle control information control on the display interface. In this way, there is no need to consider the direction of the drag operation, which allows the user to switch vehicle control information by swiping freely in 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 is arranged in the Z-order container of two vehicle control information controls, not only can the memory usage be reduced, but the rendering process can also be simplified, thereby improving the performance of the vehicle control application.
[0060] In one alternative implementation, Figure 1 In the vehicle control information display method shown, when the terminal device detects that the displacement exceeds a preset sliding range, it obtains the source data corresponding to the vehicle control information to be displayed on the display interface. This may include: determining the sliding direction corresponding to the drag operation when the displacement exceeds the preset sliding range; determining a target switching mode 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 correspondence between multiple sliding directions corresponding to drag operations and multiple preset switching modes; and obtaining the source data corresponding to the vehicle control information to be displayed on the display interface based on the target switching mode.
[0061] The drag operation can be performed in the following directions: left, right, up, down, or free direction.
[0062] In one optional implementation, the state switching configuration information includes a first preset switching mode corresponding to swiping left (i.e., swiping left) / swiping up, a second preset switching mode corresponding to swiping right (i.e., swiping right) / swiping down (swiping down), and a third preset switching mode corresponding to swiping in the free direction (swiping in the free direction).
[0063] Optionally, the terminal device may, based on preset rules, consider the free direction as left / up. In this case, the terminal device may use the first preset switching method as the third preset switching method. Alternatively, the terminal device may, based on preset rules, consider the free direction as right / down. In this case, the terminal device may use the second preset switching method as the third preset switching method.
[0064] The following is combined with Figure 2 This section provides examples of the preset rules. Please refer to [link / reference]. Figure 2 , Figure 2 This is a schematic diagram illustrating the area division of a user interface provided in an embodiment of this application. For example... Figure 2 As shown, the origin corresponds to the center of the user interface of the terminal device. The terminal device can determine the sliding direction of all drag operations in areas 2 and 3 except for drag operations in the directions of up, down, left, and right as upward; determine the sliding direction of all drag operations in areas 4 and 5 except for drag operations in the directions of up, down, left, and right as left; determine the sliding direction of all drag operations in areas 6 and 7 except for drag operations in the directions of up, down, left, and right as downward; and determine the sliding direction of all drag operations in areas 8 and 1 except for drag operations in the directions of up, down, left, and right as right.
[0065] In some embodiments, the terminal device may determine the target switching mode as a first preset switching mode. In this case, the terminal device, based on the target switching mode, obtains the source data corresponding to the vehicle control information to be displayed in the display interface. This may include: determining the current index of the source data of the displayed vehicle control information in the current information control area within its own source data array; incrementing the current index by 1 to obtain the updated current index; performing a modulo 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 retrieve source data from the source data array, or in other words, it can ensure that a source data can be retrieved from the source data array each time, thereby realizing the rotation of vehicle control information.
[0066] For example, suppose the source data array of the vehicle control information currently displayed in the information control area contains 5 source data, and suppose 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 add 1 to the current index to get the updated current index, i.e., 5+1=6. Then, perform a modulo operation on the updated current index 6 and the number of source data in the source data array 5 to get the target index of the source data corresponding to the vehicle control information to be displayed in the source data array as 6%5=1. In this case, the terminal device can obtain the source data corresponding to index 1 (denoted as source data 1) from the source data array 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 may determine the target switching mode as a second preset switching mode. In this case, the terminal device, based on the target switching mode, obtains the source data corresponding to the vehicle control information to be displayed in the display interface. This may include the following steps: the second preset switching mode may include: determining the current index of the source data of the displayed vehicle control information in the current information control area within its own source data array; subtracting 1 from the current index to obtain the updated current index; performing a modulo 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 retrieve source data from the source data array, or in other words, it can ensure that a source data can be retrieved from the source data array each time, thereby realizing the rotation of vehicle control information.
[0068] For example, suppose the source data array of the vehicle control information currently displayed in the information control area contains 5 source data, and suppose 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 subtract 1 from the current index to get the updated current index, i.e., 3-1=2. Then, perform a modulo operation on the updated current index 2 and the number of source data in the source data array 5 to get the target index of the source data corresponding to the vehicle control information to be displayed in the source data array as 2%5=2. In this case, the terminal device can obtain the source data corresponding to index 2 (denoted as source data 2) from the source data array and use source data 2 as the source data corresponding to the vehicle control information to be displayed.
[0069] Using this implementation method, the terminal device can select a target switching mode that matches the sliding direction corresponding to the drag operation from the pre-configured state switching configuration information; and based on the target switching mode, obtain the source data corresponding to the vehicle control information to be displayed on the display interface. In this way, the source data corresponding to the vehicle control information to be displayed can be quickly determined.
[0070] In one alternative implementation, 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. Specifically, the terminal device can control the view of the displayed vehicle control information in the current information control area based on displacement, acquiring 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, scaling, 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 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, the displacement information, scaling information, rotation information, animation information, and transition information 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 the control factor. For example, the displacement information of the displayed vehicle control information = displacement corresponding to the drag operation * control factor. The control factor can be determined by the terminal device based on business requirements.
[0073] Optionally, the scaling information of the displayed vehicle control information can be determined by the terminal device based on the displacement and scaling factor corresponding to the drag operation. For example, the scaling information of the displayed vehicle control information = drag operation? (i.e., whether the record has moved?) (displacement corresponding to the drag operation * scaling factor): 1.0. The scaling 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 and rotation factor corresponding to the drag operation. For example, the scaling information of the displayed vehicle control information = displacement corresponding to the drag operation * rotation factor. The rotation factor can be determined by the terminal device based on business requirements.
[0075] Optionally, the animated information and other dynamic information of the displayed vehicle control information can be determined by the terminal device based on the displacement corresponding to the drag operation.
[0076] Optionally, the transition information displayed in the vehicle control information may include positive and negative transitions. The transition information can be determined by the terminal device based on the displacement corresponding to the drag operation. For example, the transition information can be determined as shown in the following pseudocode.
[0077] If gesture.translation.width < minimum value of preset swipe range {
[0078] Negative transition
[0079] }
[0080] If gesture.translation.width > the maximum value of the preset swipe range {
[0081] Forward transition
[0082] }
[0083] In some embodiments, the terminal device controls the view of the displayed vehicle control information based on view change information, which may include: reading a pre-configured configuration table for controlling the view changes of the displayed vehicle control information; the configuration table includes at least one action type, class variables of each action, execution order, and execution logic; assigning 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] For example, users can pre-encapsulate the actions corresponding to the displayed vehicle control information into a parent action class, with each specific action being a subclass inheriting from this parent class. The parent action class includes the action type, action class variables, action execution logic, and action execution order. The action type could be, for example, scaling, rotation, or animation. The action class variables correspond to the action change information, such as displacement and scaling information. The action execution logic could be, for example, the specific transition action and triggering conditions. The execution order can be parallel, for example, assigning a number to each action with all actions having the same number; or it can be executed in a preset order, for example, assigning a number to each action, with larger numbers indicating later execution. The parent action class provides an abstract interface, while the specific actions are implemented in the subclasses. Then, during the process of reading the configuration table, each time a specific action is read, the terminal device can create a subclass object corresponding to that specific action. During the triggering process, the terminal device can assign view change information to the corresponding action's class variable; then, it reads the execution order of each subclass one by one, and calls the execution logic of each action according to the read execution order to control the view of the displayed vehicle control information.
[0085] In one 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. The Z-order container for the two vehicle control information controls can be created by the terminal device in the following way: creating two vehicle control information controls and deploying them in a control array; based on the sorting rules 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.
[0086] A single vehicle control information control includes user interface (UI) design and data display. This data can be text data, image data, etc.
[0087] Optionally, the size of a single vehicle control information control relative to 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 business requirements; a single vehicle control information control can be a class composed of composite controls or a simple control, etc., without any limitations here.
[0088] Since an array is a fixed-length data structure that stores the same data type, the stored data has a natural sequential order. In this application, the two vehicle control information controls need to have a primary and 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 rules of the vehicle control information controls in the control array. This may include: 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 pre-defined control array; and obtaining the arrangement order of the vehicle control information controls in the Z-order container based on the first information, the second information, and the sorting rules.
[0090] Optionally, the first information carried by each vehicle control information control may be the identification information corresponding to that vehicle control information control; the second information carried by the first vehicle control information control in the control array may 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. This may include: 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 and the second information are the same; setting the vehicle control information control as the second vehicle control information control in the Z-order container when the sorting rule is the first sorting rule and the first information and the second information are different; 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 and the second information are the same; and setting the vehicle control information control as the first vehicle control information control in the Z-order container when the sorting rule is the second sorting rule and the first information and the second information are different.
[0092] Optionally, the first sorting rule can be ascending order. That is, for each vehicle control information control, the terminal device can, if the sorting rule of the vehicle control information controls in the control array is ascending, 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, then set that vehicle control information control as the first vehicle control information control in the Z-order container. In this case, the terminal device can set the z-value of that vehicle control information control to a value greater than the first preset threshold. Alternatively, the terminal device can, if the sorting rule of the vehicle control information controls in the control array is ascending, 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, then set that vehicle control information control as the second vehicle control information control in the Z-order container. In this case, the terminal device can set the z-value of that vehicle control information control to a value less than the first preset threshold.
[0093] Optionally, the second sorting rule can be reverse order. That is, for each vehicle control information control, the terminal device can, if the sorting rule of the vehicle control information controls in the control array is reversed, 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, then set that vehicle control information control as the second vehicle control information control in the Z-order container. In this case, the terminal device can set the z-value of that vehicle control information control to a value less than the first preset threshold. Alternatively, the terminal device can, if the sorting rule of the vehicle control information controls in the control array is reversed, 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, then set that vehicle control information control as the first vehicle control information control in the Z-order container. In this case, the terminal device can set the z-value of that vehicle control information control to a value greater than the first preset threshold.
[0094] By adopting this implementation method, the terminal device can reduce memory usage and simplify the rendering process by creating a Z-order container with two vehicle control information controls arranged in a row, which in turn can improve the performance of the vehicle control application.
[0095] The vehicle control information display method provided in the embodiments of this application will be described in general below. Please refer to... Figure 3 , Figure 3 This is a flowchart illustrating another vehicle control information display method provided in an embodiment of this application. For example... Figure 3 As shown, the method for displaying vehicle control information may include, but is not limited to, the following steps:
[0096] S301. Create two vehicle control information controls and deploy them in a control array.
[0097] S302. Based on the sorting rules 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 alternative implementation, the relevant descriptions of steps S301 and S302 can be found in the foregoing description of the terminal device creating a Z-order container including two vehicle control information controls, and will not be repeated here.
[0099] S303. Create a configuration table corresponding to the view change information of the displayed vehicle control information.
[0100] 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 variable of each action, the execution order and execution logic, etc.
[0101] S304. In response to a drag operation triggered in the current information control area of the display interface, determine the displacement corresponding to the drag operation.
[0102] S305. When the displacement is detected to exceed the preset sliding range, the source data corresponding to the vehicle control information to be displayed on the display interface is obtained.
[0103] S306. 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container.
[0104] In an optional implementation, the relevant descriptions of steps S304 to S306 can be found in the descriptions of steps S101 to S103 above, and will not be repeated here.
[0105] S307. Based on displacement, obtain the view change information of the vehicle control information already displayed in the current information control area.
[0106] S308. Based on view change information, control the view of the displayed vehicle control information to remove the displayed vehicle control information.
[0107] In an optional implementation, the relevant descriptions of steps S307 and S308 can be found in the foregoing description of the terminal device controlling the view of the displayed vehicle control information in the current information control area, and will not be repeated here.
[0108] S309. Display the vehicle control information to be displayed that is associated with the target vehicle control information control on the display interface.
[0109] In this embodiment, on the one hand, by creating a Z-order container with two vehicle control information controls arranged in a row, the terminal device can not only reduce memory usage but also simplify the rendering process, thereby improving the performance of the vehicle control application. On the other hand, if the terminal device determines that the displacement (which can be understood as the displacement of a gesture swipe) corresponding to the drag operation triggered by the user on the current information control area in the display interface exceeds a preset swipe 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 on the display interface. In this way, there is no need to consider the direction corresponding to the drag operation, allowing the user to switch vehicle control information by swiping freely in the display interface corresponding to the vehicle control application.
[0110] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed 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 performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0111] Based on the same inventive concept, this application also provides a vehicle control information display device for implementing the vehicle control information display method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of the one or more vehicle control information display device embodiments provided below can be found in the limitations of the vehicle control information display method described above, and will not be repeated here.
[0112] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a vehicle control information display device provided in an embodiment of this application. Figure 4 As shown, the vehicle control information display device may include, but is not limited to:
[0113] The determination module 401 is used to 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.
[0114] The acquisition module 402 is used to acquire the source data corresponding to the vehicle control information to be displayed on the display interface when the displacement is detected to exceed the preset sliding range.
[0115] The processing module 403 is used to 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container;
[0116] Display module 404 is used 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 acquires the source data corresponding to the vehicle control information to be displayed on the display interface when the displacement exceeds the preset sliding range, it is specifically used to: determine the sliding direction corresponding to the drag operation when the displacement exceeds the preset sliding range; determine the target switching method matching 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 correspondence between the sliding directions corresponding to multiple drag operations and multiple preset switching methods; and acquire the source data corresponding to the vehicle control information to be displayed on the display interface based on the target switching method.
[0118] In one embodiment, the acquisition module 402 is further configured to acquire view change information of the displayed vehicle control information 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, scaling, 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 controls the view of the displayed vehicle control information based on view change information, it specifically performs the following steps: reads a pre-configured configuration table for controlling the view changes of the displayed vehicle control information; the configuration table includes at least one action type, class variables of each action, execution order, and execution logic; assigns the view change information to the corresponding action's class variables; and, based on the assigned class variables for each action and the execution order of each action, calls 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, which is used to create two vehicle control information controls and deploy the two vehicle control information controls in a control array; based on the sorting rules 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 obtains the arrangement order of each vehicle control information control in the Z-order container based on the sorting rules of the vehicle control information controls in the control array, it specifically performs the following: for each vehicle control information control, it obtains the first information carried by the vehicle control information control and the second information carried by the first vehicle control information control in the pre-defined control array; based on the first information, the second information, and the sorting rules, it obtains the arrangement order of the vehicle control information controls 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 specifically performs the following: when the sorting rule is the first sorting rule and the first information and the second information are the same, it sets 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 and the second information are different, it sets 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 and the second information are the same, it sets 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 and the second information are different, it sets the vehicle control information control as the first vehicle control information control in the Z-order container.
[0123] Each module in the aforementioned vehicle control information display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of the vehicle control device as software, so that the processor can call and execute the corresponding operations of each module.
[0124] In one exemplary embodiment, a new energy vehicle is provided, the internal structure of which can be shown in the following diagram. Figure 5 As shown, the new energy vehicle includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, 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 forms a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the new energy vehicle can be a touch layer covering the display screen, or it can be a button, trackball, or touchpad installed in the new energy vehicle.
[0125] Those skilled in the art will understand that Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the new energy vehicle to which the present application is applied. A specific 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 one exemplary embodiment, this application provides a new energy vehicle, including a memory and a processor, wherein the memory stores a computer program; when the processor executes the computer program, it implements the steps in the above-described vehicle control information display methods.
[0127] In one exemplary embodiment, this application provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the steps in the above-described vehicle control information display methods.
[0128] In one exemplary embodiment, this application provides a computer program product, including a computer program. When executed by a processor, the computer program implements the steps in the above-described vehicle control information display methods.
[0129] It should be noted that the data involved in this application (including but not limited to vehicle control information to be displayed, source data corresponding to the vehicle control information to be displayed, source data arrays, 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 must comply with relevant regulations.
[0130] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this 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), magnetic 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 take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0131] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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, they should be considered to be within the scope of this application.
[0132] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for displaying vehicle control information, characterized in that, The method includes: In response to a drag operation triggered in the current information control area of the display interface, the displacement corresponding to the drag operation is determined; If the displacement is detected to exceed the preset sliding range, the source data corresponding to the vehicle control information to be displayed in the display interface is obtained; The source data corresponding to the vehicle control information to be displayed is mapped 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container; The display interface displays the vehicle control information to be displayed, which is associated with the target vehicle control information control. The method further includes: Create two vehicle control information controls and deploy the two vehicle control information controls in a control array; Based on the sorting rules of the vehicle control information controls in the control array, the arrangement order of each vehicle control information control in the Z-order container is obtained, and two vehicle control information controls are arranged in the Z-order container according to the arrangement order.
2. The method according to claim 1, characterized in that, When the displacement is detected to exceed a preset sliding range, the process of acquiring the source data corresponding to the vehicle control information to be displayed on the display interface includes: If the displacement is detected to exceed the preset sliding range, the sliding direction corresponding to the drag operation is determined; From the state switching configuration information pre-configured for the Z-order container, a target switching method matching the sliding direction corresponding to the drag operation is determined; the state switching configuration information includes the correspondence between multiple sliding directions corresponding to drag operations and multiple preset switching methods; Based on the target switching method, the source data corresponding to the vehicle control information to be displayed in the display interface is obtained.
3. The method according to claim 1, characterized in that, The method further includes: Based on the displacement, view change information of the displayed vehicle control information in the current information control area is obtained; the view change information corresponds to at least one action of the displayed vehicle control information, and at least one of the actions includes displacement, scaling, rotation, animation, and transition. Based on the view change information, the view of the displayed vehicle control information is controlled.
4. The method according to claim 3, characterized in that, The control of the view of the displayed vehicle control information based on the view change information includes: Read a pre-configured configuration table for controlling the view changes of the displayed vehicle control information; the configuration table includes the action type of at least one action, the class variable of each action, the execution order, and the execution logic; Assign the view change information to the corresponding class variable of the action; Based on the assigned class variables corresponding to each action and the execution order of each action, the execution logic corresponding to each action is invoked to control the view of the displayed vehicle control information.
5. The method according to claim 1, characterized in that, The step of obtaining the arrangement order of each vehicle control information control in the Z-order container based on the sorting rules of the vehicle control information controls in the control array 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 pre-set control array; Based on the first information, the second information, and the sorting rule, the arrangement order of the vehicle control information controls in the Z-order container is obtained.
6. The method according to claim 5, characterized in that, The step of obtaining 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 includes: If the sorting rule is the first sorting rule and the first information is the same as the second information, the vehicle control information control is set 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, the vehicle control information control is set as the second vehicle control information control in the Z-order container; If the sorting rule is the second sorting rule and the first information is the same as the second information, the vehicle control information control is set as the second vehicle control information control in the Z-order container; If the sorting rule is the second sorting rule and the first information is different from the second information, the vehicle control information control is set as the first vehicle control information control in the Z-order container.
7. A vehicle control information display device, characterized in that, The device includes: The determination module is used 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. The acquisition module is used to acquire the source data corresponding to the vehicle control information to be displayed in the display interface when the displacement is detected to exceed the preset sliding range. The processing module is used to 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 belongs in the current information control area, and two vehicle control information controls are arranged in the Z-order container; The display module is used to display the vehicle control information to be displayed associated with the target vehicle control information control on the display interface; The device also includes; The creation and deployment module is used to create two vehicle control information controls and deploy the two vehicle control information controls in a control array; based on the sorting rules of the vehicle control information controls in the control array, the module obtains the arrangement order of each vehicle control information control in the Z-order container, and arranges the two vehicle control information controls in the Z-order container according to the arrangement order.
8. The apparatus according to claim 7, characterized in that, When the acquisition module acquires the source data corresponding to the vehicle control information to be displayed on the display interface when the displacement is detected to exceed the preset sliding range, it is specifically used for: If the displacement is detected to exceed the preset sliding range, the sliding direction corresponding to the drag operation is determined; From the state switching configuration information pre-configured for the Z-order container, a target switching method matching the sliding direction corresponding to the drag operation is determined; the state switching configuration information includes the correspondence between multiple sliding directions corresponding to drag operations and multiple preset switching methods; Based on the target switching method, the source data corresponding to the vehicle control information to be displayed in the display interface is obtained.
9. A terminal device, comprising a memory and a processor, wherein the memory stores 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 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Desktop management method and electronic equipment
CN118502624A
Icon-based user interfaces
US20130145317A1