Display method, electronic device and readable storage medium

By responding to user gestures in the triple-folding device to switch the application interface between multiple display areas, the problem of inconvenient operation of large-screen devices is solved, convenient interface switching is achieved, and user experience is improved.

WO2025148753A1PCT designated stage expired Publication Date: 2025-07-17HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/144155
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-10
Filing Date
2024-12-31
Publication Date
2025-07-17

AI Technical Summary

Technical Problem

How to conveniently operate electronic devices with larger screen sizes in three-folding devices, four-folding devices and even more folding devices to realize the switching display of the application interface.

Method used

By displaying different application interfaces in multiple display areas of the electronic device and responding to user gesture operations, switching between application interfaces is realized, including switching between split-screen interfaces, floating windows and picture-in-picture interfaces, supporting a variety of switching methods to meet different operational needs.

Benefits of technology

It improves user's operation convenience on multi-folding devices, simplifies the application interface switching process, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024144155_17072025_PF_FP_ABST
    Figure CN2024144155_17072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a display method, an electronic device and a readable storage medium. In the method, an electronic device comprises a first display area, a second display area and a third display area, the second display area being located between the first display area and the third display area. 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 a user on the first application interface or the second application interface, the electronic device displays the second application interface in the first display area and the first application interface in the second display area. According to the present application, in tri-fold and quad-fold device or devices that can fold in even more sections, the user operates on either of two application interfaces to be switched of the electronic device, so that switching display of application interfaces can be realized, and the operation is simple and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Display method, electronic device, and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 10, 2024, with application number 202410038322.9 and application name “Display method, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the technical field of folding screen devices, and in particular to a display method, an electronic device, and a readable storage medium. Background Art

[0003] With the development of electronic devices, their displays have become increasingly larger. To facilitate user operation, foldable screen devices have emerged. With the increasing popularity of dual-folding devices, triple-folding, quad-folding, and even multi-folding devices have also been developed and adopted. Compared to dual-folding devices, triple-folding, quad-folding, and even multi-folding devices have larger screen sizes when unfolded. Therefore, how to enable convenient user operation is an urgent problem that needs to be solved. Summary of the Invention

[0004] The embodiments of the present application provide a display method, an electronic device, and a readable storage medium. In a three-fold device, a four-fold device, or even more folding devices, a user can switch the display of the application interface by operating any one of the two application interfaces to be switched on the electronic device, which is easy to operate.

[0005] In a first aspect, embodiments of the present application provide a display method, wherein the method is performed by an electronic device or a chip within the electronic device. The following description uses an electronic device as an example. In this method, the electronic device includes a first display area, a second display area, and a third display area, wherein the second display area is located between the first and third display areas.

[0006] The electronic device displays a first application interface in the first display area, displays a second application interface in the second display area, and displays a third application interface in the third display area. In response to a first gesture by a user on the first application interface or the second application interface, the electronic device can switch between displaying 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 displays the first application interface in the second display area.

[0007] In this application, in a three-fold device, a four-fold device or even more folding devices, the user can switch the display of the application interface by operating any one of the two application interfaces to be switched on the electronic device, which is easy to operate.

[0008] In one possible implementation, the first gesture is: pressing a preset position on the first application interface with a single finger and sliding it toward the second application interface, or pressing a preset position on the second application interface with a single finger and sliding it toward the first application interface. The preset position of the application interface is described using the first application interface as an example. The preset position of the first application interface can be: the top, top, left, or right side of the first application interface, or a blank position on the first application interface.

[0009] 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.

[0010] In one possible implementation, the first application interface, the second application interface, and the third application interface may belong to different applications. Alternatively, in one 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.

[0011] In other words, the display method provided in the embodiment of the present application can be applied to the scenario of switching the display interface of different applications, and can also be applied to the scenario of switching the display interface of the same application.

[0012] In the above example, the process of switching between two adjacent application interfaces is described. The following describes the process of switching between two non-adjacent application interfaces. For example, the two non-adjacent application interfaces are the first application interface and the third application interface.

[0013] 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, wherein, in response to the user's second gesture of the first application interface or the third application interface, the electronic device displays the third application interface in the first display area and displays the first application interface in the third display area, and the second gesture is different from the first gesture.

[0014] Exemplarily, the second gesture is: pressing a preset position of the first application interface with a single finger and sliding away from the third application interface, or pressing a preset position of the third application interface with a single finger and sliding away from the first application interface. Sliding away from the third application interface can be understood as sliding in a direction away from or away from the third application interface. Correspondingly, sliding away from the first application interface can be understood as sliding in a direction away from or away from the first application interface.

[0015] 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.

[0016] In this implementation, the electronic device can switch and display two non-adjacent application interfaces.

[0017] In addition, in the embodiment of the present application, the electronic device can also switch between displaying the foreground application interface and the background application interface, as shown below:

[0018] First, the electronic device displays a first application interface in the first display area, displays a second application interface in the second display area, and displays a third application interface in the third display area. In response to a third gesture performed by the user on the first application interface or the third application interface, the electronic device may display the second application interface in the first display area, display the third application interface in the second display area, and display a background application interface in the third display area.

[0019] In other words, in this example, the electronic device can switch between displaying the first application interface and the background application interface, specifically displaying the background application interface in the display area where the third application interface was originally displayed.

[0020] Exemplarily, the third gesture is: pressing with two fingers at a preset position of the first application interface and sliding away from the third application interface, or pressing with two fingers at a preset position of the third application interface and sliding toward the first application interface.

[0021] Among them, the application to which the background application interface belongs is the application ranked first in the background task queue. In this application, the electronic device displays the second application interface in the first display area, displays the third application interface in the second display area, and after displaying the background application interface in the third display area, in response to the user's third gesture on the second application interface or the background application interface, displays the third application interface in the first display area, displays the background application interface in the second display area, and displays the interface of the background application ranked second in the background task queue in the third display area.

[0022] In other words, in this example, the user continuing to perform the third gesture can trigger the electronic device to display the interface of the background application ranked second in the background task queue in the foreground. In this example, the third gesture can be: using two fingers to press at a preset position on the second application interface and sliding away from the background application interface, or using two fingers to press at a preset position on the background application interface and sliding toward the second application interface.

[0023] Second, the electronic device displays a first application interface in the first display area, displays a second application interface in the second display area, and displays a third application interface in the third display area. In response to a third gesture performed by the user on the first application interface or the third application interface, the electronic device may display a 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.

[0024] In other words, in this example, the electronic device can switch between displaying the first application interface and the background application interface, specifically displaying the background application interface in the display area of ​​the first application interface.

[0025] Exemplarily, the third gesture is: pressing the preset position of the third application interface with a single finger, and pressing the preset position of the first application interface and sliding away from the third application interface.

[0026] 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 the user's third gesture on the second application interface, the first application interface is displayed in the first display area, and the electronic device may display a background application interface in the second display area and the third application interface in the third display area.

[0027] Exemplarily, the third gesture is: pressing with a single finger at a preset position on the second application interface and sliding in a first direction, where 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.

[0028] In one possible implementation, 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 following describes the process of switching between displaying two floating windows and switching between displaying a split screen and a floating window:

[0029] Scenario 1: Switching between two floating windows

[0030] When the first application interface and the second application interface are displayed as floating windows, the first application interface corresponds to the first floating window, and the second application interface corresponds to the second floating window. The first floating window is at the first position of the display screen of the electronic device, or in other words, the first floating window is at the first position of the first display area. The second floating window is at the second position of the display screen, or in other words, the second floating window is at the second position of the second display area. The size of the first floating window is the first size, and the size of the second floating window is the second size.

[0031] In some embodiments, in response to the user's fourth gesture on the first floating window or the second floating window, the electronic device may display the second floating window of the second size at the first position, and display the first floating window of the first size at the second position. In other words, the user performing the fourth gesture may trigger the electronic device to switch 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 remain the original size. For example, the first floating window is displayed at the second position, and the second floating window is displayed at the first position.

[0032] In some embodiments, in response to the user's fourth gesture on the first floating window or the second floating window, the electronic device may display the second floating window of the first size at the first position, and display the first floating window of the second size at the second position. In other words, the user performing the fourth gesture may trigger the electronic device to switch 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 is changed to the second size, and the second floating window is displayed at the first position, and the size of the second floating window is changed to the first size.

[0033] Scenario 2: Switching between floating window and split screen

[0034] When the first application interface is displayed as a floating window and the second application interface is displayed in a 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.

[0035] In some embodiments, in response to the user's fifth gesture on the first floating window or the second application interface, the electronic device may display the second application interface in a split screen in the first display area, and display a first floating window of a first size in the second display area, and 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.

[0036] In other words, in this example, when the electronic device switches between displaying a floating window and split screen, it simply swaps the display areas of the two. For example, the second application interface is displayed in the split screen of the first display area, and the first floating window of the first size is displayed in the second display area. The display styles of the two remain unchanged. The display style can be split screen or floating window.

[0037] In some embodiments, in response to the user's fifth gesture on the first floating window or the second application interface, the electronic device can display a second floating window of the first size at the first position, and display the first application interface in a split screen in the second display area, and the second floating window corresponds to the second application interface.

[0038] In other words, in this example, when the electronic device switches the display of the floating window and the split screen, not only the display areas of the two are swapped, but also the display styles of the two are swapped. For example, the second application interface is displayed in the style of a floating window, and the electronic device can display the second floating window of the first size in the first display area. In addition, the first floating window can be displayed in split screen, and the electronic device can display the first application interface in split screen in the second display area.

[0039] In the embodiment 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. In addition, when the electronic device switches to display two application interfaces, the present application provides multiple switching display methods, which are widely applicable and highly flexible.

[0040] In a possible implementation, the present application also provides a method by which a user can select a display area of ​​an application interface, which can be described as follows:

[0041] The electronic device may 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, wherein the first desktop interface includes an icon of a first application. In response to a sixth gesture performed by the user on the icon of the first application, the electronic device may display the interface of the first application in the second display area, wherein the sixth gesture is used to instruct the display of the interface of the first application in the second display area.

[0042] 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 short pressing can be understood as: pressing the icon of the first application for a duration less than a threshold. It should be noted that the setting of the duration of pressing the icon of the first application in the embodiment of the present application is different from the setting of clicking the icon of the first application to trigger the launch of the first application.

[0043] Exemplarily, the sixth gesture is: swiping the icon of the first application in a first direction, and selecting the second display area in the area options, wherein the swiping in the first direction is used to trigger the electronic device to display the area options, and the first direction is parallel to the split screen line, which is the split screen line between the second display area and the first display area. In other words, when the user swipes the icon of the first application in the first direction, 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.

[0044] 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 configured to store computer-executable program code, the program code including instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the method described in the first aspect.

[0045] In a third aspect, an embodiment of the present application provides an electronic device, which may include a unit, module or circuit for executing the method provided in the first aspect above.

[0046] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect described above.

[0047] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect above.

[0048] The beneficial effects of the possible implementation methods of the second to fifth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] FIG1 is an exemplary diagram of changes in the physical form of an electronic device provided in an embodiment of the present application;

[0050] FIG2 is a schematic diagram of a physical form of an electronic device provided in an embodiment of the present application;

[0051] FIG3 is a schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0052] FIG4 is a schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0053] FIG5 is a schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0054] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0055] FIG7A is a schematic diagram of an interface change of an electronic device provided in an embodiment of the present application;

[0056] FIG7B(1) is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0057] FIG7B(2) is a schematic diagram of a process of switching an application interface provided in an embodiment of the present application;

[0058] FIG7C(1) is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0059] FIG7C(2) is another schematic diagram of a process of switching an application interface provided in an embodiment of the present application;

[0060] FIG7D(1) is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0061] FIG7D(2) is another schematic diagram of a process of switching an application interface according to an embodiment of the present application;

[0062] FIG7E(1) is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0063] FIG7E(2) is another schematic diagram of a process of switching an application interface according to an embodiment of the present application;

[0064] FIG7F is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0065] FIG8A is a schematic diagram of another interface change of an electronic device provided in an embodiment of the present application;

[0066] FIG8B is another schematic diagram of a process of switching application interfaces according to an embodiment of the present application;

[0067] FIG9 is a schematic diagram of another interface change of an electronic device provided in an embodiment of the present application;

[0068] FIG10A is a schematic diagram of another interface change of an electronic device provided in an embodiment of the present application;

[0069] FIG10B is a schematic diagram of another interface change of the electronic device provided in an embodiment of the present application;

[0070] FIG10C is a schematic diagram of a process flow when an application is started according to an embodiment of the present application;

[0071] FIG11 is another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The electronic device in the embodiment of the present application includes a display screen, which is a flexible screen with foldable characteristics. The electronic device in the embodiment of the present application can be referred to as a folding 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 (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 (industrial control), a wireless terminal in a smart home (smart home), etc. The form of the electronic device in the embodiment of the present application is not specifically limited.

[0073] The folding screen device in the embodiment of the present application can be a three-folding device, a four-folding device, or more folding devices. It should be understood that the display method provided in the embodiment of the present application can also be applied to a double-folding device. For a three-folding device, the three-folding device may include two folding edges or folding axes. The three-folding device can be folded twice along the folding edges or folding axes. After two folds, the three-folding screen can form three screens. The three screens can be independent screens or a complete screen of an integrated structure, but it is folded into two parts. Similarly, a four-folding device, or more folding devices can be folded more times, and a larger number of screens can be formed after being folded. The following embodiments are explained by taking a three-folding device as an example.

[0074] Taking a tri-fold device as an example, a tri-fold device can include at least one integrated display screen. The tri-fold device can be folded inward and / or outward, and the embodiments of this application do not limit the folding method of the tri-fold device. The physical form of the tri-fold screen can include: folded state, unfolded state, and hovering state.

[0075] Referring to Figure 1(a), when the tri-fold device is in the folded state, screen 1 can be illuminated, and the user can use screen 1. When the user unfolds the tri-fold device, the tri-fold device is in a hovering state, which is any physical state between the folded state and the unfolded state. Referring to Figure 1(b), when the tri-fold device is in the hovering state, a portion of screen 2 in the tri-fold device is illuminated, or the entire screen 2 is illuminated. The user continues to unfold the tri-fold device to the unfolded state, and referring to Figure 1(c), the entire screen 2 can be illuminated, and the user can use screen 2.

[0076] In some embodiments, depending on the configuration of the tri-fold device, screen 1 can be part of screen 2, or screen 1 and screen 2 can be independent screens. It should be understood that Figure 1 illustrates screen 1 as the rightmost screen of screen 2, while Figure 2 illustrates screen 1 as independent of screen 2. It should be understood that Figure 2 only shows the tri-fold device in a hovering state.

[0077] The display method provided in the embodiment of the present application can be applied to the scenario where the folding screen device is in the unfolded state. Referring to Figure 3, when the three-fold device is in the unfolded state, the three-fold device may include three display areas, namely the first display area, the second display area and the third display area. In combination with c in Figure 1 and Figure 2, it can also be said that screen 2 may include a first display area, a second display area and a 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 three-fold device can be folded along the folding edge or the folding axis. The folding edge or the folding axis (or the split screen line) is represented by a dotted line in Figure 3. It should be understood that the user can adjust the size of the display area by operating the split screen line, and this embodiment of the present application will not be described in detail.

[0078] In some embodiments, each display area can display the interface of a different application, so that the user can see the interfaces of different applications at the same time, which facilitates the user's multi-application operation. For example, the user can watch a video, take notes, and look up a word 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 different. For example, Figure 3 takes the example of the first display area displaying the interface of the phone application, the second display area displaying the interface of the settings application, and the third display area displaying the interface of the social application.

[0079] In some embodiments, at least two of the three display areas may display the interface of the same application. For example, the first display area may display the main interface of a social application, the second display area may display the settings interface of the social application, and the third display area may display the interface of a phone application.

[0080] It should be understood that in the following embodiments, the display method provided by the embodiments of the present application is introduced by taking the three display areas of a three-fold device for displaying interfaces of different applications as an example.

[0081] In some embodiments, when the display area displays an application interface, the application interface may occupy the entire area or a portion of the display area. For example, FIG3 takes the example of each application interface occupying the entire area of ​​the display area. In this example, it can also be said that the tri-fold device can display multiple application interfaces in split screen.

[0082] Figure 4 takes the example of each application's interface occupying a portion of the display area. In this example, a tri-fold device can also be said to display an application's floating window in each display area. Figure 5 takes the example of some application interfaces occupying the entire display area, while the remaining application interfaces occupy a portion of the display area. That is, part of the display area can display the application interface in split-screen mode, and the remaining display area can display the application's floating window.

[0083] In summary, a three-fold device can display the application interface in different styles in each display area. In actual application scenarios, users have the need to switch the application interface. Switching the application interface can, for example, include: switching the display position of the application interface, and switching the background application to the foreground display. Based on this need to switch the application interface, since the screen size of a three-fold device, a four-fold device, or even more folding devices is larger when in the unfolded state, how to enable users to operate conveniently to meet user needs is an urgent problem that needs to be solved.

[0084] The present invention provides a display method that allows a user to operate on a multi-folding device and switch between application interfaces to meet user needs. The multi-folding device may include a triple-folding device, a quad-folding device, or even more folding devices. In some embodiments, the multi-folding device may include a double-folding device.

[0085] Before introducing the display method provided by the embodiment of the present application, the structure of the electronic device is first introduced.

[0086] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The software system of the electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The layered architecture divides the software system of the electronic device into several layers, each with a clear role and division of labor, and the layers communicate with each other through software interfaces.

[0087] 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 embodiments of the present application do 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 embodiments of the present application. The modules included in each layer below do not constitute a limitation on the structure of the electronic device, and the level of module deployment (example description) does not constitute a limitation on the structure of the electronic device.

[0088] The application layer can include a series of applications and runs applications by calling the application programming interface (API) provided by the application framework layer.

[0089] In some embodiments, the application layer may include system applications and third-party applications. For example, system applications may include settings applications, phone applications, gallery applications, and text messaging applications. Third-party applications may include audio applications, video applications, social applications, and the like. It should be understood that Figure 6 illustrates some of these applications.

[0090] The application framework layer provides APIs and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. Referring to Figure 6 , the application framework layer can include an application user interface (UI) system and a desktop UI system. The application UI system assists electronic devices in displaying application interfaces, while the desktop UI system assists electronic devices in displaying desktop interfaces.

[0091] 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.

[0092] Among them, the basic control module is used to manage the basic controls of the application UI. Basic controls may include but are not limited to: pictures, buttons, text, input boxes, progress bars, scroll boxes, joysticks, etc. on the application UI. The mounted control module is used to manage mounted controls. Mounted controls may include but are not limited to: root controls, screen controls, and window controls. The layout management module is used to manage the layout of various controls 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. Input events may include but are not limited to: touch events, sliding events, long press events, etc.

[0093] The desktop UI system is responsible for providing different types of containers and animation effects. Before the desktop displays the application interface, the desktop UI system can create the corresponding container and convert between different container types. In addition, the desktop UI system can provide animation effects during window opening and switching, making the process smoother and more fluid.

[0094] 6 , in some embodiments, the desktop UI system may include: at least one type of container and an animation effect module. The at least one type of container may include, but is not limited to: a split-screen container, a floating window container, a picture-in-picture container, etc.

[0095] A split-screen container is used to store split-screen interfaces displayed on the desktop interface. For example, referring to the example in Figure 3, 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. Referring to the example in Figure 5, a split-screen interface is displayed on the desktop interface. This split-screen interface is the interface of the phone application displayed in the first display area.

[0096] In Figure 6, a split screen container includes a main split screen, a secondary split screen, and a split screen line as an example. The split screen line is used to separate two split screens. For example, a split screen line can be included between the main split screen and the secondary split screen.

[0097] The floating window container is used to store floating windows displayed on the desktop interface. For example, referring to the example in Figure 4, three floating windows are displayed on the desktop interface. The three floating windows include: a floating window of the phone application displayed in the first display area, a floating window of the settings application displayed in the second display area, and a floating window of the social application displayed in the third display area. Referring to the example in Figure 5, two floating windows are displayed on the desktop interface. The floating windows include: a floating window of the settings application displayed in the second display area, and a floating window of the social application displayed in the third display area.

[0098] In FIG6 , a floating window container including floating window 1 and floating window 2 is taken as an example.

[0099] The picture-in-picture container is used to store the picture-in-picture interface displayed on the desktop interface. The picture-in-picture interface can be understood as: a floating window superimposed on a split-screen interface. For example, the first display area displays the interface of the phone application in a split screen, and a floating window of a social application is displayed on the interface of the phone application, such as a floating window of a video call interface. The embodiment of the present application does not separately display the picture-in-picture interface. 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 of switching the picture-in-picture interface can refer to the description of switching the split-screen interface in the following embodiment.

[0100] Figure 6 takes the example of a picture-in-picture container including a main screen and a sub-screen. For example, if a floating window of a social application is displayed on the interface of a 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 sub-screen.

[0101] The animation effects module is used to display the animation effects of the application interface switching during the process of switching the application interface. Animation effects may include but are not limited to: rebound animation effects, full-screen animation effects, spring animation effects, and hidden animation effects. This embodiment of the application does not limit the animation effects of switching application interfaces.

[0102] The system service layer is used to provide various types of system services for electronic devices. System services may include, but are not limited to, audio services, video services, network services, and desktop services. It should be understood that Figure 6 shows the desktop services involved in the embodiments of this application.

[0103] 6 , desktop services may include: session creation service, session management service, window management service, and desktop layout refresh service, etc.

[0104] Among them, the session creation service is used to create a session. Whenever an application is launched and enters a container, the session creation service will create a separate session for the application. Exemplarily, the session may 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 display the interface of the application in a split-screen display area, the session creation service may create a split-screen session. Exemplarily, when the electronic device is about to display a floating window of the application interface in the display area, the session creation service may create a split-screen session.

[0105] FIG6 takes the case where the session creation service has created a split-screen session, a floating window session, and a picture-in-picture session as an example.

[0106] The session management service is used to manage sessions created by the session creation service. For example, the session management service can store session information for each application interface and destroy sessions. Session information may include, but is not limited to, position and size parameters of the application interface. Position parameters may indicate the location of the application interface on the electronic device's display screen, and size parameters may indicate the size and shape of the application interface (e.g., split screen, floating window, picture-in-picture).

[0107] In some embodiments, the session management service may include a window session management service and a screen session management service. The window session management service is used to manage window-related sessions 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. The screen session management service is used to manage desktop-related sessions. For example, the screen session management service can manage desktop interface sessions.

[0108] The window management service is used to manage the windows displayed on the desktop interface. Different windows can host the interfaces of the same or different applications. For example, referring to the example in Figure 3, the interface of the phone application can be hosted in one window (such as window 1), and the interface of the settings application can be hosted in another window (such as window 2).

[0109] In some embodiments, the window management service may include: a multi-tasking management service, a window size management service, a window control management service, and a window swap service.

[0110] The multi-task management service is used to manage applications running on the electronic device. The applications running on the electronic device include background applications. The multi-task management service can manage the background task queue, which includes applications running in the background.

[0111] The window size management service is used to manage the size of windows. Windows can be used to host split-screen, floating windows, and picture-in-picture (PIP). The window control management service is used to manage controls within a window. Controls within a window can include, but are not limited to, the horizontal bar at the top of the window.

[0112] The window swap service can be used to obtain information about the window to be switched (interchanged) and to switch the information of the window to be switched. Exemplarily, the window information may include but is not limited to the position parameters and size parameters of the window. Exemplarily, the windows to be switched are the split-screen interface 1 displayed in the display area 1 and the split-screen interface 2 displayed in the display area 2, then the window information to be switched may include: the position parameters of the split-screen interface 1, and the position parameters of the split-screen interface 2. Among them, the position parameters of the split-screen interface 1 may 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 parameters of the split-screen interface 2 may 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.

[0113] The window swap service can swap the position parameters of split-screen interface 1 with the position parameters of split-screen interface 2. For example, the window swap service modifies the position parameters of split-screen interface 1 to coordinate 2 and the position parameters of split-screen interface 2 to coordinate 1. The window swap service is also used to send information about the switched window to the desktop layout refresh service. Exemplarily, the information about the switched window includes: the position parameters (coordinate 2) of split-screen interface 1 and the position parameters (coordinate 1) of split-screen interface 2. In some embodiments, the information about the switched window can also be referred to as updated window parameters.

[0114] The desktop layout refresh service is used to rearrange the desktop according to the updated window parameters. For example, the desktop layout refresh service can determine to display split screen interface 2 in display area 1 and to display split screen interface 1 in display area 2 based on "the position parameter (coordinate 2) of split screen interface 1 and the position parameter (coordinate 1) of split screen interface 2".

[0115] Referring to Figure 6, in some embodiments, the kernel layer may include a rendering service and a basic management service. The rendering service may be used to render a window so that the electronic device can display the content of the window in the display area. The basic management service may be used to manage the life cycle of processes and components, etc. The present embodiment of the application does not elaborate on the functions of the basic management service.

[0116] In some embodiments, the desktop layout refresh service is further configured to send information after the desktop is re-layouted to the rendering service. The rendering service is configured to re-render the desktop based on the re-layout information, so that the electronic device displays split-screen interface 2 in display area 1 and split-screen interface 1 in display area 2. In some embodiments, the information after the desktop is re-layouted can be referred to as updated desktop layout parameters.

[0117] It is understood that the structure shown in FIG6 does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0118] The display method provided by the embodiments of the present application is described below in conjunction with specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. It should be understood that the following embodiments will introduce the display method provided by the embodiments of the present application in sequence according to the switching scenarios of the application interface.

[0119] Scenario 1: Switching between split-screen interfaces

[0120] Taking a tri-fold electronic device as an example, when the tri-fold device is in the unfolded state, it can 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 to each other, such as 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 embodiment of the present application, the first display area, the second display area, and the third display area are arranged as the left, middle, and right as an example. The first display area, the second display area, and the third display area can also be arranged as the top, middle, and bottom. The embodiment of the present application does not limit the arrangement of the display areas.

[0121] In an embodiment of the present application, the first display area can display a first application interface, the second display area can display a second application interface, and the third display area can display a third application interface. Among them, the first application interface, the second application interface, and the third application interface can belong to the same application or different applications. In the embodiment of the present application, the first application interface, the second application interface, and the third application interface belong to different applications as an example for explanation. Referring to Figure 7A, the first application interface can be the interface of a phone application, the second application interface can be the interface of a settings application, and the third application interface can be the interface of a social application. It should be understood that the interface of the application is displayed in split screen in Figure 7A. In some embodiments, the application interface of each display area shown in Figure 7A can be called a split screen interface.

[0122] Figure 7A shows several examples of switching between split-screen interfaces, as follows:

[0123] Example 1: Gesture 1 is used to trigger switching between the first application interface and the second application interface. For example, when the user performs gesture 1, the second display area can display the first application interface, and the first display area can display the second application interface.

[0124] Example 2: Gesture 2 is used to trigger switching between the second application interface and the third application interface. For example, when the user performs gesture 2, the third display area can display the second application interface, and the second display area can display the third application interface.

[0125] Example 3: Gesture 3 is used to trigger switching between the first application interface and the third application interface. For example, when the user performs gesture 3, the third display area can display the first application interface, and the first display area can display the third application interface.

[0126] Example 4: Gesture 4 is used to trigger switching between the first application interface and the background application interface. For example, when a user performs gesture 4, the first display area may display the background application interface, but not the first application interface. Alternatively, for example, when a user performs gesture 4, the first display area may display the second application interface, the second display area may display the third application interface, and the third display area may display the background application interface.

[0127] It should be understood that the background application interface is the interface of the application running in the background. 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 application running in the foreground.

[0128] Example 5: Gesture 5 is used to trigger the switch between the third application interface and the background application interface. For example, when the user performs gesture 5, the third display area may display the background application interface, but not the third application interface. Alternatively, for example, when the user performs gesture 4, the third display area may display the second application interface, the second display area may display the first application interface, and the first display area may display the background application interface.

[0129] Example 6: Gesture 6 is used to trigger switching between the second application interface and the background application interface. For example, when the user performs gesture 6, the second display area may display the background application interface but not the second application interface.

[0130] In summary, switching between split-screen interfaces can include: switching between foreground split-screen interfaces, and 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.

[0131] Scenario 1-1: Switching between split-screen interfaces in the foreground

[0132] Switching between the split-screen interfaces in the foreground may include: switching between two adjacent split-screen interfaces, and switching between two non-adjacent split-screen interfaces.

[0133] Taking the electronic device as a three-fold device as an example, Figure 7B (1) shows the switching process between two adjacent split-screen interfaces. Referring to a in Figure 7B (1), the first display area displays the interface of the phone application, the second display area displays the interface of the settings application, and the third display area displays the interface of the social application. The 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), as well as the second application interface (the interface of the settings application) and the third application interface (the interface of the social application).

[0134] Taking switching between a first application interface and a second application interface as an example, a user can perform a first gesture on the first application interface to trigger the switch between the first application interface and the second application interface. The purpose of the first gesture is to indicate the switch between the first application interface and the second application interface. In some embodiments, the first gesture can be a gesture that contacts the first application interface, or the first gesture can be a gesture that does not contact the first application interface, such as an air gesture.

[0135] For example, taking the first gesture as a gesture of touching a first application interface, the first gesture can be: the user presses a single finger at a preset location on the first application interface and slides toward a second application interface. Executing the first gesture on the first application interface can indicate one application interface, while sliding toward the second application interface can indicate another application interface. The preset location can be the bottom, top, left, or right side of the first application interface, etc.

[0136] In some embodiments, when sliding toward the second application interface, the sliding operation may not exceed the first display area or may exceed the first display area. The following exemplary drawings take the sliding operation not exceeding the first display area as an example.

[0137] Referring to a in Figure 7B(1), because the second application interface is located to the right of the first application interface, the user can trigger the electronic device to switch between the first application interface and the second application interface by pressing the bottom of the first application interface with one finger and sliding it to the right. Referring to b in Figure 7B(1), the first display area displays the second application interface, and the second display area displays the first application interface.

[0138] In some embodiments, when the preset position is the top of the first application interface, the preset position may specifically be a bar at the top of the first application interface.

[0139] In some embodiments, the first gesture may also be, for example, dragging the first application interface to the second display area, or manipulating 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 identifier of the application running in the foreground, or may also include the identifier of the application running in the background.

[0140] The switching of the application interfaces shown in FIG7B(1) can be applied to the following scenario: the user can see three application interfaces at the same time, and the user can place the currently processed application interface in the middle for quick processing.

[0141] Referring to the description in FIG7B(1), the user can also perform a first gesture on the second application interface to trigger a switch between the first application interface and the second application interface. For example, the user can press a preset position on the second application interface with a single finger and slide it toward the first application interface to 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.

[0142] It can be understood that after the electronic device switches between the first application interface and the second application interface, the user presses and slides to the left with one finger at the bottom of the first application interface to 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.

[0143] Similarly, the user can trigger the electronic device to switch the adjacent second application interface and third application interface in the same way, which will not be described in detail here.

[0144] The following describes the process of switching between the first application interface and the second application interface of the electronic device from the perspective of the interaction between the modules within the electronic device, in conjunction with FIG. 7B (2):

[0145] When the split-screen container (such as the container of the first application interface) detects the user's gesture on the first application interface, it will detect whether the user's gesture satisfies the switching gesture (such as the first gesture). Among them, when the split-screen container determines that the user's gesture satisfies the first gesture, the split-screen container will call the window swap service. The window swap service will access 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 will access the session of the second application interface to determine the position parameters of the second application interface (such as coordinate 2). After the position parameters of the first application interface and the position parameters of the second application interface are returned to the window swap service, the window swap service will swap the position parameters of the first application interface and the position parameters of the second 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 2), position parameters of the second application interface (such as coordinate 1).

[0146] The window swap service can send updated window parameters to the desktop layout refresh service. The desktop layout refresh service can rearrange the desktop according to the updated window parameters to obtain updated desktop layout parameters. The desktop layout refresh service can send 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 first application interface in the second display area and displays the second application interface in the first display area. It can be understood that in order to achieve smooth switching between the two application interfaces and improve user experience, the animation effect module can render the animation effect of switching between the two application interfaces, and accordingly, the electronic device can display the animation effect.

[0147] It should be understood that when the split-screen container determines that the user's gesture does not satisfy the first gesture, the split-screen container will not call the window swap service.

[0148] The following describes the process of switching between two non-adjacent split-screen interfaces on an electronic device:

[0149] Taking the electronic device as a tri-fold device as an example, FIG7C(1) shows the switching process between two non-adjacent split-screen interfaces. The a in FIG7C(1) can refer to the description of a in FIG7B(1). Referring to a in FIG7C(1), the two non-adjacent split-screen interfaces can include a first application interface (the interface of the phone application) and a third application interface (the interface of the social application).

[0150] 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 can be a gesture that contacts the first application interface, or the second gesture can be a gesture that does not contact the first application interface, such as an air gesture.

[0151] Exemplarily, taking the second gesture as a gesture of contacting the first application interface as an example, the second gesture can be: the user presses a preset position of 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 the direction away from (or away from) the third application interface. The purpose of setting up the embodiment of the present application in this way is: because the second application interface is between the first application interface and the third application interface, if it is directed toward the third application interface, the second gesture is also directed toward the second application interface, which will trigger the electronic device to switch the first application interface and the second application interface. In order to achieve the purpose of accurately triggering the switching of 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.

[0152] Referring to a in FIG7C(1), a user presses down on the bottom of the first application interface with a single finger and slides to the left, which 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 FIG7C(1). Similarly, a user presses down on the bottom of the third application interface with a single finger and slides to the right, which 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.

[0153] In some embodiments, the second gesture may 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. Alternatively, the second gesture may 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.

[0154] The application interface shown in Figure 7C(1) can be applied to the following scenarios: User 1 is operating the first application interface, and User 2 is located to the right of User 1. User 1 can perform a 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. Alternatively, User 1 is operating the first application interface, and User 2 is operating the third application interface, and User 2 is located to the right of User 1. User 1 can perform a 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 interchangeably view the application interface being processed by the other party.

[0155] 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. The two ends can be understood as the upper end and the lower end, or the left side and the right side, 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.

[0156] 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 in order 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, for example, the switching method can be: 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 the first display area, and use single finger 2 to press 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, so as to trigger the electronic device to switch the first display area and the third display area.

[0157] 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 between the modules within the electronic device, in conjunction with FIG. 7C (2):

[0158] When the split-screen container (such as the container of the first application interface) detects the user's gesture on the first application interface, it will detect 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 will call the window swap service. The window swap service will access 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 will access 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 returned to the window swap service, the window swap service will swap 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: the position parameters of the first application interface (such as coordinate 3), and the position parameters of the third application interface (such as coordinate 1).

[0159] The window swap service can send updated window parameters to the desktop layout refresh service. The desktop layout refresh service can rearrange the desktop according to the updated window parameters to obtain updated desktop layout parameters. The desktop layout refresh service can send 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 first application interface in the third display area and displays the third application interface in the first display area. It can be understood that in order to achieve smooth switching between the two application interfaces and improve user experience, the animation effect module can render the animation effect of switching between the two application interfaces, and accordingly, the electronic device can display the animation effect.

[0160] It should be understood that when the split-screen container determines that the user's gesture does not satisfy the second gesture, the split-screen container will not call the window swap service.

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

[0162] Scenario 1-2: Switching between the foreground split-screen interface and the background application interface

[0163] Switching between the foreground split-screen interface and the background application interface can include: switching between the application interface (split-screen interface) located at both ends of the electronic device and the background application interface, and switching between the application interface (split-screen interface) not located at both ends of the electronic device and the background application interface. Among them, the application interface not located at both ends of the electronic device can also be understood as: the application interface located in the middle of the electronic device.

[0164] Taking the electronic device as a three-fold device as an example, Figure 7D(1) shows the switching process between the application interface and the background application interface at both ends of the electronic device. The a in Figure 7D(1) can refer to the description of a in Figure 7B(1). Referring to a in Figure 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.

[0165] Taking the switch between the first application interface and the background application interface as an example, the user can perform a third gesture on any application interface located at both ends of the electronic device to trigger the switch between the first application interface and the background application interface. In some embodiments, any application interface located at both ends of the electronic device can be referred to as 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 that contacts the target application interface, or the third gesture can be a gesture that does not contact the target application interface, such as an air gesture.

[0166] For example, taking the third gesture as a gesture of contacting the target application interface, the third gesture can be: the user presses with two fingers at the preset position of the first application interface and slides away from the third application interface, or the user presses with two fingers at the preset position of the third application interface and slides toward the first application interface.

[0167] Referring to a in Figure 7D(1), the user presses two fingers on the bottom of the first application interface and slides to the left, or the user presses two fingers on the bottom of the third application interface and slides to the left, which can trigger the electronic device to switch between the first application interface and the background application interface. Referring to b in Figure 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 performs the third gesture, it can trigger the application interface to move to the left, and the background application interface is displayed in the rightmost display area, and the electronic device does not display the first application interface. It should be understood that b in Figure 7D(1) takes the background application interface as a memo application as an example.

[0168] It should be understood that the electronic device can maintain a background task queue, in which the background running applications can be sorted in a specific order. The background application interface switched with the first application interface is the interface of the background application that is sorted first.

[0169] In some embodiments, the specific order may be: sorting by the time of switching to the background from latest to earliest, or sorting by the frequency of use (or duration of use) by the user from high to low, etc. Among them, the order of switching to the background from latest to earliest can be understood as: the closer the time of switching to the background is to the current moment, the later the time of switching to the background is.

[0170] It should be understood that, referring to b in FIG7D(1), if the user continues to press the preset position of the second application interface with two fingers and performs a left swipe operation, the electronic device can be triggered to switch between the second application interface and the second-ranked background application interface. Among them, the first display area can display the third application interface, the second display area can display the interface of the first-ranked background application, and the third display interface can display the second-ranked background application interface.

[0171] In some embodiments, the third gesture may also be, for example, dragging the first application interface to the left outside the first display area. Or,

[0172] The third gesture may also be, for example, that the user operates the preset position of the first application interface to trigger the electronic device to display the interface selection box, so that the user can select the 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 can display the identifier (such as name, icon or number, etc.) of the application running in the background. In this way, when there are many background applications, if the user needs to view the interface of the third-ranked background application, according to the above-mentioned double-finger press and slide method, the user needs to perform multiple sliding operations to see the interface of the third-ranked background application. Compared with the above-mentioned double-finger press and slide method, the method selected by the user in the interface selection box can directly trigger the electronic device to display the interface of the third-ranked background application, which is easier to operate.

[0173] The application interface shown in FIG7D(1) can be applied to the following scenarios: for example, the user switches the translation application to the background, and the user is watching a video in the third display area. The user needs to translate the lines in the video. The user can perform a third gesture in the first application interface or the third application interface to trigger the electronic device to display the video in the second display area and the translation application in the third display area. In this way, the user can use the translation application to translate the lines while watching the video.

[0174] 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 described here.

[0175] In summary, when the electronic device switches the application interface and the background application interface located at both ends of the electronic device, the third gesture can be summarized as: the user presses with two fingers at the preset position of the first target application interface and slides away from the second target application interface, or the user presses with two fingers at the preset position of the second target application interface and slides toward 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 in addition to 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 "sliding away from the second target application interface" can be understood as: sliding in the direction away from (or away from) the second target application interface.

[0176] The following describes the process of switching between the first application interface and the background application interface of the electronic device from the perspective of the interaction between the modules within the electronic device, in conjunction with FIG. 7D (2):

[0177] When the split-screen container (such as the container of the first application interface) detects a user gesture, it will detect whether the user's gesture satisfies a switching gesture (such as a third gesture). When the split-screen container determines that the user's gesture satisfies the third gesture, the split-screen container will call the multi-tasking management service. The multi-tasking management service detects whether the background task queue is empty. When the background task queue is empty, it indicates that there are no background applications. When the background task queue is not empty, it indicates that there are background applications.

[0178] When the background queue is not empty, the multitasking management service can obtain information about the application ranked first in the background task queue. The multitasking management service can send this information to a session management service (such as a window session management service). The session management service can create a session for this application based on this information. The window management service can create a window corresponding to the application ranked first to host the application's interface.

[0179] The window management service (such as the window control management service) can access the session of the first application interface to determine the position parameters of the first application interface (such as coordinate 1), access the session of the second application interface to determine the position parameters of the second application interface (such as coordinate 2), and access 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, the position parameters of the second application interface, and the position parameters of the third application interface are returned to the window management service, the window management service will swap the position parameters of the application interfaces to obtain updated window parameters. The updated window parameters may, for example, include: the position parameters of the second application interface (such as coordinate 1), the position parameters of the third application interface (such as coordinate 2), and the position parameters of the background application interface (coordinate 3). In some embodiments, the session management service can destroy the window that hosts the first application interface.

[0180] The window management service can send updated window parameters to the desktop layout refresh service. The desktop layout refresh service can rearrange the desktop according to the updated window parameters to obtain updated desktop layout parameters. The desktop layout refresh service can send 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 the two application interfaces and improve user experience, the animation effect module can render the animation effect of switching between the two application interfaces, and accordingly, the electronic device can display the animation effect.

[0181] It should be understood that when the split-screen container determines that the user's gesture does not satisfy the third gesture, the split-screen container will not call the multitasking management service.

[0182] In some embodiments, when the electronic device switches between the application interface and the background application interface located at both ends of the electronic device, the third gesture can also be, for example: the user presses with a single finger at the preset position of the first target application interface, and presses at the preset position of the second target application interface and slides away from the second target application interface, or, the user presses with a single finger at the preset position of the second target application interface, and presses at the preset position of the first target application interface and slides toward the second target application interface.

[0183] For example, 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 FIG7E(1), the user can press the bottom of the third application interface with a single finger and slide to the left at the bottom of the first application interface to trigger the electronic device to switch between the first application interface and the background application interface. Referring to b in FIG7E(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.

[0184] The following describes the process of switching between the first application interface and the background application interface of the electronic device from the perspective of the interaction between the modules within the electronic device, in conjunction with FIG. 7E (2):

[0185] When the split-screen container (such as the container of the first application interface) detects a user gesture, it will detect whether the user's gesture satisfies a switching gesture (such as a third gesture). When the split-screen container determines that the user's gesture satisfies the third gesture, the split-screen container will call the multi-tasking management service. The multi-tasking management service detects whether the background task queue is empty. When the background task queue is empty, it indicates that there are no background applications. When the background task queue is not empty, it indicates that there are background applications.

[0186] When the background queue is not empty, the multitasking management service can obtain information about the application ranked first in the background task queue. The multitasking management service can send this information to a session management service (such as a window session management service). The session management service can create a session for this application based on this information. The window management service can create a window corresponding to the application ranked first to host the application's interface.

[0187] A window management service (e.g., a window control management service) can access the session of the first application interface and determine the position parameters of the first application interface (e.g., coordinate 1). After the position parameters of the first application interface are transmitted back to the window management service, the window management service swaps the position parameters of the application interfaces to obtain updated window parameters. The updated window parameters may, for example, include the position parameters of the background application interface (coordinate 1). In some embodiments, the session management service may destroy the window hosting the first application interface.

[0188] The window management service can send updated window parameters to the desktop layout refresh service. The desktop layout refresh service can rearrange the desktop according to the updated window parameters to obtain updated desktop layout parameters. The desktop layout refresh service can send 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 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 the two application interfaces and improve user experience, the animation effect module can render the animation effect of switching between the two application interfaces, and accordingly, the electronic device can display the animation effect.

[0189] It is understandable that when the split-screen container determines that the user's operation does not satisfy the third gesture, the split-screen container will not call the multitasking management service.

[0190] The above describes a method for switching between an application interface located at both ends of an electronic device and a background application interface. The following describes a method for switching between an application interface not located at both ends of an electronic device and a background application interface.

[0191] Taking the electronic device as a three-fold device as an example, FIG7F shows the switching process between the application interface located in the middle of the electronic device and the background application interface. The a in FIG7F can refer to the description of a in FIG7B(1). Referring to a in FIG7F, the application interface located in the middle of the electronic device is the second application interface. Because the second application interface is located between the first application interface and the third application interface, the third gesture can be performed by the user using a single finger to press at a preset position on the second application interface and perform an upward or downward slide.

[0192] Referring to Figure 7F (a), a user can trigger the electronic device to switch between the second application interface and the background application interface by pressing and sliding upward with a single finger. Referring to Figure 7F (b), 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.

[0193] In this example, when the electronic device switches between an application interface and a background application interface that are not located at both ends of the electronic device, the third gesture may be: pressing with a single finger at a preset location on the application interface and sliding parallel to the folding edge or folding axis (or split screen line). In some embodiments, the third gesture may be: pressing with a single finger at a preset location on the application interface and sliding in a first direction, where the first direction is parallel to the folding edge or folding axis (or split screen line).

[0194] Exemplarily, referring to a in Figure 7F, the folding edge is parallel to the left and right borders of the electronic device. The user presses the preset position of the second application interface with a single finger and performs an upward or downward slide. The upward and downward slides can be regarded as sliding operations parallel to the folding edge or folding axis (or split screen line). Among them, the aforementioned parallelism can allow the existence of errors, and the angle between the sliding operation and the folding edge or folding axis is not 0°. For example, the angle between the sliding operation and the folding edge or 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.

[0195] It can be understood that when the electronic device switches between the application interface and the background application interface that are not located at both ends of the electronic device, the process of interaction between the internal modules of the electronic device can refer to the description in Figure 7E(2).

[0196] Scenario 2: Switching between floating windows

[0197] Taking the electronic device as a tri-fold device as an example, Figure 8A shows the switching process between floating windows. Referring to a in Figure 8A, the electronic device displays application interfaces in the form of floating windows in the first display area, the second display area, and the third display area, respectively. In other words, 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.

[0198] In some embodiments, the positions and sizes of the first, second, and third floating windows can be different, or all the same, or at least partially the same. In Figure 8A, a is used as an example to illustrate that the positions and sizes of the first, second, and third floating windows are different.

[0199] In some embodiments, the position of the floating window can be represented by the coordinates of the upper left corner of the floating window in the coordinate system of the display screen of the electronic device. The embodiment of the present application does not limit the setting of the coordinate system of the display screen of the electronic device. For example, with reference to a in Figure 8A, 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, and the position of the third floating window can be (X3, Y3), and the size of the third floating window is the third size.

[0200] Taking the example of an electronic device switching between a first floating window and a second floating window, a user can perform a fourth gesture on the first floating window or the second floating window to trigger the electronic device to switch between the first floating window and the second floating window. The fourth gesture can be a gesture that touches the first floating window or the second floating window, or the fourth gesture can be a gesture that does not touch the first floating window or the second floating window, such as an air gesture.

[0201] For example, taking the fourth gesture as a gesture of touching the first floating window or the second floating window, the fourth gesture may be: the user presses a single finger at a preset position on the first floating window and slides toward the second floating window, or the user presses two fingers at a preset position on the second floating window and slides toward the first floating window. The preset position can refer to the description in Scenario 1 above.

[0202] Referring to a in Figure 8A , a user can trigger the electronic device to switch between the first and second floating windows by pressing and holding the top of the first floating window (e.g., the top horizontal bar) with one finger and swiping to the right, or by swiping to the left with one finger on the top of the second floating window (e.g., the top horizontal bar). Referring to b in Figure 8A , the first display area can display the second floating window, the second display area can display the first floating window, and the third display area can display the third floating window.

[0203] In some embodiments, when the electronic device switches the first floating window and the second floating window, it may only exchange the position parameters of the floating window without exchanging the size parameters of the floating window. For example, referring to b in FIG8A , the electronic device switches the first floating window and the second floating window, the first display area may display the second floating window at position (X1, Y1), and the size of the second floating window is the first size, and the second display area may display the first floating window at position (X2, Y2), and the size of the first floating window is the second size.

[0204] In some embodiments, when the electronic device switches the first floating window and the second floating window, the position parameters and the size parameters of the floating window can be exchanged. For example, referring to c in Figure 8A, the electronic device switches the first floating window and the second floating window, the first display area can display the second floating window at position (X1, Y1), and the size of the second floating window is the second size, and the second display area can display the first floating window at position (X2, Y2), and the size of the first floating window is the first size.

[0205] In some embodiments, the fourth gesture may 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.

[0206] Alternatively, the fourth gesture may be, for example, that the user manipulates the preset position of the first floating window to trigger the electronic device to display an interface selection box, 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 identifier (such as the name, icon, or number, etc.) of the application running in the foreground. In this way, when there is a large display area, the user can directly select the floating window to be switched without dragging a long distance, which is more convenient.

[0207] Similarly, the user can trigger the electronic device to switch between the second floating window and the third floating window, and to switch between the first floating window and the third floating window in the same manner.

[0208] The following describes the process of switching between the first floating window and the second floating window in the electronic device from the perspective of interaction between modules within the electronic device, with reference to FIG8B :

[0209] When the floating window container detects the user's gesture, it will detect whether the user's gesture satisfies the switching gesture (such as the fourth gesture). When the floating window container determines that the user's gesture satisfies the fourth gesture, the floating window container will call the window swap service. The window swap 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 swap 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 returned to the window swap service, the window swap service will swap the position parameters of the first floating window and the position parameters of the second floating window to obtain updated window parameters. The updated window parameters may, for example, include: 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).

[0210] The window swap service can send updated window parameters to the desktop layout refresh service. The desktop layout refresh service can rearrange the desktop according to the updated window parameters to obtain updated desktop layout parameters. The desktop layout refresh service can send 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 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 user experience, the animation effect module can render the animation effect of switching between the two floating windows, and accordingly, the electronic device can display the animation effect.

[0211] 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 satisfy the second gesture, the floating window container will not call the window swap service.

[0212] In some embodiments, when the electronic device switches between the first floating window and the second floating window, and exchanges the position parameters and size parameters of the floating windows, the window swap service accesses the session of the first floating window to determine the position parameters (such as coordinate 1) and size parameters (first size) of the first floating window, and the window swap service accesses the session of the second floating window to determine the position parameters (such as coordinate 2) and size parameters (second size) of the second floating window. Accordingly, the updated window parameters may include, for example: the position parameters (such as coordinate 2) and size parameters (first size) of the first floating window, the position parameters (such as coordinate 1) and size parameters (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 of the second size at coordinate 1 of the first display area, and the electronic device can display the first floating window of the first size at coordinate 2 of the second display area.

[0213] Scenario 3: Switching between split-screen interface and floating window

[0214] The method for switching between the split-screen interface and the floating window can refer to the description in the above-mentioned scenarios 1 and 2. In some embodiments, taking the electronic device as a three-fold device as an example, Figure 9 shows the switching process between the split-screen interface and the floating window. Referring to a in Figure 9, 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. For example, referring to a in Figure 9, 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.

[0215] Taking the switching between the first floating window and the second application interface as an example, the user can perform the 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. The third gesture can be a gesture that touches the first floating window or the second application interface, or the third gesture can be a gesture that does not touch the first floating window or the second application interface, such as an air gesture.

[0216] For example, taking the fifth gesture as a gesture of touching the first floating window or the second floating window, the fifth gesture can be: the user presses down with a single finger at a preset position on the first floating window and slides toward the second application interface, or the user presses down with a single finger at a preset position on the second application interface and slides toward the first floating window. The preset position can refer to the description in Scenario 1 above.

[0217] Referring to Figure 9 (a), a user can trigger the electronic device to switch between the first floating window and the second application interface by pressing the top of the first floating window (e.g., the top horizontal bar) with a single finger and sliding it to the right, or by pressing the bottom of the second application interface with a single finger and sliding it to the left. Referring to Figure 9 (b), 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.

[0218] In some embodiments, when the electronic device switches the first floating window and the second application interface, the position parameters of the floating window and the size parameters of the floating window can be exchanged. Exemplarily, for example, referring to b in Figure 9, the electronic device switches 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 position (X2, Y2), and the size of the first floating window is the first size. It should be understood that the relative position of position (X2, Y2) in the second display area is the same as the relative position of position (X1, Y1) in the first display area.

[0219] Alternatively, in some embodiments, 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 form in the second display area, and the first floating window corresponds to the first application interface.

[0220] In some embodiments, the fifth gesture may 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.

[0221] Alternatively, the fifth gesture can also be, for example: the user operates the preset position of the first floating window to trigger the electronic device to display the 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 the first floating window and the second application interface.

[0222] Similarly, the user can trigger the electronic device to switch between the second application interface and the third floating window in the same way.

[0223] It can be understood that when an electronic device switches between a split-screen interface and a floating window, the process of interaction between the internal modules of the electronic device can refer to the description of the electronic device switching between a split-screen interface or the description of the electronic device switching between a floating window in the above embodiment.

[0224] It is understood that electronic devices can also switch between picture-in-picture, picture-in-picture and floating window, and picture-in-picture and split screen interface. The process of switching between picture-in-picture and picture-in-picture by electronic devices can be referred to the description in Scenario 1-1, and the process of switching between picture-in-picture and floating window, and picture-in-picture and split screen interface by electronic devices can be referred to the description in Scenario 2 and Scenario 3.

[0225] Scenario 4: Display area when the application starts

[0226] Taking a tri-fold device as an example, the three display areas of the tri-fold device can display desktop interfaces. Referring to a in Figure 10A , the first display area can display a first desktop interface, the second display area can display a second desktop interface, and the third display area can display a third desktop interface. Each desktop interface can display at least one application icon, and the user can operate the application icon to trigger the electronic device to launch the application.

[0227] Taking the user operating the icon of application 1 on the second desktop interface as an example, in some embodiments, illustratively, the user clicks application icon 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.

[0228] In some embodiments, the user can perform a sixth gesture on the icon of the first application to select a display area for displaying the application interface.

[0229] For example, the user can short press the icon of the application and drag the icon of the application to the corresponding display area to display the interface of the application in the display area. Referring to a in Figure 10A, 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 b in Figure 10A is explained by taking the first display area displaying the startup interface of application 1 as an example. Among them, the operation of the user short pressing the icon of application 1 and dragging the icon of application 1 to the preset position of the second display area can be regarded as the sixth gesture.

[0230] 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 then display the interface of Application 1 in full screen. Displaying the interface of Application 1 in full screen means displaying the interface of Application 1 in the first display area, the second display area, and the third display area. The operation of the user short pressing the icon of Application 1 and dragging it to the preset position in the second display area can be considered a sixth gesture.

[0231] Exemplarily, the user can swipe up or down the icon of the application for a certain distance, which can trigger the electronic device to display the area options. The user can select the corresponding display area in the area options so that the display area displays the interface of the application. Referring to a in Figure 10B, the user can swipe up the icon of application 1 for a certain distance, and the second display area can display area option 11. Referring to b in Figure 10B, area option 11 includes the identification 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 the full screen display 114. The user selects the first display area 111, and the first display area can display the interface of application 1, as shown in c in Figure 10B. 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 of the user swiping up or down the icon of the application for a certain distance can be regarded as the sixth gesture, and a distance can be regarded as a preset distance.

[0232] In an embodiment of the present application, when starting an application, the user can choose a display area to display the application interface, so that the user can make a selection according to his or her needs, which can improve the user experience.

[0233] The following describes the process of the electronic device displaying the interface of application 1 in the first display area from the perspective of the interaction between modules within the electronic device, in conjunction with FIG. 10C :

[0234] When the split-screen container detects a user gesture, it checks whether the user's gesture satisfies the gesture required to trigger application launch (e.g., the sixth gesture). When the split-screen container determines that the user's gesture satisfies the gesture required to trigger application launch, it calls a session management service. The session management service (e.g., the window session management service) can create a session for the window hosting the interface of Application 1, and the screen session management service caches information about Application 1.

[0235] In addition, the window management service (such as the window control management service) can set parameters for 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. The desktop layout refresh service can layout the desktop based on the parameters of the window hosting application 1 and obtain updated desktop layout parameters. The updated desktop layout parameters are used to indicate that the interface of application 1 should be displayed in the first display area.

[0236] The desktop layout refresh service can send updated desktop layout parameters to the rendering service, and the rendering service can render the desktop based on the updated desktop layout parameters so that the electronic device displays the interface of application 1 in the first display area. It is understood that in order to ensure the smoothness of the application startup interface and improve the user experience, the animation effect module can render an animation effect for the startup of application 1, and accordingly, the electronic device can display the animation effect.

[0237] It should be noted that the user data involved in this application (including but not limited to data used 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 must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0238] In one embodiment, the present application also provides an electronic device. Referring to FIG11 , the electronic device may include a processor 1101 (e.g., 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 storage. The memory 1102 may store various instructions for performing various processing functions and implementing the method steps of the present application.

[0239] Optionally, the electronic device involved in this application may further include: a power supply 1103, a communication bus 1104, and a communication port 1105. The communication port 1105 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 1102 is used to store computer-executable program code, which 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-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.

[0240] 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. For example, taking the electronic device as a tri-fold device as an example, the display screen 1106 may include a first display area, a second display area, and a third display area.

[0241] 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, such as one or more application specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0242] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can 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 process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0243] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0244] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.

[0245] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present 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 to 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, wherein 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, wherein The third gesture is: pressing with a single finger at a preset position on the second application interface and sliding in a first direction, where 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.

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, wherein 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 "in response to a first gesture of the user on the first application interface or the second application interface, the second application interface is displayed in the first display area and the first application interface is displayed 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, 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 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, the second floating window of the first size is displayed at the first position, and the first application interface is split-screen displayed in the second display area, and the second floating window corresponds to the second application interface.

16. The method according to any one of claims 1-15, characterized in that, The method further includes: A first desktop interface is displayed in the first display area, a second desktop interface is displayed in the second display area, and a third desktop interface is displayed in the third display area, and 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, the interface of the first application is displayed in the second display area, and the sixth gesture is used to indicate that the interface of the first application is displayed in the second display area.

17. The method according to claim 16, characterized in that, 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; 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 the area options, and the slide in the first direction is used to trigger the electronic device to display the area options, and 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, Includes: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution 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

Patent Citations

  • Display method, electronic equipment and readable storage medium

    CN120295697A

  • Screen-splitting display method and device

    CN106537319A

  • Application switching method and electronic equipment

    CN110727381A

  • Interface switching method and electronic equipment

    CN110825301A

  • Display method of folding screen and electronic equipment

    CN116027886A