Terminal display method and terminal display device

The display method optimizes landscape mode display for applications by analyzing portrait mode settings and adjusting display operations, addressing deformation issues and enhancing user experience.

JP7725722B2Active Publication Date: 2025-08-19BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024517031
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-12-15
Filing Date
2022-11-15
Publication Date
2025-08-19
Estimated Expiration
2042-11-15

AI Technical Summary

Technical Problem

Intelligent display screens typically only support portrait mode applications and do not adapt well to landscape mode, leading to abnormal deformation and poor display quality, which negatively impacts user experience.

Method used

A display method that determines the applicability of applications in landscape mode by analyzing portrait mode settings, and adjusts display operations accordingly to avoid deformation, including single-screen and split-screen settings based on window information and user interactions.

Benefits of technology

This method effectively prevents abnormal display deformation and enhances user experience by optimizing landscape mode display for applications that do not natively support it, ensuring seamless transitions and improved interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007725722000001
    Figure 0007725722000001
  • Figure 0007725722000002
    Figure 0007725722000002
  • Figure 0007725722000003
    Figure 0007725722000003
Patent Text Reader

Abstract

A display method for a terminal and a display device for a terminal, the method including the steps of: determining a landscape mode display setting for an application based on a portrait mode display method of the application when the terminal is in landscape mode; and performing a display operation on the application based on the landscape mode display setting, where the application does not support landscape mode display.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed on December 15, 2021, bearing application number 202111537625.8 and entitled "Display method for terminal and display device for terminal," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of screen display, and more particularly to a display method for a terminal and a display device for a terminal. [Background technology]

[0003] In actual application, most intelligent display screens only support portrait mode applications and do not support landscape mode adaptive applications, so the terminal cannot support them. In the related art, the landscape mode display effect can be achieved by stretching and deforming the content displayed in portrait mode, but this method causes abnormal deformation of the displayed content and poor display, which greatly reduces the user experience. Summary of the Invention

[0004] The present application aims to at least partially solve one of the technical problems in the related art by providing a display method for a terminal that can effectively avoid the technical problems of application tensile deformation or insufficient display content by determining in advance the applicability of applications applied to a terminal and performing corresponding display operations for inapplicable applications, thereby improving user experience.

[0005] The present application further provides a display device for a terminal.

[0006] The present application further provides an electronic device.

[0007] The present application further provides a computer storage medium.

[0008] According to the display method for a terminal of the present application, the display method includes the steps of: when the terminal is in landscape mode, determining a landscape mode display setting for the application based on a portrait mode display method of the application; and performing a display operation on the application based on the landscape mode display setting, where the application does not support landscape mode display.

[0009] According to some embodiments of the present application, determining a landscape mode display setting for the application based on the portrait mode display method of the application includes obtaining portrait mode window setting information for the application; determining whether the application supports multi-window display based on the portrait mode window setting information; if the application does not support multi-window display, determining a first landscape mode setting for the application which is a single-screen display setting for the application; if the application supports multi-window display, determining a second landscape mode setting for the application which is a split-screen display setting for the application; and setting the first landscape mode setting or the second landscape mode setting as the landscape mode display setting.

[0010] According to some embodiments of the present application, the step of determining a first landscape mode setting of the application includes the steps of obtaining at least one regular window of the application, determining a main window setting corresponding to the portrait mode window setting information and determining a sub-window setting corresponding to the at least one regular window, and determining a first landscape mode setting of the application based on the main window setting and the sub-window setting.

[0011] According to some embodiments of the present application, the step of determining the second landscape mode setting of the application includes the steps of: determining the number of windows of the application to be displayed; and, if the number of windows is one, determining a setting for centering and displaying the application's target windows as the second landscape mode setting of the application; and, if the number of windows is at least two, acquiring window parameter information and determining the second landscape mode setting of the application based on the window parameter information.

[0012] According to some embodiments of the present application, the display method further includes the steps of: after determining a setting for centering and displaying the display target window of the application, modifying the setting for centering and displaying the display target window of the application in response to a user's boundary editing operation to obtain the boundary-modified setting; and setting the boundary-modified setting as a second landscape mode setting of the application.

[0013] According to some embodiments of the present application, the window parameter information includes a window size and a window position, and the step of determining a second landscape mode setting of the application based on the window parameter information includes the steps of obtaining a screen size of the terminal, determining a plurality of display areas of the terminal based on the window size and the screen size, determining a display setting of each display target window based on the window position and the plurality of display areas, and determining a second landscape mode setting of the application based on the display setting of each display target window.

[0014] According to some embodiments of the present application, the display method further includes a step of adjusting the window position in response to an adjustment operation on the window position and obtaining the adjusted position, and a step of determining display settings for each window to be displayed based on the adjusted position and the plurality of display areas.

[0015] According to some embodiments of the present application, the display method further includes the steps of: determining a current focus window after performing the display operation; determining a touch area corresponding to a touch event on the terminal in response to the touch event; determining whether the touch area is within the current focus window; if the touch area is not within the current focus window, setting the window in which the touch area is located as a new current focus window; and executing an operation command corresponding to the touch event.

[0016] According to some embodiments of the present application, the step of determining the current focus window includes the steps of traversing the display target windows and determining at least one first window from the display target windows that is in a first display state, and among the display target windows, windows other than the at least one first window are in a second display state; determining a default focus window in the first window; and setting the default focus window as the current focus window.

[0017] According to some embodiments of the present application, the at least one first window includes a parent display window and at least one child display window, and the step of executing the touch event includes the steps of determining an event type of the touch event, clearing the child display window and displaying a new child display window corresponding to the touch event if the event type is a window jump event, and refreshing to display a current focus window if the event type is a non-window jump event.

[0018] According to some embodiments of the present application, the display method further includes, after performing the display operation, a step of displaying the parent display window in portrait mode in response to a portrait mode operation of the terminal, and a step of setting the at least one child display window to the second display state.

[0019] According to some embodiments of the present application, the display method further includes a step of setting each child display window to the first display state in response to a landscape mode operation subsequent to the portrait mode operation of the terminal, and a step of performing the display operation on the at least one first window based on the second landscape mode setting.

[0020] A display device for a terminal according to an embodiment of the present application includes: a landscape mode setting determination unit that determines a landscape mode display setting for an application based on a portrait mode display method of the application when the terminal is in landscape mode; and a display unit that performs a display operation on the application based on the landscape mode display setting, where the application does not support landscape mode display.

[0021] An electronic device according to an embodiment of the present application includes at least one processor and a memory communicatively connected to the at least one processor, and the memory stores instructions that are executable by the at least one processor and, when executed by the at least one processor, cause the at least one processor to execute a display method according to an embodiment of the present application.

[0022] A computer-readable storage medium according to an embodiment of the present application stores a computer program, which, when executed by a processor, implements a display method according to an embodiment of the present application.

[0023] In the process of displaying an application applied to a terminal, the adaptability is first determined. If it is determined that the current application does not support landscape mode display, a corresponding landscape mode display setting is immediately generated based on the portrait mode display method of the application, and a corresponding display operation is performed, thereby effectively meeting the user's actual landscape mode display needs, avoiding the abnormal display situation of tensile deformation caused by the traditional forced landscape mode display, and improving the user experience.

[0024] Additional aspects and advantages of the present application will be set forth in part in the description that follows, and in part will be obvious from the description, or may be learned by practice of the present application. [Brief explanation of the drawings]

[0025] The above and / or additional aspects and advantages of the present application will become apparent and readily understood from the following detailed description of the preferred embodiments with reference to the following drawings.

[0026] [Figure 1] 1 is a flowchart illustrating a specific implementation of a terminal display method according to an embodiment of the present application. [Figure 2] 1 is a flowchart illustrating a specific implementation of determining a landscape mode display setting in a display method for a terminal according to an embodiment of the present application; [Figure 3] FIG. 10 is a schematic diagram illustrating a case where a first landscape mode setting is determined in the terminal display method according to the embodiment of the present application. [Figure 4] FIG. 10 is a schematic diagram illustrating a case where a first landscape mode setting is determined in a terminal display method according to another embodiment of the present application. [Figure 5] 1 is a schematic diagram illustrating a case where only one display target window is displayed in a terminal display method according to an embodiment of the present application. [Figure 6] 1 is a schematic diagram illustrating a case where two display target windows are displayed in a terminal display method according to an embodiment of the present application. [Figure 7] 10 is a schematic diagram illustrating a case where the positions of two display target windows are adjusted in a terminal display method according to an embodiment of the present application. FIG. [Figure 8] 10 is a schematic diagram illustrating a case where a display method for a terminal according to an embodiment of the present application is switched to a portrait mode display method. [Figure 9] 1 is a schematic diagram illustrating a configuration of a terminal display device according to an embodiment of the present application. [Figure 10] 1 is a schematic diagram illustrating the configuration of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION

[0027] Hereinafter, the embodiments of the present application will be described in detail, and examples of the embodiments are shown in the drawings, and the same or similar reference numerals throughout indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are merely illustrative and are intended to interpret the present application, but should not be understood as limiting the present application.

[0028] In the embodiments of the present application, the terms "system" and "network" may be used interchangeably. "Multiple" means two or more than two. In consideration of this, in the embodiments of the present application, "multiple" may be understood as "at least two." "And / or" describes a relational relationship between related objects and indicates that three types of relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " generally indicates that the related objects before and after it have an "or" relationship, unless otherwise specified. It should be understood that in the description of the embodiments of the present application, terms such as "first," "second," etc. are used merely for distinguishing and describing purposes and cannot be understood as indicating or suggesting relative importance or order.

[0029] As shown in FIG. 1, a display method for a terminal according to an embodiment of the present application includes: If the terminal is in landscape mode, determining a landscape mode display setting for the application based on the portrait mode display method of the application (step S10); and (S20) performing a display operation on the application based on the landscape mode display setting, where the application does not support landscape mode display.

[0030] In one possible embodiment, the display method according to the embodiment of the present application is applied to an in-vehicle terminal, and of course, it may also be applied to other display terminals, and the description here is omitted. For example, in the embodiment of the present application, the in-vehicle terminal is in a landscape mode by default, and the landscape mode state means that when the in-vehicle terminal is applied, the width of the display screen of the in-vehicle terminal is greater than the height of the screen. For example, the in-vehicle terminal may be a touch screen or may be a shared screen of another mobile terminal. In a certain application scenario, when a user launches or displays an application on the in-vehicle terminal, in order to realize a suitable display of the in-vehicle terminal in landscape mode and provide the user with a better user experience, the display setting information of the application is first obtained before displaying. For example, the in-vehicle terminal of the embodiment of the present application may be based on the Android operating system, and of course, may be based on other application systems (e.g., systems such as MacOS and Linux (registered trademark)). When launching an application, the Orientation attribute set by the application's manifest file or declared by code can be obtained to obtain the display setting information of the application, and it can be determined based on the display setting information whether the currently displayed application supports landscape mode display.

[0031] For example, in an embodiment of the present application, the application does not support landscape mode display, i.e., does not support the effect of adaptively adjusting the size of the display content in the application according to the screen layout state. In this case, the landscape mode display setting of the application can be further determined based on the portrait mode display method of the application, and corresponding display operations can be performed for the application based on the landscape mode display setting.

[0032] In the embodiment of the present application, by adaptively determining the display of applications on a terminal in advance, an optimized display is performed for applications that cannot be displayed in landscape mode. Specifically, a corresponding landscape mode display setting is generated based on the portrait mode display method, and a corresponding display operation is performed, thereby realizing a friendly landscape mode display without causing tensile deformation to the display content of the application, and effectively improving the user experience.

[0033] As shown in FIG. 2 , in an embodiment of the present application, the step of determining the landscape mode display setting of the application based on the portrait mode display manner of the application includes: Step S31) acquiring portrait mode window setting information of the application; a step S32) of determining whether the application supports multi-window display based on the portrait mode window setting information; If the application does not support multi-window display, determining a first landscape mode setting for the application (S33), which is a single-screen display setting for the application; If the application supports multi-window display, determining a second landscape mode setting for the application (S34), which is a split screen display setting for the application; and (S35) setting the first landscape mode setting or the second landscape mode setting as the landscape mode display setting.

[0034] In one possible embodiment, after determining that the application does not support landscape mode display, the determination of landscape mode display settings for the application is initiated. For example, in an embodiment of the present application, the application can be displayed in split screen, for example, by dividing the screen into left and right sides to achieve a landscape mode display effect in portrait mode display of the application. However, in actual application processes, not all applications support split screen display. For example, in one embodiment, engineers may find that an application specifically developed for a terminal application scenario supports split screen display effects and can perform split screen display in actual application processes, while some general-purpose software does not support split screen display, and therefore further optimization of the display is required for the general-purpose application.

[0035] Therefore, in the embodiment of the present application, in the process of actually displaying an application, the portrait mode window setting information of the application is first obtained, for example, by analyzing the resource file of the application, for example, the portrait mode window setting information is setting information for displaying the application in portrait mode (i.e., the width of the display window is smaller than the height), and whether the application supports multi-window display is determined based on the portrait mode window setting information. In the first embodiment, since the application does not support multi-window display, it is necessary to determine a first landscape mode setting corresponding to the single-screen display mode of the application.

[0036] In an embodiment of the present application, determining a first landscape mode setting of the application includes obtaining at least one regular window of the application; determining a main window setting corresponding to the portrait mode window setting information and determining a sub-window setting corresponding to the at least one regular window; and determining a first landscape mode setting of the application based on the main window setting and the sub-window setting.

[0037] As shown in Figure 3, in one possible embodiment, in the process of determining the first landscape mode setting of the application, at least one preferred window of the application is further obtained. For example, the preferred window is determined based on the application window that the user frequently uses during daily use. After determining the preferred window, a main window setting corresponding to the portrait mode window setting information of the application is further determined. For example, in this embodiment, the main window corresponding to the application is set to be displayed in a centered manner, and of course, it may be displayed in a width-justified manner (left-justified or right-justified). The main window setting may also include setting information for the size of the application's main window, such as increasing / decreasing the display width / height of the application, or the main window may be set to be closely attached to the upper and lower boundaries of the screen or installed with a predetermined gap between them. Finally, a sub-window setting corresponding to at least one preferred window is determined. At this time, a first landscape mode setting of the application is determined based on the main window setting and the sub-window setting, and a corresponding display is performed. The sub-window may be set to be displayed in the upper left corner of the screen, or may be displayed in the upper right corner of the screen, but is not limited thereto.

[0038] In an embodiment of the present application, an intentional landscape mode optimization display method is provided for an application based on the actual display settings of the application, so that the application can provide the user with a better landscape mode display effect during the display process, thereby improving the user's usage experience.

[0039] As shown in FIG. 4, in another possible embodiment, the application currently opened by the user is a karaoke application, and the user has two commonly used windows in the karaoke application. Therefore, on the one hand, a main window setting corresponding to the karaoke application is generated, for example, the main window setting is a setting to center and maximize the karaoke application and display it. On the other hand, a corresponding sub-window setting is generated based on the commonly used windows in the user's daily singing process, for example, the two commonly used windows are the user's featured songs list and the karaoke window, and for example, the sub-window setting is a setting to display the featured songs list and the karaoke window on both the left and right sides, respectively.

[0040] Of course, as can be easily understood from the above embodiments, those skilled in the art can also display the main window on the left side and the two sub-windows on the right side (for example, in the upper right and lower right positions, respectively). Furthermore, the number of sub-windows in the above embodiments is merely a specific embodiment and should not be considered as limiting the number of sub-windows. Those skilled in the art can set multiple sub-windows (more than two) according to actual needs, and all of these should fall within the scope of protection of the embodiments of the present application, and no further explanation will be given here.

[0041] Furthermore, in order to further improve the user experience and enhance the aesthetics of interaction, those skilled in the art can set an application theme background at the bottom of the terminal display screen, and display the above-mentioned main window and sub-windows on top of the application theme background to achieve a better user experience.

[0042] In the embodiment of the present application, by further providing users with independent display and shortcut display based on the traditional simple application display or step-by-step display based on click operations, a more optimized display effect is achieved that adapts to the landscape mode method based on the original portrait mode display of the application, and provides users with a better terminal application experience effect.

[0043] Based on the above technical solutions, the optimization of the landscape mode display effect is realized for an application that cannot perform landscape mode display and does not support multi-window display. Hereinafter, we will further describe how to achieve the optimization of the landscape mode display effect for an application that cannot perform landscape mode display but supports multi-window display.

[0044] In an embodiment of the present application, the step of determining the second landscape mode setting of the application includes the steps of: determining the number of windows to be displayed of the application; and, if the number of windows is one, determining a setting to center and display the application as the second landscape mode setting of the application; and, if the number of windows is at least two, acquiring window parameter information and determining the second landscape mode setting of the application based on the window parameter information.

[0045] In one possible embodiment, after determining that the application supports multi-window display, a landscape mode optimized display for the application is prepared. First, the number of windows to be displayed for the application is determined. The windows to be displayed are task windows in the same task stack. For example, in the process of displaying an application based on the Android system, the windows to be displayed for the application may be multiple windows in the same ActivityStack. For example, as shown in FIG. 5, when the application has just been launched, the application only needs to display its main screen, i.e., the number of windows to be displayed for the application is one. Therefore, the application can be centered to improve the aesthetics of the display. In this case, the centered display setting for the application can be the second landscape mode setting for the application.

[0046] Furthermore, in an embodiment of the present application, the display method further includes the steps of: after determining a setting for centering and displaying the application, modifying the setting for centering and displaying the application in response to a user's boundary editing operation to obtain the boundary-modified setting; and setting the boundary-modified setting as a second landscape mode setting for the application.

[0047] For example, after determining to center the application and obtain the corresponding display settings, it can monitor in real time whether the user has any further boundary editing operations, and trigger an immediate response when the user inputs a boundary editing operation. For example, the user can define the display boundary of the application according to actual needs, and then increase / decrease the display width of the application according to the user's boundary editing operation to modify the centered display settings and obtain the modified boundary settings, which are then used as the second landscape mode settings of the application. If the user does not input a boundary editing operation, the automatically generated display settings will be used as the second landscape mode settings of the application, and the application will be displayed in landscape mode by default.

[0048] As shown in FIG. 6, in another embodiment, when the application has at least two (for example, two) display target windows, in the display process, first, window parameter information is obtained, and a second landscape mode setting of the application is determined based on the window parameter information. For example, the window parameter information includes a window size and a window position. The step of determining a second landscape mode setting of the application based on the window parameter information includes: obtaining a screen size of the terminal; determining a plurality of display areas of the terminal based on the window size and the screen size; determining display settings of each display target window based on the window position and the plurality of display areas; and determining a second landscape mode setting of the application based on the display settings of each display target window.

[0049] During multi-window display for an application, the system uses WindowState to describe the application's active window. This implementation allows for the calculation of specific window boundaries and positions. For example, DisplayFrames defines the boundaries of the current window, and the display boundaries and positions of the windows are determined by modifying the corresponding boundary attributes of DisplayFrames, such as mFrame, mDisplayFrame, mVisibleFrame, and mDecorFrame. For example, if the current device display resolution is 1920*1080, the default landscape mode display width of a single window can be set to 960, and the display position can be set to [480, 1440]. In dual-window display, the default landscape mode display width of the window can be set to 955, the display position of the left window to [0, 955], and the display position of the right window to [965, 1920]. This determines the display settings for each window, and then determines the second landscape mode setting for the application.

[0050] In an embodiment of the present application, the display method further includes a step of adjusting the window position in response to an adjustment operation on the window position and obtaining the adjusted position, and a step of determining display settings for each window to be displayed based on the adjusted position and the plurality of display areas.

[0051] 7, in one possible embodiment, the display target windows include two windows. After displaying the application in landscape mode based on the second landscape mode setting of the application, for example, a default main window of the two windows is displayed on the left side of the screen and a default child window is displayed on the right side of the screen. At this time, whether an adjustment operation for the window positions of the two windows is acquired is monitored in real time. For example, if a user adjusts the window positions of the two windows by swiping one of the windows at a certain time, that is, an adjustment operation for the window positions is acquired, the display target windows are immediately responded to by, for example, adjusting the window positions of the windows based on the adjustment operation and acquiring the adjusted positions. Then, the display settings of each display target window are further determined based on the adjusted positions and the multiple display areas, and the application is then displayed.

[0052] In the embodiment of the present application, in the process of providing multi-window display for an application, real-time response is provided to the user's window adjustment operations, which can better meet the user's needs for actual screen observation and improve the user experience.

[0053] In an embodiment of the present application, the display method further includes: determining a current focus window after performing the display operation; determining a touch area corresponding to a touch event on the terminal in response to the touch event; determining whether the touch area is within the current focus window; if the touch area is not within the current focus window, setting a window where the touch area is located as a new current focus window; and executing an operation command corresponding to the touch event.

[0054] Furthermore, in an embodiment of the present application, the step of determining the current focus window includes the steps of traversing the display target windows and determining at least one first window in a first display state from the display target windows, and among the display target windows, windows other than the at least one first window are in a second display state; determining a default focus window in the first window; and setting the default focus window as the current focus window.

[0055] Because the system can only display one focus window at a time and respond to corresponding operations, after determining the display settings of each window of the application and performing the corresponding landscape mode display, it is necessary to further acquire the focus window in real time to achieve accurate responses to multi-window touch events. In one possible embodiment, after performing a display operation, the current focus window is determined. For example, in this embodiment, the display target windows, all of which are in the same ActivityStack, are traversed, and from the display target windows, a first window in a displayed state is determined, including, for example, a main window displayed on the left side of the screen and a child window displayed on the right side of the screen, while all other windows among the display target windows are in a paused or cleared state. Then, a default focus window is determined for the first window. For example, the main window may be preset as the default focus window, and after the application is launched, the main window displayed after the application is launched becomes the default focus window.

[0056] After determining the default focus window, the default focus window is set as the current focus window. At this time, whether there is a touch event for the terminal is monitored in real time. For example, at a certain time, a user touches the display screen of the terminal. In response to the touch event, the terminal first determines a touch area corresponding to the touch event, for example, determines the touch area corresponding to the touch event based on the horizontal and vertical coordinates of the touch event on the terminal. Then, it further determines whether the touch area is within the current focus window. If the touch area is not within the current focus window, the window where the touch area is located is set as the new current focus window, thereby realizing focus window switching. Then, it executes an operation command corresponding to the touch event, thereby realizing an accurate response to the touch event.

[0057] In the embodiment of the present application, after a display operation is performed, the current focus window of the application displayed on the split screen is updated or switched in real time, thereby realizing accurate execution of touch events and improving the user experience.

[0058] In an embodiment of the present application, the at least one first window includes a parent display window and at least one child display window, and the step of executing the touch event includes the steps of: determining an event type of the touch event; if the event type is a window jump event, clearing the child display window and displaying a new child display window corresponding to the touch event; and if the event type is a non-window jump event, refreshing and displaying a current focus window.

[0059] In one possible embodiment, after acquiring the touch event, the event type of the touch event is first determined. For example, in the embodiment of the present application, the touch type includes a window jump event and a non-window jump event. A window jump event is an event that jumps from a current window to another window. For example, if the user's touch operation is clicking a jump link, the touch event can be determined to be a window jump event. Non-window jump events can include, but are not limited to, events such as document viewing and image enlargement (clicking an image to enlarge it). In another embodiment, if the user's touch event is clicking a jump link, the child display window is cleared (regardless of whether the window jump event occurs in a parent display window or a child display window, if it occurs in a parent display window, it is determined that another child window is to be viewed, so a clear operation is performed on the right child display window; if it occurs in a child display window, it is also necessary to clear the current child display window and display a new child display window), and then the touch event is executed to display a corresponding new child display window, for example, refresh it at the position of the current child display window, and display the window to be jumped to.

[0060] In the embodiment of the present application, by performing corresponding window update display according to the event type of the user's touch event, it is possible to avoid the same window being added to the right child window multiple times, effectively avoid the occurrence of abnormal display and abnormal response situations, improve the stability of application use, and enhance the user experience.

[0061] In an embodiment of the present application, the display method further includes, after performing the display operation, displaying the parent display window in portrait mode in response to a portrait mode operation of the terminal, and setting the at least one child display window to the second display state.

[0062] Furthermore, in an embodiment of the present application, the display method further includes a step of setting each child display window to the first display state in response to a landscape mode operation subsequent to the portrait mode operation of the terminal, and a step of performing the display operation on the at least one first window based on the second landscape mode setting.

[0063] As can be easily understood by those skilled in the art, most in-vehicle terminals are fixedly installed in automobiles, but there are also in-vehicle terminals that are detachably installed in automobiles. For such terminals, when a user holds the terminal in portrait orientation, the landscape mode display method still reduces the user experience, so it is necessary to automatically perform dynamic display switching according to the actual orientation of the terminal.

[0064] As shown in Figure 8, in one possible embodiment, after a display operation is performed, the terminal monitors in real time whether a portrait mode operation has been received. For example, it monitors whether the terminal has been placed in portrait orientation at a certain time, i.e., it detects a portrait mode operation for the terminal and immediately responds. Specifically, if multiple windows of an application are currently displayed in a split screen, the parent display window of the application is displayed in portrait mode, and at least one child display window is set to the second display state. For example, the parent display window is displayed in portrait mode, and the remaining child display windows are displayed in a paused state, overlapping the parent display window.

[0065] Furthermore, after responding to the portrait mode operation, it further monitors whether a landscape mode operation subsequent to the portrait mode operation is acquired, for example, it monitors whether the user returns the terminal to the landscape mode state at another time, that is, it detects a landscape mode operation subsequent to the portrait mode operation, and at this time, it sets all of the child display windows to a first display state, for example, it sets all of the child display windows to a display state again, and then performs a display operation on the at least one first window based on the second landscape mode setting, thereby realizing the display of applications that do not support landscape mode display or adaptive portrait mode switching display during the process of switching between portrait mode and landscape mode of the terminal, effectively improving the user's usage experience and meeting the user's actual needs.

[0066] Hereinafter, a terminal display device according to an embodiment of the present invention will be described with reference to the drawings.

[0067] As shown in FIG. 9 , based on the same inventive concept, an embodiment of the present application provides a display device for a terminal, the display device including: a landscape mode setting determination unit for determining a landscape mode display setting of an application based on a portrait mode display manner of the application when the terminal is in a landscape mode; and a display unit for performing a display operation for the application based on the landscape mode display setting, where the application does not support landscape mode display.

[0068] As shown in FIG. 10, the electronic device according to the embodiment of the present application further includes at least one processor and a memory communicatively connected to the at least one processor, and the memory stores instructions that are executable by the at least one processor and, when executed by the at least one processor, cause the at least one processor to execute the display method according to the embodiment of the present application.

[0069] Furthermore, a computer-readable storage medium according to a further embodiment of the present application stores a computer program, which, when executed by a processor, implements the method according to the embodiment of the present application.

[0070] Although the preferred embodiments of the present invention have been described in detail above with reference to the drawings, the present invention is not limited to the specific contents of the above embodiments, and various simple modifications can be made to the technical means of the present invention within the scope of the technical idea of the present invention, and all of these simple modifications fall within the scope of protection of the present invention.

[0071] It should be noted that the specific technical features described in the above specific embodiments can be combined in any suitable manner if not contradictory, and in order to avoid unnecessary duplication, the examples of the present application do not separately describe all possible combinations.

[0072] As can be understood by those skilled in the art, the realization of all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program is stored in a storage medium and includes several instructions for causing a single-chip microcomputer, chip, or processor to execute all or part of the steps of the methods of the above embodiments. The storage medium includes various media that can store program code, such as a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0073] Furthermore, various embodiments of the examples of the present application can be combined in any manner, and should be considered to be the same as the contents disclosed in the examples of the present application, unless they deviate from the concept of the examples of the present application.

Claims

1. A display method for a terminal, comprising: When the terminal is in a landscape mode, determining a landscape mode display setting of the application based on a portrait mode display manner of the application; performing a display operation on the application based on the landscape mode display setting, wherein the application does not support landscape mode display; Including, determining a landscape mode display setting for the application based on a portrait mode display style of the application, obtaining portrait mode window setting information of the application; determining whether the application supports multi-window display based on the portrait mode window setting information; if the application does not support multi-window display, determining a first landscape mode setting for the application, which is a single-screen display setting for the application, and setting the first landscape mode setting as the landscape mode display setting; Including, determining a first landscape mode setting for the application, obtaining at least one active window of said application; determining a main window setting corresponding to the portrait mode window setting information, and determining a sub-window setting corresponding to the at least one regular window; determining a first landscape mode setting for the application based on the main window setting and the subwindow setting; characterized in that it comprises Display method.

2. determining a landscape mode display setting for the application based on a portrait mode display style of the application, If the application supports multi-window display, determining a second landscape mode setting for the application, which is a split screen display setting for the application, and setting the second landscape mode setting as the landscape mode display setting; characterized in that it comprises The display method according to claim 1 .

3. determining a second landscape mode setting for the application; determining the number of windows to be displayed for the application; If the number of windows is one, determining a setting for centering and displaying the display target window of the application as a second landscape mode setting of the application; if the number of windows is at least two, obtaining window parameter information and determining a second landscape mode setting for the application based on the window parameter information; characterized in that it comprises The display method according to claim 2.

4. After determining a setting for centering and displaying the display target window of the application, in response to a user's boundary editing operation, modifying the settings for centering and displaying the target window of the application to obtain the boundary-modified settings; setting the boundary-modified setting as a second landscape mode setting for the application; Further comprising: The display method according to claim 3.

5. the window parameter information includes a window size and a window position; determining a second landscape mode setting for the application based on the window parameter information, obtaining a screen size of the terminal; determining a plurality of display areas of the terminal based on the window size and the screen size; determining a display setting for each display target window based on the window position and the plurality of display areas; determining a second landscape mode setting for the application based on the display setting for each display target window; characterized in that it comprises The display method according to claim 3.

6. adjusting the window position in response to an adjustment operation on the window position to obtain an adjusted position; determining a display setting for each display target window based on the adjusted position and the plurality of display areas; Further comprising: The display method according to claim 5.

7. determining a current focus window after performing the display operation; In response to a touch event on the terminal, determining a touch area corresponding to the touch event; determining whether the touch area is within the current focus window; if the touch area is not within the current focus window, setting the window in which the touch area is located as a new current focus window; executing an operation command corresponding to the touch event; Further comprising: The display method according to claim 3.

8. The step of determining a current focus window comprises: traversing the display target windows and determining at least one first window from the display target windows that is in a first display state, and windows other than the at least one first window among the display target windows are in a second display state; determining a default focus window in the first window; setting the default focus window as the current focus window; characterized in that it comprises The display method according to claim 7.

9. the at least one first window includes a parent display window and at least one child display window; The step of executing the touch event includes: determining an event type of the touch event; If the event type is a window jump event, clearing the child display window and displaying a new child display window corresponding to the touch event; if the event type is a non-window jump event, refreshing to display the current focus window; characterized in that it comprises The display method according to claim 8.

10. After performing the display operation, in response to a portrait mode operation of the terminal, displaying the parent display window in portrait mode; setting the at least one child display window to the second display state; Further comprising: The display method according to claim 9.

11. setting each child display window to the first display state in response to a landscape mode operation of the terminal subsequent to the portrait mode operation; performing the display operation on the at least one first window based on the second landscape mode setting; Further comprising: The display method according to claim 10.

12. A display device for a terminal, a landscape mode setting determination unit for determining a landscape mode display setting of the application according to a portrait mode display manner of the application when the terminal is in a landscape mode; a display unit that performs a display operation on the application based on the landscape mode display setting, the application not supporting landscape mode display; and Including, The landscape mode setting determination unit determines a landscape mode display setting of the application based on a portrait mode display method of the application, obtaining portrait mode window setting information for the application; determining whether the application supports multi-window display based on the portrait mode window setting information; if the application does not support multi-window display, determining a first landscape mode setting for the application, which is a single-screen display setting for the application, and setting the first landscape mode setting to the landscape mode display setting; Including, The landscape mode setting determining unit determining a first landscape mode setting of the application includes: obtaining at least one active window of said application; determining a main window setting corresponding to the portrait mode window setting information, and determining a sub-window setting corresponding to the at least one regular window; determining a first landscape mode setting for the application based on the main window setting and the sub-window setting; characterized in that it comprises Display device.

13. at least one processor; a memory communicatively coupled to the at least one processor; Including, The memory stores instructions that are executable by the at least one processor and that, when executed by the at least one processor, cause the at least one processor to perform the display method according to any one of claims 1 to 11. electronic equipment.

14. A computer-readable storage medium having a computer program stored thereon, The program, when executed by a processor, realizes the display method according to any one of claims 1 to 11. A computer-readable storage medium.

Citation Information

Patent Citations

  • An application display method and electronic equipment

    CN109814766A

  • Display device and display method for application program interface

    CN111625163A