A method for displaying a floating window and an electronic device

By switching to tabs within the floating window and displaying application instructions, the problem of the floating window's limited interaction methods is solved, achieving more efficient user interaction and simpler operation.

CN117806516BActive Publication Date: 2026-07-07HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2021-09-22
Publication Date
2026-07-07

Smart Images

  • Figure CN117806516B_ABST
    Figure CN117806516B_ABST
Patent Text Reader

Abstract

The application discloses a method for displaying a floating window and an electronic device, and relates to the technical field of terminals. The method can provide a new floating window interaction mode and improve user experience. An electronic device displays a first interface and displays a first floating window in the first interface, and the first floating window displays an interface of a first application. The electronic device receives a first touch operation of a user on the first floating window, and the first touch operation is used for triggering the electronic device to minimize the first floating window. The electronic device switches the first floating window into a first tab in response to the first touch operation, and the first tab displays indication information of the first application.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese patent application filed on September 22, 2021, with application number 202111107902.1 and invention title "A Floating Window Display Method and Electronic Device". Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a floating window display method and electronic device. Background Technology

[0003] Floating windows are a multitasking interaction method on smart devices such as tablets and smartphones. They can be displayed floating on the desktop or other applications, allowing users to temporarily use a particular application. Currently, floating windows mainly include maximizing, minimizing, and closing interactions, which are relatively traditional. Furthermore, maximizing, minimizing, or closing the floating window requires clicking a corresponding button, which is somewhat restrictive and reduces the user's interactive experience. Summary of the Invention

[0004] This application provides a floating window display method and electronic device, which can enrich the interaction methods of the floating window and improve the user's interactive experience with the floating window.

[0005] In a first aspect, embodiments of this application provide a method for displaying a floating window. In this method, an electronic device displays a first interface and a first floating window on that first interface, the first floating window displaying the interface of a first application; the electronic device receives a first touch operation from a user on the first floating window, the first touch operation triggering the electronic device to minimize the display of the first floating window; in response to the first touch operation, the electronic device switches the first floating window to a first tab, the first tab displaying indication information of the first application.

[0006] Using this solution, after the electronic device displays the first application in a floating window, it can respond to user touch operations on the floating window and minimize it via tabs, allowing other applications to be displayed normally without affecting user operation of other applications. Simultaneously, the electronic device displays the first application's status information in the first tab, enabling users to understand the application's operation status without opening the floating window, providing a new way to interact with floating windows and improving the user experience. Furthermore, users can view the first application's status through tabs while using other applications, resulting in higher interaction efficiency; it also avoids repeatedly opening and minimizing the floating window, making the operation simpler.

[0007] In one possible implementation of the first aspect of this application, the instruction information of the first application includes dynamic information and / or functional controls of the first application. The dynamic information is updated as the first application runs, allowing the user to stay informed about its operation. The functional controls provide the functional services of the first application, facilitating user operation and improving operational efficiency.

[0008] In one possible implementation of the first aspect of this application, the electronic device, in response to a first touch operation, displays dynamic information of the first application in a first tab; or the electronic device, in response to a first touch operation, displays functional controls of the first application in the first tab. In this implementation, displaying either dynamic information or functional controls of the first application in the first tab reduces resource consumption and improves operating speed; furthermore, it clearly presents information about the first application to the user, ensuring user-friendliness.

[0009] In one possible implementation of the first aspect of this application, the first tab displaying indication information of the first application includes: the electronic device responding to a first touch operation by displaying dynamic information and functional controls of the first application in the first tab. In this implementation, displaying both the dynamic information and functional controls of the first application in the tab allows for full utilization of the tab's display area to show richer information. Without needing to open the first application, it can indicate both the application's running status and its functional services to the user, greatly facilitating user operation and simplifying the process.

[0010] In one possible implementation of the first aspect of this application, displaying the indication information of the first application in the first tab includes: the electronic device responding to a first touch operation by displaying dynamic information of the first application in the first tab; the electronic device receiving a preset operation from the user on the first tab displaying the dynamic information of the first application; and the electronic device responding to the preset operation by switching the dynamic information in the first tab to a function control of the first application. In this implementation, the electronic device first displays the dynamic information in the entire area of ​​the tab. When the tab is not operated, the display of the dynamic information can be maintained. When the preset operation is received, the dynamic information is then switched to a function control. Whether displaying dynamic information or displaying a function control, the entire tab is occupied, so that only one type of information is displayed on the tab at any given time, which simplifies the tab's display interface. At the same time, switching the function control according to the user's operation can also meet the user's operational needs.

[0011] In one possible implementation of the first aspect of this application, after the electronic device switches the dynamic information in the first tab to the functional controls of the first application in response to the aforementioned preset operation, the method further includes: if the electronic device does not receive any user operation on the functional controls within a preset time period, the electronic device switches the functional controls in the first tab back to the dynamic information of the first application. In this implementation, if the user does not continue to operate the functional controls after the electronic device switches to the functional controls, the electronic device can switch back to the dynamic information, ensuring that the user is promptly informed of the operation status of the first application and improving the timeliness of the dynamic information displayed in the tab.

[0012] In one possible implementation of the first aspect of this application, the first application is an application that supports multi-file editing; the electronic device, in response to a first touch operation, switches the first floating window to a first tab, including: the electronic device, in response to a first touch operation, switches the first floating window to one or more first tabs; wherein each first tab includes file information of a file opened in the first application. In this implementation, when the first application is displayed in the first floating window, the first application can open multiple files for the user to edit. When the first floating window is minimized, each file is displayed as a separate tab, allowing each file to be operated on individually, enhancing the flexibility of operation and file editing. Simultaneously, the first floating window can be minimized into multiple tabs, providing users with a new floating window interaction method and enriching the user's interactive experience.

[0013] In one possible implementation of the first aspect of this application, the method further includes: the electronic device receiving a second touch operation from a user on a first tab, the second touch operation triggering the electronic device to maximize the display of the first tab; and the electronic device responding to the second touch operation by switching the first tab to a first floating window. In this implementation, the display of the first floating window can be restored according to the user's operation, meeting the user's needs, while allowing the floating window to switch flexibly between maximization and minimization, ensuring the usability of the floating window interaction method.

[0014] In one possible embodiment of the first aspect of this application, after the electronic device displays a first interface and a first floating window is displayed on the first interface, the method further includes: the electronic device receiving a third touch operation from a user on a first application, the third touch operation triggering the electronic device to call a second application; and the electronic device responding to the third touch operation by displaying the interface of the first application and the interface of the second application in a split-screen manner. In this embodiment, the electronic device can switch between two different types of interaction modes, namely floating window display and split-screen display, breaking the limitations between different types of interaction modes, enriching the interaction methods of the electronic device, and improving interaction efficiency.

[0015] In one possible implementation of the first aspect of this application, after switching the first floating window to a first tab, the method further includes: the electronic device receiving a third touch operation from the user on the first application, the third touch operation triggering the electronic device to call the second application; and the electronic device responding to the third touch operation by switching the first floating window to a minimized first tab. In this implementation, when the electronic device receives a third touch operation to call the second application, the electronic device can automatically minimize the first floating window, thereby preventing the first floating window from obscuring the interface of the second application, ensuring the normal display of the second application, improving the intelligence of the floating window interaction, and enhancing the user's interactive experience.

[0016] In one possible implementation of the first aspect of this application, after switching the first floating window to the first tab, the method further includes: the electronic device receiving a third touch operation from the user on the first application, the third touch operation triggering the electronic device to call the second application; the electronic device responding to the third touch operation displaying a second floating window, the second floating window displaying the interface of the second application. In this implementation, when the electronic device receives a third touch operation to call the second application, the electronic device can automatically display the second application in the second floating window, adding a new way to interact with the floating window, thereby enabling the user to interact with the second application through the second floating window and improving the interactive experience of the floating window.

[0017] Secondly, embodiments of this application provide an electronic device, which includes a memory and one or more processors. The memory stores one or more computer programs, each including instructions that, when executed by the processor, cause the electronic device to perform the methods described in the first aspect and any of its possible implementations.

[0018] Thirdly, this application provides an electronic device including a memory and one or more processors. The memory stores one or more computer programs, each including instructions. When executed by the processor, the electronic device performs the following steps: the electronic device displays a first interface and a first floating window on the first interface, the first floating window displaying an interface of a first application; the electronic device receives a first touch operation from a user on the first floating window, the first touch operation triggering the electronic device to minimize the first floating window; in response to the first touch operation, the electronic device switches the first floating window to a first tab, the first tab displaying instructions for the first application.

[0019] In one possible implementation of the third aspect of this application, the instruction information of the first application includes dynamic information and / or functional controls of the first application.

[0020] In one possible implementation of the third aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: the electronic device, in response to the first touch operation, displays dynamic information of the first application in the first tab; or the electronic device, in response to the first touch operation, displays the function controls of the first application in the first tab.

[0021] In one possible implementation of the third aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: in response to the first touch operation, the electronic device displays dynamic information of the first application and functional controls of the first application in the first tab.

[0022] In one possible implementation of the third aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: in response to a first touch operation, the electronic device displays dynamic information of a first application in a first tab; the electronic device receives a preset operation from the user on the first tab displaying dynamic information of the first application; and in response to the preset operation, the electronic device switches the dynamic information in the first tab to the function controls of the first application.

[0023] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: if the electronic device does not receive user operation on the function control within a preset time period, the electronic device switches the function control in the first tab back to the dynamic information of the first application.

[0024] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: in response to a first touch operation, the electronic device switches the first floating window to one or more first tabs; wherein each first tab includes file information of a file opened in a first application.

[0025] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: the electronic device receives a second touch operation from a user on a first tab, the second touch operation being used to trigger the electronic device to maximize the display of the first tab; in response to the second touch operation, the electronic device switches the first tab to a first floating window.

[0026] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: the electronic device receives a third touch operation from the user on the first application, the third touch operation being used to trigger the electronic device to call the second application; in response to the third touch operation, the electronic device displays the interface of the first application and the interface of the second application in a split-screen manner.

[0027] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: the electronic device receives a third touch operation from the user on a first application, the third touch operation being used to trigger the electronic device to call a second application; in response to the third touch operation, the electronic device switches the first floating window to a minimized first tab.

[0028] In one possible implementation of the first aspect of this application, when the instruction is executed by the processor, the electronic device performs the following steps: the electronic device receives a third touch operation from the user on the first application, the third touch operation being used to trigger the electronic device to call the second application; in response to the third touch operation, the electronic device displays a second floating window, the second floating window displaying the interface of the second application.

[0029] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible implementation thereof.

[0030] Fifthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method described in the first aspect and any possible implementation.

[0031] It is understood that the beneficial effects achieved by the electronic devices described in the second aspect, the third aspect, and any possible embodiments thereof, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can be referred to the beneficial effects in the first aspect and any possible design, which will not be repeated here. Attached Figure Description

[0032] Figure 1A This is a schematic diagram of the interface of a floating window in the prior art;

[0033] Figure 1B This is a schematic diagram of another type of floating window interface in the prior art;

[0034] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0035] Figure 3 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0036] Figure 4 This is a schematic flowchart of a floating window display method provided in an embodiment of this application;

[0037] Figure 5AA schematic diagram illustrating an application scenario of a floating window display method provided in this application embodiment;

[0038] Figure 5B This application provides an illustration of a floating window display method. Figure 2 ;

[0039] Figure 6 This application provides an illustration of a floating window display method. Figure 3 ;

[0040] Figure 7 This application provides an illustration of a floating window display method. Figure 4 ;

[0041] Figure 8 This is a schematic diagram of an application scenario for a floating window display method provided in an embodiment of this application;

[0042] Figure 9 A schematic diagram of the tab interface in a floating window display method provided in an embodiment of this application;

[0043] Figure 10 This application provides an illustration of a floating window display method. Figure 6 ;

[0044] Figure 11 This application provides an illustration of a floating window display method. Figure 7 ;

[0045] Figure 12 This application provides an illustration of a floating window display method. Figure 8 ;

[0046] Figure 13A This application provides an illustration of a floating window display method. Figure 9 ;

[0047] Figure 13B This application provides an illustration of a floating window display method. Figure 10 ;

[0048] Figure 14 This application provides an illustration of a floating window display method. Figure 10 one;

[0049] Figure 15 This application provides an illustration of a floating window display method. Figure 10 two. Detailed Implementation

[0050] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0051] A floating window is a movable window that floats on top of other applications, displaying the interface of any application on the electronic device. Electronic devices (such as mobile phones and tablets) can use floating windows to provide a multitasking experience. Figure 1A As shown, a floating window 102 can be displayed on the display interface 101 of the electronic device, and the floating window 102 can also display the interface of an application. In the prior art, the floating window also includes multiple controls, such as a maximize control 103, a minimize control 104, and a close control 105, which provide users with the functions of maximizing, minimizing, and closing the floating window, respectively. When an application (such as a ride-hailing application) is displayed in the floating window 102, if the user does not need to pay attention to the application temporarily, they can click the control 104 to minimize the floating window 102. The electronic device can minimize the floating window 102 in response to the user's operation on the control 104. Figure 1B As shown, the electronic device can display a minimized floating window 106. This floating window 106 is the minimized version of the floating window 102. The icon of the aforementioned ride-hailing application can be displayed in this floating window 106.

[0052] After the electronic device displays the minimized floating window (106), it can run the ride-hailing app in the background. When the user needs to check whether a ride has been hailed and the vehicle information within the app's interface, they must reopen (maximize) the floating window to view the app's information. This interaction method is cumbersome and provides a poor user experience.

[0053] Based on this, embodiments of this application provide a floating window display method, which can be applied to electronic devices including a display screen. The electronic device can display the interface of an application (such as a first application) in the floating window. In response to a user's preset touch operation (such as a first touch operation) in the floating window, the electronic device can switch the floating window to a tab and display the instruction information of the first application in the tab.

[0054] Using this solution, after the electronic device displays the first application in a floating window, it can respond to user touch operations on the floating window and minimize it via tabs, allowing other applications to be displayed normally without affecting user operation of other applications. Simultaneously, the electronic device displays the first application's status information in the first tab, enabling users to understand the application's operation status without opening the floating window, providing a new way to interact with floating windows and improving the user experience. Furthermore, users can view the first application's status through tabs while using other applications, resulting in higher interaction efficiency; it also avoids repeatedly opening and minimizing the floating window, making the operation simpler.

[0055] For example, the electronic device in this application embodiment can be a portable computer (such as a mobile phone), tablet computer, laptop computer, personal computer (PC), wearable electronic device (such as a smartwatch), augmented reality (AR) / virtual reality (VR) device, in-vehicle computer, smart home device, etc. This embodiment does not impose any special restrictions on the specific form of the electronic device.

[0056] like Figure 2 As shown, the above-mentioned electronic device includes, Figure 3 The hardware structure shown. Figure 3 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. Figure 3 As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0057] The aforementioned sensor module 180 may include sensors such as a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M.

[0058] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0059] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0060] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0061] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0062] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0063] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to electronic devices through the power management module 141.

[0064] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0065] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0066] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.

[0067] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0068] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), etc.

[0069] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0070] The display screen 194 is used to display images, videos, etc. The display screen 194 may be a touch screen that includes a display panel and a touch panel.

[0071] Electronic device 100 can implement shooting functions through an ISP, camera 193, video codec, GPU, display 194, and application processor. The ISP is used to process the data fed back by the camera 193. Electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0072] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0073] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. For example, in this embodiment, processor 110 can implement the above-described floating window display method by executing the instructions stored in internal memory 121.

[0074] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0075] Button 190 can be a mechanical button or a touch button. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light. SIM card interface 195 is used to connect a SIM card.

[0076] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to illustrate the software structure of an electronic device (e.g., a tablet computer).

[0077] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, an Android runtime and system libraries, a hardware abstraction layer (HAL), and a kernel layer. It should be noted that this application uses the Android system as an example; however, the solution can also be implemented in other operating systems (such as HarmonyOS, iOS, etc.) as long as the functions implemented by each module are similar to those in the embodiments of this application.

[0078] The application layer can include a series of application packages.

[0079] like Figure 3 As shown, the application package can include applications such as floating windows, split screens, gallery, email, music, SMS, maps, and video conferencing applications. Of course, the application layer can also include other application packages, such as video, Bluetooth, calendar, shopping applications, and chat applications; this application does not limit this.

[0080] A floating window refers to a window that floats on the surface of other applications, displaying an application within that window, thereby enabling multitasking on electronic devices.

[0081] Split-screen refers to an electronic device dividing its display screen into multiple areas, each showing the interface of one application. At the same time, the device can display multiple application interfaces simultaneously. Split-screen also enables multitasking.

[0082] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, it may include an activity manager, window manager, view system, resource manager, notification manager, audio service (Camera Service), etc., but this application embodiment does not impose any limitations on these.

[0083] The system library can include multiple functional modules. For example: surface manager, media libraries, OpenGL ES, SGL, etc.

[0084] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0085] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0086] OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0087] SGL is a 2D graphics engine.

[0088] The Android Runtime comprises the core libraries and the virtual machine. The Android Runtime is responsible for scheduling and managing the Android system. The core libraries consist of two parts: one part contains the functionalities that Java calls, and the other part contains the core Android libraries. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0089] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, sensor drivers, etc., but this application does not limit this.

[0090] The hardware layer can include displays, sensors, cameras, microphones / speakers, etc.

[0091] The sensors can include touch sensors, fingerprint sensors, pressure sensors, gyroscope sensors, temperature sensors, and so on.

[0092] The floating window display method provided in this application is described in detail below with reference to the accompanying drawings. The above-described electronic device uses a tablet computer as an example. Figure 4 As shown, the floating window display method may include steps S41 to S43.

[0093] Step S41: The tablet displays a first interface and a first floating window on the first interface, in which the interface of the first application is displayed.

[0094] The first interface is the interface displayed on the tablet computer's screen. This first interface can be the interface of a specific application or the tablet computer's desktop. A floating window, or first floating window, can be displayed above this first interface. This first floating window can serve as the display window for a first application, showing the interface of that application. The first application can be any application on the tablet computer, such as a music app, video app, gallery app, browser app, etc. This embodiment does not impose any special limitations on it. It is understood that the tablet computer can display multiple first floating windows on the first interface, and each first floating window can display the interface of a first application.

[0095] When a user is using a tablet, the tablet can receive user input and display corresponding content in response. When the tablet receives an operation that triggers the display of a first floating window, it can display the first floating window. For example, when the tablet is displaying the interface of a first application (e.g., a music app), and receives a preset touch operation for that music app's interface, it can display the first floating window and switch the music app's interface to be displayed in that first floating window. The aforementioned preset touch operation is used to trigger the tablet to display the first floating window. For example, the preset operation could be clicking a control on the music app's interface. For instance, when an operation to click a specific control on the music app's interface is received, the tablet can display the first floating window. Alternatively, the first touch operation could also be a specific touch gesture for the music app, such as a double-tap gesture or a two-finger zoom gesture for the music app's interface; when such a touch gesture is received, the tablet can display the first floating window.

[0096] In some implementations, the electronic device may include a floating window application. User actions within the floating window application's interface can also trigger the tablet to display a first floating window. Specifically, the tablet can display the floating window application's interface, which may include icons of multiple applications that can be displayed within the floating window. The tablet can receive a user's selection of a first application's icon within the floating window application's interface. In response to this selection, the electronic device can display the first floating window and show the interface of the selected first application within it.

[0097] For example, such as Figure 5A As shown, the tablet computer currently displays desktop 500. Depending on the user's actions, the tablet computer can open or close different content on desktop 500. For example, when the tablet computer receives a user's click on "Application 1" on desktop 500, it can display the interface of "Application 1". When the tablet computer receives a touch operation 501 on desktop 500 that triggers the display of a floating window application, the tablet computer can display the interface of the floating window application itself. For example, the touch operation 501 can be a finger sliding inward from the right edge of desktop 500 and pausing. It is understood that the touch operation 501 can also be other operations, such as sliding inward from the left edge of desktop 500 and pausing, long-pressing on an empty area of ​​desktop 500, or pressing hard on an empty area of ​​desktop 500, etc., and this embodiment is not limited to these.

[0098] When the tablet receives a touch operation 501, the tablet can display a floating window 502, such as... Figure 5BAs shown. The floating window 502 is the interface of the floating window application itself, displaying icons of applications that can use the floating window. Applications using the floating window need to be authorized first. Users can add applications that can use the floating window on their tablet, such as FF Music APP, video APP, gallery APP, browser APP, etc. This implementation does not impose any special limitations on this. After the tablet grants permissions to the user-added applications, these applications can be allowed to be displayed in the floating window. When the tablet launches the floating window application, the tablet can obtain the applications that have already been granted permissions, and thus display the icons of these applications in the floating window 502.

[0099] The application to be displayed as a floating window (i.e., the first application) can be selected in the floating window 502. When the tablet receives a touch operation to select the application, the tablet can display the first floating window, showing the interface of the selected first application. For example, when the tablet receives a click operation to tap the icon of the "Mail" app in the floating window 502, the tablet can display a first floating window, showing the interface of the Mail app. Exemplarily, the touch operation to select the application can be a click operation by the user in the floating window 502, such as tapping the "Mail" app with a finger; it can also be a drag operation by the user in the floating window 502, such as dragging the "Music" app out of the floating window 502 with a finger; this embodiment does not impose any special limitations on this.

[0100] After the tablet receives the user's selection of the first application, it can display a first floating window. This first floating window serves as the display window for the first application, showing its interface. The user can then interact with the first application from within this floating window. For example, if the first application is a music app... Figure 6 As shown, the tablet computer can display the interface of the music app in the first floating window 601. Users can interact with the music app through the first floating window 601; for example, users can control the music app to play songs, switch songs, etc. Simultaneously, users can also interact with other applications (such as application 1) below the first floating window 601. When the user operates within the area of ​​the first floating window 601, interaction with the music app within the first floating window 601 is achieved; when the user operates outside the area of ​​the first floating window 601, interaction with other applications (such as application 1) is achieved, thus enabling multitasking on the tablet computer.

[0101] Step S42: The tablet receives a first touch operation from the user in the first floating window, which triggers the tablet to minimize the display of the first floating window.

[0102] When the tablet displays the first floating window, it always appears on top of other applications, potentially obscuring their display. When the user no longer needs the first application within the floating window, they can minimize it using a first touch operation. For example, such as... Figure 7 As shown, touch operation 701 is the operation of sliding a finger upward from the bottom of the floating window 701 (i.e., the first floating window). The first touch operation may include touch operation 701, and the tablet computer can confirm receipt of the first touch operation when it detects the touch operation 701. In addition, the first touch operation may also be the operation of the user dragging the bottom or top of the first floating window towards the edge of the display screen, or other operations, such as the user clicking a minimize button in the first floating window, etc. This embodiment does not make any special limitations on this.

[0103] It should be noted that, in this embodiment, minimizing the first floating window refers to switching the first floating window to a tab. By replacing the first floating window with this tab, the tablet no longer displays the first floating window, thus preventing the first floating window from obscuring the display of other applications. The tab after the first floating window is minimized can also be maximized again, and after the tab is maximized, it reverts to the first floating window.

[0104] Step S43: In response to the first touch operation, the tablet computer switches the first floating window to a first tab, which displays the indication information of the first application.

[0105] When the tablet receives a first touch operation (such as touch operation 701), it minimizes the first floating window (such as the first floating window 601). The minimized first floating window is displayed as a tab, namely the first tab. This first tab can be displayed at the top of the tablet's display screen in the taskbar position to prevent it from being obscured by the application's display interface. Alternatively, the first tab can also be displayed on the left or right side of the display screen, or other positions; this embodiment is not limited to these.

[0106] In an exemplary implementation, after a tablet computer opens a first floating window to display a first application, it can also open another first floating window to display another application. (Refer to the reference...) Figure 5A and Figure 5BIn this scenario, the tablet receives a touch operation 501 and displays a floating window 502 in response. When the tablet receives a user's selection of a music app within the floating window 502, it can display a first floating window showing the music app's interface. Then, when the tablet receives another touch operation 501, it displays the floating window 502 again. If it receives a selection of an email app within the floating window 502, the tablet can display another first floating window showing the email app's interface. The tablet can simultaneously display the first floating windows for both the music app and the email app, allowing users to use multiple applications concurrently via these floating windows.

[0107] Understandably, if the tablet currently displays multiple floating windows, the aforementioned first touch operation can switch all of these floating windows to their corresponding first tabs. Each first tab displays information for a specific application. For example, if the tablet currently displays floating windows A, B, and C, with floating window A displaying the interface of application 1, floating window B displaying the interface of application 2, and floating window C displaying the interface of application 3, upon receiving a first touch operation triggering the minimization of floating window A, the tablet can switch floating window A to first tab a, displaying information for application 1 in first tab a. Upon receiving a first touch operation triggering the minimization of floating window B, the tablet can switch floating window B to first tab b, displaying information for application 2 in first tab b. The tablet can then merge first tab a and second tab b and display them in the top taskbar.

[0108] For example, if a tablet already has a first floating window open, such as the first floating window of a music app, and the user needs to open another first floating window to use another first application (such as an email app), the tablet can minimize the first floating window of the music app while displaying the first floating window of the email app. The minimized first tab will then display the music app's instructions, making it easier for the user to navigate the email app's interface. If the user doesn't need to use the email app temporarily, they can minimize the email app's first floating window again and switch back to the music app's first floating window from the previously minimized first tab.

[0109] The minimized first tab can display information indicating the first application in the first floating window. This information can include real-time dynamic information about the first application and functional controls within it. The dynamic information can be information about currently open files in the first application, such as the name of the currently playing song, artist name, and playback progress bar in a music app; or it can be information about the application's progress, such as the name of a file currently downloading, download progress, remaining download time, and network speed, or, for example, hailing a ride, waiting for a vehicle to arrive at the pick-up point, getting in the ride, and getting off at the destination in a ride-hailing app. The functional controls are user-operable controls provided by the first application, such as the "pause" and "switch" controls in a music app, the "compose email" and "inbox" controls in an email app, and the "scan" control in a communication app, etc.

[0110] In one exemplary embodiment, the tablet computer can display dynamic information of the first application or functional controls of the first application in the first tab. Specifically, the tablet computer can obtain specific dynamic information of the first application in the first floating window, such as song identification information (e.g., song title, artist, etc.), and display it in the minimized first tab. Alternatively, the first tab can be divided into multiple parts, and the tablet computer can obtain various dynamic information of the first application, such as song identification information, playback progress, download progress, etc., and display them in each part respectively. In this embodiment, when the first floating window is minimized, the first application displayed in the first floating window is also minimized simultaneously. The tablet computer can display the dynamic information of the first application in the minimized first tab, so that the user can understand the running status of the first application at any time without opening the first application, which simplifies the user's operation and improves the user's interactive experience.

[0111] For example, let's take a music app as the first application in the first floating window. When the user minimizes the first floating window, the first tab after minimization can display dynamic information about the music app. Figure 8 As shown, tab 801 is the first tab after the music app is minimized. This tab 801 displays the current dynamic information of the music app. For example, if the music app is playing a song, tab 801 can display the song title "Go Beyond" and the artist "Sonna Rele". When the song being played changes, tab 801 displays the title and artist information of the next song.

[0112] More specifically, the first tab of a music app can display various dynamic information about the app, such as the lyrics, song title, and artist, displayed dynamically based on the playback progress of the currently playing song. Figure 9 As shown in (a), tab 910 can be the first tab after the music app is minimized. Tab 910 can be divided into two parts. One part is used to display control 9101, which can be used to display the song title, or song title and artist, of the song being played by the music app. The content displayed in control 9101 updates according to the currently playing song; when switching to the next song, control 9101 updates to the song title of the next song. The other part of tab 910 is used to display control 9102, which can be used to display the playback progress of the song being played by the music app. This playback progress can be presented as the corresponding lyrics. The content displayed in control 9102 also updates according to the playback progress of the song; for example, when the next line of the song is played, this part updates to the lyrics of the next line. If a line of lyrics has many characters, it can be scrolled. Understandably, the playback progress displayed in control 9102 can also be presented as the current playback time, such as "1:30", or a complete playback progress bar. The aforementioned dynamic information may also include other information. For example, when a music app is downloading a song, the dynamic information may include the song title, download progress, download speed, etc. This implementation is not limited to this.

[0113] Similarly, when the first tab is used to display the functional controls of the first application, the tablet computer can acquire one or more functional controls of the first application and display them in the first tab after the first application is minimized. For example, the tablet computer can select one or more of the most frequently used functional controls in the first application and display them in the first tab according to their frequency of use. In this embodiment, displaying the functional controls of the first application in the first tab after the floating window is minimized allows users to complete some common operations without opening or maximizing the first application, simplifying the user's operation process and improving the interaction efficiency of the floating window.

[0114] For example, continuing with the example of a music app as the first application opened in the first floating window, when the user minimizes the first floating window, the first tab after minimization can display one or more functional controls of the music app. For example, such as... Figure 9As shown in (b), tab 920 can be the first tab after the music app is minimized. Tab 920 can be divided into multiple sections, each displaying a functional control. One section displays control 9201, which provides the function to pause or play the currently playing song; another section displays control 9202, which provides the function to switch between currently playing songs; and a third section displays control 9203, which provides the function to add the currently playing song to a playlist. Depending on actual needs, tab 920 may also include other functional controls, such as controls for downloading songs or setting song playback modes, etc., but this embodiment is not limited to these.

[0115] In another implementation, the tablet computer can combine the aforementioned dynamic information and functional controls, displaying them together in the minimized first tab of the first application. Specifically, the first tab can be divided into multiple parts, one part for displaying dynamic information and another part for displaying functional controls. Again, taking a music app as the first application as an example, such as... Figure 9 As shown in (c), tab 930 is the first tab after the music app is minimized. Tab 930 includes a status display area 9301 and a function display area 9302. The status display area 9301 displays dynamic information about the music app, while the function display area 9302 displays the app's functional controls. Furthermore, both the status display area 9301 and the function display area 9302 can include multiple controls to display various dynamic information or multiple functional controls. For example, the status display area 9301 can scroll through the lyrics of the currently playing song, and the function display area 9302 can include controls for switching songs and pausing or playing songs.

[0116] Furthermore, when the user minimizes the first floating window, the tablet can first display the dynamic information of the first application in the minimized first tab. When the tablet receives a preset operation in this first tab, it then displays the functional controls in the first tab. After the functional controls have been displayed for a period of time, if the user does not interact with them, the displayed functional controls are then eliminated, and only the dynamic information is displayed. In this way, both displaying dynamic information and displaying functional controls can maximize the use of the display area of ​​the first tab.

[0117] Specifically, the aforementioned preset operation can be the user's finger touching the first tab, or the user's finger clicking the first tab, or other operations on the first tab, such as double-clicking, long-pressing, or hard-pressing. This embodiment does not impose any special restrictions on these operations.

[0118] For example, taking a music app as the first application, refer to... Figure 9 When the first floating window containing the music app is minimized, the tablet can collapse the first floating window and replace it with the first tab, displaying the music app's dynamic information in the first tab, as shown in tab 910. When the tablet receives a user's touch on tab 910, it can switch tab 910 to display the music app's function controls, as shown in tab 920. After tab 920 has been displayed for a preset time, if the tablet does not receive any user interaction with its function controls, it can eliminate tab 920 and switch back to tab 910. Alternatively, when the first floating window containing the music app is minimized to the first tab, the tablet first displays the music app's dynamic information in the first tab, as shown in tab 910. When the tablet receives a user's touch on the first tab, it then adds the function controls to the first tab, as shown in tab 910. Figure 9 Tab 940 is shown as (d) in the diagram. After a preset duration, if the user does not interact with any of the functional controls on tab 940, the functional controls can be deleted, and only dynamic information will be displayed, thus switching back from tab 940 to tab 910.

[0119] In one exemplary implementation, the first application can be an application that supports multi-file editing. When the tablet displays the first application in a first floating window, multiple files within the first application can be displayed. When the tablet minimizes the first floating window, the current dynamic information of the first application includes information about multiple files. The tablet can switch the first floating window into multiple first tabs, each displaying information about one file. This allows the user to more clearly understand the operation of the first application and facilitates individual operations on each file.

[0120] Specifically, the first application can contain multiple files. For example, when the first application is a gallery app, it can include multiple images; when the first application is an office app, it can include multiple documents, and so on. When the first application supports opening multiple files simultaneously, the tablet can display the multiple files of the first application in the first floating window. For example, when an office app is displayed in the first floating window, the user can open multiple documents in that office app, such as Document 1, Document 2, Document 3, etc. In this case, the dynamic information of the first application can include information about multiple files. When the tablet minimizes the first floating window of the first application, it can be minimized into multiple first tabs, each displaying information about one file.

[0121] For example, taking an office app as the first application in the first floating window, when a user opens Document 1, Document 2, and Document 3 in the first floating window and then minimizes it, the tablet can obtain information about the three currently open documents in the office app, and thus display three first tabs showing the information of these three documents (such as the document names). Figure 10 As shown, when the tablet detects that the user has minimized the first floating window of the office app, the tablet can switch the first floating window to tabs 1001, 1002, and 1003. Tab 1001 displays information about document 1, tab 1002 displays information about document 2, and tab 1003 displays information about document 3. Tabs 1001, 1002, and 1003 together serve as the first tab after the office app is minimized.

[0122] In other embodiments, the dynamic information and functional controls displayed in the first tab can be interactively displayed in other ways. For example, the tablet computer can initially display the dynamic information in the complete first tab. When the user touches the first tab, the first tab is divided into a status display area and a function display area. The dynamic information is displayed in the status display area, and the functional controls are displayed in the function display area. When the functional controls are not operated by the user within a preset time, the function display area is hidden, and the status display area is set in the complete first tab. As another example, the tablet computer can scroll and switch between displaying dynamic information and functional controls in the first tab. That is, the first tab displays dynamic information for a period of time and then switches to displaying functional controls, and then displays dynamic information again after a period of time, cycling between dynamic information and functional controls. These also fall within the scope of this disclosure.

[0123] When the first tab displays the instructions for the first application for a period of time, and the user needs to view the full interface of the first application, the tablet can switch the first tab back to the first floating window, thus returning the first application to a floating window display mode to satisfy the user's need for more operations on the first application. Specifically, when the tablet receives a specific touch operation in the first tab of the first application, the tablet can switch the first tab back to the previous first floating window, thereby displaying the full interactive interface of the first application in the first floating window again, making it easier for the user to use the first application.

[0124] For example, the touch operation of switching the first tab back to the first floating window can be used as a second touch operation, such as... Figure 11As shown, when the first tab is displayed at the top of the tablet's screen, the second touch operation can specifically be the operation 1101 of pulling down the first tab. Alternatively, the second touch operation can also be a click operation. Specifically, the tablet can display an expand control in the tab, such as control 1102, which allows the tablet to provide the user with the function of expanding the first tab. When the tablet detects the user's finger clicking the control 1102, the tablet can confirm the switching of the first tab to a first floating window and display the first application in the first floating window. At this time, the user's finger clicking the control 1102 is the second touch operation. It is understood that the second touch operation can also include other operations, such as double-clicking the tab, etc., and this embodiment is not limited to this.

[0125] When the tablet receives a second touch operation on the aforementioned first tab, it redisplays the first application in the first floating window. Depending on the user's actions, the tablet can open multiple first floating windows, each displaying one first application. When the user minimizes multiple first floating windows, the tablet can display the first tabs corresponding to each of those windows. When multiple first tabs are displayed, the user can operate each tab individually. Continuing with the example of an office app, if the currently open applications are Document 1, Document 2, and Document 3, the tablet can minimize the first floating window to three first tabs. When the tablet receives an operation 1101 on the first tab of Document 1, or clicks on control 1102 within the first tab of Document 1, the tablet can switch that first tab to a first floating window and display Document 1 within it, allowing the user to continue editing Document 1. At this time, Document 2 can remain minimized. When the tablet receives a second touch operation on the first tab corresponding to Document 2 or Document 3, it can redisplay the first floating window based on the second touch operation, thus displaying Document 2 or Document 3.

[0126] When the user no longer needs the first application, the tablet can close the first floating window, simultaneously closing the first application within it. For example, the touch operation to close the first floating window can be a fourth touch operation, such as F... Figure 12As shown, the fourth touch operation can be an operation 1201 where a finger taps the bottom of the first floating window and pulls it down. When the tablet receives this operation 1201, it can confirm that the fourth touch operation has been received, thereby closing the first floating window and stopping the first application from running. Furthermore, the above operation 1201 can also be triggered at the top of the first floating window, i.e., pulling down from the top to the bottom of the first floating window.

[0127] The fourth touch operation described above can also be other operations, such as double-tapping a blank area of ​​the interface in the first floating window, long-pressing a blank area, or clicking. For example, the first floating window may also include a close control, and the fourth touch operation could be clicking this close control. (Continue to refer to...) Figure 12 A close control, which can be control 1202, can be displayed in the first floating window to provide the function of closing the first floating window. The tablet computer can display control 1202 at the top right position of the first floating window. When the tablet computer receives a user's finger tapping control 1202, the tablet computer can close the first floating window and the first application in the first floating window. In addition, control 1202 can also be displayed at the bottom right, bottom left, or other positions in the first floating window. This embodiment does not make any special limitation on the display position of control 1202.

[0128] In the above embodiments, interacting with the first application through the first floating window is one multitasking mode on the tablet computer, and it can also be switched with other task operation modes on the tablet computer. Split-screen display is another multitasking mode on the tablet computer, and it can be switched with the above floating window operation mode. When the tablet computer receives a user's touch operation on the first application (i.e., a third touch operation), in response to the third touch operation, the tablet computer can switch the floating window display to split-screen display. The third touch operation is used to trigger the tablet computer to call the application corresponding to the first application, i.e., the second application. Applications on the tablet computer can call each other for data transmission and sharing. For example, when the first application is a gallery app, the gallery app can share data with an image editing application on the tablet computer (such as a Photoshop app). The Photoshop app can edit images in the gallery app, and the gallery app can read images edited by the Photoshop app. The gallery app can also share data with an instant messaging application on the tablet computer (such as a text messaging app), and the text messaging app can send images from the gallery app to friends.

[0129] Specifically, the third touch operation can include sharing a file (i.e., the first file) from the first application to the second application, such as a user dragging and dropping the first file from the first application to the second application. When the tablet receives a notification that the first file from the first application in the first floating window has been dragged and dropped into the second application, the tablet can switch its current floating window operation mode to split-screen operation mode, displaying both the first application and the second application in a split-screen format. In this embodiment, the tablet can switch from floating window operation mode to split-screen operation mode, enriching the interaction methods, breaking down the limitations between different interaction methods, and thus further improving interaction efficiency and user experience.

[0130] When the tablet receives a third touch operation, the second application may be in an inactive state. For example, let's take the Gallery app as the first application displayed in the first floating window. Figure 13A As shown, the tablet can display a first floating window 1301 as the display window for a gallery app, which includes multiple images. When a user needs to share an image 1302 from the gallery app via a second application 1303 (such as a messaging app), the user selects the image 1302 and drags it from the first floating window 1301 to the icon of the second application 1303 outside the first floating window 1301, thereby launching the second application 1303 and opening the image 1302 in the messaging app. When the tablet receives the user's operation of dragging the image 1302 from the first floating window 1301 to the icon of the second application 1303 outside the first floating window 1301, the tablet can switch the first floating window 1301 to a split-screen display of the gallery app and the messaging app. At this time, the tablet's display screen is divided into two windows, as shown below. Figure 13B As shown, one window 1304 displays the SMS app, and the other window 1305 displays the Gallery app. Users can operate on both applications simultaneously. In window 1304, a user can use the SMS app to send a picture 1302 previously selected from the Gallery app to a friend. Users can also select pictures from window 1305 and drag them into window 1304 to send them via the SMS app.

[0131] In this embodiment, the tablet computer can flexibly switch between floating window and split-screen display modes according to the user's operation. This not only enriches the interaction methods, allowing users to operate applications through multiple interaction methods, but also makes data sharing between different applications simpler and more convenient. Users do not need to repeatedly open and close applications, resulting in higher operating efficiency.

[0132] Understandably, when the tablet receives a third touch operation, the second application can also be already running. That is, the first application running within the first floating window on the tablet can interact with applications not running on the tablet's desktop; the first application within the first floating window can also interact with applications already running on the tablet. For example, when the tablet launches the second application 1303, it can display the interactive interface of the second application 1303 normally, with the first floating window displayed above the interactive interface of the second application 1303. Normal display refers to full-screen display on the tablet. When the tablet receives a first file dragged outside the first floating window into the interactive interface of the second application 1303, the tablet can switch the first floating window to a split-screen display of the second application 1303 and the target application. Alternatively, when the tablet receives a first file dragged outside the first floating window into the interactive interface of the second application 1303, it can minimize the first floating window, thereby exposing the normally displayed interactive interface of the second application 1303, allowing the user to browse or edit the first file within the second application 1303.

[0133] Furthermore, the tablet can display another floating window as a second floating window, in which the second application 1303 is displayed. For example... Figure 14 As shown, when the tablet already displays a first floating window 1301, upon receiving an operation to trigger the display of the floating window, the tablet can display a second floating window 1401. The second floating window 1401 can display the interface of the second application 1303 (i.e., the SMS app). In this case, the tablet can still switch from floating window to split-screen display. Specifically, when the tablet receives a request from the user to drag a file from the first floating window 1301 to the second floating window 1401, the tablet can switch from the currently displayed mode of the first floating window 1301 and the second floating window 1401 to a mode that displays the applications in the first floating window 1301 and the second floating window 1401 in a split-screen format, i.e., displaying the Gallery app and the SMS app in a split-screen format.

[0134] In an exemplary implementation, when the first application in the first floating window interacts with the second application, the tablet computer can automatically display the second application in another floating window (i.e., the second floating window). For example, continue to refer to... Figure 13A as well as Figure 14 When the first application (i.e., the Gallery APP) in the first floating window 1301 interacts with the second application 1303, the tablet computer can automatically display the second floating window 1401 and display the application 1303 in the second floating window 1401, which can simplify the user's operation and improve the interaction efficiency.

[0135] Furthermore, when the first application in the first floating window interacts with the second application, the tablet can automatically display the second floating window, showing the interface of the second application. Simultaneously, the tablet can also minimize the first floating window of the first application, switching it to display the corresponding first tab. This ensures only one first floating window is displayed at a time, avoiding accidental operation due to too many floating windows on the screen, while also simplifying the content displayed and improving the user's visual experience.

[0136] For example, combining Figure 14 as well as Figure 15 When the first application (i.e., the Gallery app) in the first floating window 1301 interacts with the second application (i.e., the Message app), the tablet can minimize the previously displayed first floating window 1301 of the Gallery app while displaying the second floating window 1401 of the Message app. The first floating window 1301 can then be switched to the corresponding first tab, such as tab 1501. The tablet can then display the Gallery app's instructions in tab 1501 and the Message app's interactive interface in the second floating window 1401.

[0137] It should be understood that the above embodiment is based on the implementation of the floating window display method on a tablet computer, but the floating window display method provided in this embodiment can also be applied to other electronic devices such as mobile phones, personal computers, and wearable electronic devices. This application does not impose any restrictions on this.

[0138] This application also provides an electronic device, which can be any of the electronic devices (such as the tablet computer described above) used to execute a floating window display method in the above embodiments. The electronic device may include: a display screen (such as a touchscreen), a camera, a memory, and one or more processors. The display screen, camera, memory, and processors are coupled. The memory stores a computer program, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions performed by the tablet computer in the above method embodiments, or...

[0139] step.

[0140] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform various functions or steps performed by the tablet computer in the above method embodiments.

[0141] This application also provides a computer program product that, when run on a computer, causes the computer to perform various functions or steps performed by the tablet computer in the above method embodiments.

[0142] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0143] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0144] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0145] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. An information display method, characterized in that, include: The electronic device displays a first floating window, which shows the interface of a first application. The electronic device receives a first operation from the user. In response to the first operation, the electronic device no longer displays the interface of the first application. Instead, the electronic device switches the first floating window to a first tab, which displays dynamic information of the first application. The electronic device displays a second floating window, which displays the interface of the second application. The electronic device receives a second operation from the user. In response to the second operation, the electronic device no longer displays the interface of the second application, and the electronic device simultaneously displays the first tab and the second tab, with the second tab displaying dynamic information of the second application. The electronic device receives a third operation from the user on the first tab, and in response to the third operation, the electronic device adds the function controls of the first application to the first tab.

2. The method according to claim 1, characterized in that, The first tab is the display window after the first floating window is minimized; The second tab is the display window after the second floating window is minimized.

3. The method according to claim 1, characterized in that, The electronic device controls the functions of the first application. The addition of items displayed in the first tab includes: In response to the third operation, the first tab is enlarged. The functional controls of the first application are displayed in the enlarged first tab.

4. The method according to claim 3, characterized in that, The enlarged status display area of ​​the first tab displays the dynamic information of the first application, and the enlarged function display area of ​​the first tab displays the function controls of the first application.

5. The method according to claim 4, characterized in that, The method further includes: If the function controls of the first application do not receive user operation within a preset time period, the electronic device hides the function display area, and the first tab only includes the status display area.

6. The method according to claim 1, characterized in that, The first tab and / or the second tab includes multiple sections, with the dynamic information of the first application and / or the functional controls of the first application displayed in the multiple sections of the first tab, and the dynamic information of the second application and / or the functional controls of the second application displayed in the multiple sections of the second tab.

7. The method according to any one of claims 1-6, characterized in that, The electronic device receives user input. The fourth operation of the first tab is that the electronic device no longer displays the first tab, the electronic device retains the display of the second tab, and the electronic device maximizes the display of the interface of the first application.

8. The method according to claim 1, characterized in that, The first operation is the user accessing the first application. The user interface uses a swipe-up gesture from the bottom.

9. The method according to claim 1, characterized in that, The third operation is a long press, hard press, click, or double-click operation on the first tab.

10. The method according to any one of claims 1-6, characterized in that, The first tab and / or the second tab are displayed in the taskbar at the top of the screen of the electronic device, and the battery level indicator of the electronic device is displayed in the taskbar at the top of the screen.

11. The method according to any one of claims 1-6, characterized in that, The functional controls are operation controls for users to operate the corresponding applications; The operation controls include at least one of the following: a toggle control, a pause control, a play control, a write email control, an inbox control, and a scan control.

12. The method according to any one of claims 1-6, characterized in that, The dynamic information includes the current file information and / or running progress information of the corresponding application.

13. An electronic device, characterized in that, include: One or more processors; Memory; The memory stores one or more computer programs, the one or more computer programs including An instruction, when executed by the electronic device, causes the electronic device to perform an information display method as described in any one of claims 1-12.

14. A computer-readable storage medium storing instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform an information display method as described in any one of claims 1-12.