Display method, electronic equipment and readable storage medium
By switching the display method in the display area of the multi-folding device, convenient switching of the application interface is achieved using gestures and dragging operations, the problem of inconvenient user operation in the multi-folding device is solved, and the convenience and flexibility of user interface switching is improved.
Patent Information
- Application Number
- CN202410038322.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2025-07-11
AI Technical Summary
In multi-folding devices such as three-folding equipment and four-folding equipment, how to easily switch the interfaces that display different or the same application, especially in the expanded state with a large screen size, the user's operation convenience is insufficient.
It provides a display method, by displaying multiple application interfaces in different display areas of multiple folding devices, and switching the application interface through gestures or dragging operations, supporting various display methods such as split screens and floating windows, including switching of adjacent and non-adjacent interfaces, as well as switching of front and backend interfaces.
It realizes convenient switching of interfaces for displaying different or the same application in multiple folding devices, improves user operation convenience and flexibility, and is suitable for multiple display scenarios.
Smart Images

Figure CN120295697A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of foldable screen devices, and in particular, to a display method, an electronic device, and a readable storage medium. Background Art
[0002] With the development of electronic devices, the display screens of electronic devices have become larger and larger. To facilitate user operation, foldable screen devices have emerged. With the gradual popularization of double-fold devices, triple-fold devices, quadruple-fold devices, and even more fold devices have gradually been developed and applied. Compared with double-fold devices, when triple-fold devices, quadruple-fold devices, or even more fold devices are in the unfolded state, the screen size is larger. Therefore, how to enable users to operate conveniently is an urgent problem to be solved. Summary of the Invention
[0003] The embodiments of the present application provide a display method, an electronic device, and a readable storage medium. In triple-fold devices, quadruple-fold devices, or even more fold devices, when a user operates any one of the two application interfaces to be switched on the electronic device, the application interface can be switched and displayed, and the operation is simple.
[0004] In a first aspect, the embodiments of the present application provide a display method. The execution subject of the display method is an electronic device or a chip in the electronic device. Hereinafter, the electronic device will be taken as an example for description. In this method, the electronic device includes a first display area, a second display area, and a third display area, and the second display area is located between the first display area and the third display area.
[0005] The electronic device displays a first application interface in the first display area, a second application interface in the second display area, and a third application interface in the third display area. In response to a first gesture of the user on the first application interface or the second application interface, the electronic device can switch and display the first application interface and the second application interface, that is, the electronic device displays the second application interface in the first display area and the first application interface in the second display area.
[0006] In the present application, in triple-fold devices, quadruple-fold devices, or even more fold devices, when a user operates any one of the two application interfaces to be switched on the electronic device, the application interface can be switched and displayed, and the operation is simple.
[0007] In a possible implementation, the first gesture is: pressing with a single finger at a preset position on the first application interface and sliding towards the second application interface, or pressing with a single finger at a preset position on the second application interface and sliding towards the first application interface. Here, taking the first application interface as an example to illustrate the preset position of the application interface, the preset position of the first application interface can be: the top of the first application interface, the top, the left side or the right side, etc., or a blank position on the first application interface.
[0008] Alternatively, the first gesture is: dragging the first application interface to the second display area, or dragging the second application interface to the first display area.
[0009] In a possible implementation, the first application interface, the second application interface, and the third application interface may belong to different applications. Or, in a possible implementation, at least two of the first application interface, the second application interface, and the third application interface may belong to the same application.
[0010] In other words, the display method provided by the embodiments of the present application can be applicable to the scenario of switching to display the interfaces of different applications, and can also be applicable to the scenario of switching to display the interfaces of the same application.
[0011] In the above example, the process of the electronic device switching to display two adjacent application interfaces is introduced. Next, the process of the electronic device switching to display two non-adjacent application interfaces is introduced. Exemplarily, the two non-adjacent application interfaces are the first application interface and the third application interface.
[0012] The electronic device displays the first application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area. Among them, in response to the second gesture of the user on the first application interface or the third application interface, the electronic device displays the third application interface in the first display area and the first application interface in the third display area, and the second gesture is different from the first gesture.
[0013] Exemplarily, the second gesture is: pressing with a single finger at a preset position on the first application interface and sliding away from the third application interface, or pressing with a single finger at a preset position on the third application interface and sliding away from the first application interface. Here, sliding away from the third application interface can be understood as: sliding in a direction away from or departing from the third application interface. Correspondingly, sliding away from the first application interface can be understood as: sliding in a direction away from or departing from the first application interface.
[0014] Alternatively, the second gesture is: dragging the first application interface to the third display area, or dragging the third application interface to the first display area.
[0015] In this implementation, the electronic device can switch to display two non - adjacent application interfaces.
[0016] In addition, in the embodiments of the present application, the electronic device can also switch to display the foreground application interface and the background application interface, as follows:
[0017] First, the first display area of the electronic device displays the first application interface, the second display area displays the second application interface, and the third display area displays the third application interface. In response to a third gesture of the user on the first application interface or the third application interface, the electronic device can display the second application interface in the first display area, display the third application interface in the second display area, and display the background application interface in the third display area.
[0018] In other words, in this example, the electronic device can switch to display the first application interface and the background application interface, specifically, display the background application interface in the display area where the third application interface was originally displayed.
[0019] Exemplarily, the third gesture is: pressing down at a preset position on the first application interface with two fingers and sliding away from the third application interface, or pressing down at a preset position on the third application interface with two fingers and sliding towards the first application interface.
[0020] Among them, the application to which the background application interface belongs is the application ranked first in the background task queue. In the present application, after the electronic device displays the second application interface in the first display area, the third application interface in the second display area, and the background application interface in the third display area, in response to a third gesture of the user on the second application interface or the background application interface, the electronic device displays the third application interface in the first display area, the background application interface in the second display area, and the interface of the second - ranked background application in the background task queue in the third display area.
[0021] In other words, in this example, when the user continues to perform the third gesture, it can trigger the electronic device to display the interface of the second - ranked background application in the background task queue in the foreground. In this example, the third gesture can be: pressing down at a preset position on the second application interface with two fingers and sliding away from the background application interface, or pressing down at a preset position on the background application interface with two fingers and sliding towards the second application interface.
[0022] Second, the electronic device displays a first application interface in the first display area, a second application interface in the second display area, and a third application interface in the third display area. In response to a third gesture of the user on the first application interface or the third application interface, the electronic device can display a background application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area.
[0023] In other words, in this example, the electronic device can switch to display the first application interface and the background application interface, specifically, display the background application interface in the display area of the first application interface.
[0024] Exemplarily, the third gesture is: pressing a preset position of the third application interface with a single finger, and pressing and sliding away from the third application interface at a preset position of the first application interface.
[0025] Third, the electronic device displays a first application interface in the first display area, a second application interface in the second display area, and a third application interface in the third display area. In response to a third gesture of the user on the second application interface, the electronic device can display the first application interface in the first display area, display a background application interface in the second display area, and display the third application interface in the third display area.
[0026] Exemplarily, the third gesture is: pressing at a preset position of the second application interface with a single finger and sliding in a first direction, the first direction being parallel to the split screen line, and the split screen line being the split screen line between the second display area and the first display area.
[0027] In a possible implementation manner, the first application interface, the second application interface, and the third application interface are displayed in the following forms: split screen or floating window. The processes of the electronic device switching to display two floating windows and switching to display one split screen and one floating window are introduced separately below:
[0028] Scenario 1: Switching to display two floating windows
[0029] When the first application interface and the second application interface are displayed as floating windows, the first application interface corresponds to a first floating window, and the second application interface corresponds to a second floating window. The first floating window is located at a first position on the display screen of the electronic device. In other words, the first floating window is located at a first position in a first display area. The second floating window is located at a second position on the display screen. In other words, the second floating window is located at a second position in a second display area. Wherein, the size of the first floating window is a first size, and the size of the second floating window is a second size.
[0030] In some embodiments, in response to a fourth gesture of the user on the first floating window or the second floating window, the electronic device can display the second floating window with a second size at the first position, and display the first floating window with a first size at the second position. In other words, when the user performs the fourth gesture, it can trigger the electronic device to switch the display of the first floating window and the second floating window. Specifically, the positions of the two floating windows are swapped, and the floating windows are still the original sizes. For example, the first floating window is displayed at the second position, and the second floating window is displayed at the first position.
[0031] In some embodiments, in response to a fourth gesture of the user on the first floating window or the second floating window, the electronic device can display the second floating window with a first size at the first position, and display the first floating window with a second size at the second position. In other words, when the user performs the fourth gesture, it can trigger the electronic device to switch the display of the first floating window and the second floating window. Specifically, the positions of the two floating windows are swapped, and the sizes are also swapped. For example, the first floating window is displayed at the second position, and the size of the first floating window becomes the second size, and the second floating window is displayed at the first position, and the size of the second floating window becomes the first size.
[0032] Scenario 2: Switching the display between floating windows and split screens
[0033] When the first application interface is displayed as a floating window and the second application interface is displayed in split screen, the first application interface corresponds to a first floating window. The first floating window is located at a first position on the display screen of the electronic device, and the size of the first floating window is a first size.
[0034] In some embodiments, in response to a fifth gesture of the user on the first floating window or the second application interface, the electronic device can display the second application interface in split screen in the first display area, and display the first floating window with a first size in the second display area. The relative position of the first floating window in the second display area is the same as the relative position of the first position in the first display area.
[0035] In other words, in this example, when the electronic device switches between displaying the floating window and split screen, it only swaps the display areas of the two. For example, the second application interface is split-screen displayed in the first display area, and the first floating window of the first size is displayed in the second display area, and the display styles of the two remain unchanged. The display styles can be split screen and floating window.
[0036] In some embodiments, in response to a fifth gesture of the user on the first floating window or the second application interface, the electronic device may display a second floating window of the first size at the first position, and split-screen display the first application interface in the second display area, where the second floating window corresponds to the second application interface.
[0037] In other words, in this example, when the electronic device switches between displaying the floating window and split screen, it not only swaps the display areas of the two, but also can swap the display styles of the two. For example, the second application interface is displayed in the form of a floating window. The electronic device can display a second floating window of the first size in the first display area. Additionally, the first floating window can be split-screen displayed, and the electronic device can split-screen display the first application interface in the second display area.
[0038] In the embodiments of the present application, the electronic device can support switching between two split-screen interfaces, or two floating windows, or one floating window and one split-screen interface. Additionally, when the electronic device switches between displaying two application interfaces, the present application provides a variety of switching display methods, with a wide range of applications and high flexibility.
[0039] In a possible implementation manner, the present application further provides a method for a user to select the display area of the application interface, which can be described as follows:
[0040] The electronic device can display a first desktop interface in the first display area, a second desktop interface in the second display area, and a third desktop interface in the third display area. The first desktop interface includes icons of the first application. Among them, in response to a sixth gesture of the user on the icon of the first application, the electronic device can display the interface of the first application in the second display area, where the sixth gesture is used to indicate displaying the interface of the first application in the second display area.
[0041] Exemplarily, the sixth gesture is: short-pressing the icon of the first application and dragging the icon of the first application to the second display area. It should be noted that the short-press can be understood as: the duration of pressing the icon of the first application is less than a threshold. It should be noted that the setting of the duration of pressing the icon of the first application in the embodiments of the present application is different from the setting of clicking the icon of the first application to trigger the startup of the first application.
[0042] Exemplarily, the sixth gesture is: performing a slide in a first direction on the icon of the first application, and selecting the second display area in the area options. The slide in the first direction is used to trigger the electronic device to display the area options. The first direction is parallel to the split screen line, and the split screen line is the split screen line between the second display area and the first display area. In other words, when the user performs a slide in the first direction on the icon of the first application, the electronic device can display the area options, and the user can select the second display area in the area options, so that the electronic device can display the interface of the first application in the second display area.
[0043] In a second aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory. The memory is used to store computer-executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the method in the first aspect.
[0044] In a third aspect, an embodiment of the present application provides an electronic device, which may include units, modules or circuits for executing the method provided in the first aspect above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer program product containing instructions, which when running on a computer, causes the computer to execute the method in the first aspect above.
[0046] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored, which when running on a computer, causes the computer to execute the method in the first aspect above.
[0047] For the possible implementation manners of the second to fifth aspects above, the beneficial effects can refer to the beneficial effects brought by the first aspect above, and will not be elaborated here. Description of the Drawings
[0048] Figure 1 It is a schematic diagram of the change in the physical form of the electronic device provided by the embodiment of the present application;
[0049] Figure 2 It is a schematic diagram of a physical form of the electronic device provided by the embodiment of the present application;
[0050] Figure 3 It is a schematic diagram of an interface of the electronic device provided by the embodiment of the present application;
[0051] Figure 4 It is another schematic diagram of an interface of the electronic device provided by the embodiment of the present application;
[0052] Figure 5Another schematic diagram of the interface of the electronic device provided by the embodiment of the present application;
[0053] Figure 6 A schematic structural diagram of the electronic device provided by the embodiment of the present application;
[0054] Figure 7A A schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0055] Figure 7B(1) is another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0056] Figure 7B(2) is a schematic flowchart of an application interface switching provided by the embodiment of the present application;
[0057] Figure 7C(1) is another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0058] Figure 7C(2) is another schematic flowchart of the application interface switching provided by the embodiment of the present application;
[0059] Figure 7D(1) is another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0060] Figure 7D(2) is another schematic flowchart of the application interface switching provided by the embodiment of the present application;
[0061] Figure 7E(1) is another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0062] Figure 7E(2) is another schematic flowchart of the application interface switching provided by the embodiment of the present application;
[0063] Figure 7F Another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0064] Figure 8A Another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0065] Figure 8B Another schematic flowchart of the application interface switching provided by the embodiment of the present application;
[0066] Figure 9 Another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0067] Figure 10A Another schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0068] Figure 10BAnother schematic diagram of the interface change of the electronic device provided by the embodiment of the present application;
[0069] Figure 10C A schematic diagram of a process when an application is launched provided by the embodiment of the present application;
[0070] Figure 11 Another schematic diagram of the structure of the electronic device provided by the embodiment of the present application. Detailed implementation manners
[0071] The electronic device in the embodiment of the present application includes a display screen. The display screen is a flexible screen and has a foldable characteristic. The electronic device in the embodiment of the present application can be referred to as a foldable screen device or a foldable device. For example, the electronic device can be a mobile phone, a tablet computer (portable android device, PAD), a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. The embodiment of the present application does not make a specific limitation on the form of the electronic device.
[0072] The foldable screen device in the embodiment of the present application can be a three-fold device, a four-fold device, or a device with more folds. It should be understood that the display method provided by the embodiment of the present application can also be applied to a double-fold device. For a three-fold device, the three-fold device can include two folding edges or folding axes. The three-fold device can be folded twice along the folding edge or folding axis. After two folds, the three-fold screen can form three screens. These three screens can be independent screens or an integrated structure of a complete screen that is only folded into two parts. Similarly, a four-fold device, or a device with more folds can be folded more times and can form a greater number of screens after being folded. The following embodiments will be described by taking a three-fold device as an example.
[0073] Taking a three-fold device as an example, the three-fold device can include at least one display screen with an integrated structure. The folding method of the three-fold device can include inner folding and / or outer folding. The embodiment of the present application does not limit the folding method of the three-fold device. The physical forms of the three-fold screen can include: a folded state, an unfolded state, and a hover state.
[0074] Refer to Figure 1In a, when the triple-fold device is in the folded state, screen 1 can be turned on, and the user can use screen 1. During the process of the user unfolding the triple-fold device, the triple-fold device is in a hovering state, and the hovering state is any physical state between the folded state and the unfolded state. Refer to Figure 1 In b, when the triple-fold device is in the hovering state, some areas or all areas of screen 2 in the triple-fold device are turned on. When the user continues to unfold the triple-fold device to the unfolded state, refer to Figure 1 In c, all areas of screen 2 can be turned on, and the user can use screen 2.
[0075] In some embodiments, depending on the settings of the triple-fold device, screen 1 can be a part of screen 2, or screen 1 and screen 2 can be independently set screens. It should be understood that Figure 1 in, screen 1 is taken as the rightmost screen in screen 2 as an example for illustration. Figure 2 in, screen 1 is taken as independent of screen 2 as an example. It should be understood that Figure 2 only shows the triple-fold device in the hovering state.
[0076] The display method provided by the embodiments of the present application can be applied to the scenario where the foldable screen device is in the unfolded state. Refer to Figure 3 , when the triple-fold device is in the unfolded state, the triple-fold device can include three display areas, namely the first display area, the second display area, and the third display area. Combining Figure 1 in c and Figure 2 , it can also be said that screen 2 can include the first display area, the second display area, and the third display area. The second display area is in the middle of the first display area and the third display area. There is a folding edge or a folding axis (or a split screen line) between two adjacent display areas, and the triple-fold device can be folded along the folding edge or the folding axis. Figure 3 In, the folding edge or the folding axis (or the split screen line) is represented by a dotted line. It should be understood that the user can operate the split screen line to adjust the size of the display area, and the embodiments of the present application will not elaborate on this.
[0077] In some embodiments, each display area can display the interfaces of different applications. In this way, the user can simultaneously see the interfaces of different applications, which is convenient for the user to perform multi-application operations. For example, the user can watch videos, take notes, look up words, etc. at the same time. Among them, the first display area can display the interface of the first application, the second display area can display the interface of the second application, and the third display area can display the interface of the third application. The first application, the second application, and the third application are all different. Exemplarily, Figure 3 in, the first display area is taken as an example to display the interface of the phone application, the second display area is taken as an example to display the interface of the settings application, and the third display area is taken as an example to display the interface of the social application.
[0078] In some embodiments, among the three display regions, there may be at least two display regions displaying the interfaces of the same application. Exemplarily, for example, the first display region may display the main interface of a social application, the second display region may display the settings interface of the social application, and the third display region may display the interface of a phone application.
[0079] It should be understood that in the following embodiments, taking the three display regions of a triple-fold device for displaying the interfaces of different applications as an example, the display method provided by the embodiments of the present application will be introduced.
[0080] In some embodiments, when a display region displays the interface of an application, the interface of the application may occupy the entire region or a partial region of the display region. Exemplarily, Figure 3 Taking the interface of each application occupying the entire region of the display region as an example, in this example, it can also be said that the triple-fold device can display the interfaces of multiple applications in a split-screen manner.
[0081] Figure 4 Taking the interface of each application occupying a partial region of the display region as an example, in this example, it can also be said that the triple-fold device displays the floating windows of the applications in each display region. Figure 5 Taking the interface of some applications occupying the entire region of the display region and the interface of the remaining part of the applications occupying a partial region of the display region as an example, that is, some display regions can display the interfaces of the applications in a split-screen manner, and the remaining display regions can display the floating windows of the applications.
[0082] In summary, the triple-fold device can display the interfaces of applications in each display region in different styles. In actual application scenarios, users have the need to switch the interfaces of applications. Switching the interfaces of applications may include, for example: switching the display position of the interface of the application, and switching a background application to the foreground for display, etc. Based on this need to switch the interfaces of applications, since the screen size of a triple-fold device, a quadruple-fold device, or even more fold devices is relatively large when in the unfolded state, how to enable users to operate conveniently to meet the user needs is an urgent problem to be solved.
[0083] The embodiments of the present application provide a display method. Users can operate on a multi-fold device, and the switching of the interfaces of applications can be realized to meet the needs of users. The multi-fold device may include a triple-fold device, a quadruple-fold device, or even more fold devices. In some embodiments, the multi-fold device may include a double-fold device.
[0084] Before introducing the display method provided by the embodiments of the present application, the structure of the electronic device will be introduced first.
[0085] Figure 6A schematic structural diagram of an electronic device provided by an embodiment of the present application. The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. The layered architecture divides the software system of the electronic device into several layers, each layer having a clear role and division of labor, and communicating through software interfaces between layers.
[0086] In some embodiments, the electronic device may include: an application layer (applications), an application framework layer (application framework), a system service layer, and a kernel layer (kernel). The embodiment of the present application does not limit the layering of the software structure of the electronic device. The modules included in each layer in the following embodiments are the modules involved in the embodiment of the present application. The modules included in each of the following layers do not constitute a limitation on the structure of the electronic device, and the hierarchical level of module deployment (illustrative example) also does not constitute a limitation on the structure of the electronic device.
[0087] The application layer may include a series of applications. The application layer runs the applications by calling the application programming interface (API) provided by the application framework layer.
[0088] In some embodiments, the application layer may include system applications and third-party applications. Exemplarily, the system applications may include a settings application, a phone application, a gallery application, a messaging application, etc. The third-party applications may include audio applications, video applications, social applications, etc. It should be understood that Figure 6 shows some applications.
[0089] The application framework layer can provide APIs and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. Referring to Figure 6 , the application framework layer may include the user interface (UI) system of the application and the desktop UI system. Among them, the application UI system is used to assist the electronic device in displaying the interface of the application, and the desktop UI system is used to assist in displaying the desktop interface of the electronic device.
[0090] Referring to Figure 6 , in some embodiments, the application UI system may include: a basic control module, a mounted control module, a layout management module, and an event distribution module.
[0091] Among them, the basic control module is used to manage the basic controls of the application UI. The basic controls may include, but are not limited to: pictures, buttons, texts, input boxes, progress bars, scroll boxes, joysticks, etc. on the application UI. The mounted control module is used to manage the mounted controls. The mounted controls may include, but are not limited to: root controls, screen controls, window controls, etc. The layout management module is used to manage the layout of each control on the application UI. The event distribution module is used to implement the distribution of input events so that the application can respond to the input events in a timely manner. The input events may include, but are not limited to: touch events, swipe events, long-press events, etc.
[0092] The desktop UI system is responsible for providing different types of containers and animation effects. Before displaying the interface of the desktop application, the desktop UI system can create corresponding containers, and different types of containers can be converted into each other. In addition, during the opening and switching of windows, the desktop UI system can provide animation effects to make the process of window opening and switching smoother and more fluent.
[0093] Refer to Figure 6 , in some embodiments, the desktop UI system may include: at least one type of container, and an animation effect module. Among them, the at least one type of container may include, but is not limited to: split-screen containers, floating window containers, picture-in-picture containers, etc.
[0094] The split-screen container is used to store the split-screen interfaces displayed on the desktop interface. For example, refer to Figure 3 In the example of, three split-screen interfaces are displayed on the desktop interface. The three split-screen interfaces include: the interface of the phone application displayed in the first display area, the interface of the settings application displayed in the second display area, and the interface of the social application displayed in the third display area. Refer to Figure 5 In the example of, one split-screen interface is displayed on the desktop interface, and the split-screen interface is the interface of the phone application displayed in the first display area.
[0095] Figure 6 takes the split-screen container including the main split screen, the secondary split screen, and the split-screen line as an example. Among them, the split-screen line is used to separate two split screens. For example, a split-screen line may be included between the main split screen and the secondary split screen.
[0096] The floating window container is used to store the floating windows displayed on the desktop interface. For example, refer to Figure 4 In the example of, three floating windows are displayed on the desktop interface. The three floating windows include: the floating window of the phone application displayed in the first display area, the floating window of the settings application displayed in the second display area, and the floating window of the social application displayed in the third display area. Refer to Figure 5 In the example of, two floating windows are displayed on the desktop interface. The floating windows include: the floating window of the settings application displayed in the second display area, and the floating window of the social application displayed in the third display area.
[0097] Figure 6 Taking the floating window container including floating window 1 and floating window 2 as an example.
[0098] A picture-in-picture container for storing the picture-in-picture interface displayed on the desktop interface. The picture-in-picture interface can be understood as: a floating window is superimposed on a split-screen interface. Exemplarily, the first display area is split-screen to display the interface of the phone application, and a floating window of a social application is displayed on the interface of the phone application. For example, the floating window is a floating window of a video call interface. The picture-in-picture interface is not separately shown in the embodiments of the present application. In some embodiments, the picture-in-picture interface can be regarded as a split-screen interface, except that a floating window is superimposed on the split-screen interface. The method for switching the picture-in-picture interface can refer to the description of switching the split-screen interface in the following embodiments.
[0099] Figure 6 Taking the picture-in-picture container including the main screen and the secondary screen as an example. Exemplarily, for example, a floating window of a social application is displayed on the interface of the phone application. The interface of the phone application can be regarded as the main screen, and the floating window of the social application can be regarded as the secondary screen.
[0100] An animation effect module for displaying the animation effect of the interface switching of an application during the process of switching the interface of the application. The animation effect can include but is not limited to: bounce animation effect, full-screen animation effect, spring animation effect, and hiding animation effect, etc. The embodiments of the present application do not limit the animation effect of switching the interface of the application.
[0101] The system service layer for providing various types of system services for the electronic device. The system services can include but are not limited to: audio service (audio), video service (video), network service, and desktop service, etc. It should be understood that Figure 6 The desktop service involved in the embodiments of the present application is shown.
[0102] Refer to Figure 6 , the desktop service can include: session creation service, session management service, window management service, and desktop layout refresh service, etc.
[0103] Among them, the session creation service is used to create a session. Whenever an application starts and enters a container, the session creation service will create a separate session for the application. Exemplarily, the session can include but is not limited to a split-screen session, a floating window session, and a picture-in-picture session. It should be understood that, exemplarily, when the electronic device is about to split-screen and display the interface of the application in the display area, the session creation service can create a split-screen session. Exemplarily, when the electronic device is about to display the floating window of the interface of the application in the display area, the session creation service can create a split-screen session.
[0104] Figure 6 Taking the split-screen session, floating window session, and picture-in-picture session created by the Zhongyi session creation service as examples.
[0105] A session management service for managing the sessions created by the session creation service. Exemplarily, the session management service can store information about the sessions of the interfaces of each application, and destroy sessions, etc. The information of the session can include, but is not limited to: position parameters, size parameters, etc. of the interface of the application. The position parameter can indicate the position of the interface of the application on the display screen of the electronic device, and the size parameter can indicate the size, shape, etc. of the application interface (split screen, floating window, picture-in-picture, etc.).
[0106] In some embodiments, the session management service can include a window session management service and a screen session management service. Among them, the window session management service is used to manage the sessions related to windows created by the session creation service. For example, the window session management service can manage split-screen sessions, floating window sessions, and picture-in-picture sessions. Among them, the screen session management service is used to manage sessions related to the desktop. For example, the screen session management service can manage desktop interface sessions.
[0107] A window management service for managing the windows displayed on the desktop interface. Different windows can carry the interfaces of the same or different applications. Exemplarily, referring to Figure 3 the example in, the interface of the phone application can be carried in one window (such as window 1), and the interface of the settings application can be carried in another window (such as window 2).
[0108] In some embodiments, the window management service can include: a multitasking management service, a window size management service, a window control management service, and a window swapping service.
[0109] Among them, the multitasking management service is used to manage the applications running on the electronic device. Among them, the applications running on the electronic device include background applications. The multitasking management service can manage the background task queue, and the background task queue includes the applications running in the background.
[0110] The window size management service is used to manage the size of the window. Among them, the window can be used to carry split screen, floating window, and picture-in-picture. The window control management service is used to manage the controls in the window. The controls in the window can include, but are not limited to: the horizontal bar (bar) at the top of the window.
[0111] The window swapping service can be used to obtain information about the windows to be switched (swapped) and switch the information of the windows to be switched. Exemplarily, the information of the window can include, but is not limited to, the position parameter and size parameter of the window. Exemplarily, if the windows to be switched are the split-screen interface 1 displayed in display area 1 and the split-screen interface 2 displayed in display area 2, the information of the windows to be switched can include: the position parameter of the split-screen interface 1, and the position parameter of the split-screen interface 2. Among them, the position parameter of the split-screen interface 1 can include: the coordinate 1 of the upper left corner of the split-screen interface 1 in the coordinate system of the display screen of the electronic device, and the position parameter of the split-screen interface 2 can include: the coordinate 2 of the upper left corner of the split-screen interface 2 in the coordinate system of the display screen of the electronic device.
[0112] The window swapping service can swap the position parameter of the split-screen interface 1 and the position parameter of the split-screen interface 2. For example, the window swapping service modifies the position parameter of the split-screen interface 1 to coordinate 2 and the position parameter of the split-screen interface 2 to coordinate 1. The window swapping service is also used to send the information of the switched window to the desktop layout refresh service. Exemplarily, the information of the switched window includes: the position parameter (coordinate 2) of the split-screen interface 1, and the position parameter (coordinate 1) of the split-screen interface 2. In some embodiments, the information of the switched window can also be referred to as the updated window parameter.
[0113] The desktop layout refresh service is used to re-layout the desktop according to the updated window parameter. Exemplarily, the desktop layout refresh service can determine to display the split-screen interface 2 in display area 1 and display the split-screen interface 1 in display area 2 according to "the position parameter (coordinate 2) of the split-screen interface 1, and the position parameter (coordinate 1) of the split-screen interface 2".
[0114] Refer to Figure 6 , in some embodiments, the kernel layer can include a rendering service and a basic management service. Among them, the rendering service can be used to render the window so that the electronic device can display the content in the window in the display area. The basic management service can be used to manage the life cycle of processes, the life cycle of components, etc. The functions of the basic management service are not elaborated in the embodiments of the present application.
[0115] In some embodiments, the desktop layout refresh service is also used to send the information after re-layouting the desktop to the rendering service. The rendering service is used to re-render the desktop according to the information after re-layouting the desktop, so that the electronic device displays the split-screen interface 2 in display area 1 and displays the split-screen interface 1 in display area 2. In some embodiments, the information after re-layouting the desktop can also be referred to as the updated desktop layout parameter.
[0116] It can be understood that Figure 6The structure shown does not specifically limit the electronic device. In some other embodiments of the present application, the electronic device may include more or fewer components than those shown, or combine certain components, or split certain components, or have different component arrangements. The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0117] The display method provided by the embodiments of the present application will be described below in conjunction with specific embodiments. These several embodiments below can be combined with each other, and for the same or similar concepts or processes, they may not be repeated in some embodiments. It should be understood that in the following embodiments, according to the switching scenarios of the application interfaces, the display methods provided by the embodiments of the present application will be introduced in sequence.
[0118] Scenario 1: Switching between split-screen interfaces
[0119] Taking an electronic device as a three-fold device as an example, when the three-fold device is in the unfolded state, it may include a first display area, a second display area, and a third display area. The first display area, the second display area, and the third display area are adjacent display areas. For example, the first display area is adjacent to the second display area, the second display area is adjacent to the third display area, and the second display area is between the first display area and the third display area. It should be understood that in the embodiments of the present application, taking the first display area, the second display area, and the third display area as arranged from left to right, the first display area, the second display area, and the third display area may also be arranged from top to bottom. The embodiments of the present application do not limit the arrangement manner of the display areas.
[0120] In the embodiments of the present application, the first display area may display a first application interface, the second display area may display a second application interface, and the third display area may display a third application interface. Among them, the first application interface, the second application interface, and the third application interface may belong to the same application or different applications. In the embodiments of the present application, an example is given in which the first application interface, the second application interface, and the third application interface belong to different applications. Refer to Figure 7A , the first application interface may be the interface of the phone application, the second application interface may be the interface of the settings application, and the third application interface may be the interface of a social application. It should be understood that Figure 7A uses the interfaces of split-screen display applications as an example. In some embodiments, Figure 7A the application interfaces of each display area shown may be referred to as split-screen interfaces.
[0121] Figure 7A Several examples of switching between split-screen interfaces are shown as follows:
[0122] Example 1: Gesture 1 is used to trigger the switching between the first application interface and the second application interface. Exemplarily, when the user executes Gesture 1, the second display area can display the first application interface, and the first display area can display the second application interface.
[0123] Example 2: Gesture 2 is used to trigger the switching between the second application interface and the third application interface. Exemplarily, when the user executes Gesture 2, the third display area can display the second application interface, and the second display area can display the third application interface.
[0124] Example 3: Gesture 3 is used to trigger the switching between the first application interface and the third application interface. Exemplarily, when the user executes Gesture 3, the third display area can display the first application interface, and the first display area can display the third application interface.
[0125] Example 4: Gesture 4 is used to trigger the switching between the first application interface and the background application interface. Exemplarily, when the user executes Gesture 4, the first display area can display the background application interface and does not display the first application interface. Or, exemparily, when the user executes Gesture 4, the first display area can display the second application interface, the second display area can display the third application interface, and the third display area can display the background application interface.
[0126] It should be understood that the background application interface is the interface of the application running in the background. Among them, when the first display area displays the first application interface, the second display area displays the second application interface, and the third display area displays the third application interface, the first application interface, the second application interface, and the third application interface can be regarded as the interfaces of the applications running in the foreground.
[0127] Example 5: Gesture 5 is used to trigger the switching between the third application interface and the background application interface. Exemplarily, when the user executes Gesture 5, the third display area can display the background application interface and does not display the third application interface. Or, exemparily, when the user executes Gesture 4, the third display area can display the second application interface, the second display area can display the first application interface, and the first display area can display the background application interface.
[0128] Example 6: Gesture 6 is used to trigger the switching between the second application interface and the background application interface. Exemplarily, when the user executes Gesture 6, the second display area can display the background application interface and does not display the second application interface.
[0129] In summary, the switching between split-screen interfaces can include: the switching between the foreground split-screen interfaces, and the switching between the foreground split-screen interface and the background application interface. The following introduces the switching process between split-screen interfaces from these two scenarios.
[0130] Scenario 1-1: Switching between the foreground split-screen interfaces
[0131] The switching between the split-screen interfaces on the front end may include: the switching between two adjacent split-screen interfaces, and the switching between two non-adjacent split-screen interfaces.
[0132] Taking the electronic device as a triple-fold device as an example, the switching process between two adjacent split-screen interfaces is shown in Figure 7B(1). Referring to a in Figure 7B(1), the first display area shows the interface of the phone application, the second display area shows the interface of the settings application, and the third display area shows the interface of the social application. Two adjacent split-screen interfaces may include: the first application interface (the interface of the phone application) and the second application interface (the interface of the settings application), and, the second application interface (the interface of the settings application) and the third application interface (the interface of the social application).
[0133] Taking the switching between the first application interface and the second application interface as an example, the user can perform a first gesture on the first application interface to trigger the switching between the first application interface and the second application interface. The purpose of the first gesture is to indicate the switching between the first application interface and the second application interface. In some embodiments, the first gesture may be a gesture that touches the first application interface, or the first gesture is a gesture that does not touch the first application interface, such as an air gesture.
[0134] Exemplarily, taking the first gesture as a gesture that touches the first application interface as an example, the first gesture may be: the user presses with a single finger at a preset position on the first application interface and slides towards the second application interface. Among them, performing the first gesture on the first application interface can indicate one application interface, and sliding towards the second application interface can indicate another application interface. The preset position may be the bottom, top, left or right of the first application interface, etc.
[0135] In some embodiments, when sliding towards the second application interface, the sliding operation may not exceed the first display area or may exceed the first display area. In the following exemplary drawings, the case where the sliding operation does not exceed the first display area is taken as an example.
[0136] Referring to a in Figure 7B(1), because the second application interface is on the right side of the first application interface, the user presses with a single finger at the bottom of the first application interface and slides to the right, which can trigger the electronic device to switch between the first application interface and the second application interface. Referring to b in Figure 7B(1), the first display area shows the second application interface, and the second display area shows the first application interface.
[0137] In some embodiments, when the preset position is at the top of the first application interface, the preset position may specifically be at the bar at the top of the first application interface.
[0138] In some embodiments, the first gesture may also be, for example, dragging the first application interface to the second display area, or operating a preset position of the first application interface to trigger the electronic device to display an interface selection box, so that the user can select the second application interface in the interface selection box to trigger the electronic device to switch between the first application interface and the second application interface. It should be understood that the interface selection box may include the identifiers of the foreground-running applications, or may also include the identifiers of the background-running applications.
[0139] The switching of the application interfaces shown in FIG. 7B(1) can be applied to the following scenario: The user can simultaneously view three application interfaces, and the user can place the currently processed application interface in the middle for quick processing.
[0140] Referring to the description in FIG. 7B(1), the user can also perform a first gesture on the second application interface to trigger the switching between the first application interface and the second application interface. For example, the user presses with a single finger at a preset position on the second application interface and slides towards the first application interface, which can trigger the electronic device to switch between the first application interface and the second application interface. The first gesture can also refer to the description in the above example.
[0141] It can be understood that after the electronic device switches between the first application interface and the second application interface, when the user presses with a single finger at the bottom of the first application interface and slides to the left, it can trigger the electronic device to switch between the first application interface and the second application interface again. The first display area can display the interface of the first application, and the second display area can display the interface of the second application.
[0142] Similarly, the user can trigger the electronic device to switch between the adjacent second application interface and the third application interface in the same way, which will not be elaborated here.
[0143] Next, in conjunction with FIG. 7B(2), from the perspective of the internal module interaction of the electronic device, the process of the electronic device switching between the first application interface and the second application interface will be introduced:
[0144] When the split-screen container (such as the container of the first application interface) detects a user gesture in the first application interface, it will detect whether the user's gesture meets the switching gesture (such as the first gesture). Among them, when the split-screen container determines that the user's gesture meets the first gesture, the split-screen container will call the window swapping service. The window swapping service will access the session of the first application interface to determine the position parameter of the first application interface (such as coordinate 1), and the window swapping service will access the session of the second application interface to determine the position parameter of the second application interface (such as coordinate 2). After the position parameter of the first application interface and the position parameter of the second application interface are passed back to the window swapping service, the window swapping service will swap the position parameter of the first application interface and the position parameter of the second application interface to obtain the updated window parameters. The updated window parameters may include, for example: the position parameter of the first application interface (such as coordinate 2), and the position parameter of the second application interface (such as coordinate 1).
[0145] The window swapping service can send the updated window parameters to the desktop layout refresh service. The desktop layout refresh service can re-layout the desktop according to the updated window parameters to obtain the updated desktop layout parameters. The desktop layout refresh service can send the updated desktop layout parameters to the rendering service, and the rendering service can render the desktop according to the updated desktop layout parameters so that the electronic device can display the first application interface in the second display area and display the second application interface in the first display area. It can be understood that in order to achieve a smooth switch between the two application interfaces and improve the user experience, the animation effect module can render the animation effect of the switch between the two application interfaces. Correspondingly, the electronic device can display the animation effect.
[0146] It should be understood that when the split-screen container determines that the user's gesture does not meet the first gesture, the split-screen container will not call the window swapping service.
[0147] The following describes the process of the electronic device switching between two non-adjacent split-screen interfaces:
[0148] Taking the electronic device as a three-fold device as an example, the switching process between two non-adjacent split-screen interfaces is shown in Fig. 7C(1). a in Fig. 7C(1) can refer to the description of a in Fig. 7B(1). Referring to a in Fig. 7C(1), the two non-adjacent split-screen interfaces may include a first application interface (the interface of the phone application) and a third application interface (the interface of the social application).
[0149] The user can perform a second gesture on the first application interface or the third application interface to trigger the electronic device to switch between the first application interface and the third application interface. In some embodiments, the second gesture may be a gesture of touching the first application interface, or the second gesture is a gesture of not touching the first application interface, such as an air gesture.
[0150] Exemplarily, taking the second gesture as a gesture of touching the first application interface as an example, the second gesture can be: the user presses down at a preset position on the first application interface with a single finger and slides away from the third application interface. "Sliding away from the third application interface" can be understood as: sliding in a direction away from (or distant from) the third application interface. The purpose of setting it like this in the embodiments of the present application is that: since the second application interface is between the first application interface and the third application interface, if it is towards the third application interface, this second gesture is also towards the second application interface, which will trigger the electronic device to switch between the first application interface and the second application interface. To achieve the purpose of accurately triggering the switching between the first application interface and the third application interface, the arrangement of the three application interfaces can be regarded as connected end to end. Then, the third application interface is located on the left side of the first application interface, and the first application interface is located on the right side of the third application interface.
[0151] Referring to a in FIG. 7C(1), when the user presses down at the bottom of the first application interface with a single finger and slides to the left, it can trigger the electronic device to switch between the first application interface and the third application interface. The first display area can display the third application interface, and the third display area can display the first application interface, as shown in b in FIG. 7C(1). Similarly, when the user presses down at the bottom of the third application interface with a single finger and slides to the right, it can trigger the electronic device to switch between the first application interface and the third application interface. The first display area can display the third application interface, and the third display area can display the first application interface.
[0152] In some embodiments, the second gesture can also be, for example, dragging the first application interface to the third display area, or dragging the third application interface to the first display area. Or, the second gesture can also be, for example, operating a preset position of the first application interface to trigger the electronic device to display an interface selection box, so that the user can select the third application interface in the interface selection box to trigger the electronic device to switch between the first application interface and the third application interface. The interface selection box can refer to the description in the above example.
[0153] The application interface shown in FIG. 7C(1) can be applicable to the following scenarios: User 1 is operating the first application interface, and User 2 is on the right side of User 1. User 1 can execute the second gesture to enable the third display area to display the first application interface, so as to quickly share the first application interface with User 2. Or, User 1 is operating the first application interface, and User 2 is operating the third application interface. User 2 is on the right side of User 1. User 1 can execute the second gesture to trigger the electronic device to switch between the first application interface and the third application interface, so that User 1 and User 2 can swap and view the application interfaces being processed by each other.
[0154] In a three-fold device, two non-adjacent split-screen interfaces can be regarded as two split-screen interfaces located at two ends of the electronic device. Referring to the method in FIG7C(1), the user performs a second gesture to trigger the electronic device to switch between the two split-screen interfaces located at two ends of the electronic device, where the two ends can be understood as the upper and lower ends, or the left and right sides of the electronic device. Similarly, the method in FIG7C(1) can also be applied to two split-screen interfaces located at two ends of the electronic device in a four-fold device and more folding devices. However, in a four-fold device and more folding devices, two non-adjacent split-screen interfaces can also include two split-screen interfaces that are not located at two ends of the electronic device.
[0155] Take a four-fold device as an example. For example, when the four-fold device is in the unfolded state, it includes four display areas. The four display areas are arranged from left to right, namely the first display area, the second display area, the third display area and the fourth display area. Among them, the switching method of the non-adjacent first display area and the fourth display area can refer to Figure 7C (1). The non-adjacent display areas also include: the first display area and the third display area, and the second display area and the fourth display area. For this type of non-adjacent display areas, exemplarily, the switching method can be, for example: taking the switching of the first display area and the third display area as an example, the user can use single finger 1 to press and hold the first display area, and use single finger 2 to press and hold the third display area. The user's single finger 1 can slide in the direction of the third display area, and the user's single finger 2 can slide in the direction of the first display area. This can trigger the electronic device to switch the first display area and the third display area.
[0156] The following describes the process of switching between the first application interface and the third application interface of the electronic device from the perspective of the interaction of modules within the electronic device in conjunction with FIG. 7C (2):
[0157] When the split-screen container (such as the container of the first application interface) detects a user gesture on the first application interface, it detects whether the user's gesture satisfies the switching gesture (such as the second gesture). Among them, when the split-screen container determines that the user's gesture satisfies the second gesture, the split-screen container calls the window swap service. The window swap service accesses the session of the first application interface to determine the position parameters of the first application interface (such as coordinate 1), and the window swap service accesses the session of the third application interface to determine the position parameters of the third application interface (such as coordinate 3). After the position parameters of the first application interface and the position parameters of the third application interface are transmitted back to the window swap service, the window swap service swaps the position parameters of the first application interface and the position parameters of the third application interface to obtain updated window parameters. The updated window parameters may, for example, include: position parameters of the first application interface (such as coordinate 3), position parameters of the third application interface (such as coordinate 1).
[0158] The window swapping service can send the updated window parameters to the desktop layout refresh service. The desktop layout refresh service can re-layout the desktop according to the updated window parameters to obtain the updated desktop layout parameters. The desktop layout refresh service can send the updated desktop layout parameters to the rendering service. The rendering service can render the desktop according to the updated desktop layout parameters so that the electronic device can display the first application interface in the third display area and display the third application interface in the first display area. It can be understood that in order to achieve smooth switching between two application interfaces and improve the user experience, the animation effect module can render the animation effect of the switching between the two application interfaces. Correspondingly, the electronic device can display the animation effect.
[0159] It should be understood that when the split-screen container determines that the user's gesture does not meet the second gesture, the split-screen container will not call the window swapping service.
[0160] In the embodiments of the present application, the user can perform a first gesture to trigger the electronic device to switch between two adjacent application interfaces, and the user can also perform a second gesture to trigger the electronic device to switch between two non-adjacent application interfaces.
[0161] Scenario 1-2: Switching between the foreground split-screen interface and the background application interface
[0162] The switching between the foreground split-screen interface and the background application interface may include: the switching between the application interfaces (split-screen interfaces) at both ends of the electronic device and the background application interface, and the switching between the application interfaces (split-screen interfaces) not at both ends of the electronic device and the background application interface. Among them, the application interface not at both ends of the electronic device can also be understood as: the application interface in the middle of the electronic device.
[0163] Taking the electronic device as a three-folded device as an example, FIG. 7D(1) shows the switching process between the application interfaces at both ends of the electronic device and the background application interface. a in FIG. 7D(1) can refer to the description of a in FIG. 7B(1). Referring to a in FIG. 7D(1), the application interfaces at both ends of the electronic device are the first application interface and the third application interface respectively. Among them, the first application interface is located on the left side of the electronic device, and the second application interface is located on the right side of the electronic device.
[0164] Taking the switching between the first application interface and the background application interface as an example, the user can perform a third gesture on any one of the application interfaces at both ends of the electronic device to trigger the switching between the first application interface and the background application interface. In some embodiments, any one of the application interfaces at both ends of the electronic device can be called the target application interface. For example, the target application interface can be the first application interface or the third application interface. Among them, the third gesture can be a gesture of touching the target application interface, or the third gesture is a gesture of not touching the target application interface, such as an air gesture.
[0165] Exemplarily, taking the third gesture, which is a gesture for touching the target application interface, as an example, the third gesture can be: the user presses down with two fingers at a preset position on the first application interface and slides away from the third application interface, or the user presses down with two fingers at a preset position on the third application interface and slides towards the first application interface.
[0166] Referring to a in FIG. 7D(1), when the user presses down with two fingers at the bottom of the first application interface and slides left, or when the user presses down with two fingers at the bottom of the third application interface and slides left, the electronic device can be triggered to switch between the first application interface and the background application interface. Referring to b in FIG. 7D(1), the first display area can display the second application interface, the second display area can display the third application interface, and the third display area can display the background application interface. In other words, when the user executes the third gesture, the application interface can be triggered to move left, and the background application interface is displayed in the rightmost display area, and the first application interface is not displayed on the electronic device. It should be understood that in b of FIG. 7D(1), the background application interface is taken as an example of a memo application.
[0167] It should be understood that the electronic device can maintain a background task queue, and the applications running in the background can be sorted in a specific order in the background task queue. The background application interface switched with the first application interface is the interface of the background application ranked first.
[0168] In some embodiments, the specific order can be: sorted in the order from the latest to the earliest background switching time, or sorted in the order from the highest to the lowest user usage frequency (or usage duration), etc. Among them, the background switching time from the latest to the earliest can be understood as: the closer the background switching time is to the current moment, the later the background switching time is.
[0169] It should be understood that referring to b in FIG. 7D(1), if the user continues to press down with two fingers at a preset position on the second application interface and performs a left slide operation, the electronic device can be triggered to switch between the second application interface and the background application ranked second. Among them, the first display area can display the third application interface, the second display area can display the interface of the background application ranked first, and the third display interface can display the interface of the background application ranked second.
[0170] In some embodiments, the third gesture can also be, for example, dragging the first application interface to the outside of the first display area. Or,
[0171] The third gesture may also be, for example: The user operates a preset position of the first application interface to trigger the electronic device to display an interface selection box, so that the user can select a background application interface in the interface selection box to trigger the electronic device to switch between the first application interface and the background application interface. In this example, the interface selection box may display the identifiers (such as names, icons, or numbers, etc.) of the applications running in the background. In this way, when there are many background applications, if the user needs the interface of the third-ranked background application, in the above-mentioned way of pressing and swiping with two fingers, the user needs to perform multiple swiping operations to see the interface of the third-ranked background application. Compared with the above-mentioned way of pressing and swiping with two fingers, the way the user selects in the interface selection box can directly trigger the electronic device to display the interface of the third-ranked background application, and the operation is more convenient.
[0172] The application interface shown in FIG. 7D(1) may be applicable to the following scenarios: For example, the user switches a translation application to the background, and the user watches a video in the third display area and needs to translate the lines in the video. The user can perform the third gesture on the first application interface or the third application interface to trigger the electronic device to display the video in the second display area and display the translation application in the third display area, so that the user can watch the video while using the translation application to translate the lines.
[0173] Similarly, the user can trigger the electronic device to switch between the third application interface and the background application interface in the same way, which will not be elaborated here.
[0174] In summary, when the electronic device switches between the application interfaces at both ends of the electronic device and the background application interface, the third gesture can be summarized as: The user presses with two fingers at a preset position of the first target application interface and swipes away from the second target application interface, or the user presses with two fingers at a preset position of the second target application interface and swipes towards the second application interface. Among them, the first target application interface is the foreground application interface to be switched, and the second target application interface is the target application interface at the other end of the electronic device except the first target application interface. For example, the first target application interface is the first application interface, and the second target application interface is the third application interface. It should be understood that "swiping away from the second target application interface" can be understood as: swiping in the direction away from (or far from) the second target application interface.
[0175] Next, in combination with FIG. 7D(2), from the perspective of the internal module interaction of the electronic device, the process of the electronic device switching between the first application interface and the background application interface will be introduced:
[0176] When a split-screen container (such as the container of the first application interface) detects a user gesture, it will detect whether the user gesture meets the switching gesture (such as the third gesture). Among them, when the split-screen container determines that the user gesture meets the third gesture, the split-screen container will call the multitask management service. The multitask management service detects whether the background task queue is empty. Among them, when the background task queue is empty, it means that there is no background application, and when the background task queue is not empty, it means that there is a background application.
[0177] When the background queue is not empty, the multitask management service can obtain the application information ranked first in the background task queue. The multitask management service can send the application information ranked first to the session management service (such as the window session management service), and the session management service can create a session for the application according to the application information ranked first. The window management service can create a window corresponding to the application ranked first to be used to carry the interface of the application.
[0178] The window management service (such as the window control management service) can access the session of the first application interface, determine the position parameter of the first application interface (such as coordinate 1), access the session of the second application interface, determine the position parameter of the second application interface (such as coordinate 2), and access the session of the third application interface, determine the position parameter of the third application interface (such as coordinate 3). After the position parameters of the first application interface, the second application interface, and the third application interface are passed back to the window management service, the window management service will swap the position parameters of the application interfaces to obtain the updated window parameters. The updated window parameters may include, for example: the position parameter of the second application interface (such as coordinate 1), the position parameter of the third application interface (such as coordinate 2), and the position parameter of the background application interface (coordinate 3). In some embodiments, the session management service can destroy the window carrying the first application interface.
[0179] The window management service can send the updated window parameters to the desktop layout refresh service. The desktop layout refresh service can re-layout the desktop according to the updated window parameters to obtain the updated desktop layout parameters. The desktop layout refresh service can send the updated desktop layout parameters to the rendering service, and the rendering service can render the desktop according to the updated desktop layout parameters so that the electronic device displays the second application interface in the first display area, the third application interface in the second display area, and the background application interface in the third display area. It can be understood that in order to achieve smooth switching between two application interfaces and improve the user experience, the animation effect module can render the animation effect of the switching between the two application interfaces, and correspondingly, the electronic device can display the animation effect.
[0180] It should be understood that when the split-screen container determines that the user gesture does not meet the third gesture, the split-screen container will not call the multitask management service.
[0181] In some embodiments, when the electronic device switches between the application interfaces at both ends of the electronic device and the background application interface, the third gesture may also be, for example: the user presses with a single finger at a preset position on the first target application interface, and presses at a preset position on the second target application interface and slides away from the second target application interface, or the user presses with a single finger at a preset position on the second target application interface, and presses at a preset position on the first target application interface and slides towards the second target application interface.
[0182] Exemplarily, taking the switching between the first application interface and the background application interface as an example, for example, the first target application interface is the first application interface, and the second target application interface is the third application interface. Referring to a in FIG. 7E(1), the user can press with a single finger at the bottom of the third application interface and slide left at the bottom of the first application interface, which can trigger the electronic device to switch between the first application interface and the background application interface. Referring to b in FIG. 7E(1), the first display area can display the background application interface, the second display area can display the second application interface, and the third display area can display the third application interface.
[0183] Next, with reference to FIG. 7E(2), from the perspective of the internal module interaction of the electronic device, the process of the electronic device switching between the first application interface and the background application interface will be introduced:
[0184] When the split-screen container (such as the container of the first application interface) detects the user's gesture, it will detect whether the user's gesture meets the switching gesture (such as the third gesture). Among them, when the split-screen container determines that the user's gesture meets the third gesture, the split-screen container will call the multitasking management service. The multitasking management service detects whether the background task queue is empty. Among them, when the background task queue is empty, it means that there is no background application, and when the background task queue is not empty, it means that there is a background application.
[0185] When the background queue is not empty, the multitasking management service can obtain the application information of the first-ranked application in the background task queue. The multitasking management service can send the application information of the first-ranked application to the session management service (such as the window session management service), and the session management service can create a session of the application according to the application information of the first-ranked application. The window management service can create a window corresponding to the first-ranked application to host the interface of the application.
[0186] The window management service (such as the window control management service) can access the session of the first application interface and determine the position parameters of the first application interface (such as coordinate 1). After the position parameters of the first application interface are passed back to the window management service, the window management service will swap the position parameters of the application interfaces to obtain the updated window parameters. The updated window parameters may include, for example, the position parameters of the background application interface (coordinate 1). In some embodiments, the session management service can destroy the window hosting the first application interface.
[0187] The window management service can send the updated window parameters to the desktop layout refresh service. The desktop layout refresh service can re-layout the desktop according to the updated window parameters to obtain the updated desktop layout parameters. The desktop layout refresh service can send the updated desktop layout parameters to the rendering service, and the rendering service can render the desktop according to the updated desktop layout parameters so that the electronic device can display the background application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area. It can be understood that in order to achieve smooth switching between two application interfaces and improve the user experience, the animation effect module can render the animation effect of the switching between the two application interfaces. Correspondingly, the electronic device can display the animation effect.
[0188] It can be understood that when the split-screen container determines that the user's operation does not meet the third gesture, the split-screen container will not call the multitasking management service.
[0189] The above describes the switching method between the application interfaces at both ends of the electronic device and the background application interface. Next, the switching method between the application interfaces not located at both ends of the electronic device and the background application interface will be introduced.
[0190] Taking the electronic device as a triple-fold device as an example, Figure 7F shows the switching process between the application interface in the middle of the electronic device and the background application interface. Figure 7F a in can refer to the description of a in Figure 7B(1), referring to Figure 7F a in, the application interface in the middle of the electronic device is the second application interface. Since the second application interface is in the middle of the first application interface and the third application interface, the third gesture can be that the user presses a single finger at a preset position on the second application interface and performs an upward or downward swipe.
[0191] Referring to Figure 7F a in, when the user presses a single finger at the bottom of the second application interface and swipes upward, it can trigger the electronic device to switch between the second application interface and the background application interface. Referring to Figure 7F b in, the first display area can display the first application interface, the second display area can display the background application interface, and the third display area can display the third application interface.
[0192] In this example, when the electronic device switches between an application interface that is not located at both ends of the electronic device and a background application interface, the third gesture can be: pressing with a single finger at a preset position on the application interface and performing a slide parallel to the folding edge or the folding axis (or the split screen line). In some embodiments, it can be said that the third gesture is: pressing with a single finger at a preset position on the application interface and performing a slide in a first direction, where the first direction is parallel to the folding edge or the folding axis (or the split screen line).
[0193] Exemplarily, referring to Figure 7F a in, the folding edge is parallel to the left and right borders of the electronic device. The user presses with a single finger at a preset position on the second application interface and performs an upward or downward slide. The upward and downward slides can be regarded as slide operations parallel to the folding edge or the folding axis (or the split screen line). Among them, the aforementioned parallelism allows for the existence of errors, and it does not mean that the angle between the slide operation and the folding edge or the folding axis is 0°. For example, the angle between the slide operation and the folding edge or the folding axis can be 0° to 10°. For example, it can be 0°, 1°, 2°, 3°, 4°, 5°, 6°, 7°, 8°, 9°, or 10°. The same applies to the description of parallelism elsewhere in the full text.
[0194] It can be understood that when the electronic device switches between an application interface that is not located at both ends of the electronic device and a background application interface, the process of internal module interaction of the electronic device can refer to the description in Figure 7E(2).
[0195] Scenario 2: Switching between floating windows
[0196] Taking the electronic device as a three-fold device as an example, Figure 8A shows the switching process between floating windows. Referring to Figure 8A a in, in the first display area, the second display area, and the third display area, the electronic device displays application interfaces in the form of floating windows respectively. It can also be said that the first display area displays the first floating window, the second display area displays the second floating window, and the third display area displays the third floating window. The first floating window corresponds to the first application interface, the second floating window corresponds to the second application interface, and the third floating window corresponds to the third application interface.
[0197] In some embodiments, the positions and sizes of the first floating window, the second floating window, and the third floating window can be different from each other, or all the same, or at least partially the same. Figure 8A a in is taken as an example to illustrate that the positions of the first floating window, the second floating window, and the third floating window are different from each other, and the sizes of the first floating window, the second floating window, and the third floating window are different from each other.
[0198] In some embodiments, the position of the floating window can be characterized by the coordinates of the upper left corner of the floating window in the coordinate system of the display screen of the electronic device, and the present application embodiment does not limit the setting of the coordinate system of the display screen of the electronic device. Exemplarily, referring to Figure 8A in a, the position of the first floating window can be (X1, Y1), the size of the first floating window is the first size, the position of the second floating window can be (X2, Y2), the size of the second floating window is the second size, the position of the third floating window can be (X3, Y3), and the size of the third floating window is the third size.
[0199] Taking the electronic device switching the first floating window and the second floating window as an example, the user can perform a fourth gesture on the first floating window or the second floating window to trigger the electronic device to switch the first floating window and the second floating window. Among them, the fourth gesture can be a gesture of touching the first floating window or the second floating window, or the fourth gesture is a gesture of not touching the first floating window or the second floating window, such as an air gesture.
[0200] Exemplarily, taking the fourth gesture as a gesture of touching the first floating window or the second floating window as an example, the fourth gesture can be: the user presses with a single finger at a preset position of the first floating window and slides towards the second floating window, or the user presses with two fingers at a preset position of the second floating window and slides towards the first floating window. The preset position can refer to the description in the above scenario one.
[0201] Referring to Figure 8A in a, the user presses and holds the top of the first floating window (such as the top bar) with a single finger and slides to the right, or the user presses and holds the top of the second floating window (such as the top bar) with a single finger and slides to the left, which can trigger the electronic device to switch the first floating window and the second floating window. Referring to Figure 8A in b, the second floating window can be displayed in the first display area, the first floating window can be displayed in the second display area, and the third floating window can be displayed in the third display area.
[0202] In some embodiments, when the electronic device switches the first floating window and the second floating window, it can only exchange the position parameters of the floating windows and not exchange the size parameters of the floating windows. Exemplarily, for example, referring to Figure 8A in b, when the electronic device switches the first floating window and the second floating window, the second floating window can be displayed at the position (X1, Y1) in the first display area, and the size of the second floating window is the first size, and the first floating window can be displayed at the position (X2, Y2) in the second display area, and the size of the first floating window is the second size.
[0203] In some embodiments, when the electronic device switches the first floating window and the second floating window, it can exchange the position parameters of the floating windows and the size parameters of the floating windows. Exemplarily, for example, referring to Figure 8AIn c, the electronic device switches between the first floating window and the second floating window. The first display area can display the second floating window at the position (X1, Y1), and the size of the second floating window is the second size. Also, the second display area can display the first floating window at the position (X2, Y2), and the size of the first floating window is the first size.
[0204] In some embodiments, the fourth gesture can also be, for example, dragging the first floating window to the right to the second display area, or dragging the second floating window to the left to the first display area.
[0205] Alternatively, the fourth gesture can also be, for example: The user operates a preset position of the first floating window to trigger a display interface selection box on the electronic device, so that the user can select the second floating window in the interface selection box to trigger the electronic device to switch between the first floating window and the second floating window. In this example, the interface selection box can display the identifiers (such as names, icons, or numbers, etc.) of the foreground-running applications. In this way, in the case of a large number of display areas, the user can directly select the floating window to be switched without a large-distance drag, and the operation is more convenient.
[0206] Similarly, the user can trigger the electronic device to switch between the second floating window and the third floating window, and between the first floating window and the third floating window in the same way.
[0207] Next, in combination with Figure 8B , from the perspective of the internal module interaction of the electronic device, the process of the electronic device switching between the first floating window and the second floating window is introduced:
[0208] When the floating window container detects the user's gesture, it will detect whether the user's gesture meets the switching gesture (such as the fourth gesture). Among them, when the floating window container determines that the user's gesture meets the fourth gesture, the floating window container will call the window swapping service. The window swapping service will access the session of the first floating window to determine the position parameters of the first floating window (such as coordinate 1), and the window swapping service will access the session of the second floating window to determine the position parameters of the second floating window (such as coordinate 2). After the position parameters of the first floating window and the position parameters of the second floating window are passed back to the window swapping service, the window swapping service will swap the position parameters of the first floating window and the position parameters of the second floating window to obtain the updated window parameters. The updated window parameters can include, for example: the position parameters of the first floating window (such as coordinate 2), and the position parameters of the second floating window (such as coordinate 1).
[0209] The window swapping service can send the updated window parameters to the desktop layout refreshing service. The desktop layout refreshing service can re-layout the desktop according to the updated window parameters to obtain the updated desktop layout parameters. The desktop layout refreshing service can send the updated desktop layout parameters to the rendering service, and the rendering service can render the desktop according to the updated desktop layout parameters to enable the electronic device to display the first floating window in the second display area and the second floating window in the first display area. It can be understood that, in order to achieve smooth switching between the two floating windows and improve the user experience, the animation effect module can render the animation effect of the switching between the two floating windows. Correspondingly, the electronic device can display this animation effect.
[0210] It should be understood that when the floating window container determines that the sliding direction and sliding distance of the finger on the screen do not meet the second gesture, the floating window container will not call the window swapping service.
[0211] In some embodiments, when the electronic device is switching between the first floating window and the second floating window and exchanging the position parameters and size parameters of the floating windows, the window swapping service will access the session of the first floating window to determine the position parameter (such as coordinate 1) and size parameter (the first size) of the first floating window, and the window swapping service will access the session of the second floating window to determine the position parameter (such as coordinate 2) and size parameter (the second size) of the second floating window. Correspondingly, the updated window parameters can include, for example: the position parameter (such as coordinate 2) and size parameter (the first size) of the first floating window, and the position parameter (such as coordinate 1) and size parameter (the second size) of the second floating window. In this way, according to the updated window parameters, the electronic device can display the second floating window with the second size at coordinate 1 in the first display area, and the electronic device can display the first floating window with the first size at coordinate 2 in the second display area.
[0212] Scenario 3: Switching between the split-screen interface and the floating window
[0213] The method for switching between the split-screen interface and the floating window can refer to the descriptions in Scenario 1 and Scenario 2 above. In some embodiments, taking the electronic device as a triple-fold device as an example, Figure 9 shows the switching process between the split-screen interface and the floating window. Refer to Figure 9 In a, the first display area displays the first floating window, the second display area displays the second application interface, the second application interface is a split-screen interface, and the third display area displays the third floating window. The first floating window corresponds to the first application interface, and the third floating window corresponds to the third application interface. Exemplarily, referring to Figure 9 In a, the position of the first floating window is (X1, Y1), the size of the first floating window is the first size, the position of the third floating window is (X3, Y3), and the size of the third floating window is the third size.
[0214] Taking the switching between the first floating window and the second application interface as an example, the user can perform a fifth gesture on the first floating window or the second application interface to trigger the switching between the first floating window and the second application interface. Among them, the third gesture can be a gesture that touches the first floating window or the second application interface, or the third gesture is a gesture that does not touch the first floating window or the second application interface, such as an air gesture.
[0215] Exemplarily, taking the fifth gesture as a gesture that touches the first floating window or the second floating window as an example, the fifth gesture can be: the user presses with a single finger at a preset position of the first floating window and slides towards the second application interface, or the user presses with a single finger at a preset position of the second application interface and slides towards the first floating window. The preset position can refer to the description in the above Scenario 1.
[0216] Referring to Figure 9 a in, the user presses with a single finger at the top of the first floating window (such as the top horizontal bar) and slides to the right, or the user presses with a single finger at the bottom of the second application interface and slides to the left, which can trigger the electronic device to switch between the first floating window and the second application interface. Referring to Figure 9 b in, the first display area can display the second application interface, the second display area can display the first floating window, and the third display area can display the third floating window.
[0217] In some embodiments, when the electronic device switches between the first floating window and the second application interface, it can exchange the position parameters and size parameters of the floating window. Exemplarily, for example, referring to Figure 9 b in, when the electronic device switches between the first floating window and the second application interface, the first display area can display the second application interface in split screen, and the electronic device displays the first floating window at the position (X2, Y2), and the size of the first floating window is the first size. It should be understood that the relative position of the position (X2, Y2) in the second display area is the same as the relative position of the position (X1, Y1) in the first display area.
[0218] Or, in some embodiments, when the electronic device switches between the first floating window and the second application interface, the first display area can display the second floating window, the second floating window corresponds to the second application interface, the position of the second floating window is (X1, Y1), the size of the second floating window is the first size, and the electronic device displays the first application interface in split screen in the second display area, and the first floating window corresponds to the first application interface.
[0219] In some embodiments, the fifth gesture can also be, for example, dragging the first floating window to the right to the second display area, or dragging the second application interface to the left to the first display area.
[0220] Alternatively, the fifth gesture may also be, for example: the user operates a preset position of the first floating window to trigger the display interface selection box of the electronic device, so that the user can select the second application interface in the interface selection box to trigger the electronic device to switch between the first floating window and the second application interface.
[0221] Similarly, the user can trigger the electronic device to switch between the second application interface and the third floating window in the same way.
[0222] It can be understood that when the electronic device switches the split-screen interface and the floating window, the process of internal module interaction of the electronic device can refer to the description of the electronic device switching the split-screen interface in the above embodiments, or the description of the electronic device switching the floating window.
[0223] It can be understood that the electronic device can also switch between picture-in-picture and picture-in-picture, picture-in-picture and floating window, and picture-in-picture and split-screen interface. Among them, the process of the electronic device switching between picture-in-picture and picture-in-picture can refer to the description in Scenario 1-1, and the process of the electronic device switching between picture-in-picture and floating window, and picture-in-picture and split-screen interface can refer to the descriptions in Scenario 2 and Scenario 3.
[0224] Scenario 4: Display area when the application is launched
[0225] Taking the electronic device as a three-fold device as an example, the three display areas of the three-fold device can display the desktop interface. Referring to Figure 10A a in, the first display area can display the first desktop interface, the second display area can display the second desktop interface, and the third display area can display the third desktop interface. Each desktop interface can display the icons of at least one application, and the user can operate the icons of the application to trigger the electronic device to launch the application.
[0226] Taking the user's operation on the icon of Application 1 on the second desktop interface as an example, in some embodiments, for example, the user clicks on the icon of Application 1 on the second desktop interface, and the second display area can display the interface of Application 1. In some embodiments, Application 1 can be regarded as the first application.
[0227] In some embodiments, the user can perform a sixth gesture on the icon of the first application to independently select the display area for displaying the application interface.
[0228] For example, the user can short-press the icon of the application and drag the icon of the application to the corresponding display area, and the interface of the application can be displayed in that display area. Referring to Figure 10A a in, the user can short-press the icon of Application 1 and drag the icon of Application 1 to the first display area, and the first display area can display the interface of Application 1. It should be understood that Figure 10ATake the example of displaying the startup interface of Application 1 in the first display area in b as an illustration. Among them, the operation where the user short - presses the icon of Application 1 and drags the icon of Application 1 to a preset position in the second display area can be regarded as the sixth gesture.
[0229] In some embodiments, the user can short - press the icon of Application 1 and drag the icon of Application 1 to a preset position in the second display area. The electronic device can display the interface of Application 1 full - screen. Here, displaying the interface of Application 1 full - screen means: displaying the interface of Application 1 in the first display area, the second display area, and the third display area. Among them, the operation where the user short - presses the icon of Application 1 and drags the icon of Application 1 to a preset position in the second display area can be regarded as the sixth gesture.
[0230] Exemplarily, the user can slide the icon of the application up or down a certain distance, which can trigger the display area option of the electronic device. The user can select the corresponding display area in the area option to make the application interface be displayed in that display area. Referring to Figure 10B In a of, the user can slide the icon of Application 1 up a certain distance, and the second display area can display area option 11. Referring to Figure 10B In b of, area option 11 includes the identifiers of each display area of the electronic device, such as the first display area 111, the second display area 112, the third display area 113, and full - screen display 114. When the user selects the first display area 111, the first display area can display the interface of Application 1, as shown in Figure 10B In c of. It should be understood that when the user selects full - screen display 114, the electronic device can display the interface of Application 1 in the first display area, the second display area, and the third display area. Among them, the operation where the user slides the icon of the application up or down a certain distance can be regarded as the sixth gesture, and a certain distance can be regarded as the preset distance.
[0231] In the embodiments of the present application, when starting an application, the user can select the display area for displaying the application interface. In this way, the user can make a selection according to their own needs, which can improve the user experience.
[0232] Next, in combination with Figure 10C , from the perspective of the interaction of internal modules of the electronic device, introduce the process of the electronic device displaying the interface of Application 1 in the first display area:
[0233] When the split - screen container detects the user's gesture, it will detect whether the user's gesture meets the gesture for triggering the application startup (such as the sixth gesture). Among them, when the split - screen container determines that the user's operation meets the gesture for triggering the application startup, the split - screen container will call the session management service. The session management service (such as the window session management service) can create a session of the window that bears the interface of Application 1, and the screen session management service will cache the information of Application 1.
[0234] In addition, a window management service (such as a window control management service) can set parameters of the window hosting Application 1, such as position parameters. The window management service can send the parameters of the window hosting Application 1 to the desktop layout refresh service, and the desktop layout refresh service can layout the desktop according to the parameters of the window hosting Application 1 to obtain updated desktop layout parameters. The updated desktop layout parameters are used to indicate to display the interface of Application 1 in the first display area.
[0235] The desktop layout refresh service can send the updated desktop layout parameters to the rendering service, and the rendering service can render the desktop according to the updated desktop layout parameters for rendering, so that the electronic device displays the interface of Application 1 in the first display area. It can be understood that, in order to ensure the smoothness of the application startup interface and improve the user experience, the animation effect module can render the animation effect of the startup of Application 1, and correspondingly, the electronic device can display the animation effect.
[0236] It should be noted that the user data involved in this application (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for the user to choose to authorize or refuse.
[0237] In one embodiment, the embodiment of the present application further provides an electronic device. Referring to Figure 11 , the electronic device may include: a processor 1101 (such as a CPU) and a memory 1102. The memory 1102 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory. Various instructions can be stored in the memory 1102 to complete various processing functions and implement the method steps of the present application.
[0238] Optionally, the electronic device involved in the present application may further include: a power supply 1103, a communication bus 1104, and a communication port 1105. The above communication port 1105 is used to implement connection and communication between the electronic device and other peripherals. In the embodiment of the present application, the memory 1102 is used to store computer-executable program code, and the program code includes instructions; when the processor 1101 executes the instructions, the instructions cause the processor 1101 of the electronic device to perform the actions in the above method embodiment, and its implementation principle and technical effect are similar and will not be elaborated here.
[0239] Optionally, the electronic device involved in the present application may further include: a display screen 1106. The display screen 1106 may display the interface of the electronic device. Exemplarily, taking the electronic device as a triple-fold device as an example, the display screen 1106 may include a first display area, a second display area, and a third display area.
[0240] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods. For example: one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code, such as a controller. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0241] In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
[0242] The term "plurality" in this document refers to two or more. The term "and / or" in this document is merely a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the preceding and following associated objects; in a formula, the character " / " represents a "division" relationship between the preceding and following associated objects. In addition, it should be understood that in the description of this application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be construed as indicating or implying relative importance, nor as indicating or implying order.
[0243] It can be understood that the various numerical numbers involved in the embodiments of this application are only for the convenience of description and are not used to limit the scope of the embodiments of this application.
[0244] It can be understood that in the embodiments of this application, the magnitudes of the sequence numbers of the above processes do not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.
Claims
1. A display method, characterized in that, Applied to an electronic device, the electronic device includes a first display area, a second display area, and a third display area, and the second display area is located between the first display area and the third display area. The method includes: Displaying a first application interface in the first display area, a second application interface in the second display area, and a third application interface in the third display area; In response to a first gesture of the user on the first application interface or the second application interface, displaying the second application interface in the first display area and the first application interface in the second display area.
2. The method according to claim 1, wherein The first gesture is: pressing with a single finger at a preset position on the first application interface and sliding towards the second application interface, or pressing with a single finger at a preset position on the second application interface and sliding towards the first application interface; Or, The first gesture is: dragging the first application interface to the second display area, or dragging the second application interface to the first display area.
3. The method according to claim 1 or 2, characterized in that, The first application interface, the second application interface, and the third application interface belong to different applications.
4. The method according to any one of claims 1 to 3, characterized in that, After displaying the first application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area, it further includes: In response to a second gesture of the user on the first application interface or the third application interface, displaying the third application interface in the first display area and the first application interface in the third display area, and the second gesture is different from the first gesture.
5. The method according to claim 4, characterized in that The second gesture is: pressing with a single finger at a preset position on the first application interface and sliding away from the third application interface, or pressing with a single finger at a preset position on the third application interface and sliding away from the first application interface; Or, The second gesture is: dragging the first application interface to the third display area, or dragging the third application interface to the first display area.
6. The method according to any one of claims 1-5, characterized in that, After displaying the first application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area, it further includes: In response to a third gesture of the user on the first application interface or the third application interface, displaying the second application interface in the first display area, the third application interface in the second display area, and a background application interface in the third display area.
7. The method according to claim 6, wherein The application to which the background application interface belongs is the application ranked first in the background task queue. After displaying the second application interface in the first display area, the third application interface in the second display area, and the background application interface in the third display area, it further includes: In response to a third gesture of the user on the second application interface or the background application interface, display the third application interface in the first display area, display the background application interface in the second display area, and display the interface of the second-ranked background application in the background task queue in the third display area.
8. The method according to claim 6, wherein The third gesture is: pressing with two fingers at a preset position on the first application interface and sliding away from the third application interface, or pressing with two fingers at a preset position on the third application interface and sliding towards the first application interface.
9. The method according to any one of claims 1-5, characterized in that, After displaying the first application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area, it further includes: In response to a third gesture of the user on the first application interface or the third application interface, display the background application interface in the first display area, display the second application interface in the second display area, and display the third application interface in the third display area.
10. The method according to claim 9, characterized in that The third gesture is: pressing with a single finger at a preset position on the third application interface and pressing at a preset position on the first application interface and sliding away from the third application interface.
11. The method according to any one of claims 1-5, characterized in that, After displaying the first application interface in the first display area, the second application interface in the second display area, and the third application interface in the third display area, it further includes: In response to a third gesture of the user on the second application interface, display the first application interface in the first display area, display the background application interface in the second display area, and display the third application interface in the third display area.
12. The method according to claim 11, characterized in that, The third gesture is: pressing with a single finger at a preset position on the second application interface and sliding in a first direction, the first direction being parallel to the split screen line, and the split screen line being the split screen line between the second display area and the first display area.
13. The method according to any one of claims 1-12, characterized in that, The first application interface, the second application interface, and the third application interface are displayed in the following forms: split screen or floating window.
14. The method according to claim 13, wherein When the first application interface and the second application interface are displayed as floating windows, the first application interface corresponds to a first floating window, the second application interface corresponds to a second floating window, the first floating window is at a first position on the display screen of the electronic device, the second floating window is at a second position on the display screen, the size of the first floating window is a first size, and the size of the second floating window is a second size; The step of, in response to a first gesture of the user on the first application interface or the second application interface, displaying the second application interface in the first display area and displaying the first application interface in the second display area includes: In response to a fourth gesture of the user on the first floating window or the second floating window, display the second floating window with the second size at the first position and display the first floating window with the first size at the second position; or In response to a fourth gesture of the user on the first floating window or the second floating window, the second floating window of a first size is displayed at the first position, and the first floating window of a second size is displayed at the second position.
15. The method according to claim 13, characterized in that, When the first application interface is displayed as a floating window and the second application interface is displayed in split screen, the first application interface corresponds to a first floating window, the first floating window is at a first position on the display screen of the electronic device, and the size of the first floating window is a first size; The step of, in response to a first gesture of the user on the first application interface or the second application interface, displaying the second application interface in the first display area and displaying the first application interface in the second display area includes: In response to a fifth gesture of the user on the first floating window or the second application interface, splitting the second application interface in the first display area and displaying the first floating window of the first size in the second display area, where the relative position of the first floating window in the second display area is the same as the relative position of the first position in the first display area; or, In response to a fifth gesture of the user on the first floating window or the second application interface, displaying the second floating window of the first size at the first position and splitting the first application interface in the second display area, where the second floating window corresponds to the second application interface.
16. The method according to any one of claims 1 to 15, characterized in that The method further includes: Displaying a first desktop interface in the first display area, displaying a second desktop interface in the second display area, and displaying a third desktop interface in the third display area, where the first desktop interface includes an icon of a first application; In response to a sixth gesture of the user on the icon of the first application, displaying the interface of the first application in the second display area, where the sixth gesture is used to indicate displaying the interface of the first application in the second display area.
17. The method according to claim 16, characterized in that, The sixth gesture is: briefly pressing the icon of the first application and dragging the icon of the first application to the second display area; Or, The sixth gesture is: performing a slide in a first direction on the icon of the first application and selecting the second display area in a region option, where the slide in the first direction is used to trigger the electronic device to display the region option, the first direction is parallel to the split screen line, and the split screen line is the split screen line between the second display area and the first display area.
18. An electronic device, characterized in that, including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the method according to any one of claims 1-17.
19. A computer-readable storage medium, characterized in that, A computer program or instruction is stored in the computer-readable storage medium, and when the computer program or instruction is run, the method according to any one of claims 1-17 is implemented.
Citation Information
Cited By
Display method, electronic device and readable storage medium
WO2025148753A1