Menu display method, device, computer device and storage medium of vehicle instrument
By dynamically adjusting the display of entry options and text lines in the car instrument, the problem that traditional instruments cannot be displayed in personalized manner is solved, dynamic content adjustments are achieved according to user needs, and user experience is improved.
Patent Information
- Application Number
- CN202310293368.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2043-03-23
AI Technical Summary
Traditional automotive instruments cannot dynamically adjust content according to users’ personalized display needs, resulting in displaying fixed pages and unable to meet personalized needs.
By determining the current page entry of the entry options and text lines selected in the instrument menu, in response to the user's page turn event, dynamically adjust the display of the target entry options and text lines, the separation of entry options and text lines is achieved, and the target entry options are displayed in the target entry options when the target text lines are visible.
It realizes dynamic adjustment of instrument content according to display needs, provides personalized variable menu display, and improves user experience.
Smart Images

Figure CN116301497B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle instruments, and particularly to a method, device, computer device, and storage medium for menu display of a vehicle instrument. Background Art
[0002] With the development of society, the automotive electronics market has maintained a relatively high growth rate. Among them, the in-vehicle information system has become the engine and growth hotspot of the automotive electronics market. The function of the vehicle instrument is to obtain and display the data in the in-vehicle information system.
[0003] In the traditional method, the content displayed on the vehicle instrument is pre-set and bound to the UI (User Interface) elements in the UI interface. When the user performs a pre-provided interaction operation, the instrument will present a fixed page content. In other words, the instrument displays fixed page content according to the user's operation and cannot display content based on personalized display requirements. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, device, computer device, computer-readable storage medium, and computer program product for menu display of a vehicle instrument that can dynamically adjust the display content of the instrument.
[0005] On the one hand, the present application provides a method for menu display of a vehicle instrument. The method includes:
[0006] Determine the selected entry option that is currently in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option;
[0007] In response to a page turning event triggered for the instrument menu, determine the target entry option to be displayed after the page turning action is performed according to the first current page to which the selected entry option currently belongs; determine the target text line to be displayed after the page turning action is performed according to the second current page to which the current text line belongs;
[0008] Determine the display state of the target text line, and when the display state of the target text line is a visible state, display the target text line within the target entry option after performing the page turning action.
[0009] In some embodiments, before the step of responding to a page turning event triggered for the instrument menu, the method includes:
[0010] Obtain the number of entry options to be displayed in each page;
[0011] Determining the target entry option to be displayed after the paging action is to be performed according to the first current page to which the selected entry option currently belongs, includes:
[0012] Determine the first current page to which the selected entry option currently belongs;
[0013] According to the number of entry options to be displayed in each page and the first current page, determine the first page range corresponding to the selected entry option;
[0014] Judge whether the selected entry option is within the first page range, and determine the target entry option to be displayed after the paging action is to be performed according to the judgment result.
[0015] In some embodiments, the judging whether the selected entry option is within the first page range, and determining the target entry option to be displayed after the paging action is to be performed, includes:
[0016] When it is judged that the selected entry option exceeds the first page range, determine the execution direction of the paging action;
[0017] When the execution direction of the paging action is the first direction, use the first entry option after the selected entry option in the first direction as the target entry option to be displayed after the paging action is to be performed;
[0018] When the execution direction of the paging action is the second direction, use the last entry option before the selected entry option in the second direction as the target entry option to be displayed after the paging action is to be performed.
[0019] In some embodiments, before responding to the paging event triggered for the instrument menu, the method includes:
[0020] Obtain the number of lines of text to be displayed in each page;
[0021] The determining the target text line to be displayed after the paging action is to be performed according to the second current page to which the current text line currently belongs, includes:
[0022] Determine the second current page to which the current text line currently belongs;
[0023] According to the number of lines of text to be displayed in each page and the second current page, determine the second page range corresponding to the current text line;
[0024] Judge whether the current text line is within the second page range, and determine the target text line to be displayed after the paging action is to be performed according to the judgment result.
[0025] In some embodiments, determining whether the current text line is within the range of the second page, and determining the target text line to be displayed after performing a page turning action according to the determination result includes:
[0026] When it is determined that the current text line exceeds the range of the second page, determining the execution direction of the page turning action;
[0027] When the execution direction of the page turning action is the first direction, using the first text line after the current text line in the first direction as the target text line to be displayed after performing the page turning action;
[0028] When the execution direction of the page turning action is the second direction, using the last text line before the current text line in the second direction as the target text line to be displayed after performing the page turning action.
[0029] In some embodiments, the method further includes:
[0030] In the case where the display state of the target text line is an invisible state, after performing the page turning action, displaying the next text line of the target text line within the target entry option.
[0031] On the other hand, the present application also provides a menu display device for a vehicle instrument. The device includes:
[0032] A determination module, configured to determine a selected entry option that is currently displayed and in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option;
[0033] A response module, configured to respond to a page turning event triggered for the instrument menu, determine a target entry option to be displayed after performing a page turning action according to the first current page to which the selected entry option currently belongs; determine a target text line to be displayed after performing the page turning action according to the second current page to which the obtained current text line currently belongs;
[0034] A display module, configured to determine the display state of the target text line, and in the case where the display state of the target text line is a visible state, display the target text line within the target entry option after performing the page turning action.
[0035] In some embodiments, the device further includes an option acquisition module, configured to acquire the number of item options to be displayed in each page; the response module is further configured to determine the first current page to which the selected item option currently belongs; according to the number of item options to be displayed in each page and the first current page, determine a first page range corresponding to the selected item option; determine whether the selected item option is within the first page range, and determine the target item option to be displayed after the page turning action is performed according to the determination result.
[0036] In some embodiments, the response module is further configured to determine the execution direction of the page turning action when it is determined that the selected item option exceeds the first page range; when the execution direction of the page turning action is the first direction, use the first item option located after the selected item option in the first direction as the target item option to be displayed after the page turning action is performed; when the execution direction of the page turning action is the second direction, use the last item option located before the selected item option in the second direction as the target item option to be displayed after the page turning action is performed.
[0037] In some embodiments, the device further includes a text line acquisition module, configured to acquire the number of text lines to be displayed in each page; the response module is further configured to determine the second current page to which the current text line currently belongs; according to the number of text lines to be displayed in each page and the second current page, determine a second page range corresponding to the current text line; determine whether the current text line is within the second page range, and determine the target text line to be displayed after the page turning action is performed according to the determination result.
[0038] In some embodiments, the response module is further configured to determine the execution direction of the page turning action when it is determined that the current text line exceeds the second page range; when the execution direction of the page turning action is the first direction, use the first text line located after the current text line in the first direction as the target text line to be displayed after the page turning action is performed; when the execution direction of the page turning action is the second direction, use the last text line located before the current text line in the second direction as the target text line to be displayed after the page turning action is performed.
[0039] In some embodiments, the device further includes an adjustment module, configured to, when the display state of the target text line is an invisible state, after performing the page turning action, display the next text line of the target text line within the target item option.
[0040] On the other hand, the present application also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned menu display method for a vehicle instrument are implemented.
[0041] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the above-mentioned menu display method for a vehicle instrument are implemented.
[0042] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned menu display method for a vehicle instrument are implemented.
[0043] For the above-mentioned menu display method, device, computer device, storage medium, and computer program product of the vehicle instrument, by determining the selected entry option that is currently in a selected state in the instrument menu and determining the current text line displayed within the selected entry option, when the user triggers a page-turning action, in response to the page-turning event triggered for the instrument menu, based on the first current page to which the selected entry option currently belongs, the target entry option to be displayed after the page-turning action is determined, and based on the second current page to which the obtained current text line currently belongs, the target text line to be displayed after the page-turning action is determined, it realizes the separation of the entry options and text lines displayed in the instrument menu, combines the display state of the target text line, and when the display state of the target text line is a visible state, after performing the page-turning action, the target text line is displayed within the target entry option. Thus, it can dynamically adjust the display content according to the display requirements and realize a personalized variable menu. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is an application environment diagram of the menu display method for a vehicle instrument in an embodiment;
[0045] Figure 2 It is a flowchart of the menu display method for a vehicle instrument in an embodiment;
[0046] Figure 3 It is a schematic diagram of the interface for displaying instrument display entry options in an embodiment;
[0047] Figure 4 It is a flowchart of determining the target entry option in an embodiment;
[0048] Figure 5 It is a flowchart of determining the display state of the target text line in an embodiment;
[0049] Figure 6Schematic flowchart for determining a target text line in an embodiment;
[0050] Figure 7 Block diagram of a menu display device for a vehicle instrument in an embodiment;
[0051] Figure 8 Internal structure diagram of an in-vehicle terminal in an embodiment. Detailed implementation manners
[0052] 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.
[0053] The menu display method for a vehicle instrument provided by an embodiment of the present application can be applied to an application environment as shown in Figure 1 The vehicle 102 is provided with various systems, such as a power system, a steering system, etc. Each system executes its respective functions through its corresponding control unit (Electronic Control Unit, ECU). In order to facilitate the cooperation of each system, a vehicle control unit (VCU) is usually provided on the vehicle 102 to manage the operation of each system.
[0054] An in-vehicle terminal 104 is also provided on the vehicle 102, also known as an in-vehicle T-BOX (Telematics Box, remote communication terminal). As a front-end device for vehicle monitoring and management, it communicates with each controller through a CAN (Controller Area Network) bus, and can obtain vehicle information such as real-time fuel consumption, engine temperature, engine speed, vehicle driving mileage, current vehicle speed, intake pressure, throttle opening, air flow, and GPS (Global Positioning System) position in real time, and receive and execute instructions sent by the vehicle controller.
[0055] The in-vehicle terminal 104 has a certain storage capacity and can locally store the operation data of the vehicle in the recent period of time, such as various data included when displaying the instrument menu.
[0056] The in-vehicle terminal 104 also has an Internet connection function and can be connected to the server 106 for communication. The in-vehicle terminal 104 and the server 106 can be directly or indirectly connected through a wired or wireless communication method, and the present application does not limit this here.
[0057] The in-vehicle terminal 104 is usually also provided with an instrument for forming a visually visible picture for human-machine interaction with the personnel inside the vehicle. The display screen of the instrument can be a liquid crystal display screen, an electronic ink display screen, or the like.
[0058] Among them, the server 106 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, security services, and big data and artificial intelligence platforms.
[0059] In some embodiments, as Figure 2 shown, a method for displaying a menu of a vehicle instrument is provided. Taking the in-vehicle terminal in Figure 1 as an example, the method includes the following steps:
[0060] Step S202, determine the selected entry option that is currently displayed and in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option.
[0061] Among them, the entry option is used to organize the content displayed in the instrument menu according to certain rules, so that the displayed content presents a certain pattern. For example, the entry option can be a long strip-shaped selection box control, so that the content presented in the instrument menu is arranged in rows of entries.
[0062] As Figure 3 shown, entry option 1 and entry option 2 are displayed in the instrument menu 302, and the two entry options are arranged in rows. Of course, the display form of the entry option can be determined according to actual needs. For example, it can also be circular or arranged in columns, etc.
[0063] In the embodiments of the present application, the entry option and the text line are separated. The entry option is edited and controlled through a selection box control, and the selection box control corresponding to the entry option covers the text line. The text line is edited and controlled through a text display control. Usually, the number of entry options is the same as the number of text lines.
[0064] In the instrument menu, the user can touch, click, or press a button, etc., among at least one entry option currently displayed, to trigger one of the entry options, and then the triggered entry option changes to a selected state, and the selected entry option is called the selected entry option. The entry option is not used for text display, and functions such as changing the color of the text can be realized through the selection box control. When the entry option is not selected, the unselected entry option can be faded, blurred, or presented with a transparent appearance effect.
[0065] It should be noted that compared with the text lines in the display state, when the display state of a text line is the invisible state, the text line can be regarded as non-existent; and each item option actually exists and occupies a certain range on the page.
[0066] Specifically, in response to a trigger operation by the user on any one of the item options displayed in the instrument menu, the vehicle-mounted terminal determines the triggered item option as the selected item option, and the selected item option is in the selected state. The vehicle-mounted terminal determines the current text line displayed within the selected item option, including: determining the text display control located at the same position as the selection box control corresponding to the selected item option; and taking the text line corresponding to the text display control as the current text line displayed within the selected item option.
[0067] Step S204, in response to a page-turning event triggered for the instrument menu, determine the target item option to be displayed after the page-turning action is performed according to the first current page to which the selected item option currently belongs; and determine the target text line to be displayed after the page-turning action is performed according to the second current page to which the current text line belongs.
[0068] Among them, the user can perform page-turning on the instrument menu. When the vehicle-mounted terminal detects a page-turning action triggered by the user, it generates a page-turning event for the instrument menu, and in response to this page-turning event, determines the target item option and the target text line that the instrument menu will display after the page-turning action is performed. The selection box control corresponding to the target item option covers the target text line.
[0069] Among them, the page-turning actions triggered by the user include but are not limited to at least one of the following: triggering an up page-turning or down page-turning, or a left page-turning or right page-turning action through a physical button or a virtual button on the instrument; performing a page-turning action by maintaining a single-point or multi-point touch on the instrument display screen and sliding up or down, or sliding left or right.
[0070] Among them, the first current page to which the selected item option currently belongs refers to which page the selected item option currently belongs to within the page range composed of multiple item options, and this page is called the first current page. In some embodiments, the first current page to which the selected item option currently belongs is related to the total number of item options set and the number of item options to be displayed on each page.
[0071] Specifically, in response to a page-turning event triggered for the instrument menu, the vehicle-mounted terminal determines the first current page to which the selected item option currently belongs, including: the vehicle-mounted terminal determines the first current page to which the selected item option currently belongs according to the total number of item options set and the number of item options to be displayed on each page.
[0072] In some embodiments, the in-vehicle terminal determines the target item option to be displayed after the paging action is to be executed according to the first current page to which the selected item option currently belongs, including: judging whether a paging action needs to be executed according to the first current page to which the selected item option currently belongs; in the case where a paging action does not need to be executed, directly determining the target item option based on the item options adjacent to the selected item option and displaying it.
[0073] Since a paging action does not need to be executed, the way of directly determining the target item option and displaying it can be to change the target item option to the selected state, while the selected item option is restored to the unselected state.
[0074] In some embodiments, in the case where a paging action needs to be executed, the in-vehicle terminal further determines the execution direction of the paging action, and determines the target item option to be displayed after the paging action is to be executed according to the execution direction of the paging action.
[0075] In some embodiments, the in-vehicle terminal responds to a paging event triggered for the instrument menu and determines the second current page to which the current text line currently belongs, including: the in-vehicle terminal determines the second current page to which the current text line currently belongs according to the total number of text lines set and the number of text lines to be displayed on each page.
[0076] In some embodiments, the in-vehicle terminal determines the target text line to be displayed after the paging action is to be executed according to the obtained second current page to which the current text line currently belongs, including: judging whether a paging action needs to be executed according to the second current page to which the current text line currently belongs; in the case where a paging action does not need to be executed, directly determining the target text line based on the text lines adjacent to the current text line and displaying it.
[0077] Since a paging action does not need to be executed, the way of directly determining the target text line and displaying it can be to change the target text line to the visible state, while the current text line is restored to the invisible state.
[0078] In some embodiments, in the case where a paging action needs to be executed, the in-vehicle terminal further determines the execution direction of the paging action, and determines the target text line to be displayed after the paging action is to be executed according to the execution direction of the paging action.
[0079] It should be noted that the above terms "first current page" and "second current page" are used to describe the page to which the selected item option currently belongs and the page to which the current text line currently belongs respectively, and the different pages are distinguished by the terms "first" and "second". However, these pages should not be restricted by these terms. These terms are only used to distinguish one page from another. For example, the first current page can be called the second current page, and similarly, the second current page can be called the first current page, without departing from the scope of the various described embodiments, but they are not the same page unless the context clearly indicates otherwise. Similar situations also include the first page range and the second page range, the first direction and the second direction, etc.
[0080] Step S206: Determine the display state of the target text line, and when the display state of the target text line is the visible state, display the target text line within the target item option after performing a page turning action.
[0081] Among them, the display state of the text line includes the visible state and the invisible state.
[0082] Since the display of the item option and the text line in this application are independent of each other, and the selection box control and the text display control are logically associated, after determining the target item option, it is equivalent to determining the display position of the text line. However, after the vehicle-mounted terminal determines the target text line, it still needs to further determine whether the target text line is finally displayed according to the display state of the target text line.
[0083] In some embodiments, the vehicle-mounted terminal determines the display state of the target text line, including: the vehicle-mounted terminal obtains the current instrument display requirement of the vehicle; among them, the instrument display requirement can be determined based on one or more of the vehicle driving state, power supply state, function usage state, or fault condition, etc.; determine the display state of the target text line according to the instrument display requirement.
[0084] When the display state of the target text line is the visible state, the vehicle-mounted terminal displays the target text line within the target item option after performing a page turning action. Specifically, the text display control corresponding to the target text line is updated to the same position as the selection box control corresponding to the target item option, and the selection box control corresponding to the target item option covers the target text line for display.
[0085] When the display state of the target text line is the invisible state, the vehicle-mounted terminal cancels the display of the target text line, and after performing a page turning action, displays the next text line of the target text line within the target item option, achieving the effect of replacement display.
[0086] In the above method for menu display of the vehicle instrument, by determining the selected item option in the currently displayed and selected state in the instrument menu, and determining the current text line displayed within the selected item option, when the user triggers a page-turning action, in response to the page-turning event triggered for the instrument menu, based on the first current page to which the selected item option currently belongs, determine the target item option to be displayed after the page-turning action is executed, and based on the second current page to which the obtained current text line currently belongs, determine the target text line to be displayed after the page-turning action is executed, separating the item options and text lines displayed in the instrument menu, and combining the display state of the target text line, and when the display state of the target text line is the visible state, display the target text line within the target item option after the page-turning action is executed. Thus, the display content can be dynamically adjusted according to the display requirements, realizing a personalized variable menu.
[0087] In some embodiments, before the vehicle-mounted terminal responds to the page-turning event triggered for the instrument menu, the above method includes: obtaining the number of item options to be displayed in each page, that is, the number of items displayed per page. The number of item options to be displayed in each page is usually preset. For example, it is preset that 3 item options are displayed in each page, etc.
[0088] Correspondingly, determining the target item option to be displayed after the page-turning action is executed based on the first current page to which the selected item option currently belongs includes: determining the first current page to which the selected item option currently belongs; determining the first page range corresponding to the selected item option according to the number of item options to be displayed in each page and the first current page; determining whether the selected item option is within the first page range, and determining the target item option to be displayed after the page-turning action is executed according to the judgment result.
[0089] Specifically, the vehicle-mounted terminal determines the first current page to which the selected item option currently belongs, and determines the first page range corresponding to the selected item option according to the number of item options to be displayed in each page and the first current page. Exemplarily, when the number of items displayed per page is N items and the first current page to which the selected item option currently belongs is the Mth page, the first page range corresponding to the selected item option is (M - 1)*N + 1 to M*N. The vehicle-mounted terminal then determines whether the selected item option is within the first page range, and determines the target item option to be displayed after the page-turning action is executed according to the judgment result. Thus, the target item option to be displayed can be quickly determined through a simple logical sequence judgment, realizing the dynamic control of the variable menu.
[0090] In some embodiments, determining whether the selected item option is within the range of the first page, and determining the target item option to be displayed after the page turning action is to be performed according to the determination result, includes: when it is determined that the selected item option exceeds the range of the first page, determining the execution direction of the page turning action; when the execution direction of the page turning action is the first direction, using the first item option located after the selected item option in the first direction as the target item option to be displayed after the page turning action is performed.
[0091] For example, taking the first direction as turning downwards as an example, when the vehicle-mounted terminal determines that the selected item option is within the range of the first page, there is no need to perform a page turning action, and directly select the next item option as the target item option; otherwise, a page turning action needs to be performed, and after performing the page turning, select the first item option as the target item option.
[0092] When the execution direction of the page turning action is the second direction, using the last item option located before the selected item option in the second direction as the target item option to be displayed after the page turning action is performed.
[0093] For example, taking the second direction as turning upwards as an example, when the vehicle-mounted terminal determines that the selected item option is within the range of the first page, there is no need to perform a page turning action, and directly select the previous item option as the target item option; otherwise, a page turning action needs to be performed, and after performing the page turning, select the last item option as the target item option.
[0094] In the above embodiments, by simply judging the logical order, the target item option to be displayed is quickly determined, realizing the dynamic control of the variable menu.
[0095] In some embodiments, before responding to the page turning event triggered for the instrument menu, the method includes: obtaining the number of text lines required to be displayed in each page, that is, the number of lines displayed per page. The number of text lines required to be displayed in each page is usually preset. For example, it is preset that each page displays 3 text lines, etc.
[0096] Correspondingly, determining the target text line to be displayed after the page turning action is to be performed according to the obtained second current page to which the current text line belongs, includes: determining the second current page to which the current text line belongs; determining the second page range corresponding to the current text line according to the number of text lines required to be displayed in each page and the second current page; judging whether the current text line is within the second page range, and determining the target text line to be displayed after the page turning action is to be performed according to the judgment result.
[0097] Specifically, the in-vehicle terminal determines the second current page to which the current text line currently belongs, and determines the second page range corresponding to the current text line according to the number of item options to be displayed in each page and the second current page. Exemplarily, when the number of items displayed per page is N and the second current page to which the current text line currently belongs is the Mth page, the second page range corresponding to the current text line is (M - 1)*N + 1 to M*N. The in-vehicle terminal then determines whether the current text line is within the second page range, and determines the target text line to be displayed after performing the page turning action according to the judgment result. Thus, the target text line to be displayed can be quickly determined through a simple logical sequence judgment, realizing the dynamic control of the variable menu.
[0098] In some embodiments, determining whether the current text line is within the second page range and determining the target text line to be displayed after performing the page turning action according to the judgment result includes: when it is determined that the current text line exceeds the second page range, determining the execution direction of the page turning action; when the execution direction of the page turning action is the first direction, using the first text line after the current text line in the first direction as the target text line to be displayed after performing the page turning action.
[0099] For example, taking the first direction as turning downwards as an example, when the in-vehicle terminal determines that the current text line is within the second page range, there is no need to perform the page turning action, and the next text line is directly selected as the target text line; otherwise, the page turning action needs to be performed, and the first text line is selected as the target text line after performing the page turning.
[0100] When the execution direction of the page turning action is the second direction, using the last text line before the current text line in the second direction as the target text line to be displayed after performing the page turning action.
[0101] For example, taking the second direction as turning upwards as an example, when the in-vehicle terminal determines that the current text line is within the second page range, there is no need to perform the page turning action, and the previous text line is directly selected as the target text line; otherwise, the page turning action needs to be performed, and the last text line is selected as the target text line after performing the page turning.
[0102] In the above embodiments, the target item option to be displayed is quickly determined through a simple logical sequence judgment, realizing the dynamic control of the variable menu.
[0103] In a specific example, the menu display method of the vehicle instrument provided according to the embodiments of the present application can be used to implement a variable menu of the instrument. Exemplarily, the in-vehicle terminal can set a checkbox control and a text display control in the application of the instrument, which are respectively used for the selection control of item options and the selection control of text lines. Among them, a logical association is made between the checkbox control and the text display control, so that the display content can be dynamically adjusted according to the display requirements to implement a variable menu. Among them, the checkbox control is used to set the total number of items and the number of items displayed per page, and the selection function of item options is implemented according to the total number of items and the number of items displayed per page. The text display control is used to determine whether a certain line of text needs to be displayed according to the display requirements, and the non-displayed line of text is filled and displayed by the next line of text.
[0104] Exemplarily, when the user triggers the instrument button, referring to Figure 4 as shown, the specific steps for the checkbox control to implement the selection function of item options include:
[0105] S1. Determine the function of the button input. If the function of the button input is to scroll up, execute S2; if the function of the button input is to scroll down, execute S3.
[0106] S2. Determine whether the selected item option is within the range of the first page. If it is, there is no need to perform a page turning operation, and directly select the previous item option; otherwise, a page turning operation is required. After performing the page turning, select the last item option.
[0107] S3. Determine whether the selected item option is within the range of the first page. If it is, there is no need to perform a page turning operation, and directly select the next item option; otherwise, a page turning operation is required. After performing the page turning, select the first item option.
[0108] Exemplarily, when the number of items displayed per page is N items and the first current page is the Mth page, the range of the first page corresponding to the selected item option is (M - 1)*N + 1 to M*N.
[0109] Exemplarily, the specific steps for S2 to perform page turning include:
[0110] S2-1. Identify the first current page where the selected item option is located.
[0111] S2-2. Determine whether the first current page is 1. If it is, page to the last page; otherwise, page to the previous page.
[0112] Exemplarily, the specific steps for S3 to perform page turning include:
[0113] S3-1. Identify the first current page where the selected item option is located.
[0114] S3-2. Determine whether the first current page number is M, where M represents the total number of page numbers. If so, turn to the first page; otherwise, turn to the next page.
[0115] Exemplarily, a logical link is established between the selection box control and the text display control. Refer to Figure 5 As shown, the specific steps for the text display control to dynamically adjust the displayed content according to the display requirements and implement the variable menu include:
[0116] S11. Determine the function of the button input. If the function of the button input is to scroll up, execute S12; if the function of the button input is to scroll down, execute S13.
[0117] S12. Determine whether the current text line is within the range of the second page number. If so, no page turning action is required, and directly select the previous line of text; otherwise, a page turning action is required. After page turning, select the last line of text.
[0118] S13. Determine whether the current text line is within the range of the second page number. If so, no page turning action is required, and directly select the next line of text; otherwise, a page turning action is required. After page turning, select the first line of text.
[0119] Exemplarily, when the number of lines displayed per page is P lines and the second current page number is the Qth page, the range of the second page number corresponding to the current text line is (Q - 1)*P + 1 to Q*P.
[0120] Exemplarily, the specific steps for performing page turning in S12 include:
[0121] S12-1. Identify the second current page number where the current text line is located.
[0122] S12-2. Determine whether the second current page number is 1. If so, turn to the last page; otherwise, turn to the previous page.
[0123] Exemplarily, the specific steps for performing page turning in S13 include:
[0124] S13-1. Identify the second current page number where the current text line is located.
[0125] S13-2. Determine whether the second current page number is R, where R represents the total number of pages. If so, turn to the first page; otherwise, turn to the next page.
[0126] Exemplarily, refer to Figure 6 As shown, the specific steps for the text display control to determine whether a certain line of text needs to be displayed according to the display requirements and use the next line of text to fill in and display the non-displayed line of text include:
[0127] S111. Determine whether to display the current line of text. Otherwise, use the next line of text to fill in and display. If so, execute S112.
[0128] S112. Display the text of the current line, determine whether the current line is the last line of the current page. If so, the display ends; otherwise, execute S113.
[0129] S113. Locate the text of the next line, determine whether the text of the next line is within the range of the second page. If not, the display ends; if so, return to execute S111.
[0130] In the embodiments of the present application, by combining two types of controls, namely a checkbox control and a text display control, a dynamically variable menu function is realized. The functional logic is similar to that of the checkbox control, but when scrolling up and down, it does not judge whether the upper / lower item checkbox selection exists, but judges whether the text line exists. The starting point of this design is that the checkbox control moves according to the text line, the checkbox control is in the same position as the text line, the item options cover the text items, and the number of item options is the same as the number of text lines. However, each item option is displayed, and the text line will determine whether the text of that line is displayed according to the property of whether the text line is displayed.
[0131] Since the item options do not display text and the unselected item options are completely transparent, what can be visually seen directly is the content of the text line below the item options. The item options are scrolled up and down for display according to the existence of the text line, so as to ensure that the selection range of the item options is within the display range of the menu text. In fact, if there are several text lines in an invisible state, the number of item options will exceed the number of text lines. However, since the item options will be displayed according to the text line, the dynamic change of the menu can be realized visually.
[0132] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description 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 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 in other steps.
[0133] Based on the same inventive concept, an embodiment of the present application further provides a menu display device for a vehicle instrument for implementing the menu display method of the vehicle instrument involved above. The implementation solutions provided by this device to solve problems are similar to those recorded in the above method. Therefore, the specific limitations in one or more embodiments of the menu display device for a vehicle instrument provided below can refer to the limitations on the menu display method of the vehicle instrument in the above text, and will not be repeated here.
[0134] In some embodiments, as Figure 7 shown, a menu display device 700 for a vehicle instrument is provided, including: a determination module 701, a response module 702, and a display module 703, where:
[0135] The determination module 701 is configured to determine the selected entry option that is currently in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option;
[0136] The response module 702 is configured to, in response to a paging event triggered for the instrument menu, determine the target entry option to be displayed after the paging action is performed according to the first current page to which the selected entry option currently belongs; determine the target text line to be displayed after the paging action is performed according to the second current page to which the current text line belongs;
[0137] The display module 703 is configured to determine the display state of the target text line, and when the display state of the target text line is a visible state, display the target text line within the target entry option after the paging action is performed.
[0138] In some embodiments, the device further includes an option acquisition module for acquiring the number of entry options to be displayed in each page; the response module is further configured to determine the first current page to which the selected entry option currently belongs; determine the first page range corresponding to the selected entry option according to the number of entry options to be displayed in each page and the first current page; determine whether the selected entry option is within the first page range, and determine the target entry option to be displayed after the paging action is performed according to the judgment result.
[0139] In some embodiments, the response module is further configured to, when it is determined that the selected entry option exceeds the first page range, determine the execution direction of the paging action; when the execution direction of the paging action is the first direction, use the first entry option after the selected entry option in the first direction as the target entry option to be displayed after the paging action is performed; when the execution direction of the paging action is the second direction, use the last entry option before the selected entry option in the second direction as the target entry option to be displayed after the paging action is performed.
[0140] In some embodiments, the device further includes a text line acquisition module for acquiring the number of text lines to be displayed in each page; the response module is further configured to determine the second current page to which the current text line currently belongs; determine a second page range corresponding to the current text line according to the number of text lines to be displayed in each page and the second current page; determine whether the current text line is within the second page range, and determine the target text line to be displayed after performing the page turning action according to the determination result.
[0141] In some embodiments, the response module is further configured to determine the execution direction of the page turning action when it is determined that the current text line exceeds the second page range; when the execution direction of the page turning action is the first direction, use the first text line after the current text line in the first direction as the target text line to be displayed after performing the page turning action; when the execution direction of the page turning action is the second direction, use the last text line before the current text line in the second direction as the target text line to be displayed after performing the page turning action.
[0142] In some embodiments, the device further includes an adjustment module for, when the display state of the target text line is an invisible state, after performing the page turning action, displaying the next text line of the target text line within the target entry option.
[0143] Each module in the above menu display device of the vehicle instrument can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or be stored in the memory of the computer device in software form so that the processor can call and execute the operations corresponding to each of the above modules.
[0144] In some embodiments, a computer device is provided. The computer device can be an in-vehicle terminal, and its internal structure diagram can be as Figure 8As shown in the figure. The computer device 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 computer device is used to provide computing and control capabilities. The memory of the computer device 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 computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals 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 method for displaying a menu of a vehicle instrument. The display unit of the computer device 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. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0145] Those skilled in the art can understand that Figure 8 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0146] In some embodiments, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0147] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0148] In some embodiments, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0149] 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 and volatile memories. 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 processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0150] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of 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 described in this specification.
[0151] 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 on 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 belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for menu display of a vehicle instrument, characterized in that, The method includes: Determine the selected entry option that is currently in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option; Obtain the number of entry options to be displayed on each page; determine the first current page to which the selected entry option currently belongs; determine a first page range corresponding to the selected entry option according to the number of entry options to be displayed on each page and the first current page; determine whether the selected entry option is within the first page range, and determine the target entry option to be displayed after performing a paging action according to the determination result; obtain the number of text lines to be displayed on each page; determine the second current page to which the current text line currently belongs; determine a second page range corresponding to the current text line according to the number of text lines to be displayed on each page and the second current page; determine whether the current text line is within the second page range, and determine the target text line to be displayed after performing a paging action according to the determination result; Determine the display state of the target text line, and when the display state of the target text line is a visible state, display the target text line within the target entry option after performing the paging action.
2. The method according to claim 1, wherein The determining whether the selected entry option is within the first page range and determining the target entry option to be displayed after performing a paging action according to the determination result includes: When it is determined that the selected entry option exceeds the first page range, determine the execution direction of the paging action; When the execution direction of the paging action is the first direction, use the first entry option after the selected entry option in the first direction as the target entry option to be displayed after performing the paging action; When the execution direction of the paging action is the second direction, use the last entry option before the selected entry option in the second direction as the target entry option to be displayed after performing the paging action.
3. The method according to claim 1, characterized in that, The determining whether the current text line is within the second page range and determining the target text line to be displayed after performing a paging action according to the determination result includes: When it is determined that the current text line exceeds the second page range, determine the execution direction of the paging action; When the execution direction of the paging action is the first direction, use the first text line after the current text line in the first direction as the target text line to be displayed after performing the paging action; When the execution direction of the paging action is the second direction, use the last text line before the current text line in the second direction as the target text line to be displayed after performing the paging action.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the display state of the target text line is an invisible state, after performing the paging action, display the next text line of the target text line within the target entry option.
5. A menu display device for a vehicle instrument, characterized in that, The device includes: A determination module, configured to determine the selected entry option that is currently in a selected state in the instrument menu, and determine the current text line displayed within the selected entry option; A response module, configured to obtain the number of item options to be displayed in each page; determine the first current page to which the selected item option currently belongs; determine a first page range corresponding to the selected item option according to the number of item options to be displayed in each page and the first current page; determine whether the selected item option is within the first page range, and determine a target item option to be displayed after a page turning action is performed according to the determination result; obtain the number of text lines to be displayed in each page; determine the second current page to which the current text line currently belongs; determine a second page range corresponding to the current text line according to the number of text lines to be displayed in each page and the second current page; determine whether the current text line is within the second page range, and determine a target text line to be displayed after a page turning action is performed according to the determination result. A display module, configured to determine the display state of the target text line, and when the display state of the target text line is a visible state, display the target text line within the target item option after the page turning action is performed.
6. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Cross-page data selection method and device, equipment and storage medium
CN113672650A
In-place contextual menu for handling actions for a listing of items
US20140282254A1