Method and device for switching display state of application interface and related product
By providing a display state switching method of application interface in the vehicle terminal, the problem of fixed interface status in the prior art is solved, and automatic adjustment of interface status and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202411450246.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-11
AI Technical Summary
The display status of the application interface in the existing vehicle terminal is fixed and cannot be automatically adjusted according to the user's operating habits and needs, resulting in a poor user experience.
It provides a display state switching method for an application interface. By determining the display state to be switched on the target application interface, performing switching calculation processing, generating a prompt switching request, and responding to the user's display state switching instruction, automatically adjusting the interface state.
It realizes free adjustment of the display status of the application interface, improves the user experience, and ensures the accuracy of the switching process and user satisfaction through pre-executing status switching calculations.
Smart Images

Figure CN119414998A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method and device for switching the display status of an application interface and related products. Background Art
[0002] In the current field of vehicle technology, the display state of the application interface in the vehicle terminal generally has the problem of being fixed, that is, the display state of the application interface can only be a full-screen display state, or the display state of the application interface can only be a non-full-screen display state, and it is impossible to automatically adjust the display state of the application interface according to the user's actual operating habits and needs, resulting in a poor user experience. Therefore, how to improve the user experience is a key issue that technicians in this field are concerned about. Summary of the invention
[0003] Based on the above problems, the present application provides a method, device and related products for switching the display status of an application interface to enhance the user experience.
[0004] The embodiments of the present application disclose the following technical solutions:
[0005] The first aspect of the present application provides a method for switching the display state of an application interface. The method for switching the display state of the application interface is applied to a vehicle-mounted terminal, and the method for switching the display state of the application interface includes:
[0006] Determine the display state to be switched corresponding to the target application interface;
[0007] Performing a switching calculation process on the display state to be switched corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface;
[0008] If the switching calculation result is a result indicating that the display state to be switched is switched to the target display state, generating a prompt switching request according to the switching calculation result, and outputting the prompt switching request to the target application interface;
[0009] In response to receiving a display state switching instruction submitted by a target user in the target application interface according to the prompt switching request, the display state to be switched is switched to the target display state.
[0010] In an achievable implementation, the target application interface includes a content display area, a vehicle status bar, and a vehicle navigation bar. Before determining the display state to be switched corresponding to the target application interface, the following steps are further included:
[0011] determining a first display content displayed in the content display area, wherein the first display content is not displayed in the vehicle status bar and the vehicle navigation bar;
[0012] The step of determining the display state to be switched corresponding to the target application interface includes:
[0013] According to the first display content, it is determined that the display state to be switched corresponding to the target application interface is a non-full-screen state of the interface.
[0014] In an achievable implementation, before performing a switching calculation process on the display state to be switched corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface, the process further includes:
[0015] Determining an application interface size corresponding to the target application interface, and determining a first display size corresponding to the first display content;
[0016] The performing a switching calculation process on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface includes:
[0017] Hiding the vehicle status bar and the vehicle navigation bar in the target application interface to obtain the hidden vehicle status bar and the hidden vehicle navigation bar;
[0018] Enlarging the first display size according to the application interface size to obtain an enlarged first display size, and enlarging the first display content according to the enlarged first display size to obtain an enlarged first display content;
[0019] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0020] In an achievable implementation, the target application interface includes a content display area, a hidden vehicle status bar, and a hidden vehicle navigation bar. Before determining the display state to be switched corresponding to the target application interface, the following steps are further included:
[0021] Determining second display content displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar;
[0022] The step of determining the display state to be switched corresponding to the target application interface includes:
[0023] According to the second display content, it is determined that the display state to be switched corresponding to the target application interface is a full-screen state of the interface.
[0024] In an achievable implementation, before performing a switching calculation process on the display state to be switched corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface, the process further includes:
[0025] Determining a display area size corresponding to the content display area, and determining a second display size corresponding to the second display content;
[0026] The performing a switching calculation process on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface includes:
[0027] Performing display processing on a hidden vehicle status bar and a hidden vehicle navigation bar in the target application interface to obtain a vehicle status bar and a vehicle navigation bar;
[0028] reducing the second display size according to the display area size to obtain a reduced second display size, and reducing the second display content according to the reduced second display size to obtain a reduced second display content;
[0029] If the reduced second display size is the same as the display area size, and the reduced second display content exists in the content display area, and the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar, generate a switching calculation result corresponding to the target application interface.
[0030] In an achievable implementation, if the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, generating a switching calculation result corresponding to the target application interface includes:
[0031] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, determining whether there is an operation control in the enlarged first display content;
[0032] If there is an operation control in the enlarged first display content, determining whether the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar;
[0033] If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0034] In an achievable implementation, switching the display state to be switched to the target display state includes:
[0035] Switching the interface from a non-full-screen state to a full-screen state;
[0036] Alternatively, the full-screen state of the interface is switched to a non-full-screen state of the interface.
[0037] The second aspect of the present application provides a device for switching the display state of an application interface. The device for switching the display state of the application interface is deployed in a vehicle-mounted terminal, and the device for switching the display state of the application interface includes:
[0038] A display state to be switched determining unit, used to determine the display state to be switched corresponding to the target application interface;
[0039] A switching calculation result obtaining unit, used to perform switching calculation processing on the to-be-switched display state corresponding to the target application interface, and obtain a switching calculation result corresponding to the target application interface;
[0040] a prompt switching request generating unit, configured to generate a prompt switching request according to the switching calculation result if the switching calculation result indicates that the display state to be switched is switched to a target display state, and output the prompt switching request to the target application interface;
[0041] The display state switching unit to be switched is used to switch the display state to be switched to the target display state in response to receiving a display state switching instruction submitted by the target user in the target application interface according to the prompt switching request.
[0042] In one feasible embodiment, the device further includes:
[0043] A first display content determination unit, configured to determine a first display content displayed in the content display area, wherein the first display content is not displayed in the vehicle status bar and the vehicle navigation bar;
[0044] The display state to be switched determining unit is specifically used for:
[0045] According to the first display content, it is determined that the display state to be switched corresponding to the target application interface is a non-full-screen state of the interface.
[0046] In one feasible embodiment, the device further includes:
[0047] an interface display size determining unit, configured to determine an application interface size corresponding to the target application interface, and to determine a first display size corresponding to the first display content;
[0048] The switching calculation result obtaining unit is specifically used for:
[0049] Hiding the vehicle status bar and the vehicle navigation bar in the target application interface to obtain the hidden vehicle status bar and the hidden vehicle navigation bar;
[0050] Enlarging the first display size according to the application interface size to obtain an enlarged first display size, and enlarging the first display content according to the enlarged first display size to obtain an enlarged first display content;
[0051] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0052] In one feasible embodiment, the device further includes:
[0053] A second display content determination unit, configured to determine a second display content displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar;
[0054] The display state to be switched determining unit is specifically used for:
[0055] According to the second display content, it is determined that the display state to be switched corresponding to the target application interface is a full-screen state of the interface.
[0056] In one feasible embodiment, the device further includes:
[0057] an area display size determining unit, configured to determine a display area size corresponding to the content display area, and determine a second display size corresponding to the second display content;
[0058] The switching calculation result obtaining unit is specifically used for:
[0059] Performing display processing on a hidden vehicle status bar and a hidden vehicle navigation bar in the target application interface to obtain a vehicle status bar and a vehicle navigation bar;
[0060] reducing the second display size according to the display area size to obtain a reduced second display size, and reducing the second display content according to the reduced second display size to obtain a reduced second display content;
[0061] If the reduced second display size is the same as the display area size, and the reduced second display content exists in the content display area, and the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar, generate a switching calculation result corresponding to the target application interface.
[0062] In an achievable implementation manner, the switching calculation result obtaining unit is further used to:
[0063] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, determining whether there is an operation control in the enlarged first display content;
[0064] If there is an operation control in the enlarged first display content, determining whether the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar;
[0065] If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0066] In an achievable implementation, the display state switching unit to be switched is specifically used to:
[0067] Switching the interface from a non-full-screen state to a full-screen state;
[0068] Alternatively, the full-screen state of the interface is switched to a non-full-screen state of the interface.
[0069] The third aspect of the present application provides a vehicle-mounted terminal. The vehicle-mounted terminal is deployed in a vehicle, and the vehicle-mounted terminal includes:
[0070] a memory having a computer program stored thereon;
[0071] A processor is used to execute the computer program in the memory to implement the steps of the method for switching the display state of the application interface provided in the first aspect.
[0072] In a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the program implements the steps of the method for switching the display state of the application interface provided in the first aspect.
[0073] Compared with the prior art, this application has the following beneficial effects:
[0074] In the present application, the display state to be switched corresponding to the target application interface is first determined, and the switching calculation processing is performed on the display state to be switched corresponding to the target application interface to obtain the switching calculation result corresponding to the target application interface. After that, if the switching calculation result is an indication that the display state to be switched is switched to the target display state, a prompt switching request is generated according to the switching calculation result, and the prompt switching request is output to the target application interface. Finally, in response to receiving the display state switching instruction submitted by the target user in the target application interface according to the prompt switching request, the display state to be switched is switched to the target display state.
[0075] It can be seen that the present application can first pre-calculate the switch of the display state to be switched corresponding to the target application interface to determine the switch calculation result (i.e., determine whether the display state to be switched can be switched to the target display state). If it is determined that the display state to be switched can be switched to the target display state, a prompt switch request is generated and fed back to the target application interface, so that the display state to be switched can be switched to the target display state based on the display state switching instruction submitted by the user. In this way, the present application satisfies the requirement that the display state of the application interface can be freely adjusted, and before actually switching the display state of the application interface, the present application will also pre-calculate the state switch to ensure that there will be no error when switching to the target display state later, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0077] Figure 1 A flowchart of a method for switching the display state of an application interface provided in an embodiment of the present application;
[0078] Figure 2 A schematic diagram of a target application interface in a method for switching the display state of an application interface provided in an embodiment of the present application;
[0079] Figure 3 A schematic diagram of a target application interface in another method for switching the display state of an application interface provided in an embodiment of the present application;
[0080] Figure 4 A schematic diagram of an amplified first display content in a method for switching a display state of an application interface provided in an embodiment of the present application;
[0081] Figure 5A schematic diagram of an amplified first display content in another method for switching the display state of an application interface provided in an embodiment of the present application;
[0082] Figure 6 A schematic diagram of a reduced second display content in a method for switching a display state of an application interface provided in an embodiment of the present application;
[0083] Figure 7 A full flow chart of switching the display state in a method for switching the display state of an application interface provided in an embodiment of the present application;
[0084] Figure 8 A schematic diagram of the structure of a device for switching the display status of an application interface provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] As described above, in the current field of vehicle technology, there is a general problem of fixedness in the display status of application interfaces in vehicle-mounted terminals. Specifically, relevant technical solutions usually only support designing the display status of the application interface of the vehicle-mounted terminal as a full-screen display status (that is, the display status of the application interface can only be a full-screen display status), or only support designing the display status of the application interface of the vehicle-mounted terminal as a non-full-screen display status (that is, the display status of the application interface can only be a non-full-screen display status).
[0086] And the related technical solutions cannot automatically adjust the display state of the application interface according to the actual operation habits and needs of the user. For example, when playing a video in the vehicle terminal, the display state of the application interface cannot be switched to a full-screen display state, or when displaying a navigation map in the vehicle terminal, the display state of the application interface cannot be switched to a non-full-screen display state, resulting in a poor user experience. Therefore, how to improve the user experience is a key issue that technicians in this field are concerned about.
[0087] In view of the above problems, a solution is provided in the embodiment of the present application, and a method, device and related products for switching the display state of an application interface are proposed, aiming to improve the user experience. In the technical solution of the present application, the display state to be switched corresponding to the target application interface can be determined first, and the display state to be switched corresponding to the target application interface can be switched by switching calculation processing to obtain the switching calculation result corresponding to the target application interface (i.e., determining whether the display state to be switched can be switched to the target display state). After that, if the switching calculation result is a result indicating that the display state to be switched is switched to the target display state, a prompt switching request is generated according to the switching calculation result, and the prompt switching request is output to the target application interface, so that the display state to be switched can be switched to the target display state according to the display state switching instruction submitted by the target user in the target application interface according to the prompt switching request. In this way, the display state of the application interface can be freely adjusted in the present application, and the present application will perform state switching calculation in advance before actually switching the display state of the application interface to ensure that there will be no error when switching to the target display state later, thereby improving the user experience.
[0088] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0089] First of all, it should be noted that the method for switching the display state of the application interface provided in this application is applied to a vehicle-mounted terminal, which includes a vehicle-mounted server, and the execution subject of the method for switching the display state of the application interface provided in the embodiment of this application can be the vehicle-mounted server. For example, the display state to be switched corresponding to the target application interface is determined on the vehicle-mounted server.
[0090] See also Figure 1 , which is a flow chart of a method for switching the display state of an application interface provided in an embodiment of the present application. Figure 1 The method for switching the display state of the application interface shown includes:
[0091] S101: Determine the display state to be switched corresponding to the target application interface.
[0092] In this step, the target application interface can be understood as the terminal interface of the vehicle terminal, the display state to be switched includes the non-full-screen state of the interface, and the display state to be switched also includes the full-screen state of the interface. It should be noted that the actual display state of the display state to be switched needs to be determined in actual situations. Next, the case where the display state to be switched is the non-full-screen state of the interface and the case where the display state to be switched is the full-screen state of the interface are introduced.
[0093] The display state to be switched is the non-full screen state of the interface as follows:
[0094] First of all, it should be noted that the target application interface includes a content display area, a vehicle status bar and a vehicle navigation bar. The content display area is used to display the display status of various applications in the vehicle terminal (for example, videos can be played in the content display area, etc.), the vehicle status bar is used to display the current time or date, and display the connection status of the vehicle with other terminals, and the vehicle navigation bar is used to display the current operating status of the vehicle, and to support the adjustment of the vehicle status (such as adjusting the air conditioner in the vehicle).
[0095] Furthermore, before determining the display state to be switched corresponding to the target application interface, the present application also needs to determine the first display content displayed in the target application interface, and determine whether the first display content is displayed in the content display area. If it is determined that the first display content is displayed in the content display area, it is determined whether the first display content is not displayed in the vehicle status bar and the vehicle navigation bar. If it is determined that the first display content is not displayed in the vehicle status bar and the vehicle navigation bar, it can be determined that the first display content is only displayed in the content display area, and it can be determined that the display state to be switched corresponding to the target application interface is a non-full-screen state of the interface. In this way, by judging the actual display situation of the first display content in the target application interface, the pre-switching calculation of the subsequent display state can be facilitated.
[0096] like Figure 2 As shown, Figure 2 A schematic diagram of a target application interface in a method for switching the display state of an application interface provided in an embodiment of the present application. Figure 2 "1" represents the content display area, "2A" represents the vehicle status bar, and "3A" represents the vehicle navigation bar (the vehicle navigation bar is also provided with a return key to support returning to the main page of the vehicle terminal). In this application, the vehicle status bar and the vehicle navigation bar can be filled with a dark color (such as black, etc.), wherein the first display content is only displayed in the content display area. At this time, it can be determined that the actual display of the target application interface is a non-full-screen state of the interface. It should be noted that the schematic diagram of the target application interface shown in this application is only a partial example and is not specifically limited here.
[0097] The display state to be switched to the full screen state of the interface is as follows:
[0098] First of all, it should be explained that the target application interface includes a content display area, a hidden vehicle status bar, and a hidden vehicle navigation bar, wherein the hidden vehicle status bar can be filled with a light color so that the hidden vehicle status bar is transparent and semi-transparent, and the hidden vehicle navigation bar can be filled with a light color so that the hidden vehicle navigation bar is transparent and semi-transparent, so that the display content can be displayed in the hidden vehicle status bar and the hidden vehicle navigation bar. At this time, the remaining display states in the vehicle status bar and the vehicle navigation bar (such as the current time, etc.) can still be displayed in the hidden vehicle status bar and the hidden vehicle navigation bar, so as to support the user's viewing and exit operations.
[0099] Furthermore, before determining the display state to be switched corresponding to the target application interface, the present application also needs to determine the second display content displayed in the target application interface, and determine whether the second display content is displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar. If it is determined that the second display content is displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, it can be determined that the display state to be switched corresponding to the target application interface is the full-screen state of the interface. In this way, by judging the actual display situation of the second display content in the target application interface, the pre-switching calculation of the subsequent display state can be facilitated.
[0100] In an achievable implementation, the vehicle status bar after hiding can also be retracted to the upper position in the vehicle terminal, and the vehicle navigation bar after hiding can also be retracted to the lower position in the vehicle terminal. Further, at this time, the second display content can be displayed at the initial positions corresponding to the vehicle status bar and the vehicle navigation bar, that is, the positions of the vehicle status bar after hiding and the vehicle navigation bar after hiding before hiding.
[0101] like Figure 3 As shown, Figure 3 A schematic diagram of a target application interface in another method for switching the display state of an application interface provided in an embodiment of the present application. Figure 3 Among them, "1" represents the content display area, "2a" represents the hidden vehicle status bar, and "3a" represents the hidden vehicle navigation bar, wherein the filling color of the hidden vehicle status bar and the hidden vehicle navigation bar is a light color (such as gray, etc.). The first display content is displayed in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar. At this time, it can be determined that the actual display situation of the target application interface is the full-screen state of the interface.
[0102] S102: Perform switching calculation processing on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface.
[0103] Since the display state to be switched includes the interface non-full-screen state, a pre-switch calculation can be performed on the interface non-full-screen state in this step to determine whether the interface non-full-screen state can be switched to the interface full-screen state later, and the display state to be switched also includes the interface full-screen state. In this step, a pre-switch calculation can also be performed on the interface full-screen state to determine whether the interface full-screen state can be switched to the interface non-full-screen state later.
[0104] It can be understood that when the display state to be switched is the interface non-full-screen state, the interface non-full-screen state can be pre-calculated with the display effect of the interface full-screen state in the present application, wherein in the display effect of the interface full-screen state, the area where the vehicle navigation bar and the vehicle status bar are located does not contain controls with interactive functions or for information display, and when the application is in the video playback state, the area where the vehicle navigation bar and the vehicle status bar are located does not contain subtitles or other prompt information. When the display state to be switched is the interface full-screen state, the interface full-screen state can be pre-calculated with the display effect of the interface non-full-screen state in the present application, wherein in the display effect of the interface non-full-screen state, the controls are not overlapped or blocked, the displayed text, pictures and videos are complete, and no other content except the application background overflows the content display area.
[0105] Next, the above two situations are introduced respectively. The process of pre-switching calculation for the non-full-screen state of the interface is as follows:
[0106] First of all, it should be noted that before performing the switching calculation processing on the display state to be switched corresponding to the target application interface and obtaining the switching calculation result operation corresponding to the target application interface, the application can also perform the size calculation on the target application interface to obtain the application interface size corresponding to the target application interface, and can perform the size calculation on the first display content to obtain the first display size corresponding to the first display content. In this way, it is convenient to subsequently enlarge the first display size based on the application interface size.
[0107] Specifically, in the present application, the vehicle status bar in the target application interface can be hidden first to obtain the hidden vehicle status bar, and the vehicle navigation bar in the target application interface can be hidden to obtain the hidden vehicle navigation bar. Taking the vehicle status bar as an example, the hiding process can be understood as changing the fill color of the vehicle status bar to a light color, that is, changing the black fill color in the vehicle status bar to gray, so that the vehicle status bar is semi-transparent, so that the user can see the display content through the hidden vehicle status bar in the subsequent process.
[0108] Furthermore, in the present application, the first display size can be enlarged according to the application interface size to obtain the enlarged first display size. For example, if the intended application interface size is 16:9 and the first display size is 13:6, the first display size can be enlarged to make the enlarged first display size 16:9. The first display content can also be adaptively enlarged according to the enlarged first display size to obtain the enlarged first display content, so as to ensure that the enlarged first display content not only meets the size enlargement requirement, but also avoids the display content becoming difficult to read or understand due to the enlargement operation, which can improve the user experience to a certain extent.
[0109] After that, it can be determined whether the enlarged first display size is the same as the application interface size, and whether the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar. If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated, wherein the switching calculation result is used to indicate whether the display state to be switched can be switched to the target display state.
[0110] It can be understood that if all of the above judgment conditions are met, the switching calculation result is a result indicating that the display state to be switched is switched to the target display state; if any of the above judgment conditions is not met, the switching calculation result is a result indicating that the display state to be switched cannot be switched to the target display state. In another achievable implementation, after obtaining the first display size corresponding to the first display content, the present application can also determine whether the first display content in the vehicle-mounted terminal is a fixed size. If the first display content in the vehicle-mounted terminal is a fixed size (i.e., the display size of the first display content is forced to be a fixed size), the first display content cannot be enlarged in the subsequent process. At this time, the generated switching calculation result is a result indicating that the display state to be switched cannot be switched to the target display state.
[0111] Furthermore, if the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar, it is determined whether there are operation controls in the enlarged first display content. It can be understood that the application in the vehicle-mounted terminal can be an operation type application, which can display operation controls in the first display content during runtime, and the operation controls are used to enable users to interact with the application.
[0112] If there is an operation control in the enlarged first display content, it is determined whether the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar. If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated. If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, the switching calculation result generated at this time is a result indicating that the display state to be switched is switched to the target display state; if the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar, the switching calculation result generated at this time is a result indicating that the display state to be switched cannot be switched to the target display state.
[0113] like Figure 4 As shown, Figure 4 A schematic diagram of an amplified first display content in a method for switching the display state of an application interface provided in an embodiment of the present application. Figure 4 A prediction process of switching the interface non-full screen display state to the interface full screen display state is shown in FIG. Figure 4 (a) indicates that the interface is not in full screen display state. Figure 4 (b) indicates the full screen display state of the interface, where Figure 4 The operation controls in the enlarged first display content in (b) do not exist in the hidden vehicle status bar and the hidden vehicle navigation bar. At this time, the switching calculation result can be a result indicating switching the interface non-full-screen display state to the interface full-screen display state.
[0114] like Figure 5 As shown, Figure 5 A schematic diagram of an enlarged first display content in another method for switching the display state of an application interface provided in an embodiment of the present application. Figure 5 Another prediction process of switching the interface non-full screen display state to the interface full screen display state is shown in FIG. Figure 5 (a) indicates that the interface is not in full screen display state. Figure 5 (b) indicates the full screen display state of the interface, where Figure 5 The operation controls in the enlarged first display content in (b) exist in the hidden vehicle status bar and the hidden vehicle navigation bar. At this time, the switching calculation result may be a result indicating that the interface non-full-screen display state cannot be switched to the interface full-screen display state. It can be understood that at this time, the view located in the upper layer (i.e., the hidden vehicle navigation bar) will give priority to receiving and processing the touch events submitted by the user, resulting in the operation controls located in the hidden vehicle navigation bar cannot operate normally. In this way, the switching calculation result is a result indicating that the interface non-full-screen display state cannot be switched to the interface full-screen display state.
[0115] The process of pre-switching calculation for the full-screen state of the interface is as follows:
[0116] First of all, it should be noted that before performing the switching calculation processing on the display state to be switched corresponding to the target application interface and obtaining the switching calculation result operation corresponding to the target application interface, the present application may also perform the size calculation on the content display area to obtain the display area size corresponding to the content display area, and may perform the size calculation on the second display content to obtain the second display size corresponding to the second display content. In this way, it is convenient to reduce the second display size based on the display area size in the subsequent process.
[0117] Specifically, in the present application, the hidden vehicle status bar in the target application interface can first be displayed to obtain the vehicle status bar, and the hidden vehicle navigation bar in the target application interface can be displayed to obtain the vehicle navigation bar. Taking the hidden vehicle status bar as an example, in one feasible implementation, the display processing can be understood as changing the fill color of the hidden vehicle status bar to a dark color, that is, the gray fill color in the hidden vehicle status bar can be changed to black. In another feasible implementation, the display processing can be understood as returning the hidden vehicle status bar in the upper position of the vehicle-mounted terminal to the initial position corresponding to the vehicle status bar, that is, the position of the hidden vehicle status bar before it is hidden.
[0118] Furthermore, in the present application, the second display size can be reduced according to the display area size to obtain the reduced second display size. For example, if the intended display area size is 13:6 and the second display size is 16:9, the second display size can be reduced to make the reduced second display size 13:6. The second display content can also be adaptively reduced according to the reduced second display size to obtain the reduced second display content, so as to ensure that the reduced second display content not only meets the size reduction requirement, but also avoids the display content becoming difficult to watch due to the reduction operation, which can improve the user experience to a certain extent.
[0119] After that, it can be determined whether the reduced second display size is the same as the display area size, whether the reduced second display content exists in the content display area, and whether the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar. If the reduced second display size is the same as the display area size, and the reduced second display content exists in the content display area, and the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated. If all of the above judgment conditions are met, the switching calculation result is a result indicating that the display state to be switched is switched to the target display state; if any of the above judgment conditions is not met, the switching calculation result is a result indicating that the display state to be switched cannot be switched to the target display state.
[0120] like Figure 6 As shown, Figure 6 A schematic diagram of a reduced second display content in a method for switching the display state of an application interface provided in an embodiment of the present application. Figure 6 The prediction process of switching the full-screen display state of the interface to the non-full-screen display state of the interface is shown in FIG. Figure 6 (a) indicates the full screen display state of the interface. Figure 6 (b) indicates the interface is not in full screen display state, where Figure 6 The reduced second display content in (b) exists in the content display area and does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar. At this time, the switching calculation result can be a result indicating switching the full-screen display state of the interface to the non-full-screen display state of the interface.
[0121] S103: If the switching calculation result indicates that the display state to be switched should be switched to the target display state, a prompt switching request is generated according to the switching calculation result, and the prompt switching request is output to the target application interface.
[0122] In this step, the prompt switching request is a request output by the vehicle server that requires the user to make a selection. The prompt switching request in the target application interface can be in the form of a pop-up window or an option in the vehicle status bar, etc. It should be noted that the above prompt forms are not limited in this application, and can also be selected and applied according to actual conditions in actual applications. In this way, this application outputs the prompt switching request to the target application interface, so that the user can freely choose whether to switch the display status in the subsequent process.
[0123] S104: In response to receiving a display state switching instruction submitted by a target user in the target application interface according to the prompt switching request, switching the display state to be switched to the target display state.
[0124] In the present application, the display state switching instruction is an instruction generated based on the user's operation on the target application interface. For example, when the target user clicks the OK button in the "Prompt Switch Request", the display state switching instruction can be generated. Specifically, the present application can switch the interface non-full screen state to the interface full screen state based on the display state switching instruction, or can switch the interface full screen state to the interface non-full screen state based on the display state switching instruction. In this way, the display state of the target application interface can be automatically analyzed in the present application, and the user can freely decide whether to switch the display state, which greatly improves the user experience.
[0125] like Figure 7 As shown, Figure 7 A full flow chart of switching the display state in a method for switching the display state of an application interface provided in an embodiment of the present application. Figure 7 First, determine whether the display state to be switched of the target application interface is the interface non-full-screen state or the interface full-screen state; if the display state to be switched of the target application interface is the interface non-full-screen state, pre-calculate the interface non-full-screen state to determine whether the interface non-full-screen state can be switched to the interface full-screen state. If the interface non-full-screen state can be switched to the interface full-screen state, output the switching calculation result to the target application interface, and determine whether the user submits a display state switching instruction. If the user submits a display state switching instruction, switch the interface non-full-screen state to the interface full-screen state according to the display state switching instruction.
[0126] If the display state to be switched of the target application interface is the full-screen state of the interface, the full-screen state of the interface is pre-calculated to determine whether the full-screen state of the interface can be switched to the non-full-screen state of the interface. If the full-screen state of the interface can be switched to the non-full-screen state of the interface, the switching calculation result is output to the target application interface, and it is determined whether the user submits a display state switching instruction. If the user submits a display state switching instruction, the full-screen state of the interface is switched to the non-full-screen state of the interface according to the display state switching instruction. It should be noted that if the non-full-screen state of the interface cannot be switched to the full-screen state of the interface, and if the full-screen state of the interface cannot be switched to the non-full-screen state of the interface, and if the user does not submit a display state switching instruction, the operation of switching the display state to be switched to the target display state will not be performed.
[0127] In summary, in this embodiment, the display state of the application interface can be freely adjusted, and before actually switching the display state of the application interface, the present application will pre-perform state switching calculations to ensure that there will be no errors when subsequently switching to the target display state, and the user can also freely decide whether to switch the display state, thereby improving the user experience.
[0128] Based on the method for switching the display status of the application interface provided in the aforementioned embodiment, the present application also correspondingly provides a device for switching the display status of the application interface, wherein the device for switching the display status of the application interface is deployed in a vehicle-mounted terminal. Figure 8 A schematic diagram of a device for switching the display state of an application interface provided in an embodiment of the present application. Figure 8 As shown, the switching device of the display state of the application interface includes:
[0129] A display state to be switched determining unit 801, configured to determine a display state to be switched corresponding to a target application interface;
[0130] A switching calculation result obtaining unit 802 is used to perform switching calculation processing on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface;
[0131] A prompt switching request generating unit 803 is used to generate a prompt switching request according to the switching calculation result if the switching calculation result indicates that the display state to be switched is switched to the target display state, and output the prompt switching request to the target application interface;
[0132] The display state switching unit 804 is configured to switch the display state to be switched to the target display state in response to receiving a display state switching instruction submitted by the target user in the target application interface according to the prompt switching request.
[0133] In one feasible embodiment, the device further includes:
[0134] A first display content determination unit, configured to determine a first display content displayed in the content display area, wherein the first display content is not displayed in the vehicle status bar and the vehicle navigation bar;
[0135] The display state to be switched determining unit 801 is specifically used for:
[0136] According to the first display content, it is determined that the display state to be switched corresponding to the target application interface is a non-full-screen state of the interface.
[0137] In one feasible embodiment, the device further includes:
[0138] an interface display size determining unit, configured to determine an application interface size corresponding to the target application interface, and to determine a first display size corresponding to the first display content;
[0139] The switching calculation result obtaining unit 802 is specifically used to:
[0140] Hiding the vehicle status bar and the vehicle navigation bar in the target application interface to obtain the hidden vehicle status bar and the hidden vehicle navigation bar;
[0141] Enlarging the first display size according to the application interface size to obtain an enlarged first display size, and enlarging the first display content according to the enlarged first display size to obtain an enlarged first display content;
[0142] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0143] In one feasible embodiment, the device further includes:
[0144] A second display content determination unit, configured to determine a second display content displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar;
[0145] The display state to be switched determining unit 801 is specifically used for:
[0146] According to the second display content, it is determined that the display state to be switched corresponding to the target application interface is a full-screen state of the interface.
[0147] In one feasible embodiment, the device further includes:
[0148] an area display size determining unit, configured to determine a display area size corresponding to the content display area, and determine a second display size corresponding to the second display content;
[0149] The switching calculation result obtaining unit 802 is specifically used to:
[0150] Performing display processing on a hidden vehicle status bar and a hidden vehicle navigation bar in the target application interface to obtain a vehicle status bar and a vehicle navigation bar;
[0151] reducing the second display size according to the display area size to obtain a reduced second display size, and reducing the second display content according to the reduced second display size to obtain a reduced second display content;
[0152] If the reduced second display size is the same as the display area size, and the reduced second display content exists in the content display area, and the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar, generate a switching calculation result corresponding to the target application interface.
[0153] In an achievable implementation manner, the switching calculation result obtaining unit 802 is further configured to:
[0154] If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, determining whether there is an operation control in the enlarged first display content;
[0155] If there is an operation control in the enlarged first display content, determining whether the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar;
[0156] If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
[0157] In an achievable implementation, the display state switching unit 804 is specifically configured to:
[0158] Switching the interface from a non-full-screen state to a full-screen state;
[0159] Alternatively, the full-screen state of the interface is switched to a non-full-screen state of the interface.
[0160] The device for switching the display state of the application interface provided in the embodiment of the present application has the same beneficial effects as the method for switching the display state of the application interface provided in the above embodiment, and will not be described in detail here.
[0161] The present application also provides a vehicle-mounted terminal. The vehicle-mounted terminal is deployed in a vehicle and includes:
[0162] A memory having a computer program stored therein.
[0163] The processor is used to execute the computer program in the memory to implement some or all steps of the method for switching the display state of the application interface introduced in the above embodiment.
[0164] The present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, part or all of the steps in the method for switching the display state of the application interface introduced in the above embodiment are implemented.
[0165] It should be noted that the "first" and "second" (if any) in the names such as "first" and "second" mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0166] It should also be noted that the various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and equipment embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for switching the display state of an application interface, characterized in that: Applied to vehicle terminals, including: Determine the display state to be switched corresponding to the target application interface; Performing a switching calculation process on the display state to be switched corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface; If the switching calculation result is a result indicating that the display state to be switched is switched to the target display state, generating a prompt switching request according to the switching calculation result, and outputting the prompt switching request to the target application interface; In response to receiving a display state switching instruction submitted by a target user in the target application interface according to the prompt switching request, the display state to be switched is switched to the target display state.
2. The method according to claim 1, characterized in that The target application interface includes a content display area, a vehicle status bar, and a vehicle navigation bar. Before determining the display state to be switched corresponding to the target application interface, the method further includes: determining a first display content displayed in the content display area, wherein the first display content is not displayed in the vehicle status bar and the vehicle navigation bar; The step of determining the display state to be switched corresponding to the target application interface includes: According to the first display content, it is determined that the display state to be switched corresponding to the target application interface is a non-full-screen state of the interface.
3. The method according to claim 2, characterized in that Before performing the switching calculation processing on the to-be-switched display state corresponding to the target application interface to obtain the switching calculation result corresponding to the target application interface, the method further includes: Determining an application interface size corresponding to the target application interface, and determining a first display size corresponding to the first display content; The performing a switching calculation process on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface includes: Hiding the vehicle status bar and the vehicle navigation bar in the target application interface to obtain the hidden vehicle status bar and the hidden vehicle navigation bar; Enlarging the first display size according to the application interface size to obtain an enlarged first display size, and enlarging the first display content according to the enlarged first display size to obtain an enlarged first display content; If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
4. The method according to claim 1, characterized in that: The target application interface includes a content display area, a hidden vehicle status bar, and a hidden vehicle navigation bar. Before determining the display state to be switched corresponding to the target application interface, the method further includes: Determining second display content displayed in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar; The step of determining the display state to be switched corresponding to the target application interface includes: According to the second display content, it is determined that the display state to be switched corresponding to the target application interface is a full-screen state of the interface.
5. The method according to claim 4, characterized in that Before performing the switching calculation processing on the to-be-switched display state corresponding to the target application interface to obtain the switching calculation result corresponding to the target application interface, the method further includes: Determining a display area size corresponding to the content display area, and determining a second display size corresponding to the second display content; The performing a switching calculation process on the to-be-switched display state corresponding to the target application interface to obtain a switching calculation result corresponding to the target application interface includes: Performing display processing on a hidden vehicle status bar and a hidden vehicle navigation bar in the target application interface to obtain a vehicle status bar and a vehicle navigation bar; reducing the second display size according to the display area size to obtain a reduced second display size, and reducing the second display content according to the reduced second display size to obtain a reduced second display content; If the reduced second display size is the same as the display area size, and the reduced second display content exists in the content display area, and the reduced second display content does not exist in the vehicle status bar and the vehicle navigation bar, generate a switching calculation result corresponding to the target application interface.
6. The method according to claim 3, characterized in that If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, generating a switching calculation result corresponding to the target application interface includes: If the enlarged first display size is the same as the application interface size, and the enlarged first display content exists in the content display area, the hidden vehicle status bar, and the hidden vehicle navigation bar, determining whether there is an operation control in the enlarged first display content; If there is an operation control in the enlarged first display content, determining whether the operation control exists in the hidden vehicle status bar and the hidden vehicle navigation bar; If the operation control does not exist in the hidden vehicle status bar and the hidden vehicle navigation bar, a switching calculation result corresponding to the target application interface is generated.
7. The method according to claim 3 or 5, characterized in that: The step of switching the display state to be switched to the target display state includes: Switching the interface from a non-full-screen state to a full-screen state; Alternatively, the full-screen state of the interface is switched to a non-full-screen state of the interface.
8. A device for switching the display state of an application interface, characterized in that: Deployed on vehicle terminals, including: A display state to be switched determining unit, used to determine the display state to be switched corresponding to the target application interface; A switching calculation result obtaining unit, used to perform switching calculation processing on the to-be-switched display state corresponding to the target application interface, and obtain a switching calculation result corresponding to the target application interface; a prompt switching request generating unit, configured to generate a prompt switching request according to the switching calculation result if the switching calculation result indicates that the display state to be switched is switched to a target display state, and output the prompt switching request to the target application interface; The display state switching unit to be switched is used to switch the display state to be switched to the target display state in response to receiving a display state switching instruction submitted by the target user in the target application interface according to the prompt switching request.
9. A vehicle-mounted terminal, characterized in that: Deployed in vehicles, including: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of the method for switching the display state of the application interface described in claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for switching the display state of the application interface described in claims 1-7 are implemented.