Split-screen display method, display device and storage medium
By acquiring the application's aspect ratio range and screen width allocation mode, and combining priority and scaling strategies, the split-screen display on the display device is dynamically adjusted, solving the problem of poor split-screen display effect in existing technologies, and achieving better display effect and the ability to adapt to ultra-wide screen devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HISENSE VISUAL TECH CO LTD
- Filing Date
- 2026-02-12
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technologies fail to fully consider the display characteristics of applications when applying split-screen displays, resulting in poor split-screen display effects, especially on ultra-wide screen display devices where it is difficult to achieve the best display effect.
By obtaining the aspect ratio range of the application to be displayed in split screen, and combining it with the preset screen width allocation mode, the display width and height of the application are dynamically adjusted using priority order traversal and scaling strategies to ensure that the split screen display meets the display requirements of the application and optimizes the display effect.
While meeting application display requirements, the system prioritizes display solutions that offer a better user experience, improving split-screen display effects, adapting to ultra-wide screen display devices, avoiding content cropping or visual compression, and ensuring the integrity and compatibility of the user experience.
Smart Images

Figure CN122332001A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application display technology, and in particular to an application split-screen display method, display device and storage medium. Background Technology
[0002] Split-screen display technology allows different applications to be displayed on the same screen. However, some technologies use a fixed ratio (e.g., 1:1) to divide the display, which doesn't consider the application's own display characteristics and may not achieve optimal split-screen display results in some situations. Summary of the Invention
[0003] Based on this, this application provides an application split-screen display method, display device, and storage medium to improve the application split-screen display effect.
[0004] Some embodiments provide an application split-screen display method, the method comprising:
[0005] Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split screen on the display device screen;
[0006] Get multiple preset screen width allocation patterns;
[0007] The system iterates through multiple screen width allocation modes according to a preset priority order. When one of the screen width allocation modes is reached, if the first display aspect ratio range and the second display aspect ratio range are satisfied based on the two display aspect ratios of the screen width allocation mode, the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen.
[0008] The first application and the second application are displayed in a split-screen format on the screen according to the application display width and the application display height.
[0009] Some embodiments provide a display device including a screen and a controller; the controller is configured to:
[0010] Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split screen on the screen.
[0011] Get multiple preset screen width allocation patterns;
[0012] The screen width allocation modes are traversed in a preset priority order. When one of the screen width allocation modes is traversed, if the first display width and height range and the second display width and height range are satisfied according to the two display width and height ratios of the screen width allocation mode, the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen.
[0013] The first application and the second application are displayed in a split-screen format on the screen according to the application display width and the application display height.
[0014] Some embodiments provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the above-described method.
[0015] The above technical solution has the following beneficial effects:
[0016] For the first and second applications displayed in a split-screen configuration on the display device screen, this design combines the first aspect ratio range of the first application with the second aspect ratio range of the second application for split-screen display. This approach fully considers the display characteristics of each application and improves the split-screen display effect. Furthermore, after obtaining the first and second aspect ratio ranges of the first and second applications from the application information in the application management list, multiple screen width allocation modes are traversed according to a preset priority order. When a screen width allocation mode is encountered, if it satisfies both the first and second aspect ratio ranges, the display width of the first and second applications can be determined based on the corresponding display width allocation ratio. The display height of the first and second applications is then obtained based on the screen's display height. The first and second applications are then displayed in a split-screen configuration on the screen according to their display width and height. This design, through a priority matching mechanism, traverses multiple screen width allocation modes to ensure that the split-screen layout prioritizes the display scheme with the best user experience while meeting the application display requirements, and also better adapts to ultra-wide screen display devices. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application;
[0018] Figure 2 This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application;
[0019] Figure 3This is a diagram illustrating the effect of automatically adjusted application split-screen display in one embodiment of the related technology;
[0020] Figure 4 This is a diagram illustrating the effect of manually adjusted application split-screen display in a related technology in one embodiment.
[0021] Figure 5 This is a flowchart illustrating the application of a split-screen display method in one embodiment;
[0022] Figure 6 These are illustrations showing the application split-screen display effect provided in some embodiments of this application;
[0023] Figure 7 Another application split-screen display effect diagram provided for some embodiments of this application;
[0024] Figure 8 This application provides another example of a split-screen display effect.
[0025] Figure 9 This application provides another example of a split-screen display effect.
[0026] Figure 10 A schematic diagram illustrating the process of determining the display aspect ratio provided for some embodiments of this application;
[0027] Figure 11 A flowchart illustrating the process of determining the application display width and application display height, provided for some embodiments of this application;
[0028] Figure 12 This is a structural block diagram of a split-screen display device used in one embodiment;
[0029] Figure 13 This is a signaling interaction diagram between the controller and the screen in one embodiment. Detailed Implementation
[0030] In this application embodiment, display device 100 generally refers to a device with screen display and data processing capabilities, such as smart TV, mobile terminal, computer, monitor, advertising screen, wearable device, virtual reality device, augmented reality device, etc.
[0031] like Figure 1 As shown, the display device 100 may include at least one of the following: a tuner 110, a communication device 120, a detector 120, a device interface 140, a controller 150, a screen 160, an audio output device 170, a memory, a power supply, and a user input interface.
[0032] Detector 120 is used to acquire signals from the external environment or through interaction with the outside world. For example, detector 120 may include an image acquisition device or an audio acquisition device. Screen 160 includes display function components for presenting images and driving components for driving the image display.
[0033] The communication device 120 enables the display device 100 to communicate with external devices or the server 400 via wireless or wired connection. The display device 100 may support WiFi or Bluetooth functionality.
[0034] The controller 150 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor; the controller 150 controls the operation of the display device and responds to user operations through various software control programs stored in the memory.
[0035] The audio output device 170 can be a built-in speaker of the display device 100 or an external audio output device connected to the display device 100. The user input interface 280 can be used to receive commands from user input.
[0036] To enable user interaction, the display device 100 may run an operating system. An operating system is a computer program used to manage and control the hardware and software resources of the display device 100. The operating system can (control the display device) provide a user interface and support the running of various applications.
[0037] Operating systems can be divided into different modules or levels based on the functions they implement, such as Figure 2 As shown, the system can be divided into four layers, from top to bottom: the application layer (referred to as the "application layer"), the application framework layer (referred to as the "framework layer"), the system runtime library layer, and the kernel layer.
[0038] The application layer provides services and interfaces for the application, enabling the display device 100 to run the application and interact with the user based on the application. The framework layer provides application programming interfaces and programming frameworks for the application. The framework layer may include a view system, managers, content providers, etc. The view system designs and implements the application's interface and interactions. Managers include at least one of the following: an activity manager, a location manager, a package manager, a notification manager, and a window manager.
[0039] The system runtime library layer provides support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer to implement the functions required by the framework layer. The kernel layer is a functional layer between the hardware and software of the display device 100. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. The kernel layer can be configured with hardware drivers, which can be at least one of the following: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver, and power driver.
[0040] When using related technologies to display applications in split-screen mode, they typically employ a fixed ratio (e.g., 1:1) for the split display. This method does not consider the application's own display characteristics. For example, if the applications to be displayed in split-screen mode include both landscape and portrait applications, some applications may be able to adapt and utilize the left and right areas to rearrange for full-screen display, such as... Figure 3 As shown in (1); however, in some cases, some applications cannot take advantage of the ultrawide screen to achieve optimal display. The optimal display effect may include, but is not limited to, reasonable layout and equal display area height, etc., and display abnormalities (black borders / stretching / cropping) may occur during operation, such as Figure 3 As shown in (2) of the document. Sometimes, even if the application is displayed in full screen, an unreasonable aspect ratio of the display area can lead to abnormal layout. In some cases, related technologies are difficult to achieve a good split-screen display effect.
[0041] Users can manually adjust the split-screen ratio, but this method is cumbersome and lacks a professional basis for judgment: when using landscape and portrait applications, portrait applications usually display at their maximum width, making it difficult for landscape applications to fill the screen, such as... Figure 4 As shown in (1); when using vertical applications, the display area of the two vertical applications is sufficient for normal display, and the position of the separator bar does not need to be in the center. The overall display is not aesthetically pleasing, such as Figure 4 As shown in (2) of the text.
[0042] Based on this, this application provides a method for split-screen display of applications, which can improve the split-screen display effect of applications and eliminates the need for manual adjustment by the user. The application split-screen display method provided in this application can be applied to display devices, which may include, but are not limited to, ultra-wide screen display devices, including display devices with a screen aspect ratio of 21:9.
[0043] In one exemplary embodiment, such as Figure 5 As shown, a method for split-screen display is provided, which may include the following steps:
[0044] Step S501: Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application.
[0045] The first and second applications are those that will be displayed in split-screen mode on the display device's screen. Each application has corresponding application list information, which may include the application's package name / class name, minimum aspect ratio (which can be called the lower limit of the aspect ratio), and maximum aspect ratio (which can be called the upper limit of the aspect ratio). The minimum and maximum aspect ratios can be the same value. The display device can obtain the minimum and maximum aspect ratios of the first application to determine its aspect ratio range (which can be called the first aspect ratio range); similarly, the display device can obtain the minimum and maximum aspect ratios of the second application to determine its aspect ratio range (which can be called the second aspect ratio range).
[0046] Step S502: Obtain multiple preset screen width allocation modes.
[0047] Screen width allocation modes describe the proportion of the application to be split-screened within the total screen width; this proportion is called the display width allocation ratio. Different screen width allocation modes describe different display width allocation ratios. For each screen width allocation mode, it can include two aspect ratios, the ratio of which matches the corresponding display width allocation ratio. For example, if a screen width allocation mode has a display width allocation ratio of 16:9, then the two aspect ratios included in this mode are 16:9 and 5:9, with a ratio of 16:9, which matches the corresponding display width allocation ratio.
[0048] Step S503: Traverse multiple screen width allocation modes according to a preset priority order. When traversing one of the screen width allocation modes, if the first and second display aspect ratios are satisfied based on the two display aspect ratios of the screen width allocation mode, then obtain the application display width of the first application and the second application according to the display width allocation ratio corresponding to the screen width allocation mode, and obtain the application display height of the first application and the second application according to the display height of the screen.
[0049] Each screen width allocation mode has a corresponding priority. For example, if there are two preset screen width allocation modes, denoted as Screen Width Allocation Mode ① and Screen Width Allocation Mode ②, then Screen Width Allocation Mode ① includes two aspect ratios of 10.5:9 and 10.5:9, with a corresponding width allocation ratio of 1:1. Screen Width Allocation Mode ② includes two aspect ratios of 16:9 and 5:9, with a corresponding width allocation ratio of 16:9. Screen Width Allocation Mode ① has a higher priority than Screen Width Allocation Mode ②.
[0050] When a display device traverses multiple screen width allocation modes according to a preset priority, it can first traverse to screen width allocation mode ①. If, based on the two aspect ratios (10.5:9 and 10.5:9) of screen width allocation mode ①, it is determined that the first aspect ratio range and the second aspect ratio range are satisfied, then the display width of the screen can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ①. Thus, the application display width of the first application and the application display width of the second application can be obtained. The application display height of the first application and the application display height of the second application can also be obtained based on the display height of the screen.
[0051] If, based on the two aspect ratios (10.5:9 and 10.5:9) of screen width allocation mode ①, it is determined that the first and second aspect ratio ranges are not met, then screen width allocation mode ② can be traversed. If, based on the two aspect ratios (16:9 and 5:9) of screen width allocation mode ②, it is determined that the first and second aspect ratio ranges are met, then the display width of the screen can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ②, thereby obtaining the application display width of the first application and the application display width of the second application. The application display height of the first application and the application display height of the second application can also be obtained based on the display height of the screen.
[0052] Step S504: Display the first application and the second application on the screen in a split-screen format according to the application display width and application display height.
[0053] After obtaining the display width and height of the first application, as well as the display width and height of the second application, the first and second applications can be displayed in a split-screen configuration on the screen.
[0054] In the aforementioned application split-screen display method, for the first and second applications displayed on the screen of the display device, the split-screen display is performed by combining the first aspect ratio range of the first application and the second aspect ratio range of the second application. This approach can fully consider the display characteristics of the applications themselves and improve the split-screen display effect. Furthermore, after obtaining the first and second aspect ratio ranges of the first and second applications from the application information in the application management list, multiple screen width allocation modes are traversed according to a preset priority order. When a screen width allocation mode is encountered, if the two aspect ratios of that mode satisfy the first and second aspect ratio ranges, the display width of the first and second applications can be determined based on the corresponding display width allocation ratio of the screen width allocation mode. The display height of the first and second applications is obtained based on the screen's display height. The first and second applications are then displayed on the screen in a split-screen manner based on their display width and height. This solution, through a priority matching mechanism, traverses multiple screen width allocation modes to ensure that the split-screen layout prioritizes the display scheme with the best user experience while meeting the application display requirements, and also better adapts to ultra-wide screen display devices.
[0055] In an exemplary embodiment, multiple screen width allocation modes are traversed according to a preset priority order. When one of the screen width allocation modes is encountered, if the first and second display aspect ratios of the screen width allocation mode are satisfied, the application display widths of the first and second applications are obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display heights of the first and second applications are obtained according to the display height of the screen. This may include:
[0056] The system iterates through multiple screen width allocation patterns according to a preset priority order and a non-scaling strategy. If all screen width allocation patterns have been traversed, the system then iterates through them again according to the priority order and a scaling strategy. When a screen width allocation pattern is encountered using the non-scaling strategy, if the two aspect ratios of the screen width allocation pattern fall within the first and second aspect ratio ranges respectively, the application display widths of the first and second applications are obtained based on the corresponding display width allocation ratio of the screen width allocation pattern, and the application display heights of the first and second applications are obtained based on the screen's display height. When a screen width allocation pattern is encountered using the scaling strategy, if the two aspect ratios of the screen width allocation pattern fall within the first and second aspect ratio ranges respectively after scaling, the application display widths of the first and second applications are obtained based on the corresponding display width allocation ratio of the screen width allocation pattern, and the application display heights of the first and second applications are obtained based on the screen's display height and the scaling factor.
[0057] The screen width allocation mode ① and screen width allocation mode ② mentioned above will be used as examples for introduction.
[0058] The display devices can be traversed according to priority order and without scaling down:
[0059] When iterating through screen width allocation mode ①, if the two aspect ratios of screen width allocation mode ① fall within the first aspect ratio range and the second aspect ratio range respectively, that is, one aspect ratio is within one aspect ratio range and the other aspect ratio is within the other aspect ratio range, then it can be determined that the first aspect ratio range and the second aspect ratio range are satisfied. The screen width can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ①, thereby obtaining the application display width of the first application and the application display width of the second application, and the screen display height can be used as the application display height of the first application and the second application.
[0060] If the two aspect ratios of screen width allocation mode ① do not fall simultaneously within the first aspect ratio range and the second aspect ratio range, for example, one aspect ratio is within one aspect ratio range and the other aspect ratio is not within the other aspect ratio range, or for example, neither aspect ratio is within the first aspect ratio range and the second aspect ratio range, then it can be determined that the first aspect ratio range and the second aspect ratio range are not satisfied, and screen width allocation mode ② is traversed.
[0061] When traversing to screen width allocation mode ②, if the two display aspect ratios of screen width allocation mode ② fall within the first display aspect ratio range and the second display aspect ratio range respectively, that is, one display aspect ratio is within one display aspect ratio range and the other display aspect ratio is within the other display aspect ratio range, then it can be determined that the first display aspect ratio range and the second display aspect ratio range are satisfied. The display width of the screen can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ②, thereby obtaining the application display width of the first application and the application display width of the second application, and the display height of the screen can be used as the application display height of the first application and the second application.
[0062] If the two aspect ratios of screen width allocation mode ② do not fall within the first aspect ratio range and the second aspect ratio range simultaneously, for example, one aspect ratio is within one aspect ratio range and the other aspect ratio is not within the other aspect ratio range, or for example, neither aspect ratio is within the first aspect ratio range and the other aspect ratio range, then it can be determined that the first aspect ratio range and the second aspect ratio range are not satisfied. In this case, it can be traversed according to priority order and shrinkage strategy.
[0063] When traversing according to priority order and scaling strategy, when traversing to screen width allocation mode ①, if the two display aspect ratios of screen width allocation mode ① fall into the first and second display aspect ratio ranges respectively through the same scaling factor, that is, if one of the display aspect ratios after the scaling factor is in one display aspect ratio range and the other display aspect ratio after the scaling factor is in the other display aspect ratio range, then it can be determined that the first and second display aspect ratio ranges are satisfied. The display width of the screen can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ①, thereby obtaining the application display width of the first application and the application display width of the second application. The display height of the screen can be multiplied by the scaling factor, and the result of the multiplication can be used as the application display height of the first and second applications.
[0064] If the two aspect ratios of screen width allocation mode ① cannot fall within the first aspect ratio range and the second aspect ratio range respectively through the same reduction factor, it can be determined that the first aspect ratio range and the second aspect ratio range are not satisfied, and screen width allocation mode ② is traversed.
[0065] When iterating through screen width allocation mode ②, if the two aspect ratios of screen width allocation mode ② fall within the first aspect ratio range and the second aspect ratio range respectively through the same reduction factor, that is, if one aspect ratio after the reduction factor is applied is within one aspect ratio range and the other aspect ratio after the reduction factor is applied is within another aspect ratio range, then it can be determined that the first aspect ratio range and the second aspect ratio range are satisfied. The screen display width can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ②, thereby obtaining the application display width of the first application and the application display width of the second application. The screen display height can be multiplied by the reduction factor, and the result of the multiplication can be used as the application display height of the first application and the second application.
[0066] This embodiment optimizes application split-screen display through a two-stage priority matching process: First, it attempts the native layout without scaling to ensure the application to be split-screened can be displayed at its original screen height, avoiding content cropping or visual compression. When the native aspect ratio without scaling does not meet the application's requirements, it enters the scaling stage, adapting to the application's aspect ratio range by reducing the overall height, minimizing display area loss while ensuring the correct content aspect ratio. This embodiment prioritizes ensuring the integrity of the user experience (full-screen display without scaling) and then pursues compatibility (scaling adaptation), avoiding unnecessary compression and distortion while ensuring a feasible split-screen display solution even under demanding aspect ratio combinations.
[0067] In an exemplary embodiment, after traversing multiple screen width allocation patterns according to priority order and scaling strategy, the method provided in this application further includes:
[0068] If multiple screen width allocation modes have been traversed, the actual display aspect ratio of the first application is obtained according to the first display aspect ratio range, and the actual display aspect ratio of the second application is obtained according to the second display aspect ratio range. Based on the actual display aspect ratios of the first and second applications, the application display widths and application display heights of the first and second applications are obtained.
[0069] The screen width allocation mode ① and screen width allocation mode ② mentioned above will be used as examples for introduction.
[0070] When traversing according to priority order and scaling strategy, if the two display aspect ratios of the screen width allocation mode ① cannot fall into the first display aspect ratio range and the second display aspect ratio range respectively through the same scaling factor, and the two display aspect ratios of the screen width allocation mode ② cannot fall into the first display aspect ratio range and the second display aspect ratio range respectively through the same scaling factor, then the fallback strategy provided in this embodiment can be adopted, so that the application split-screen display can proceed normally.
[0071] In this fallback strategy, a display aspect ratio (denoted as a1) can be determined within a first display aspect ratio range; and a display aspect ratio (denoted as b1) can be determined within a second display aspect ratio range. The scaling factor s can be calculated based on the display aspect ratios a1 and b1 using the formula: s = W / (H × (a1 + b1)), where W is the screen's display width and H is the screen's display height.
[0072] If the scaling factor s is less than 1, the display aspect ratio a1 can be used as the actual display aspect ratio of the first application, and the display aspect ratio b1 can be used as the actual display aspect ratio of the second application.
[0073] If the scaling factor s is greater than 1, a display aspect ratio (denoted as a2) can be determined within the first display aspect ratio range; another display aspect ratio (denoted as b2) can be determined within the second display aspect ratio range. The scaling factor s can be calculated based on the display aspect ratios a2 and b2 using the formula: s = W / (H × (a2 + b2)), and it can then be determined whether the scaling factor is less than 1.
[0074] After determining the actual display aspect ratio of the first application (denoted as 'a'), the actual display aspect ratio of the second application (denoted as 'b'), and the corresponding scaling factor 's', the screen display height can be multiplied by the scaling factor 's'. The resulting product is used as the display height of the first and second applications, respectively, and can be expressed as: First application display height H1 = H × s, Second application display height H2 = H × s. The first application display height can be multiplied by its actual display aspect ratio 'a', and the resulting product is used as the display width of the first application, expressed as: First application display width W1 = H1 × a. The second application display height can be multiplied by its actual display aspect ratio 'b', and the resulting product is used as the display width of the second application, expressed as: Second application display width W2 = H2 × b.
[0075] In an exemplary embodiment, obtaining the actual display aspect ratio of the first application based on a first display aspect ratio range includes:
[0076] Based on the first display aspect ratio range, the upper limit value and the lower limit value of the first display aspect ratio are obtained; the upper limit value and the lower limit value of the first display aspect ratio are averaged to obtain the actual display aspect ratio of the first application.
[0077] Based on the first display aspect ratio range, the upper limit value Amax and the lower limit value Amin of the first display aspect ratio can be obtained. The average value of the upper limit value Amax and the lower limit value Amin of the first display aspect ratio can be used as the display aspect ratio a1.
[0078] Based on the second aspect ratio range, the upper limit value Bmax and the lower limit value Bmin of the second aspect ratio can be obtained. The average value of the upper limit value Bmax and the lower limit value Bmin can be used as the aspect ratio b1.
[0079] The scaling factor s can be calculated based on the display aspect ratios a1 and b1 using the formula: s = W / (H × (a1 + b1)), where W is the screen width and H is the screen height. If the scaling factor s is less than 1, then the display aspect ratio a1 can be used as the actual display aspect ratio for the first application, and the display aspect ratio b1 can be used as the actual display aspect ratio for the second application.
[0080] In an exemplary embodiment, the application display width and application display height of the first and second applications are obtained based on the actual display aspect ratio of the first application and the actual display aspect ratio of the second application, including:
[0081] The actual display aspect ratios of the first application and the second application are summed to obtain the sum of display aspect ratios. A scaling factor is obtained based on the screen's aspect ratio and the sum of display aspect ratios. The display heights of the first and second applications are obtained based on the scaling factor and the screen's display height. The display width of the first application is obtained based on its actual display aspect ratio and display height. Finally, the display width of the second application is obtained based on its actual display aspect ratio and display height.
[0082] After determining the actual display aspect ratio of the first application (which can be denoted as a) and the actual display aspect ratio of the second application (which can be denoted as b), the actual display aspect ratios of the first application and the second application can be summed to obtain the sum of display aspect ratios a+b. The aspect ratio of the screen can be expressed as W / H. The aspect ratio of the screen can be divided by the sum of display aspect ratios a+b to obtain the scaling factor, which can be expressed by the formula s=W / (H×(a+b)).
[0083] The screen's display height can be multiplied by a scaling factor *s*, and the resulting product can be used as the display height of the first and second applications. This can be expressed as: First application display height H1 = H × s, Second application display height H2 = H × s. The first application's display height can be multiplied by its actual aspect ratio *a*, and the resulting product can be used as its display width. This can be expressed as: First application display width W1 = H1 × a. The second application's display height can be multiplied by its actual aspect ratio *b*, and the resulting product can be used as its display width. This can be expressed as: Second application display width W2 = H2 × b.
[0084] In an exemplary embodiment, obtaining the first display aspect ratio range of the first application and the second display aspect ratio range of the second application includes:
[0085] When the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the first application, if the first application is a portrait application, the preset display aspect ratio corresponding to the portrait application is used as the upper and lower limits of the display aspect ratio of the first application to obtain the first display aspect ratio range; when the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the second application, if the second application is a landscape application, the preset display aspect ratio corresponding to the landscape application is used as the upper and lower limits of the display aspect ratio of the second application to obtain the second display aspect ratio range.
[0086] Typically, application developers configure the application's display orientation and implement the corresponding layout based on the application scenario. There are many common display orientations. The solution provided in this application assumes that applications with explicitly defined portrait display configurations support portrait layouts. The configuration statement for defining a portrait display is as follows:
[0087] SCREEN_ORIENTATION_PORTRAIT,
[0088] SCREEN_ORIENTATION_SENSOR_PORTRAIT,
[0089] SCREEN_ORIENTATION_REVERSE_PORTRAIT.
[0090] When the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the first application, the display device can determine whether the first application is a portrait application by configuring the display orientation. Specifically, if the configuration statement of the display orientation of the first application belongs to any of the above categories, then the first application can be considered a portrait application. After determining that the first application is a portrait application, the preset display aspect ratio (such as 5:9) corresponding to the portrait application can be used as the upper and lower limits of the display aspect ratio of the first application to obtain the first display aspect ratio range.
[0091] When the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the second application, the display device can determine whether the second application is a portrait application by configuring the application display direction. If the second application is not a portrait application, it can be considered a landscape application. In this case, the preset display aspect ratio (such as 16:9) corresponding to the landscape application can be used as the upper and lower limits of the display aspect ratio of the second application to obtain the range of the second display aspect ratio.
[0092] In one exemplary embodiment, the sum of the aspect ratios of the two displays in the same screen width allocation mode is equal to the aspect ratio of the screen.
[0093] If the aspect ratio of the display device is 21:9, the sum of the aspect ratios of the two displays in the same screen width allocation mode is equal to 21:9; in the aforementioned example, the two aspect ratios of the screen width allocation mode ① are 10.5:9 and 10.5:9, and the sum of the two aspect ratios is equal to 21:9; the two aspect ratios of the screen width allocation mode ② are 16:9 and 5:9, and the sum of the two aspect ratios is equal to 21:9.
[0094] In one exemplary embodiment, the multiple screen width allocation modes include an average screen width allocation mode and an uneven screen width allocation mode; the average screen width allocation mode has a higher priority than the uneven screen width allocation mode.
[0095] The screen width distribution mode corresponds to a 1:1 display width allocation ratio, as described in screen width distribution mode ① above; the screen width distribution mode corresponds to a display width allocation ratio that is not equal to 1:1, as described in screen width distribution mode ② above. Under the principle of symmetrical layout priority, the screen width distribution mode can be set to have a higher priority than the screen width distribution mode.
[0096] To better understand the above method, the following details an application example of the split-screen display method used in this application. This method belongs to dynamic layout adaptation technology based on the application's horizontal and vertical orientation and preset aspect ratio configuration, and is illustrated using an ultra-wide screen display device as an example. Compared to 16:9 display devices, running a single application on an ultra-wide screen display device (21:9) of the same height can display more content. In practical application scenarios, most applications do not yet have ultra-wide display capabilities. Using the system's split-screen function, two applications can be displayed simultaneously, making better use of the entire screen.
[0097] Application developers can configure the display orientation of their applications and implement corresponding layouts based on application scenarios. There are many common display orientations. The solution provided in this application assumes that applications with explicitly defined vertical display configurations support vertical layouts. The configuration statement for defining vertical display is as follows:
[0098] SCREEN_ORIENTATION_PORTRAIT,
[0099] SCREEN_ORIENTATION_SENSOR_PORTRAIT,
[0100] SCREEN_ORIENTATION_REVERSE_PORTRAIT.
[0101] After identifying the display orientation configured for the application, the corresponding aspect ratio of the application can be obtained.
[0102] Vertical applications can use a 5:9 aspect ratio (approximately 0.55556); vertical applications are usually based on a vertical layout, such as social media and reading applications.
[0103] Landscape applications can use a 16:9 aspect ratio (approximately 1.7778); landscape applications typically require a wider display space, such as video players and games.
[0104] The 16:9 aspect ratio is chosen for landscape applications primarily because most display devices (such as TVs and monitors) typically have resolutions of 3840×2160 and 7680×4320, both corresponding to a 16:9 aspect ratio. To better adapt to these devices, applications running on them can use a 16:9 aspect ratio. The remaining portion (5:9) of the application's aspect ratio is closer to that of common mobile phones (see Table 1). When the split-screen application includes both portrait and landscape applications, a 16:9 + 5:9 screen width allocation mode can be used, such as... Figure 6 As shown in (1); when the application to be split-screen includes both portrait and horizontal applications, the screen width can be evenly distributed, such as... Figure 6 As shown in (2); when the application to be split-screen includes both landscape and horizontal applications, the screen width can be evenly distributed, such as... Figure 6 As shown in (2) of the text.
[0105] Table 1
[0106]
[0107] When using the screen width equal distribution mode, each application in the split-screen mode has an equal display area, and the application can be displayed centered within its own display area (this can be called application centering display mode). Figure 7 As shown in (1) of the text. When using an ultrawide screen display device (with an aspect ratio of 21:9), if the screen width is evenly distributed, the aspect ratio of the application to be split into two screens is 10.5:9 and 10.5:9, where 10.5 is half of 21. Vertical applications usually use their fixed display ratio to be displayed in the center, while some horizontal applications may not be able to adapt to this aspect ratio, resulting in layout display errors. In this case, the horizontal application can be scaled proportionally based on 16:9. Under the proportional scaling method, the horizontal application can still be laid out according to the 3840x2160 resolution, and then scaled proportionally to the specified area, such as Figure 7As shown in (2) of the text.
[0108] The applications to be split-screened are displayed from left to right. When there are two applications to be split-screened, and the actual aspect ratios of the left and right applications are denoted as a and b respectively, and a+b is greater than 2.3333 (21 / 9), it is necessary to scale them proportionally based on the original display layout of the applications. For example, if the resolution of the ultrawide screen device is W×H, first calculate the proportional scaling factor s (less than 1), and then calculate the application display height and application display width of the left and right applications respectively, as shown in the following formula:
[0109] s = W / (H × (a + b));
[0110] The application display height on the left is H_L = H × s, and the application display height is W_L = H_L × a;
[0111] The application display height on the right is H_R = H × s, and the application display height is W_R = H_R × b.
[0112] Video applications (including screen mirroring applications) have their own landscape and portrait layout options. However, when entering the video playback interface, they typically use full-screen display, with the video's resolution equal to the window size. Similarly, if the aspect ratio of the resolution is greater than 1, it can be considered a landscape display; if the aspect ratio is less than 1, it can be considered a portrait display. Using this strategy, the entire screen can be split between another application. When a video application with a landscape resolution and an aspect ratio less than 16:9 is used, and another application is portrait-oriented, they can be displayed in full-screen mode with equal height. Figure 8 As shown in (1); when another application is a landscape application, if the screen width is evenly distributed and the application is displayed in the center, the left and right sides may be uneven, resulting in a poor visual effect; in this case, the position of the divider can be dynamically calculated, and the other application can be proportionally converted. The display effect after proportional conversion is as follows. Figure 8 As shown in (2) above, the calculation formula is as follows:
[0113] s = W / (H × (a + b));
[0114] The application display height on the left is H_L = H × s, and the application display height is W_L = H_L × a;
[0115] The application display height on the right is H_R = H × s, and the application display height is W_R = H_R × b.
[0116] Similarly, when a video application with a horizontal resolution and an aspect ratio greater than 16:9 is displayed, another application will struggle to display correctly in both horizontal and vertical orientations. In such cases, the position of the dividing bar can be dynamically calculated, and the other application can be proportionally converted. The resulting display effect is as follows: Figure 9As shown in (1) and (2) in the figure.
[0117] Whether it's two landscape-oriented applications or a video playback application, optimal display on an ultrawide screen is required. The default "basic aspect ratio" can be configured, meaning that when portrait and landscape applications are displayed in split-screen mode, a 16:9 or 5:9 aspect ratio can be used; when portrait applications are displayed with other portrait applications, or landscape applications with other landscape applications, an even screen width distribution mode should be used.
[0118] The following three cases can be handled specially, using an application management list to specify the minimum and maximum aspect ratios of the application:
[0119] A. Video playback applications;
[0120] B. Applications that always maintain a specific aspect ratio regardless of the display area size;
[0121] C. Due to limitations in layout materials, only applications with aspect ratios within a certain range are supported.
[0122] The application management list can include the application's package name / class name, minimum display aspect ratio (which can be called the lower limit of display aspect ratio), and maximum display aspect ratio (which can be called the upper limit of display aspect ratio). The minimum and maximum display aspect ratios can be the same value. Information about third-party applications that meet the above criteria can be updated in the application management list. When a self-developed application starts, the application management list can be updated as needed. For video playback applications, the corresponding application information in the application management list can be updated in real time according to changes in video resolution, configuring the resolution (or the display area converted from it) of the video playback application to the minimum and maximum display aspect ratios.
[0123] If there are two applications to be displayed in split screen, these two applications can be referred to as application A and application B respectively. These two applications are arranged in a left-right layout, with one application belonging to the left side and the other to the right side.
[0124] The following combination Figure 10 and Figure 11 This section describes the workflow of this application example. For example... Figure 10As shown, before split-screen display, step S1001 can be executed to obtain the application identifier. Step S1002 determines whether the application is in the application management list based on the application identifier. Step S1003, if the application is in the application management list, the minimum and maximum display aspect ratios of the application can be obtained based on the information in the application management list. If the application is not in the application management list, step S1004 is executed to determine whether the application is a portrait application. Step S1005, if the application is a portrait application, the preset display aspect ratio (e.g., 0.55556) corresponding to portrait applications can be used as the minimum and maximum display aspect ratios of the application. If the application is not a portrait application, it can be treated as a landscape application, and step S1006 is executed, using the preset display aspect ratio (e.g., 1.7778) corresponding to landscape applications as the minimum and maximum display aspect ratios of the application.
[0125] Application A and Application B through Figure 10 The illustrated process yields the minimum and maximum display aspect ratios for each application. Specifically, the minimum display aspect ratio for application A can be denoted as Amin, and the maximum display aspect ratio as Amax. The range of display aspect ratios for application A is (Amin, Amax). Similarly, the minimum display aspect ratio for application B can be denoted as Bmin, and the maximum display aspect ratio as Bmax. The range of display aspect ratios for application B is (Bmin, Bmax).
[0126] In this application example, for ease of explanation, the traversal process can be illustrated using screen width allocation modes ① and ②. Screen width allocation mode ① has two aspect ratios of 10.5:9 and 10.5:9, while screen width allocation mode ② has two aspect ratios of 16:9 and 5:9. Screen width allocation mode ① has a higher priority than screen width allocation mode ②. Specifically, 10.5:9 is approximately equal to 1.1667, 16:9 is approximately equal to 1.7778, and 5:9 is approximately equal to 0.55556.
[0127] like Figure 11 As shown, step S1101 can be executed first to traverse the data according to priority order and without shrinking:
[0128] When traversing to screen width allocation mode ①, it can be determined that the two display aspect ratios of screen width allocation mode ① fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0129] The determination methods may include:
[0130] (1) If Amax≤1.1667 and Bmax≤1.1667, then the two display aspect ratios of screen width allocation mode ① fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0131] (2) If Amin≤1.1667≤Amax and Bmin≤1.1667≤Bmax, then the two display aspect ratios of screen width allocation mode ① fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0132] (3) If Amax≤1.1667 and Bmin≤1.1667≤Bmax, then the two display aspect ratios of screen width allocation mode ① fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0133] (4) If Bmax≤1.1667 and Amin≤1.1667≤Amax, then the two display aspect ratios of screen width allocation mode ① fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0134] After determining that the two aspect ratios of screen width allocation mode ① fall within the aspect ratio ranges (Amin, Amax) and (Bmin, Bmax) respectively, the screen width can be allocated according to the corresponding aspect ratio of screen width allocation mode ①. Half of the screen width, W / 2, can be used as the application display width for application A and application B. If the screen is an ultrawide screen, the screen width can be 5040, and correspondingly, the application display width for both application A and application B can be 2520. The screen height H can be used as the application display height for application A and application B; if the screen height is 2160, then 2160 can be used as the application display height for both application A and application B.
[0135] It is understandable that when making judgments based on (1) to (4) above, the execution order of (1) to (4) can be set as needed. For example, first judge whether (1) is satisfied. If (1) is not satisfied, then judge whether (3) is satisfied. If (3) is not satisfied, then judge whether (2) is satisfied. If (2) is not satisfied, then judge whether (4) is satisfied.
[0136] If none of the above (1) to (4) are satisfied, the traversal can continue. When the traversal reaches the screen width allocation mode ②, it can be determined that the two display width and height ratios of the screen width allocation mode ② fall within the display width and height ratio range (Amin, Amax) and the display width and height ratio range (Bmin, Bmax), respectively.
[0137] The determination methods may include:
[0138] (5) If Amin≤0.55556≤Amax and Bmin≤1.7778≤Bmax, then the two display aspect ratios of screen width allocation mode ② fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0139] (6) If Bmin≤0.55556≤Bmax and Amin≤1.7778≤Amax, then the two display aspect ratios of screen width allocation mode ② fall within the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax), respectively.
[0140] After determining that the two aspect ratios of screen width allocation mode ② fall within the aspect ratio ranges (Amin, Amax) and (Bmin, Bmax) respectively, the display width of the screen can be allocated according to the display width allocation ratio corresponding to screen width allocation mode ②, thereby obtaining the application display width of application A and the application display width of application B; where, when the aforementioned (5) is satisfied, the 5 and 16 in the display width allocation ratio 5:16 correspond to application A and application B respectively, that is, the application display width W1 of application A = W × 5 / 21, and the application display width of application B = Wmin, Amin, B ... Application B's display width W2 = W × 16 / 21; if the screen's display width is 5040, then application A's display width is 1200, and application B's display width is 3840; when the aforementioned (6) is satisfied, the 5 and 16 in the display width allocation ratio 5:16 correspond to application B and application A respectively, that is, application B's display width W2 = W × 5 / 21, and application A's display width W1 = W × 16 / 21; if the screen's display width is 5040, then application B's display width is 1200, and application A's display width is 3840.
[0141] Alternatively, the screen's display height H can be used as the display height for both application A and application B; if the screen's display height is 2160, then 2160 can be used as the display height for both application A and application B.
[0142] It is understandable that when making judgments based on (5) and (6) above, the execution order of (5) and (6) can be set as needed. For example, first judge whether (5) is satisfied, and if (5) is not satisfied, then judge whether (6) is satisfied. Or, for example, first judge whether (6) is satisfied, and if (6) is not satisfied, then judge whether (5) is satisfied.
[0143] If none of the above conditions (1) to (6) are met, then step S1102 can be executed to traverse according to priority order and reduction strategy:
[0144] When traversing to screen width allocation mode ①, it can be determined whether the two display aspect ratios of screen width allocation mode ① can fall into the display aspect ratio range (Amin, Amax) and display aspect ratio range (Bmin, Bmax) respectively through the same scaling factor.
[0145] The determination methods may include:
[0146] (7) If there exists a reduction factor k such that 1.1667×k∈(Amin, Amax) and 1.1667×k∈(Bmin, Bmax), then it can be determined that the two aspect ratios of the screen width allocation mode ① can fall within the aspect ratio ranges (Amin, Amax) and (Bmin, Bmax) respectively through the same reduction factor; where k is less than 1; at this time, the display width of the screen can be allocated according to the display width allocation ratio corresponding to the screen width allocation mode ①, so as to obtain the application display width of application A and the application display width of application B; if the screen is an ultra-wide screen, the display width of the screen can be 5040, and correspondingly, the application display width of application A can be 2520, and the application display width of application B can be 2520. The display height of the screen can be multiplied by the reduction factor k, and the result of the multiplication can be used as the application display height of application A and application B; if the display height of the screen is 2160, then 2160×k can be used as the application display height of application A and application B.
[0147] If the aforementioned (7) is not satisfied, the traversal can continue. When the traversal reaches the screen width allocation mode ②, it can be determined whether the two display aspect ratios of the screen width allocation mode ② can fall into the display aspect ratio range (Amin, Amax) and the display aspect ratio range (Bmin, Bmax) respectively through the same reduction factor.
[0148] The determination methods may include:
[0149] (8) If there exists a reduction factor k such that 0.55556×k∈(Amin, Amax) and 1.7778×k∈(Bmin, Bmax), then it can be determined that the two aspect ratios of the screen width allocation mode ② can fall into the aspect ratio range (Amin, Amax) and the aspect ratio range (Bmin, Bmax) respectively through the same reduction factor; where k is less than 1;
[0150] (9) If there exists a reduction factor k such that 1.7778×k∈(Amin, Amax) and 0.55556×k∈(Bmin, Bmax), then it can be determined that the two aspect ratios of the screen width allocation mode ② can fall within the aspect ratio ranges (Amin, Amax) and (Bmin, Bmax) respectively through the same reduction factor; where k is less than 1;
[0151] When the aforementioned (8) is satisfied, the 5 and 16 in the display width allocation ratio 5:16 can correspond to application A and application B respectively. If the display width of the screen is 5040, then the application display width of application A is 1200 and the application display width of application B is 3840. When the aforementioned (9) is satisfied, the 5 and 16 in the display width allocation ratio 5:16 can correspond to application B and application A respectively. If the display width of the screen is 5040, then the application display width of application B is 1200 and the application display width of application A is 3840.
[0152] Alternatively, the screen display height can be multiplied by the scaling factor k, and the result can be used as the display height of application A and application B. If the screen display height is 2160, then 2160×k can be used as the display height of application A and application B.
[0153] It is understandable that when making judgments based on (8) and (9) above, the execution order of (8) and (9) can be set as needed. For example, first judge whether (8) is satisfied, and if (8) is not satisfied, then judge whether (9) is satisfied. Or, for example, first judge whether (9) is satisfied, and if (9) is not satisfied, then judge whether (8) is satisfied.
[0154] If none of the above (1) to (9) are satisfied, then step S1103 can be executed to implement the fallback strategy.
[0155] (10) In the fallback strategy, the minimum and maximum display aspect ratios within the display aspect ratio range (Amin, Amax) can be averaged to obtain a1; the minimum and maximum display aspect ratios within the display aspect ratio range (Bmin, Bmax) can also be averaged to obtain b1. The scaling factor s can be calculated based on the display aspect ratios a1 and b1 using the formula: s = W / (H × (a1 + b1)), where W is the display width of the screen and H is the display height of the screen.
[0156] If the scaling factor s is less than 1, the display aspect ratio a1 can be used as the actual display aspect ratio a of application A, and the display aspect ratio b1 can be used as the actual display aspect ratio a of application B.
[0157] After determining the actual aspect ratio of application A (denoted as a), the actual aspect ratio of application B (denoted as b), and the corresponding scaling factor s, the screen's display height can be multiplied by the scaling factor s. The resulting product is used as the display height of application A and application B, respectively, and can be expressed as: Application A's display height H1 = H × s, Application B's display height H2 = H × s. The display height of application A can be multiplied by its actual aspect ratio a, and the resulting product is used as the display width of application A, expressed as: Application A's display width W1 = H1 × a. The display height of application B can be multiplied by its actual aspect ratio b, and the resulting product is used as the display width of application B, expressed as: Application B's display width W2 = H2 × b.
[0158] It is understandable that, for the sake of simplicity, the above calculation method can be performed without ignoring the display width of the separator bar. After calculating the display width of application A and application B, the display width of the separator bar can be removed.
[0159] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0160] In one exemplary embodiment, such as Figure 12 As shown, a split-screen display device is provided, comprising:
[0161] The range acquisition module 1201 is used to acquire the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split screen on the screen of the display device.
[0162] The pattern acquisition module 1202 is used to acquire multiple preset screen width allocation patterns;
[0163] The size determination module 1203 is used to traverse multiple screen width allocation modes according to a preset priority order. When traversing one of the screen width allocation modes, if it is determined that the first display width and height range and the second display width and height range are satisfied according to the two display width and height ratios of the screen width allocation mode, then the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen.
[0164] The split-screen display module 1204 is used to display the first application and the second application on the screen in a split-screen manner according to the application display width and the application display height.
[0165] In one exemplary embodiment, the size determination module 1203 is used for:
[0166] Multiple screen width allocation patterns are traversed according to a preset priority order and a non-scaling strategy. If multiple screen width allocation patterns have been traversed, then the multiple screen width allocation patterns are traversed again according to the priority order and the scaling strategy. When a screen width allocation pattern is traversed using the non-scaling strategy, if the two aspect ratios of the screen width allocation pattern fall within the first aspect ratio range and the second aspect ratio range respectively, then the application display widths of the first application and the second application are obtained according to the display width allocation ratio corresponding to the screen width allocation pattern, and the application display heights of the first application and the second application are obtained according to the screen display height. When a screen width allocation pattern is traversed using the scaling strategy, if the two aspect ratios of the screen width allocation pattern fall within the first aspect ratio range and the second aspect ratio range respectively after scaling, then the application display widths of the first application and the second application are obtained according to the display width allocation ratio corresponding to the screen width allocation pattern, and the application display heights of the first application and the second application are obtained according to the screen display height and the scaling coefficient.
[0167] In one exemplary embodiment, the size determination module 1203 is used for:
[0168] If multiple screen width allocation modes have been traversed, the actual display aspect ratio of the first application is obtained based on the first display aspect ratio range, and the actual display aspect ratio of the second application is obtained based on the second display aspect ratio range. Based on the actual display aspect ratios of the first application and the second application, the application display width and the application display height of the first application and the second application are obtained.
[0169] In one exemplary embodiment, the size determination module 1203 is used for:
[0170] Based on the first display aspect ratio range, the upper limit value and the lower limit value of the first display aspect ratio are obtained; the upper limit value and the lower limit value of the first display aspect ratio are averaged to obtain the actual display aspect ratio of the first application.
[0171] In one exemplary embodiment, the size determination module 1203 is used for:
[0172] The actual display aspect ratios of the first application and the second application are summed to obtain a sum of display aspect ratios. A scaling factor is obtained based on the screen's aspect ratio and the sum of the display aspect ratios. The display heights of the first and second applications are obtained based on the scaling factor and the screen's display height. The display width of the first application is obtained based on its actual display aspect ratio and display height. The display width of the second application is obtained based on its actual display aspect ratio and display height.
[0173] In an exemplary embodiment, the range acquisition module 1201 is configured to:
[0174] When the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the first application, if the first application is a portrait application, then the preset display aspect ratio corresponding to the portrait application is used as the upper and lower limits of the display aspect ratio of the first application to obtain a first display aspect ratio range; when the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the second application, if the second application is a landscape application, then the preset display aspect ratio corresponding to the landscape application is used as the upper and lower limits of the display aspect ratio of the second application to obtain a second display aspect ratio range.
[0175] In one exemplary embodiment, the sum of the aspect ratios of the two displays in the same screen width allocation mode is equal to the aspect ratio of the screen.
[0176] In one exemplary embodiment, the plurality of screen width allocation modes include an average screen width allocation mode and an uneven screen width allocation mode; the average screen width allocation mode has a higher priority than the uneven screen width allocation mode.
[0177] The modules in the aforementioned split-screen display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0178] In one exemplary embodiment, a display device is provided, the display device including a screen and a controller; as Figure 13 As shown, the controller can interact with the screen. The controller can be used to determine the display width and height of the application to be split-screened, and control the screen to split-screen.
[0179] The controller is configured to:
[0180] Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split-screen mode on the screen;
[0181] Get multiple preset screen width allocation patterns;
[0182] The screen width allocation modes are traversed in a preset priority order. When one of the screen width allocation modes is traversed, if the first display width and height range and the second display width and height range are satisfied according to the two display width and height ratios of the screen width allocation mode, the display width of the first application and the second application are obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the display height of the first application and the second application is obtained according to the height of the screen.
[0183] The first application and the second application are displayed in a split-screen format on the screen according to the display width and the display height.
[0184] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the various method embodiments described above.
[0185] In one exemplary embodiment, a computer program product is provided having a computer program stored thereon, the computer program being executed by a processor of the steps described in the various method embodiments above.
[0186] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0187] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. When the computer program is executed, it can include the processes of the embodiments of the above methods. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this application. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this patent application.
Claims
1. An application split-screen display method, characterized by, The method includes: Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split screen on the display device screen; Get multiple preset screen width allocation patterns; The system iterates through multiple screen width allocation modes according to a preset priority order. When one of the screen width allocation modes is reached, if the first display aspect ratio range and the second display aspect ratio range are satisfied based on the two display aspect ratios of the screen width allocation mode, the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen. The first application and the second application are displayed in a split-screen format on the screen according to the application display width and the application display height.
2. The method of claim 1, wherein, The process iterates through multiple screen width allocation patterns according to a preset priority order. When one of the screen width allocation patterns is encountered, if the first and second display aspect ratios of the screen width allocation pattern are satisfied, the application display widths of the first and second applications are obtained based on the display width allocation ratio corresponding to the screen width allocation pattern. The application display heights of the first and second applications are also obtained based on the screen display height, including: The multiple screen width allocation patterns are traversed according to a preset priority order and a non-shrinking strategy. If the multiple screen width allocation patterns have been traversed, the multiple screen width allocation patterns are traversed according to the aforementioned priority order and shrinking strategy. When traversing to one of the screen width allocation modes using the non-shrinking strategy, if the two display aspect ratios of the screen width allocation mode fall within the range of the first display aspect ratio and the range of the second display aspect ratio, then the application display widths of the first application and the second application are obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display heights of the first application and the second application are obtained according to the display height of the screen. When the scaling strategy is used to traverse to one of the screen width allocation modes, if the two aspect ratios of the screen width allocation mode fall within the first aspect ratio range and the second aspect ratio range respectively after scaling, then the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen and the scaling coefficient.
3. The method of claim 2, wherein, After traversing multiple screen width allocation patterns according to the aforementioned priority order and scaling strategy, the method further includes: If multiple screen width allocation modes have been traversed, the actual display aspect ratio of the first application is obtained according to the first display aspect ratio range, and the actual display aspect ratio of the second application is obtained according to the second display aspect ratio range. Based on the actual display aspect ratio of the first application and the actual display aspect ratio of the second application, the application display width and the application display height of the first application and the second application are obtained.
4. The method of claim 3, wherein, The step of obtaining the actual display aspect ratio of the first application based on the first display aspect ratio range includes: Based on the first display aspect ratio range, the upper limit value of the first display aspect ratio and the lower limit value of the first display aspect ratio are obtained; The actual display aspect ratio of the first application is obtained by averaging the first upper limit value and the first lower limit value of the display aspect ratio.
5. The method according to claim 3, characterized in that, The step of obtaining the display width and display height of the first and second applications based on the actual display aspect ratios of the first and second applications includes: The actual display aspect ratios of the first application and the second application are summed to obtain the sum of display aspect ratios; Based on the aspect ratio of the screen and the sum of the display aspect ratios, a proportional scaling factor is obtained; The application display height of the first application and the application display height of the second application are obtained based on the proportional scaling factor and the display height of the screen. The application display width of the first application is obtained based on the actual display aspect ratio and the application display height of the first application; The application display width of the second application is obtained based on the actual display aspect ratio and the application display height of the second application.
6. The method of claim 1, wherein, The process of obtaining the first display aspect ratio range of the first application and the second display aspect ratio range of the second application includes: When the application information in the preset application management list does not include the upper limit and lower limit of the display aspect ratio of the first application, if the first application is a portrait application, the preset display aspect ratio corresponding to the portrait application is used as the upper limit and lower limit of the display aspect ratio of the first application to obtain the first display aspect ratio range. When the application information in the preset application management list does not include the upper and lower limits of the display aspect ratio of the second application, if the second application is a landscape application, then the preset display aspect ratio corresponding to the landscape application is used as the upper and lower limits of the display aspect ratio of the second application to obtain the second display aspect ratio range.
7. The method of claim 1, wherein, The sum of the aspect ratios of the two displays in the same screen width allocation mode is equal to the aspect ratio of the screen.
8. The method according to any one of claims 1 to 7, characterized in that, The multiple screen width allocation modes include an average screen width allocation mode and an uneven screen width allocation mode; the average screen width allocation mode has a higher priority than the uneven screen width allocation mode.
9. A display device, characterized by The display device includes a screen and a controller; the controller is configured to: Obtain the first display aspect ratio range of the first application and the second display aspect ratio range of the second application; the first application and the second application are applications to be displayed in split screen on the screen. Get multiple preset screen width allocation patterns; The screen width allocation modes are traversed in a preset priority order. When one of the screen width allocation modes is traversed, if the first display width and height range and the second display width and height range are satisfied according to the two display width and height ratios of the screen width allocation mode, the application display width of the first application and the second application is obtained according to the display width allocation ratio corresponding to the screen width allocation mode, and the application display height of the first application and the second application is obtained according to the display height of the screen. The first application and the second application are displayed in a split-screen format on the screen according to the application display width and the application display height.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.