Terminal display method and terminal display device

The display method optimizes landscape mode display for applications by analyzing portrait mode settings and user interactions, addressing deformation issues and improving user experience on terminals.

JP2024541797AActive Publication Date: 2024-11-13BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024517031
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-15
Filing Date
2022-11-15
Publication Date
2024-11-13
Estimated Expiration
2042-11-15

AI Technical Summary

Technical Problem

Intelligent display screens typically support only portrait mode applications and fail to adapt to landscape mode, leading to abnormal content deformation and display defects, which degrade user experience.

Method used

A display method for terminals that determines the applicability of applications in landscape mode by analyzing portrait mode settings, and performs corresponding display operations to optimize the display for landscape mode, including determining single or split screen settings based on window configurations and user interactions.

Benefits of technology

This method effectively avoids abnormal deformation and enhances user experience by adapting display settings for applications that do not natively support landscape mode, ensuring optimal display and interaction in landscape orientation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024541797000001_ABST
    Figure 2024541797000001_ABST
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 the actual application process, 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 display effect of landscape mode can be achieved by stretching and deforming the content displayed in portrait mode, but the above method causes abnormal deformation and display defects of the displayed content, greatly reducing 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, and provides a display method for a terminal, which can effectively avoid the technical problems of tensile deformation of applications or small display content by pre-determining 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 a step 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 a step of 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, the step of determining a landscape mode display setting of the application based on a portrait mode display method of the application includes the steps of 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 of the application which is a single-screen display setting of the application; if the application supports multi-window display, determining a second landscape mode setting of the application which is a split-screen display setting of 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 a window number of display target windows of the application; and, if the number of windows is one, determining a setting for centering and displaying the display target windows of 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.

[0012] According to some embodiments of the present application, the display method further includes a step of determining a setting for centering and displaying the display target window of the application, and then modifying the setting for centering and displaying the display target window of the application in response to a user's border editing operation to obtain a border-modified setting, and a step of setting the border-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 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.

[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 an adjusted position, and a step of determining display settings for each window to be displayed based on the adjusted position and the multiple 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 a 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 of 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, realizes a display method according to an embodiment of the present application.

[0023] In the process of displaying an application applied to a terminal, first judge the adaptability, and if it is determined that the current application does not support landscape mode display, immediately generate a corresponding landscape mode display setting based on the portrait mode display method of the application, and perform a corresponding display operation, 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 description of the drawings]

[0025] The above and / or additional aspects and advantages of the present application will become apparent and will be readily understood by reference to the following detailed description of the preferred embodiments with reference to the drawings, in which:

[0026] [Figure 1] 2 is a flowchart for specifically implementing a terminal display method according to an embodiment of the present application; [Diagram 2] 4 is a flowchart for specifically realizing determining a landscape mode display setting in a display method for a terminal according to an embodiment of the present application; [Diagram 3] FIG. 11 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] 11 is a schematic diagram illustrating a case where a first landscape mode setting is determined in a display method for a terminal according to another embodiment of the present application. FIG. [Diagram 5] 1 is a schematic diagram of a case where only one display target window is displayed in a terminal display method according to an embodiment of the present application. FIG. [Figure 6] 1 is a schematic diagram showing a case where two display target windows are displayed in a terminal display method according to an embodiment of the present application. [Figure 7] 1 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. [Figure 8] 1 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 a configuration of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[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] The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "Multiple" means two or more than two, and in consideration of this, in the embodiments of the present application, "multiple" may be understood as "at least two". "And / or" describes the related relationship of 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 have an "or" relationship, unless otherwise specified. It should be understood that in the description of the embodiments of the present application, vocabulary such as "first", "second", etc. are merely for distinguishing and explaining, and cannot be understood as indicating or suggesting relative importance, nor can they be understood as indicating or suggesting order.

[0029] As shown in FIG. 1, a display method for a terminal according to an embodiment of the present application, the display method includes: If the terminal is in landscape mode, determining a landscape mode display setting for the application based on a portrait mode display style of the application (S10); The method includes a step S20) of 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 a vehicle-mounted terminal, and of course, it can also be applied to other display terminals, and the description is omitted here.For example, in the embodiment of the present application, the vehicle-mounted terminal is in a landscape mode state by default, and the landscape mode state is a state in which the width of the display screen of the vehicle-mounted terminal is larger than the height of the screen when the vehicle-mounted terminal is applied, for example, the vehicle-mounted terminal can be a touch screen or a shared screen of other mobile terminals. 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 application obtains the Orientation attribute set by the manifest file or applied by code to obtain the display setting information of the application, and determines whether the currently displayed application supports landscape mode display based on the display setting information.

[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, a landscape mode display setting for the application can be further determined based on the portrait mode display method of the application, and a corresponding display operation can be performed for the application based on the landscape mode display setting.

[0032] In the embodiment of the present application, the display of an application on a terminal is adaptively determined in advance, and an optimized display is performed for an application 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 a landscape mode display setting of the application based on a portrait mode display manner of the application includes: A step S31) of acquiring portrait mode window setting information of the application; A step S32) of determining whether the application supports a 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 (S33); 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 (S34); and a step S35) of 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, start to determine the landscape mode display setting of the application.For example, in the embodiment of the present application, the application can be displayed in a split screen, for example, the application can be displayed in a manner of being divided into left and right screens to achieve the landscape mode display effect of the application in the portrait mode display manner, but in the actual application process, not all applications support split screen display.For example, in one embodiment, engineers may find that an application specially developed for the application scenario of a terminal supports the split screen display effect and can perform split screen display in the actual application process, whereas in the case of a general-purpose software, the split screen display is not supported, so the general-purpose application needs to be further optimized for display.

[0035] Therefore, in the embodiment of the present application, in the process of actually displaying an application, first, obtain the portrait mode window setting information of the application, for example, the portrait mode window setting information of the application can be obtained by analyzing the resource file of the application, for example, the portrait mode window setting information is setting information for displaying the application in a portrait mode (i.e., the width of the display window is smaller than the height), and based on the portrait mode window setting information, it is determined whether the application supports multi-window display. 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, the step of determining a first landscape mode setting of the application includes the steps of obtaining at least one common 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 common 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 Fig. 3, in one possible embodiment, in the process of determining the first landscape mode setting of the application, at least one common window of the application is further obtained, for example, the common window is determined based on the application window that the user frequently uses in the process of the user's daily use. After determining the common window, further determine a main window setting corresponding to the portrait mode window setting information of the application, for example, in the embodiment of the present application, the main window corresponding to the application is set to be displayed in a centered manner, and may be displayed in a width-justified manner (left-justified or right-justified), the main window setting may further include setting information for the size of the main window of the application, for example, the display width / display height of the application may be increased / decreased, or the main window may be set to be closely attached to the upper and lower boundaries of the screen, or may be set at a predetermined distance from the upper and lower boundaries, and determine a sub-window setting corresponding to at least one common window, and then determine the first landscape mode setting of the application based on the main window setting and the sub-window setting to perform corresponding display. 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, and improve 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 there are two commonly used windows of the user 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 for centering and maximizing the karaoke application and displaying it, and on the other hand, a corresponding sub-window setting is generated based on the commonly used windows in the process of the user listening to songs on a daily basis, 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 for displaying 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 embodiment, those skilled in the art can also display the main window to the left and the two sub-windows to the right (for example, displayed at the upper right and lower right positions, respectively). Furthermore, the number of sub-windows in the above embodiment is merely a specific embodiment and should not be regarded 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 beauty of interaction, those skilled in the art can set an application theme background at the bottom of the display screen of the terminal, and display the above-mentioned main window and sub-windows superimposed on the application theme background to achieve a better user experience.

[0042] In the embodiment of the present application, based on the traditional simple application display or step-by-step display based on click operations, independent display and shortcut display are further provided to the user, thereby achieving a more optimized display effect that adapts to the landscape mode manner based on the original portrait mode display of the application, and providing the user with a better terminal application experience effect.

[0043] Based on the above technical means, 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 optimize 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; if the number of windows is one, determining a setting for centering and displaying the application as the second landscape mode setting of the application; 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, prepare a landscape mode optimized display for the application. First, determine the number of windows of the application to be displayed, and the windows to be displayed are task windows of the same task stack. For example, in the process of displaying an application based on the Android system, the windows to be displayed of the application may be multiple windows in the same ActivityStack stack. For example, in one embodiment, as shown in FIG. 5, the application has just been launched, and at this time, the application only needs to display its main screen, that is, the number of windows of the application to be displayed is one, so the application can be centered and displayed to improve the beauty of the display. At this time, the setting of centering and displaying the application can be the second landscape mode setting of the application.

[0046] Furthermore, in an embodiment of the present application, the display method further includes a step 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 a boundary-modified setting, and setting the boundary-modified setting as a second landscape mode setting of the application.

[0047] For example, after determining to center the application and obtain the corresponding display setting, it can monitor in real time whether the user has further boundary editing operations, and immediately trigger a response when the user inputs the boundary editing operation, for example, the user himself can define the display boundary of the application according to actual needs, and at this time, the display width of the application can be increased / decreased according to the user's boundary editing operation to realize the modification of the centering display setting to obtain the boundary modified setting, and the boundary modified setting can be the second landscape mode setting of the application. If the user does not input the boundary editing operation, the automatically generated display setting is set as the second landscape mode setting of the application to perform landscape mode display by default.

[0048] As shown in FIG. 6, in another embodiment, when the application has at least two (e.g., two) display target windows, in the display process, first, obtain window parameter information, and determine a second landscape mode setting of the application based on the window parameter information, for example, 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: 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] In the process of performing multi-window display for the application, the active window of the application is described by the system side by WindowState, so that the implementation can realize the calculation of specific window boundaries and positions. For example, DisplayFrames in it defines all the boundaries of the current window, so that the display boundaries and positions of the window are determined by modifying the boundary attributes such as mFrame, mDisplayFrame, mVisibleFrame, mDecorFrame, etc. corresponding to DisplayFrames. For example, if the display resolution of the current terminal is 1920*1080, it can be defined that the default landscape mode display width of the single window is set to 960, and the display position is set to [480,1440]. In the case of dual window display, the landscape mode display width of the window is set to 955 by default, the display position of the left window is set to [0,955], and the display position of the right window is set to [965,1920], that is, the display settings of each display target window are determined, and the second landscape mode setting of the application is further determined.

[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] As shown in Fig. 7, in one possible embodiment, the display target window includes two windows, and 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, and at this time, whether or not an adjustment operation for the window position of the window is obtained is monitored in real time. For example, at a certain time, a user adjusts the window position of the two windows by swiping one of the windows, that is, it is monitored that an adjustment operation for the window position is obtained, so that the display target window immediately responds, for example, adjusts the window position of the window based on the adjustment operation, and obtains the adjusted position, and then further determines the display setting of each display target window based on the adjusted position and the multiple display areas, and then displays the application.

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

[0053] In an embodiment 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 a window in which 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] Since the system can only describe one focus window at the same time and perform corresponding operation response, after determining the display setting of each window of the application and performing the corresponding landscape mode display, it is necessary to further obtain the focus window in real time to realize accurate response to multi-window touch events. In one possible embodiment, after performing the display operation, the current focus window is determined, for example, in the embodiment of the present application, 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 display state is determined, which includes, 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, and the other windows among the display target windows are all in a display pause or clear state. Then, a default focus window is determined in 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, and at this time, it is monitored in real time whether there is a touch event for the terminal. For example, at a certain time, a user touches the display screen of the terminal, so that the terminal responds to the touch event by first determining a touch area corresponding to the touch event, for example, determining the touch area corresponding to the touch event based on the horizontal and vertical coordinates of the touch event on the terminal, and then further determining 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 a new current focus window, thereby realizing focus window switching, and then executing an operation command corresponding to the touch event, thereby realizing an accurate response to the touch event.

[0057] In an embodiment of the present application, after a display operation is performed, the current focus window of an application displayed on a 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, 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.

[0059] In one possible embodiment, after obtaining the touch event, first determine the event type of the touch event, for example, in the embodiment of the present application, the touch type includes a window jump event and a non-window jump event, and 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 to click a jump link, it can be determined that the touch event is a window jump event, and a non-window jump event can include, but is not limited to, events such as document viewing, image enlargement (clicking an image to enlarge it), etc. In another embodiment, if the user's touch event is to click a jump link, clear the child display window (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, and 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 execute the touch event to display a corresponding new child display window, for example, refresh at the position of the current child display window to display the window to be jumped to.

[0060] In the embodiment of the present application, a corresponding window update display is performed according to the event type of the user's touch event, thereby avoiding the same window being added to the right child window multiple times, effectively avoiding the occurrence of abnormal display and abnormal response situations, improving the stability of application use, and improving the user experience.

[0061] In an embodiment 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.

[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 vehicle-mounted terminals are fixedly installed in the vehicle, but there are also vehicle-mounted terminals that are detachably installed in the vehicle. 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 Fig. 8, in one possible embodiment, after performing a display operation, the terminal monitors in real time whether it has received a portrait mode operation, for example, monitors that the terminal has been placed vertically at a certain time, that is, it has received a portrait mode operation for the terminal, and responds immediately. Specifically, when 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 manner overlapping the parent display window.

[0065] Furthermore, after responding to the portrait mode operation, further monitor whether a landscape mode operation subsequent to the portrait mode operation is obtained, for example, monitor whether the user returns the terminal to a landscape mode state again at another time, that is, obtain a landscape mode operation subsequent to the portrait mode operation, and at this time, set all of the child display windows to a first display state, for example, set all of the child display windows to a display state again, and then perform 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, so as to effectively improve the user's usage experience and meet the user's actual needs.

[0066] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 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, which includes: a landscape mode setting determination unit, which determines a landscape mode display setting of the application based on a portrait mode display manner of the application when the terminal is in a landscape mode, and a display unit, which performs 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, an electronic device according to an 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 a display method according to an embodiment of the present application.

[0069] Further, a computer readable storage medium according to a further embodiment of the present application stores a computer program, which, when executed by a processor, performs 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 ideas of the present invention, and all of these simple modifications fall within the scope of protection of the present invention.

[0071] In addition, 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 combination manners.

[0072] As can be understood by those skilled in the art, the realization of all or part of the steps in the method of the above embodiments can be completed by instructing relevant hardware by a program, the program being stored in a storage medium and including several instructions for making a single-chip microcomputer, chip or processor execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes various media capable of storing program code, such as U disk, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0073] Furthermore, various embodiments of the examples of the present application can be combined in any manner, and should be considered as being 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, the application not supporting landscape mode display; 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, 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 that 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, the second landscape mode setting being a split screen display setting for the application; setting the first landscape mode setting or the second landscape mode setting as the landscape mode display setting; Characterized in that it comprises The display method according to claim 1 .

3. The step of 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 subwindow setting; Characterized in that it comprises The display method according to claim 2.

4. The step of determining a second landscape mode setting for the application includes: determining a number of windows to be displayed for the application; determining, when the number of windows is one, a setting for centering and displaying a 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.

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

6. 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 display settings for each window to be displayed based on the window positions and the plurality of display areas; determining a second landscape mode setting for the application based on the display setting for each displayed window; Characterized in that it comprises The display method according to claim 4.

7. adjusting the window position in response to an adjustment operation on the window position to obtain an adjusted position; determining display settings for each of the display target windows based on the adjusted positions and the plurality of display regions; Further comprising: The display method according to claim 6.

8. 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 4.

9. 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 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; setting the default focus window as a current focus window; Characterized in that it comprises The display method according to claim 8.

10. 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 9.

11. 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 10.

12. 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; 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 11.

13. 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 configured to perform a display operation on the application based on the landscape mode display setting, the application not supporting a landscape mode display; and Characterized in that it comprises Display device.

14. At least one processor; a memory communicatively coupled to the at least one processor; Including, The memory stores instructions executable by the at least one processor and, when executed by the at least one processor, causes the at least one processor to perform a display method according to any one of claims 1 to 12. electronic equipment.

15. 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 12. 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