Split-screen display method, electronic equipment and computer storage medium
By determining the target display method based on the application type combination, the limitations of split-screen display on application types in the prior art are solved, and the adaptability of split-screen display is improved, so that it can support both applications with adjustable display size and display size. Unadjustable applications are displayed on split screen.
Patent Information
- Application Number
- CN202411411957.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-11
AI Technical Summary
The split-screen display in the prior art is poor in adaptability and cannot effectively support applications where the display size cannot be adjusted for split-screen display.
When obtaining split-screen instructions, the target display mode is determined according to the application type combination of the first application and at least one second application, so that a matching split-screen display mode is set under different application type combinations.
Support for different application types is realized, so that applications participating in split-screen display can be either a type with adjustable display size or a type with unadjustable display size, improving the adaptability of split-screen display.
Smart Images

Figure CN119415008A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and are related to but not limited to a split-screen display method, an electronic device, and a computer storage medium. Background Art
[0002] Split-screen display is a commonly used display mode of electronic devices. Users can use split-screen display to divide the display area of the display screen into multiple sub-areas, thereby displaying an application interface of an application in each sub-area.
[0003] The split-screen display in the related art is only applicable to some applications. For example, these applications may be applications whose display size can be adjusted for different display windows. It can be seen that the adaptability of the split-screen display is poor.
[0004] Therefore, how to improve the adaptability of split-screen display is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The split-screen display method, electronic device, and computer storage medium provided in the embodiments of the present application can improve the adaptability of split-screen display.
[0006] In one aspect of an embodiment of the present application, a split-screen display method is provided, the method comprising:
[0007] When the first application is displayed in full screen, obtaining a split screen instruction, where the split screen instruction is used to display the first application and at least one second application in split screen;
[0008] A target display mode is determined based on an application type combination corresponding to the first application and at least one second application, and at least two application windows corresponding to the first application and the at least one second application are displayed in split screen according to the target display mode. The display sizes of the application windows are different in different target display modes, and the application types in the application type combination include types whose display sizes can be adjusted for different display windows and / or types whose display sizes cannot be adjusted for different display windows.
[0009] Another aspect of the embodiments of the present application further provides an electronic device, including:
[0010] An acquisition module, used for acquiring a split-screen instruction when the first application is displayed in full screen, wherein the split-screen instruction is used for split-screen display of the first application and at least one second application;
[0011] An execution module is used to determine a target display mode according to an application type combination corresponding to the first application and at least one second application, and to display at least two application windows corresponding to the first application and the at least one second application respectively in a split screen according to the target display mode, wherein the display sizes of the application windows are different in different target display modes, and the application types in the application type combination include types whose display sizes can be adjusted for different display windows and / or types whose display sizes cannot be adjusted for different display windows.
[0012] The computer device provided in the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method of the embodiment of the present application is implemented.
[0013] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0014] In the split-screen display method, electronic device and computer storage medium provided in the embodiments of the present application, different display modes are set for different combinations of application types of split-screen applications, so that matching display modes can be used for various combinations of application types of applications participating in the split-screen display. As a result, the applications participating in the split-screen display can be not only types of applications whose display sizes can be adjusted for different display windows, but also types of applications whose display sizes cannot be adjusted for different display windows. This solves the limitation of split-screen display on application types in the related art, thereby improving the adaptability of split-screen display. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of an example of an electronic device provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of an example structure of an electronic device provided in an embodiment of the present application;
[0017] Figure 3 A structural block diagram of an example of the software structure of the electronic device provided in the embodiment of the present application;
[0018] Figure 4 A schematic diagram of a flow chart of a split-screen display method provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of an example of a split-screen display method provided in an embodiment of the present application;
[0020] Figure 6 A schematic diagram of another example of a split-screen display method provided in an embodiment of the present application;
[0021] Figure 7 A schematic diagram of an example of obtaining a split-screen instruction provided in an embodiment of the present application;
[0022] Figure 8 A schematic diagram of an example of window characteristic parameters provided in an embodiment of the present application;
[0023] Fig.9A A schematic diagram of an example of an evenly divided display mode in the vertical screen direction provided in an embodiment of the present application;
[0024] Fig. 9B A schematic diagram of an example of an evenly divided display mode in the horizontal direction provided in an embodiment of the present application;
[0025] Fig. 10A A schematic diagram of an example of a maximized display mode in the horizontal direction provided in an embodiment of the present application;
[0026] Fig. 10B A schematic diagram of an example of a maximized display mode in a vertical screen direction provided in an embodiment of the present application;
[0027] Fig.11A A schematic diagram of an example of split-screen display using the fillin display method in the horizontal screen mode provided in an embodiment of the present application;
[0028] Fig. 11B A schematic diagram of an example of split-screen display using the fillin display method in the vertical screen mode provided in an embodiment of the present application;
[0029] Fig.12 A schematic diagram of a split-screen display method provided in an embodiment of the present application;
[0030] Fig.13 A schematic diagram of the principle details of the split-screen display method provided in an embodiment of the present application;
[0031] Fig.14 A flowchart of another example of a split-screen display method provided in an embodiment of the present application;
[0032] Fig.15 A schematic diagram of an example of increasing the display size of a first application window provided in an embodiment of the present application;
[0033] Fig.16 A schematic diagram of another example of increasing the display size of the first application window provided in an embodiment of the present application;
[0034] Fig.17 A schematic diagram of an example of application window switching provided in an embodiment of the present application;
[0035] Fig.18A schematic diagram of an example of multiple controls involved in the split-screen display method provided in an embodiment of the present application;
[0036] Fig.19 This is a structural block diagram of an example of an electronic device provided in an embodiment of the present application;
[0037] Fig. 20 A schematic diagram of the structure of an example of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0040] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0041] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0042] The embodiments of the present application relate to a split-screen display of an electronic device. The split-screen display can enable the display screen of the electronic device to display more application interfaces, thereby making the user's operation more convenient. For example, the video playback software and the chat software are displayed in a split-screen manner. In this way, the user can watch the played video content while communicating with other users through the chat software on the display screen at the same time.
[0043] In the related art, split-screen display can only be used for adaptive applications, such as photo album applications or news reading applications. For non-adaptive applications whose display size cannot be adjusted for different screen sizes, such as game applications and map applications that need to be displayed in landscape mode, split-screen display cannot be used. When the applications involved in split-screen display include non-adaptive applications, the display screen of the electronic device will prompt a message that the split-screen failed. It can be seen that in the related art, split-screen display can only be used for adaptive applications and has poor adaptability.
[0044] After research, it was found that the split-screen display in the related art can only be used for adaptive applications, which is related to the unreasonable adjustment of the size of the application window by the split-screen display in the related art. For example, the split-screen display in the related art will reduce the size of the application window, and game applications or non-adaptive applications that require horizontal screen display cannot be used.
[0045] In view of this, an embodiment of the present application provides a split-screen display method, in which different display modes are set for combinations of application types of different split-screen applications, so that a matching display mode can be adopted for various combinations of application types of applications participating in the split-screen display. As a result, the applications participating in the split-screen display can be not only applications of the type whose display size can be adjusted for different display windows, but also applications of the type whose display size cannot be adjusted for different display windows. This solves the limitation of split-screen display on application types in the related art, thereby improving the adaptability of split-screen display.
[0046] The technical solutions involved in the embodiments of the present application are described below in conjunction with the accompanying drawings.
[0047] The split-screen display method provided in the embodiment of the present application can be applied to the electronic device 100. Figure 1 As shown, the electronic device 100 may be a straight-screen mobile phone 101, a tablet computer 102, a folding screen mobile phone 103, an ultramobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an artificial intelligence device, or other terminal device with a display function. The operating system installed in the electronic device 100 includes but is not limited to Android. system, system, This application does not limit the specific type of the electronic device 100 and the installed operating system.
[0048] Please refer to Figure 2, is a schematic diagram of an example structure of an electronic device provided in an embodiment of the present application. Figure 2 The electronic device shown includes components such as a processor 210 , a memory 220 , a transceiver 230 , a display unit 240 , an input unit 250 , an audio circuit 260 , and a power module 270 .
[0049] The processor 210 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 220, and calling data stored in the memory 220, the processor 210 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0050] The memory 220 can be used to store software programs and modules. The processor 210 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 220. The memory 220 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 220 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0051] The transceiver 230 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 230 can be one or more devices integrating at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 230, or an antenna and a modem processor are integrated into the transceiver 230, etc., which are not limited here.
[0052] The display unit 240 may be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 240 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0053] The input unit 250 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 250 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 250 may include a touch panel 251, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 251, the input unit 250 may also include other input devices 252. Specifically, other input devices 252 may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0054] The audio circuit 260 may include a speaker 261 and a microphone 262, and may provide an audio interface between a user and an electronic device. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, which is converted into a sound signal for output; on the other hand, the microphone 262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 260 and converted into audio data, and then the audio data is output to the processor 210 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the memory 220 for further processing.
[0055] The electronic device also includes a power module 270 for supplying power to various components. Optionally, the power module 270 can be logically connected to the processor 210 through a power management device, so that the power management device can manage charging, discharging, power consumption and other functions.
[0056] Although not shown, the electronic device may also include components such as a camera, a sensor, and an audio circuit. Optionally, the camera may be located at the front or rear of the electronic device; the sensor may be a gyroscope sensor, a motion sensor, or other sensors, which are not limited in the present embodiment.
[0057] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0058] The above is an explanation of the electronic device 100 involved in the embodiment of the present application from a hardware perspective. However, in order to implement the split-screen display method of the embodiment of the present application, the cooperation of the software system is also required. The software architecture of the electronic device involved in the present application will be explained below.
[0059] Please refer to Figure 3 , Figure 3 FIG. 1 is a structural block diagram of an example of the software structure of the electronic device 100 provided in an embodiment of the present application. Figure 3 The software structure shown includes several layers, and the layers communicate with each other through software interfaces. In some embodiments, taking the operating system of the electronic device as the Android system as an example, the software structure of the electronic device is divided into four layers, from top to bottom, respectively, an application layer 310, an application framework layer 320, an Android runtime (Android runtime) and a system library 330, and a kernel layer 340.
[0060] The application layer 310 may include a series of application packages. Figure 3 As shown, the application layer may include camera, Bluetooth, map and SMS, and of course may also include other applications, such as gallery, calendar, call, navigation, WLAN, music, video and other applications. Figure 3 Not shown.
[0061] The application framework layer 320 provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, a view system, a resource manager, and the like.
[0062] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0063] The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build applications. The application interface of an application can be composed of one or more views. For example, the application interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0064] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0065] Android runtime includes core library and virtual machine. Android runtime is responsible for scheduling and management of Android system. Core library consists of two parts: one is the function that Java language needs to call, and the other is Android core library.
[0066] The application layer 310 and the application framework layer 320 run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0067] The system library 330 may include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.
[0068] The surface manager is used to manage the display content, including refreshing the display content on the display screen, managing the attribute parameters of each layer, and the interaction between the display content and operations, and providing the fusion of 2D and 3D layers for multiple applications.
[0069] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0070] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0071] The kernel layer 340 is a layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, etc.
[0072] The above is an introduction to the software and hardware structure of the electronic device involved in the present application. The following is an explanation of the split-screen display method in the embodiment of the present application in conjunction with the accompanying drawings.
[0073] Please refer to Figure 4 , is a flow chart of the split-screen display method provided in an embodiment of the present application, such as Figure 4 As shown, the method comprises the following steps:
[0074] S401. When a first application is displayed in full screen, obtain a split screen instruction.
[0075] In some embodiments, when the electronic device does not use split-screen display, the application window of any application can be displayed in full screen. Full screen display can be understood as that the display area of the display screen only displays the application window of one application. Please refer to Figure 5 For example, as shown in 5(a), Figure 5 (a) Take the first application as SMS as an example.
[0076] Users can trigger split-screen display through preset operations.
[0077] As an example, a control for split-screen display may be displayed in the display area of the display screen, for example, a "+" control is displayed below the application window, and the preset operation may be a touch operation for the control for split-screen display. For example, when a touch operation on the "+" control is detected, the electronic device obtains a split-screen instruction, such as Figure 5 As shown in Figure 5(a).
[0078] As another example, the preset operation may be a pressing operation on a physical button. For example, pressing the volume increase button twice in a row may trigger a split-screen display. When the electronic device detects that the volume increase button is pressed twice in a row, the electronic device obtains a split-screen instruction.
[0079] As another example, the preset operation may be a preset sliding operation, for example, an operation of sliding upwards with multiple fingers from the bottom of the display screen. When the display screen detects an operation of sliding upwards with multiple fingers from the bottom of the display screen, the electronic device obtains a split screen instruction, such as Figure 6 As shown in Figure 6(a).
[0080] In an embodiment of the present application, the split-screen instruction is used to display the first application and at least one second application in split-screen.
[0081] As an example, the at least one second application may be determined by the electronic device according to the sequence of start times when each background application enters the background running state.
[0082] For example, when the electronic device obtains the split-screen instruction, it obtains the starting time of each background application in at least one background application entering the background running state, and confirms the target number of background applications whose starting time is closest to the current time as the second application. For example, the background applications of the electronic device include application A, application B, and application C, wherein application A, application B, and application C are arranged in order from the starting time to the current time from near to far, namely application B, application C, and application A. If the target number is 2, application B and application C are confirmed as the second application; if the target number is 1, application B is confirmed as the second application.
[0083] In this case, the second application is automatically selected by the electronic device according to a preset rule, and the user does not need to perform a selection operation, and the operation method is relatively simple.
[0084] As another example, the second application may be determined according to a selection operation of the user.
[0085] In this case, the specific implementation of step S401 may include but is not limited to the following steps:
[0086] When the display screen displays the first application in full screen, detecting a target operation;
[0087] In response to the target operation, displaying an application window of the at least one application to be selected on the display screen;
[0088] A selection operation on the application window of the at least one application to be selected is detected, and in response to the selection operation, the screen split instruction is acquired.
[0089] In the specific implementation of the above step S401, when a selection operation for the application window of the at least one selected application is detected, it can be understood that the electronic device obtains a split-screen instruction, and the application corresponding to the application window selected by the selection operation is the at least one second application.
[0090] In an embodiment of the present application, the target operation may be pre-set, and may be set by the device manufacturer of the electronic device when it leaves the factory. In this way, the target operation is the same for electronic devices produced by the same manufacturer; alternatively, the target operation may be set by the user, so that different users can set different operation modes, and personalized services can be provided to the users.
[0091] As an example, the target operation may be an operation of sliding upwards with multiple fingers from the bottom of the display screen. When the electronic device detects the operation of sliding upwards with multiple fingers from the bottom of the display screen, it displays at least one application window of a to-be-selected application on the display screen, such as Figure 7 shown.
[0092] The electronic device may display at least one application window of the selected application in the following two ways:
[0093] In the first display mode, the electronic device displays an application window of at least one to-be-selected application through a floating window in response to the target operation.
[0094] For example, an electronic device can dynamically add views to the display screen through the WindowManager service. Specifically, the electronic device can obtain a WindowManager instance, and then configure WindowManager.LayoutParams to set the type, flag, width, height, position and other properties of the floating window, and create at least one view, each view corresponding to an application window of a selected application, and then add at least one view to the WindowManager, thereby realizing the display of the application window of the selected application through the floating window.
[0095] In the second display manner, the electronic device displays an application window of at least one to-be-selected application in a free window mode in response to the target operation.
[0096] In the embodiment of the present application, the free window mode can be understood as a mode that is compatible with displaying at least two application windows.
[0097] The free window mode is a type of multi-window mode, which can be called a free window, an active window, etc. The display effect is similar to that of a floating window. The free window is usually displayed on the display interface of another application. For example, in the embodiment of the present application, the application window of the selected application is displayed on the application window of the first application. Figure 7 7(b) in FIG. 7. In the Android system, the free window and the floating window are in the memory stacks of different application interface management services (activitymanager), and the display and scheduling functions are implemented by different stacks.
[0098] The electronic device can control the opening of the free window through the system feature. For example, in the Android system, a feature configuration file for opening the display mode of the free window can be set, and then the feature configuration file is loaded into the system / etc / permissions / directory of the electronic device. When the electronic device is turned on, the feature configuration file in this directory will be read, so that the application window of the application can be displayed in the free window mode.
[0099] Electronic devices can also pre-define a unique freeform memory stack (freeform stack), and each Activity created by all applications that support freeform mode will be started in this specific freeform stack. Every Activity in the Android system is located in a task. A Task can contain multiple Activities, and the same Activity may have multiple instances. In the Android Manifest.xml, you can use android:launch Mode to control the instance of the Activity in the Task, so as to display it in freeform mode.
[0100] Electronic devices can abstract the differences between different windows into different window features, such as window size, rounded corners, shadows, title bars, whether they can be moved, whether they can be resized, etc., and mark these features on the application's Task through scenarios, such as Figure 8 When a Task is running, the electronic device performs special processing on the top attribute (setAlwaysOnTop) and Task visibility for the Task with the scenario tag, for example, the top attribute of the Task with the scenario tag is set to on and the Tack visibility is set to visible, so that the window corresponding to the Task with the scenario tag can be displayed in free window mode.
[0101] In the embodiment of the present application, when the application window of the selected application adopts Figure 7 After the free window mode of 7 (b) is displayed, the user can select the second application that needs to be displayed in split screen according to actual needs. For example, the user can click the corresponding application window, such as Figure 7 As shown in 7(b) in FIG. 1 , a confirmation control is also displayed on the free window. When the user selects the confirmation control, the electronic device obtains the split screen instruction, such as Figure 7 As shown in 7(c) in .
[0102] S402: Determine a target display mode according to a combination of application types corresponding to the first application and at least one second application, and display at least two application windows corresponding to the first application and the at least one second application respectively in split-screen according to the target display mode.
[0103] In the embodiment of the present application, the application types in the application type combination include types whose display sizes can be adjusted for different display windows and / or types whose display sizes cannot be adjusted for different display windows.
[0104] It should be noted that the type in which the display size can be adjusted for different display windows can also be understood as the type in which the display size ratio can be adjusted for different display windows; the type in which the display size cannot be adjusted for different display windows can also be understood as the type in which the display size ratio cannot be adjusted for different display windows.
[0105] For different combinations of application types of at least two applications participating in split-screen display, preset display modes corresponding to various application type combinations can be pre-set, and the mapping relationship between the application type combination and the display mode can be saved. Among them, the preset display mode corresponding to the application type combination can be understood as a display mode that matches the application type combination, or can be understood as a display mode that enables each application in the application type combination to be displayed in split screen. Among them, the display size of the application window is different in different preset display modes.
[0106] As an example, as mentioned above, applications can be divided into adaptive application types and non-adaptive application types according to whether the display size of the application window can be adjusted or adaptively adjusted according to different screen sizes.
[0107] Taking the example of applications being divided into types whose display sizes can be adjusted for different display windows and types whose display sizes cannot be adjusted for different display windows, for ease of reading, in the following text, the types whose display sizes can be adjusted for different display windows are referred to as adaptive application types, and the types whose display sizes cannot be adjusted for different display windows are referred to as non-adaptive application types. For these two types of applications, the preset application type combinations may include but are not limited to the following three combinations:
[0108] In the first combination, each split-screen application is an adaptive application. For example, the split-screen applications participating in the split-screen display include two applications. This application type combination can be referred to as a combination of adaptive applications + adaptive applications.
[0109] In the second combination, each split-screen application is a non-adaptive application. Taking the split-screen application that participates in the split-screen display as an example, the split-screen application includes two applications, and this application type combination can be referred to as: a combination of non-adaptive application + non-adaptive application.
[0110] In the third combination, the application types of the split-screen application include an adaptive application and a non-adaptive application. Taking the split-screen application that participates in the split-screen display as an example, the application type combination can be referred to as a combination of an adaptive application + a non-adaptive application.
[0111] For the three application type combinations, three preset display modes can be set. The mapping relationship between the application type combinations and the preset display modes is described below.
[0112] In this mapping relationship, the preset display mode corresponding to the first application type combination is the equal-division display mode.
[0113] The evenly divided display mode means that the display size of each split-screen application window is the same. For example, if there are two split-screen applications, SMS and browser, please refer to Fig.9A , is a schematic diagram of an example of an evenly divided display method. Fig.9A As shown, the size of the SMS application window is the same as that of the browser application window, and one side of the two application windows is the same as the short side of the display area of the display screen, and the other side is half of the long side of the display area. Alternatively, in another example, in addition to the application window, the display area also displays a status bar and / or a navigation bar ( Fig.9A or Fig. 9B In this case, one side of the two application windows is the same as the short side of the display area, and the other side is half of the safety distance corresponding to the long side of the display area. The safety distance can be the size of the long side of the display area minus the status bar and / or navigation bar.
[0114] Depend on Fig.9A It can be seen that the evenly divided display mode can also be understood as the 5:5 split screen display mode in the related art.
[0115] In addition, Fig.9A In the embodiment, the evenly divided display mode is an evenly divided display mode using an upper and lower split screen, and the evenly divided display mode can also be an evenly divided display mode using a left and right split screen, such as Fig. 9B shown.
[0116] In this mapping relationship, the preset display mode corresponding to the second application type combination is the maximized display mode.
[0117] The maximized display mode can be understood as that the maximum display area of the display screen displays the application window of one of the applications in the split-screen applications, and the remaining display area of the display screen displays partial contents of the application windows corresponding to other applications. The maximum display area is determined based on the long side of the display screen and the target coefficient.
[0118] The short side of the maximum display area is the short side of the display area of the display screen, and the long side of the maximum display area is the product of the long side of the display area of the display screen and the target coefficient, or the long side of the maximum display area is the product of the safety distance of the display area of the display screen and the target coefficient, and the safety distance can be the size of the long side of the display area minus the status bar and / or navigation bar. The target coefficient can be set dynamically, and the value of the target coefficient can be greater than 0 and less than 1.
[0119] Since non-adaptive applications can be divided into non-adaptive applications that only support horizontal screens and non-adaptive applications that only support vertical screens, the maximized display mode can also include two examples. Take the split-screen applications as game applications A and B as an example, please refer to Fig. 10A , which is a schematic diagram of an example of a non-adaptive application that only supports horizontal screen and uses a maximized display mode to display the screen in split screen, such as Fig. 10A As shown, the largest display area on the display area of the display screen displays the application window of game application A, and the remaining display area of the display screen displays a portion of the application window of game application B. Please refer to Fig. 10B , which is a schematic diagram of an example of a non-adaptive application that only supports vertical screens and uses a maximized display mode to display the screen in split screens, and Fig. 10A The difference is, Fig. 10B The display direction of the content displayed in the application window is different.
[0120] It should be noted that, in this case, which split-screen application window is displayed in the maximum display area can be determined according to the application status corresponding to each split-screen application before the split-screen display instruction is obtained. For example, before the split-screen display instruction is obtained, game application A is in the foreground running state and game application B is in the background running state. When the maximized display mode is adopted, the split-screen application in the foreground running state can be displayed in the maximum display area by default. Of course, it can also be determined randomly by the electronic device, which is not limited here.
[0121] In this mapping relationship, the preset display mode corresponding to the third application type combination is a fill display mode, or may also be called a fillin display mode.
[0122] The fillin display mode can be understood as that the target display area of the display screen displays the application window in the non-adaptive split-screen application, and the remaining display area of the display screen displays the application windows corresponding to other applications. The target display area is obtained by scaling the fixed size supported by the non-adaptive application by a preset ratio in the current display mode. The current display mode includes a horizontal screen mode or a vertical screen mode.
[0123] It can be understood that, since the application window size of non-adaptive applications supports fixed size, the application window of non-adaptive applications can meet the display requirements in the filliin display mode, and the application window of adaptive applications adjusts its size according to the remaining display area. As an example, the preset ratio can be an equal ratio, for example, the fixed size is a size with an aspect ratio of 16:9 for the rectangle corresponding to the application window, then the aspect ratio of the rectangle corresponding to the target display area must also be 16:9; or, the preset ratio may not be an equal ratio, but the difference from the fixed size is less than a threshold ratio, for example, the fixed size is a size with an aspect ratio of 16:9 for the rectangle corresponding to the application window, and the preset ratio may be 15:9 or 16:7, etc.
[0124] Please refer to Fig.11A and Fig. 11B , Fig.11A This is a schematic diagram of an example of split-screen display using the fillin display method in horizontal mode. Fig. 11B This is a schematic diagram of an example of split-screen display using the fillin display method in the portrait mode. Since the target display areas corresponding to the non-adaptive application are similar rectangles in the landscape mode and the portrait mode, the size of the target display area can be calculated.
[0125] Depend on Fig.11A and Fig. 11B It can be seen that the parameter h is the long side of the display area of the display screen, and the parameter w is the short side of the display area of the display screen. Fig.11A In the target display area, the long side is w and the short side is x; Fig. 11B In the example, the long side of the target display area is hx and the short side is w. Therefore, the parameters x, h, and w satisfy the following expressions:
[0126]
[0127] According to the quadratic equation, we can calculate
[0128] In special cases, if h 2 -4w 2 <0, the long side of the target display area corresponding to the non-adaptive application in landscape mode is a fixed long side value, which can be the product of the long side of the display area of the display screen and the target coefficient, or the long side of the maximum display area is the product of the safety distance of the display area of the display screen and the target coefficient, and the safety distance can be the size of the long side of the display area minus the status bar and / or navigation bar. In this case, the rule that the target display area is a similar rectangle in landscape mode and portrait mode must still be maintained, that is, x and w satisfy the following expression:
[0129]
[0130] It follows that:
[0131] In an embodiment of the present application, when the current application type combination of a first application and at least one second application participating in split-screen display is obtained, at least two application windows corresponding to the first application and the at least one second application are displayed in split-screen on the display screen using a target display method corresponding to the current application type combination.
[0132] For example, when the current application type combination is an adaptive application type combination, that is, an adaptive application combination, and the target display mode is an evenly divided display mode, then each of the at least two application windows has the same display size on the display screen.
[0133] For another example, when the current application type combination is a non-adaptive application type combination, that is, a non-adaptive application combination, and the target display mode is a maximized display mode, the application window of the first target application is displayed in the maximum display area of the display screen, and part of the content of the remaining application windows is displayed in the remaining display area of the display screen, and the at least two application windows include the application window of the first target application and the remaining application windows.
[0134] For another example, when the current application type combination is a combination of an adaptive application type and a non-adaptive application type, that is, an adaptive application and a non-adaptive application combination, and the target display mode is a fill display mode, then the application window of the second target application is displayed in the target display area of the display screen, and the remaining application windows are displayed in the remaining display area of the display screen, the at least two application windows include the application window of the second target application and the remaining application windows, and the second target application window is an application of a non-resizeable type.
[0135] Please refer to Figure 5 5(b) Figure 6 6(b) or Figure 7 7(d) is a schematic diagram of an example of displaying application windows of at least two applications in split screen on a display screen. Figure 5 to Figure 7 In the example shown, it is taken that the number of the at least one second application is 1 and the second application is a browser.
[0136] In an embodiment of the present application, due to different combinations of application types, when multiple application windows are displayed in split screen, the display size of each application window is also different. Therefore, in order to facilitate the adjustment of the size of the application window, an application container can be used to realize the split screen display of at least two application windows.
[0137] It should be noted that whether each application is an adaptive application type or a non-adaptive application type can be determined through application declaration or attribute information of the application, which will not be described in detail here.
[0138] As an example, displaying at least two application windows corresponding to the first application and the at least one second application respectively in split screen according to the target display mode includes:
[0139] According to the target display mode, setting the size of each of the at least two application windows;
[0140] The at least two application windows after the sizes are set are mounted to at least two surface views in the split-screen application container, and the at least two application windows after the sizes are set are displayed in a split-screen on the display screen through the at least two surface views.
[0141] Specifically, the size of the application window can be achieved by changing the bounds parameter of the application, for example, adjusting the size through the Android native interface android.window.WindowContainerTransaction#setBounds. Of course, other methods can also be used, such as modifying the size of the application window in the surfaceChanged method of the surfaceHolder.Callback interface, etc., which are not listed here one by one.
[0142] In an embodiment of the present application, a surface view is provided in the split-screen application container, and at least two application windows corresponding to a first application and at least one second application that need to be displayed in split screen are mounted to at least two surface views in the split-screen application container, and at least two application windows are displayed in split screen on the display screen through at least two surface views.
[0143] Please refer to Fig.12 , is a schematic diagram of the split-screen display method provided by this application. Fig.12 As shown, the split-screen application container A includes an Activity A, in which a root view (decor view) A is provided, and at least one surface view surface view is embedded in the decor view A. The number of surface views can be determined according to the number of applications that need to be displayed in split screen. For example, in the embodiment of the present application, a first application and a second application need to be displayed in split screen. Fig.12If taskB and taskC are used to mark them, two surface views can be set in decor view A, each surface view corresponds to a surface, and taskB and taskC also correspond to a surface respectively. Then, through layer redirection, the parent of the surface corresponding to taskB is redirected to the surface corresponding to one surface view, and the parent of the surface corresponding to taskC is redirected to the surface corresponding to another surface view, so as to realize the display of the application windows of the first application and the second application in the split-screen application container, and achieve the embedded application window based on the application task stack dimension.
[0144] It can be understood that, in addition to mounting the application window to the surface view in the split-screen application container, the layout of each application window needs to be managed by a carrier application, and the carrier application includes a target area for carrying the at least two application windows. Fig.13 The carrier application is called a canvas APK. Fig.13 , which is a flow chart of an example of a split-screen display method provided in an embodiment of the present application.
[0145] like Fig.13 As shown, the split-screen application container includes two components, a layout component and a task organizer component.
[0146] Among them, the task organizing component includes a task observer component, and the task observer component includes observed task information and a task surface. In an embodiment of the present application, the task information includes information of a first application and information of at least one second application, and the task surface includes a task surface of the first application and a task surface of at least one second application. The task organizing component associates each task surface with a surface corresponding to a surface view in a split-screen application container through parent redirection, and redirects the surface control of each task to the surface view of the split-screen application container.
[0147] The layout component is responsible for managing the layout of multiple application windows on the canvas. The canvas includes the canvas area on the screen and the canvas extension area outside the screen. The application windows located in the canvas area on the screen can be displayed in the display area of the display screen, that is, they are visible to the user. The application windows located in the canvas extension area outside the screen will not be displayed in the display area of the display screen, that is, they are invisible to the user. The layout position of the application window on the canvas can be adjusted to make the application window visible or invisible to the user.
[0148] It should be noted that, in the maximized display mode, the display area of the display screen can only fully display one application window, and the remaining display area of the display screen displays partial contents of the remaining application window. In this case, displaying partial contents of the remaining application window in the remaining display area of the display screen can be understood as displaying partial contents of the remaining application window in the remaining display area in the display area within the screen, and displaying the remaining contents of the remaining application window in the display area outside the screen.
[0149] That is to say, for the electronic device, the remaining application windows are also fully displayed in the target area of the set carrier application, but due to the limited display area of the display screen, only part of the content of the remaining application windows is displayed through the display area of the display screen.
[0150] Since the split-screen display in the related art is only applicable to displaying the split-screen application in the display area corresponding to the display screen, it is impossible to display the application window outside the display area corresponding to the display screen. In the technical solution of the present application, by setting a carrier application, the application window can be displayed outside the display area corresponding to the display screen, thus breaking through the limitation of the physical display screen on the display area of the application window.
[0151] In the method, different display modes are set for different combinations of application types of split-screen applications, so that matching display modes can be used for various combinations of application types of applications participating in the split-screen display. As a result, the applications participating in the split-screen display can be not only applications of the type whose display size can be adjusted for different display windows, but also applications of the type whose display size cannot be adjusted for different display windows. This solves the limitation of split-screen display on application types in related technologies, thereby improving the adaptability of split-screen display.
[0152] In the above embodiments, the effect of different application type combinations of split-screen applications being able to be displayed in split-screen is achieved. In the following embodiments, the application window displayed in split-screen can also adjust the window size, which is described below in conjunction with the accompanying drawings.
[0153] Please refer to Fig.14 , is a flowchart of another example of the split-screen display method provided in an embodiment of the present application, such as Fig.14 As shown, the method comprises the following steps:
[0154] S1401. When displaying a first application in full screen, obtain a split screen instruction.
[0155] S1402: Determine a target display mode according to a combination of application types corresponding to the first application and at least one second application, and display at least two application windows corresponding to the first application and the at least one second application respectively in split-screen according to the target display mode.
[0156] Steps S1401 to S1402 are similar to steps S401 to S402 and will not be described in detail herein.
[0157] S1403: When the application type combination corresponding to the first application and at least one second application is an adaptive application type combination, detect a window size adjustment operation, and adjust the display size of each of the at least two application windows on the display screen in response to the window size adjustment operation.
[0158] By the aforementioned Figure 4 It can be seen from the illustrated embodiment that the application type combination of the split-screen application includes but is not limited to the aforementioned three combinations. Since the application type combination includes a non-adaptive application, the size of the application window corresponding to the application of this type is the size corresponding to the target display area or the maximum display area. Therefore, for the two application type combinations including non-adaptive applications in the application type combination, the display size of the application window on the display screen may not be adjusted. Of course, it can also be adjusted according to actual usage requirements, which is not limited here. In the embodiment of the present application, the window size adjustment process is described by taking the application type combination as an adaptive application type combination as an example.
[0159] As an example, the window size adjustment operation is an operation of increasing the display size of the first application window, and step S1403 specifically includes:
[0160] In response to the window size adjustment operation, the display size of the first application window in a target direction is increased and the display sizes of the remaining application windows in the target direction are reduced, and the target direction is the adjustment direction corresponding to the window size adjustment instruction.
[0161] It should be noted that the first application window can be an application window of the first application or the second application, and the target direction can be a horizontal screen direction or a vertical screen direction, which is not limited here. The operation of increasing the display size of the first application window can be a sliding operation along the target direction, or a touch operation on the control of increasing the size, etc., which are not exemplified one by one here.
[0162] Please refer to Fig.15 , is a schematic diagram of an example of increasing the display size of the first application window, in Fig.15 In the example, the split-screen applications include SMS and browsers, and the target direction is the vertical screen direction and the display size of the first application window is increased by sliding along the vertical screen direction. When the electronic device detects that the starting position of the sliding operation is located in the application window of the SMS and the sliding operation is slid toward the application window of the browser along the vertical screen direction, it is determined to increase the size of the application window of the SMS, that is, the first application window is the application window of the SMS, thereby increasing the application window of the SMS and reducing the application window of the browser.
[0163] In the embodiment of the present application, increasing the display size of the first application window in the target direction includes: adjusting the display size of the first application window in the target direction from a current size to a first preset size.
[0164] As an example, the first preset size may be determined according to the maximum size of the first application window in the target direction and the target coefficient. In this case, increasing the size of the first application window may be understood as switching the display size of the first application window to the maximum size, such as Fig.15 As shown. Fig.15 In the example, the short side of the SMS application window is the short side of the display area of the display screen, and the long side of the SMS application window is the product of the safety distance of the display area of the display screen and the target coefficient. The safety distance can be the size of the long side of the display area minus the status bar and / or navigation bar. The target coefficient can be set dynamically, and the value of the target coefficient can be greater than 0 and less than 1. Since the size of the SMS application window becomes the maximum size, the browser application window is squeezed out of the display area of the display screen, and only the edge of the browser application window is displayed.
[0165] As another example, the first preset size is determined according to the current size and parameters of the window size adjustment operation, where the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
[0166] In this case, increasing the size of the first application window can be understood as adjusting the size of the application window according to the parameters of the user's operation. For example, if the parameter is the moving distance, the size of the first application window in the target direction corresponds to the moving distance of the window size adjustment operation. The longer the moving distance, the more the size of the first application window increases. If the parameter is the end position, the size of the first application window in the target direction corresponds to the end position, that is, where the end position is, the size of the first application window in the target direction is adjusted to the size corresponding to the end position, so that the size of the application window in the target direction can be arbitrarily adjusted, that is, infinitely adjusted. Please refer to Fig.16 ,exist Fig.16 In the embodiment, the short side of the SMS application window is the short side of the display area of the display screen, and the long side of the SMS application window is the length corresponding to the end position of the window size adjustment operation.
[0167] As an example, the window size adjustment operation is an operation of reducing the display size of the first application window. Step S1403 specifically includes:
[0168] In response to the window size adjustment operation, the display size of the first application window in a target direction is reduced and the display sizes of the remaining application windows in the target direction are increased, and the target direction is the adjustment direction corresponding to the window size adjustment instruction.
[0169] As an example, reducing the display size of the first application window in the target direction includes:
[0170] Adjusting the display size of the first application window in the target direction from a current size to a second preset size;
[0171] The second preset size is determined according to the minimum size of the first application window in the target direction, and the minimum size is determined according to the ratio of the size of the display screen in the target direction to the number of the at least two application windows; or
[0172] The second preset size is determined according to the current size and parameters of the window size adjustment operation, wherein the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
[0173] Reducing the size of an application window is similar to increasing the size of an application window, and will not be described in detail here. Unlike increasing the size of an application window, when reducing the size of an application window to the minimum size, the short side of the application window is the short side of the display area of the display screen, and the long side of the application window is determined based on the ratio of the size of the display screen in the target direction to the number of the at least two application windows, or the ratio of the difference between the safe distance of the display area of the display screen minus the length of the dividing line and the number of the at least two application windows. For example, if the number of at least two application windows is 2, then after reducing the size of the application window, the long side of the application window is the value obtained by dividing the difference between the safe distance of the display area minus the length of the dividing line by 2.
[0174] In addition, it should be noted that in the above examples, increasing and decreasing the size of the application window refers to increasing and decreasing the size of the application window in the vertical screen direction. Of course, it can also be increasing and decreasing the size of the application window in the horizontal screen direction. The specific implementation method is similar and will not be repeated here. It can be understood that if the application only supports display in the vertical screen direction, it may not support the size adjustment of the application in the horizontal screen direction; or, if the application only supports display in the horizontal screen direction, it may not support the size adjustment of the application in the vertical screen direction.
[0175] In an embodiment of the present application, the window size adjustment operation may include a rotation operation. For example, for the second application type combination, the display size of the same application window in the landscape mode and the portrait mode is different. Therefore, in this case, if it is detected that the electronic device is rotated, the display size of each application window can also be adjusted according to the rotation.
[0176] Of course, when the rotation operation is used to adjust the display direction of the display screen from the current display direction to the target display direction, the method further includes: in response to the rotation operation, adjusting the display direction of the displayed content in the at least two application windows to the target display direction.
[0177] That is to say, the displayed content in the application window can also be rotated based on the rotation operation. Different types of applications can support different angles. For example, a non-adaptive application that only supports portrait mode only supports 0-degree rotation; a non-adaptive application that only supports landscape mode can support 90-degree rotation and 270-degree rotation. Of course, the application can also support other angles of rotation, which are not limited here.
[0178] As another example, when the target display mode is a maximized display mode, the display screen also includes a window adjustment area, detects a touch operation on the window adjustment area, and in response to the touch operation, displays an application window of a third target application different from the first target application in the maximum display area of the display screen, and displays part of the content of the remaining application window in the remaining display area of the display screen.
[0179] In maximized display mode, only one application window can be fully displayed, while other application windows can only be partially displayed, such as Fig.17 As shown, the application window of game application A can be fully displayed, but the application window of game application B is partially displayed; in this case, a window adjustment area can be set, for example, a side area, and when the user touches the window adjustment area, the application window that could only be partially displayed before can be fully displayed on the display screen, while the application window that could be fully displayed before can only be partially displayed, such as Fig.17 As shown, after the touch operation on the window adjustment area is detected, the application window of the game application B can be fully displayed, but the application window of the game application A is partially displayed, that is, the switching of the application windows is realized.
[0180] Of course, when the number of application windows displayed on the split screen includes 3 or more, each application window can also be fully displayed in turn by touching the window adjustment area multiple times. Examples are not given here one by one.
[0181] It should also be noted that the split-screen application displayed in split-screen can be replaced. For example, the first application can be replaced with a third application. Specifically, a preset operation can be performed on the application window of the first application, such as continuous touch operation, so that the control of the replacement application is displayed on the application window of the first application. By clicking the control of the replacement application, the interface for selecting the split-screen application is entered to achieve the effect of replacing the split-screen application. When the split-screen display is not needed, the split-screen display can also be ended by closing the split-screen display control, or the full-screen display control can be set to end the split-screen display, such as Fig.18 As shown, of course, other controls can be set to achieve more functions, which are not listed here. Fig.18 In the example, multiple controls are displayed in the middle of the application window. The multiple controls can also be displayed in other positions, such as the side area of the application window, etc., which is not limited here.
[0182] In the above technical solution, the flexibility of the split-screen display method can be increased by increasing the adjustment of the display size of the application window displayed in the split-screen.
[0183] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0184] Based on the above embodiments, the present application provides an electronic device, please refer to Fig.19 , is a schematic diagram of an example structure of an electronic device provided in an embodiment of the present application, such as Fig.19 As shown, the electronic device includes: an acquisition module 19110 and an execution module 1920;
[0185] An acquisition module 1910 is used to acquire a split-screen instruction when the first application is displayed in full screen, where the split-screen instruction is used to display the first application and at least one second application in split screen;
[0186] Execution module 1920 is used to determine a target display mode according to an application type combination corresponding to the first application and at least one second application, and display at least two application windows corresponding to the first application and the at least one second application respectively in split screen according to the target display mode, wherein the display sizes of the application windows are different in different preset display modes, and the application types in the application type combination include types whose display sizes can be adjusted for different display windows and / or types whose display sizes cannot be adjusted for different display windows.
[0187] In some embodiments, when the application type combination is a combination of adaptive application types, the execution module 1920 is specifically configured to:
[0188] The at least two application windows are displayed on the display screen in a split-screen manner by adopting an evenly divided display mode;
[0189] In the evenly divided display mode, the display size of each application window is the same.
[0190] In some embodiments, when the application type combination is a combination of non-adaptive application types, the execution module 1920 is specifically configured to:
[0191] The at least two application windows are displayed in split screen on the display screen in a maximized display mode;
[0192] In the maximized display mode, the maximum display area of the display screen displays an application window of a first target application, and the remaining display area of the display screen displays partial content of the remaining application windows, and the at least two application windows include the application window of the first target application and the remaining application windows;
[0193] The maximum display area is determined according to the long side of the display area of the display screen and the target coefficient.
[0194] In some embodiments, when the application type combination is a combination of an adaptive application type and a non-adaptive application type, the execution module 1920 is specifically configured to:
[0195] Displaying the at least two application windows in split screen on the display screen in a filling display manner;
[0196] In the filling display mode, the target display area of the display screen displays an application window of a second target application, and the remaining display area of the display screen displays remaining application windows, the at least two application windows include the application window of the second target application and the remaining application windows, and the second target application window is an application of a type that cannot be resized;
[0197] The target display area is obtained by scaling the fixed size supported by the second target application by a preset ratio in a current display mode, and the current display mode includes a horizontal screen mode or a vertical screen mode.
[0198] In some embodiments, when the current application type combination is a size-adjustable type combination, the execution module 1920 is further configured to:
[0199] Detect window size adjustment operation;
[0200] In response to the window size adjustment operation, the display size of each of the at least two application windows on the display screen is adjusted.
[0201] In some embodiments, the window size adjustment operation is an operation of increasing the display size of the first application window, and the execution module 1920 is specifically used to:
[0202] In response to the window size adjustment operation, the display size of the first application window in a target direction is increased and the display sizes of the remaining application windows in the target direction are reduced, and the target direction is the adjustment direction corresponding to the window size adjustment operation.
[0203] In some embodiments, the execution module 1920 is specifically used to:
[0204] Adjusting the display size of the first application window in the target direction from a current size to a first preset size;
[0205] The first preset size is determined according to the maximum size of the first application window in the target direction and a target coefficient; or
[0206] The first preset size is determined according to the current size and parameters of the window size adjustment operation, wherein the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
[0207] In some embodiments, the window size adjustment operation is an operation of reducing the display size of the first application window, and the execution module 1920 is specifically used to:
[0208] In response to the window size adjustment operation, the display size of the first application window in a target direction is reduced and the display sizes of the remaining application windows in the target direction are increased, and the target direction is the adjustment direction corresponding to the window size adjustment instruction.
[0209] In some embodiments, the execution module 1920 is specifically used to:
[0210] Adjusting the display size of the first application window in the target direction from a current size to a second preset size;
[0211] The second preset size is determined according to the minimum size of the first application window in the target direction, and the minimum size is determined according to the ratio of the size of the display screen in the target direction to the number of the at least two application windows; or
[0212] The second preset size is determined according to the current size and parameters of the window size adjustment operation, wherein the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
[0213] In some embodiments, the display screen further includes a window adjustment area, and the execution module 1920 is further configured to:
[0214] Detecting a touch operation on the window adjustment area;
[0215] In response to the touch operation, an application window of a third target application different from the first target application is displayed in the maximum display area of the display screen, and a portion of the content of the remaining application windows is displayed in the remaining display area of the display screen.
[0216] In some embodiments, the window size adjustment operation includes a rotation operation, and the execution module 1920 is further configured to:
[0217] In response to the rotation operation, the display directions of the displayed contents in the at least two application windows are adjusted to the target display direction.
[0218] In some embodiments, the execution module 1920 is specifically used to:
[0219] According to the target display mode, setting the size of each of the at least two application windows;
[0220] By adopting a redirection method, at least two application windows with set sizes are mounted to at least two surface views in a split-screen application container, and the at least two application windows with set sizes are displayed in a split-screen on the display screen through the at least two surface views.
[0221] In some embodiments, the execution module 1920 is specifically used to:
[0222] When the display screen displays the first application in full screen, detecting a target operation;
[0223] In response to the target operation, displaying an application window of the at least one application to be selected on the display screen;
[0224] A selection operation on an application window of the at least one application to be selected is detected, and in response to the selection operation, the split-screen instruction is acquired, wherein the application corresponding to the application window selected by the selection operation is the at least one second application.
[0225] In some embodiments, the execution module 1920 is specifically used to:
[0226] In response to the target operation, the application window of the at least one to-be-selected application is displayed on the display screen in a free window mode, where the free window mode is a mode compatible with displaying at least two application windows.
[0227] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0228] It should be noted that in the embodiments of this application Fig.19The division of modules in the electronic device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0229] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0230] Fig. 20 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Please refer to Fig. 20 , an embodiment of the present application provides an electronic device, which may be the electronic device with a large language model as described above, and its internal structure diagram may be as shown in Fig. 20 As shown. The electronic device includes a processor 2020, a memory and a network interface 2040 connected via a system bus 2010. Among them, the processor 2020 of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium 2031 and an internal memory 2032. The non-volatile storage medium 2031 stores an operating system, a computer program and a database. The internal memory 2032 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 2031. The database of the electronic device is used to store data. The network interface 2040 of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 2020, the above method is implemented.
[0231] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0232] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0233] An embodiment of the present application provides a chip containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0234] Those skilled in the art will understand that Fig. 20 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0235] In one embodiment, the model reasoning acceleration device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig. 20 The electronic device shown in the figure is run. The memory of the electronic device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps of the method of each embodiment of the present application described in this specification.
[0236] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0237] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0238] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0239] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0240] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0241] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0242] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0243] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0244] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0245] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0246] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0247] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0248] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A split-screen display method, characterized in that: Applied to electronic equipment, the method comprises: When the first application is displayed in full screen, obtaining a split screen instruction, where the split screen instruction is used to display the first application and at least one second application in split screen; A target display mode is determined according to an application type combination corresponding to the first application and the at least one second application, and at least two application windows corresponding to the first application and the at least one second application are displayed in split screen according to the target display mode. The display sizes of the application windows are different in different target display modes. The application types in the application type combination include types whose display sizes can be adjusted for different display windows and / or types whose display sizes cannot be adjusted for different display windows.
2. The method according to claim 1, characterized in that In a case where the application type combination is a type combination whose display size can be adjusted for different display windows, the split-screen displaying of at least two application windows corresponding to the first application and the at least one second application respectively according to the target display mode includes: The at least two application windows are displayed in split screen on the display screen by adopting an evenly divided display mode; In the evenly divided display mode, the display size of each application window is the same.
3. The method according to claim 1, characterized in that In a case where the application type combination is a combination of types whose display sizes cannot be adjusted for different display windows, the split-screen displaying of at least two application windows corresponding to the first application and the at least one second application respectively according to the target display mode includes: The at least two application windows are displayed in split screen on the display screen in a maximized display mode; In the maximized display mode, an application window of a first target application is displayed in a maximum display area of the display screen, and partial contents of remaining application windows are displayed in a remaining display area of the display screen, wherein the at least two application windows include the application window of the first target application and the remaining application windows; The maximum display area is determined according to the long side of the display area of the display screen and the target coefficient.
4. The method according to claim 3, characterized in that The electronic device is provided with a carrier application, the carrier application includes a target area, the target area is used to carry the at least two application windows, the target area includes an in-screen display area corresponding to the display area of the display screen and an out-screen display area outside the display area of the display screen, and displaying partial content of the remaining application windows in the remaining display area of the display screen includes: Part of the content of the remaining application window is displayed in the remaining display area in the on-screen display area, and the remaining content of the remaining application window is displayed in the off-screen display area.
5. The method according to claim 1, characterized in that In a case where the application type combination is a combination of a type whose display size can be adjusted for different display windows and a type whose display size cannot be adjusted for different display windows, the split-screen displaying of at least two application windows corresponding to the first application and the at least one second application respectively according to the target display mode includes: The at least two application windows are displayed in split screen on the display screen by using a filling display mode; In the filling display mode, the target display area of the display screen displays an application window of a second target application, and the remaining display area of the display screen displays remaining application windows, the at least two application windows include the application window of the second target application and the remaining application windows, and the second target application window is an application of a type that cannot be resized; The target display area is obtained by scaling the fixed size supported by the second target application by a preset ratio in a current display mode, and the current display mode includes a horizontal screen mode or a vertical screen mode.
6. The method according to claim 1, characterized in that In a case where the application type combination is a combination of types whose display sizes can be adjusted for different display windows, after displaying at least two application windows corresponding to the first application and the at least one second application respectively in split-screen according to the target display mode, the method further includes: Detect window size adjustment operation; In response to the window size adjustment operation, the display size of each of the at least two application windows on the display screen is adjusted.
7. The method according to claim 6, characterized in that The window size adjustment operation is an operation of increasing the display size of the first application window, and in response to the window size adjustment operation, adjusting the display size of each of the at least two application windows on the display screen includes: In response to the window size adjustment operation, the display size of the first application window in a target direction is increased and the display sizes of the remaining application windows in the target direction are reduced, and the target direction is the adjustment direction corresponding to the window size adjustment instruction.
8. The method according to claim 7, characterized in that The increasing the display size of the first application window in the target direction includes: Adjusting the display size of the first application window in the target direction from a current size to a first preset size; The first preset size is determined according to the maximum size of the first application window in the target direction and a target coefficient; or The first preset size is determined according to the current size and parameters of the window size adjustment operation, wherein the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
9. The method according to claim 6, characterized in that The window size adjustment operation is an operation of reducing the display size of the first application window, and in response to the window size adjustment operation, adjusting the display size of each of the at least two application windows on the display screen includes: In response to the window size adjustment operation, the display size of the first application window in a target direction is reduced and the display sizes of the remaining application windows in the target direction are increased, and the target direction is the adjustment direction corresponding to the window size adjustment operation.
10. The method according to claim 9, characterized in that The reducing the display size of the first application window in the target direction includes: Adjusting the display size of the first application window in the target direction from a current size to a second preset size; The second preset size is determined according to the minimum size of the first application window in the target direction, and the minimum size is determined according to the ratio of the size of the display screen in the target direction to the number of the at least two application windows; or The second preset size is determined according to the current size and parameters of the window size adjustment operation, wherein the parameters include an end position or a moving distance, and the moving distance is a distance between a starting position and the end position.
11. The method according to claim 3 or 4, characterized in that: The display screen further includes a window adjustment area, and after at least two application windows corresponding to the first application and the at least one second application are displayed on the display screen in split screen, the method further includes: Detecting a touch operation on the window adjustment area; In response to the touch operation, an application window of a third target application different from the first target application is displayed in the maximum display area of the display screen, and a portion of the content of the remaining application windows is displayed in the remaining display area of the display screen.
12. The method according to claim 6, characterized in that The window size adjustment operation includes a rotation operation, and the rotation operation is used to adjust the display direction of the display screen from a current display direction to a target display direction. The method further includes: In response to the rotation operation, the display directions of the displayed contents in the at least two application windows are adjusted to the target display direction.
13. The method according to claim 1, characterized in that The displaying, in split-screen mode according to the target display mode, at least two application windows corresponding to the first application and the at least one second application respectively comprises: According to the target display mode, setting the size of each of the at least two application windows; By adopting a redirection method, at least two application windows with set sizes are mounted to at least two surface views in a split-screen application container, and the at least two application windows with set sizes are displayed in a split-screen on a display screen through the at least two surface views.
14. The method according to claim 1, characterized in that The obtaining the split screen instruction when the first application is displayed in full screen includes: When the first application is displayed in full screen, detecting a target operation; In response to the target operation, displaying an application window of the at least one application to be selected on a display screen; A selection operation on an application window of the at least one application to be selected is detected, and in response to the selection operation, the split-screen instruction is acquired, wherein the application corresponding to the application window selected by the selection operation is the at least one second application.
15. The method according to claim 14, characterized in that The step of displaying the application window of the at least one application to be selected on the display screen in response to the target operation includes: In response to the target operation, the application window of the at least one to-be-selected application is displayed on the display screen in a free window mode, where the free window mode is a mode compatible with displaying at least two application windows.
16. An electronic device, characterized in that: include: An acquisition module, used for acquiring a split-screen instruction when the first application is displayed in full screen, wherein the split-screen instruction is used for split-screen display of the first application and at least one second application; An execution module is used to determine a target display mode according to an application type combination corresponding to the first application and the at least one second application, and to display at least two application windows corresponding to the first application and the at least one second application respectively in a split-screen manner according to the target display mode, wherein the display sizes of the application windows are different in different target display modes, and the application types in the application type combination include a type whose display size can be adjusted for different screen sizes, a type whose display size can be adjusted for different display windows, and / or a type whose display size cannot be adjusted for different screen sizes.
17. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 14 are implemented.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.