WO2024109573A1 - 悬浮窗显示的方法和电子设备 - Google Patents

悬浮窗显示的方法和电子设备 Download PDF

Info

Publication number
WO2024109573A1
WO2024109573A1 PCT/CN2023/131183 CN2023131183W WO2024109573A1 WO 2024109573 A1 WO2024109573 A1 WO 2024109573A1 CN 2023131183 W CN2023131183 W CN 2023131183W WO 2024109573 A1 WO2024109573 A1 WO 2024109573A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
floating window
list
display
Prior art date
Application number
PCT/CN2023/131183
Other languages
English (en)
French (fr)
Inventor
王敬磊
何有源
宋春龙
黄文杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024109573A1 publication Critical patent/WO2024109573A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present application relate to the field of terminal display, and more specifically, to a floating window display method and electronic device.
  • the present application provides a method for floating window display and an electronic device.
  • a first list is displayed on a display screen of the electronic device.
  • the first list displays all application icons in a recent task list of the electronic device that support floating window display.
  • a user can view which applications support floating window display through the first list, and can also use the first list to quickly switch applications from the recent task list to the floating window, thereby simplifying the operation steps and improving the user experience.
  • a method for floating window display comprising: in response to a first operation of a user, displaying a first list on a display screen of the electronic device, the first list comprising P application icons, the P application icons corresponding one-to-one to P applications, the P applications being all applications in a recent task list of the electronic device that support floating window display, wherein P is a positive integer greater than or equal to 1; in response to a second operation of the user, displaying a first floating window corresponding to the first application on the display screen of the electronic device, the second operation being an operation for the first application.
  • the first application icon corresponds to the first application.
  • the user's first operation may be an operation of sliding a finger to the left on the screen of the electronic device, or an operation of sliding a finger to the right on the screen of the electronic device, or a user operation predetermined based on the user's input, or an operation of the user issuing a voice command, which is not limited in this application.
  • the user's second operation may be an operation of clicking on the first application icon in the first list, or an operation of the user issuing a voice command, which is not limited in the present application.
  • the display order of multiple application icons is not limited, and can be determined based on user input or automatically determined by the system. This application does not limit this.
  • the application icons displayed in the first list are not necessarily all the application icons in the recent task list of the electronic device that support floating window display. The user can view these application icons by swiping up or pulling down on the first list.
  • the first list when a floating window is displayed on the display screen of an electronic device, the first list remains displayed on the display screen simultaneously with the floating window, and the user can close or minimize the first list, or, when the first list is not used for a period of time, the first list automatically becomes minimized.
  • the first list may be a floating window list.
  • the first list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first list.
  • the user can also quickly switch the application from the recent task list to the floating window by clicking the application icon in the first list, which simplifies the operation steps, enhances the convenience of using the floating window, and can significantly improve the user experience.
  • the first application icon is removed from the first list.
  • the application icon corresponding to the application when an application is displayed in the form of a floating window, the application icon corresponding to the application will not be displayed in the first list. This allows the first list to be updated in a timely manner, and the user can intuitively see which other applications in the recent task list support floating window display, thereby improving the user experience.
  • a first list is displayed on the screen of an electronic device, including: in response to the first operation of the user, a first icon is displayed on the screen of the electronic device; in response to the user clicking on the first icon, the first list is displayed on the screen of the electronic device.
  • the first icon may be a floating ball, or may be any icon with a floating window logo, which is not limited in the present application.
  • the first icon represents the unexpanded state (eg minimized state) of the first list.
  • the display of the first icon can be triggered first.
  • the display of the first icon will not affect the task being displayed on the display screen of the electronic device, and can prevent the direct display of the first list due to accidental touch by the user, thereby avoiding unnecessary impact on the user's usage process.
  • the method also includes: in response to a user clicking on a second application icon in the first list, switching a first floating window displayed on the display screen of the electronic device to a second floating window corresponding to a second application, and the second application icon corresponds to the second application.
  • the second floating window has the same position, size and scaling ratio as the first floating window.
  • the first list displays all application icons in the recent task list of the electronic device that support floating window display.
  • the user can view which applications support floating window display through the first list.
  • the user can also quickly switch between floating windows corresponding to different applications by clicking on the application icons in the first list. This simplifies the operation steps, is suitable for scenarios where users frequently switch applications, enhances the convenience of using floating windows, and can significantly improve the user experience.
  • the second application icon is removed from the first list, and the first application icon is added to the first list.
  • the application icon corresponding to the application when an application is displayed in a floating window, the application icon corresponding to the application will not be displayed in the first list.
  • the application icon corresponding to the application is added to the first list. In this way, the first list can be updated in a timely manner, and the user can intuitively see which other applications in the recent task list support floating window display, thereby improving the user experience.
  • the method also includes: in response to a user clicking on a second application icon in the first list, displaying a first pop-up window on the display screen of the electronic device, the first pop-up window being used to ask the user whether to retain display of the first floating window, the first pop-up window being associated with a first control; in response to a user clicking on the first control, simultaneously displaying the first floating window and a second floating window corresponding to the second application on the display screen of the electronic device, the second application icon corresponding to the second application.
  • the second application icon is removed from the first list.
  • the first pop-up window is also associated with a second control, and the second control is used for the user to confirm that the display of the first floating window is not retained. That is, in response to the user clicking the second control, the first floating window displayed on the display screen of the electronic device is switched to a second floating window corresponding to the second application, and the second application icon corresponds to the second application.
  • the electronic device is any one of a tablet computer, a foldable electronic device, and a laptop computer.
  • the user when switching between floating windows corresponding to different applications, the user can choose whether to keep the originally displayed floating window, which can further enhance the user's usage experience.
  • a first list is displayed on the display screen of the electronic device, and the method also includes: in response to the first operation of the user, determining whether the recent task list of the electronic device is not empty; when it is determined that the recent task list of the electronic device is not empty, obtaining all P applications in the recent task list that support floating window display; adding P application icons corresponding to the P applications to the first list, and displaying the first list on the display screen of the electronic device.
  • the first list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first list, so that the user does not need to enter the recent task list and click the corresponding button to determine whether the current application supports floating window display. This can simplify the user's operation steps and improve the user experience.
  • a floating window display method is provided, the method being applied to an electronic device, wherein a first list and N floating windows are simultaneously displayed on a current display screen of the electronic device, the first list including P application icons corresponding to P applications, the P applications being all applications supporting floating window display in a recent task list of the electronic device, the method comprising: in response to a user clicking an application icon in the first list, The operation of the second application icon is to determine whether N is greater than or equal to M, where M is the number of floating windows allowed to be displayed simultaneously on the display screen of the electronic device, and M, N, and P are all positive integers greater than or equal to 1; when it is determined that N is greater than or equal to M, the first floating window displayed on the display screen of the electronic device is switched to a second floating window corresponding to the second application, the N floating windows include the first floating window, and the second application icon corresponds to the second application; or, when it is determined that N is less than M, the second floating window and the N floating windows are displayed simultaneously on the display
  • the value of M may be determined based on user input, automatically by the system, or based on the model of the current electronic device, and this application does not limit this.
  • the first floating window is a floating window with the lowest priority among the N floating windows, or the first floating window is a floating window with the lowest usage frequency among the N floating windows.
  • the electronic device is any one of a tablet computer, a foldable electronic device, and a laptop computer.
  • M is any value of 1, 2, 3, 4, or 5.
  • the first list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first list.
  • the user can also quickly add or switch floating windows by clicking on the application icons in the first list, thereby simplifying the operation steps; and the method supports the simultaneous display of multiple floating windows on the display screen of the electronic device, and can independently set the number of floating windows displayed at the same time. It can be suitable for scenarios where the user handles multiple tasks at the same time, enhances the convenience of using floating windows, and can significantly improve the user experience.
  • the number of floating windows currently allowed to be displayed simultaneously can be determined according to the opening and closing form of the foldable electronic device, which can adapt to the actual needs of the user, thereby further improving the user experience.
  • an electronic device comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the above-mentioned first aspect or any possible implementation of the first aspect, or to implement the above-mentioned second aspect or any possible implementation of the second aspect.
  • a computer-readable storage medium which stores a computer program or instruction.
  • the computer program or instruction When executed, it implements the method in the first aspect or any possible implementation of the first aspect, or implements the method in the second aspect or any possible implementation of the second aspect.
  • a chip in which instructions are stored.
  • the chip executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect.
  • FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG2 is a software structure block diagram of an electronic device provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of an interface of an existing application switching from a recent task to a floating window
  • FIG4 is a schematic diagram of another interface of an existing application switching from a recent task to a floating window
  • FIG5 is a schematic diagram of an interface of a floating window display provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of another interface of a floating window display provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface of another floating window display provided in an embodiment of the present application.
  • FIG8 is a schematic flow chart of a method for displaying a floating window provided in an embodiment of the present application.
  • FIG9 is a schematic flow chart of another method for displaying a floating window provided in an embodiment of the present application.
  • FIG10 is a schematic flow chart of another method for displaying a floating window provided in an embodiment of the present application.
  • FIG11 is a schematic flow chart of another method for displaying a floating window provided in an embodiment of the present application.
  • FIG12 is a schematic flowchart of a method for generating a first application list provided in an embodiment of the present application
  • FIG. 13 is a schematic diagram of functional modules of an electronic device provided in an embodiment of the present application.
  • first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
  • plural means two or more.
  • the method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
  • electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
  • the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • FIG1 shows a schematic diagram of the structure of an electronic device 100.
  • 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some 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.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface 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.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple groups of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 can include multiple I2S buses.
  • the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
  • the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • 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, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor.
  • the application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through 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), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area can store an operating system, an App required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
  • the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
  • the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C.
  • the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
  • the earphone interface 170D is used to connect a wired earphone.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be set on the display screen 194.
  • the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
  • the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., x, y, and z axes
  • the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching, pedometers, etc. use.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outward through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called a "touch panel”.
  • the touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function.
  • the application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
  • the key 190 includes a power key, a volume key, etc.
  • the key 190 may be a mechanical key or a touch key.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • Motor 191 can generate vibration prompts.
  • Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an embedded SIM (eSIM) card, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • phone cards in the embodiments of the present application include but are not limited to SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), and the like.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG2 is a software structure diagram of the electronic device 100 of an embodiment of the present application.
  • the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the technical solution of the embodiment of the present application can be applied to the switching scenario between the recent tasks and floating windows of an electronic device, and can also be applied to the switching scenario between the floating windows and floating windows of an electronic device.
  • the electronic device in the embodiments of the present application may be a television, a desktop computer, a laptop computer, or a portable electronic device such as a mobile phone, a tablet computer, a camera, a camcorder, a video recorder, or other electronic devices with a screen display function, an electronic device in a 5G network, or an electronic device in a public land mobile network (PLMN) to be evolved in the future, etc.
  • PLMN public land mobile network
  • the floating window is based on tasks. By controlling the size of the window so that it does not fill the entire screen and the window level is at the top, the purpose of floating the window is achieved. Floating windows are usually used to temporarily process another task based on an existing task, or to use multiple tasks in parallel for a short period of time. For example, replying to chat messages while playing games, temporarily using a calculator while shopping, etc. In addition, during this time period, the user's attention is more focused on the task of the floating window.
  • Android provides a recent task list.
  • the application exits from the foreground to the background, it will take a screenshot of the foreground page, generate taskSnapShot and persist it.
  • taskSnapShot When entering the recent task list, it will obtain taskSnapShot data to display the recent task list card.
  • the recent task list provided by Huawei only displays tasks that are not in floating windows. Historical tasks in floating windows are separated from the recent task list and managed with a floating ball.
  • the floating windows that have been launched in the past are managed through the floating ball card.
  • the floating ball only manages historical floating windows, while the recent task list manages non-floating window historical tasks.
  • FIG3 shows a schematic diagram of an interface in which an existing application switches from a recent task to a floating window.
  • the display interface of the electronic device 300 is located in the main interface, and the main interface displays application icons of multiple applications (such as clock, calendar, gallery, memo, etc.); on this basis, when the user wants to start the floating window display of a certain application through the recent task list, the user slides his finger from the bottom to the top on the display screen of the electronic device 300.
  • the display interface of the electronic device 300 is shown in (b) of Figure 3, and the display screen of the electronic device 300 displays the recent task list.
  • the display screen of the electronic device 300 displays multiple recently used applications (which can also be described as applications that have retreated to the background), and the user can view these recent tasks by swiping left and right.
  • the display interface of the electronic device 300 displays the application interface of the recent task "Huawei Video", and a part of the "SMS" application interface is displayed on the left side of the "Huawei Video” application interface (when the user swipes the recent task list to the right, the "SMS" application interface can be completely opened).
  • FIG. 4 shows a schematic diagram of an interface of another existing application switching from a recent task to a floating window.
  • the display interface of the electronic device 400 is located in the main interface, and the application icons of multiple application programs (such as clock, calendar, gallery, memo, etc.) are displayed in the main interface; on this basis, when the user wants to start the floating window display of a certain application through the recent task list, the user slides his finger from the bottom to the top on the display screen of the electronic device 400.
  • the display interface of the electronic device 400 is shown in (b) of FIG. 4 , and the display screen of the electronic device 400 displays the recent task list.
  • the display screen of the electronic device 400 displays multiple recently used applications (which can also be described as applications that have retreated to the background), and the user can view these recent tasks by swiping left and right.
  • the display interface of the electronic device 400 displays the application interface of the recent task "Huawei Video", and "SMS" is displayed on the left side of the "Huawei Video” application interface.
  • a portion of the application interface (when the user slides the recent task list to the right, the "SMS” application interface can be fully displayed on the display screen of the electronic device 400, and the "Huawei Video” application interface is partially displayed on the display screen of the electronic device 400).
  • the embodiments in the present application are described using the electronic device as a mobile phone as an example, wherein the electronic device may also be, for example, a tablet computer, a laptop computer, a desktop computer or a television, etc., and the present application does not limit this.
  • the present application provides a method and electronic device for floating window display, which can realize quick switching from the most recent task to the floating window, and in this method, the switched object can be all applications in the recent task list that support floating window display. It can be suitable for scenarios where users frequently switch applications or need to process multiple tasks at the same time, thereby enhancing the user experience.
  • a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
  • the character "/” generally indicates that the objects associated before and after are in an "or” relationship.
  • references to "one embodiment” or “some embodiments” etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application.
  • the phrases “one embodiment”, “some embodiments”, “another embodiment”, “some other embodiments”, etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean “one or more but not all embodiments", unless otherwise specifically emphasized.
  • the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • FIG. 5 shows a schematic diagram of an interface of a floating window display provided by an embodiment of the present application. This embodiment can be applicable to a scenario where a user pulls up a floating window display.
  • the display interface of the electronic device 500 is located in the main interface, and the application icons of multiple applications (such as clock, calendar, gallery, memo, etc.) are displayed in the main interface; on this basis, when the user wants to start the floating window display of an application in the recent task list, the user can slide his finger to the left on the display screen of the electronic device 500, and then a first icon 501 is displayed on the display interface of the electronic device 500 (as shown in (b) of Figure 5), and the display level of the first icon 501 is the topmost layer, which is used for the user to expand the first application list 502, and the first application list 502 includes all applications in the recent task list of the electronic device 500 that support floating window display; when the user continues to click on the first icon 501, the display of the electronic device 500
  • the first application list 502 is displayed on the display screen (as shown in (c) in Figure 5), and the display level of the first application list 502 is the top layer, which includes icons of all applications in the recent task list of the electronic
  • the display of the Huawei Video icon is restored in the first application list 502.
  • the display order of multiple application icons is not limited, and can be determined according to user input or automatically determined by the system, and this application does not limit this.
  • the application icons displayed in the first application list are not necessarily all the application icons in the recent task list of the electronic device 500 that support floating window display (for example, the upper limit of the number of application icons that can be displayed is 5, and the 5 application icons can be displayed randomly or according to the priority of the application icons). Users can view these application icons by swiping up or pulling down.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly switch the application from the recent task list to the floating window by clicking the application icon in the first application list, which simplifies the operation steps, enhances the convenience of using the floating window, and can significantly improve the user experience.
  • FIG. 6 shows a schematic diagram of another floating window display interface provided by an embodiment of the present application. This embodiment can be applied to a scenario where a user switches a floating window.
  • the display interface of the electronic device 600 simultaneously displays the floating window 602 and the corresponding window 603 of the “Huawei Video” application.
  • the display levels of the first application list 601, the floating window 602 and the first application list 601 are all the top layer, wherein the first application list 601 displays application icons: browser icon, music icon, sports and health icon, smart life icon and SMS icon; in this case, when the user wants to switch the currently displayed floating window 602 to the floating window corresponding to the SMS application, the user can click the SMS icon in the first application list 601.
  • the floating window 603 corresponding to the SMS application is displayed on the display interface of the electronic device 600 (as shown in (b) in Figure 6), and the display of the floating window 602 is cancelled at the same time.
  • the display of the SMS icon in the first application list 601 is cancelled, and the display of the Huawei video icon is added.
  • the display order of multiple application icons is not limited, and can be determined according to user input or automatically determined by the system, and this application does not limit this.
  • the application icons displayed in the first application list are not necessarily all the application icons in the recent task list of the electronic device 600 that support floating window display (for example, the upper limit of the number of application icons that can be displayed is 5, and the 5 application icons can be displayed randomly or according to the priority of the application icons). Users can view these application icons by swiping up or pulling down.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly switch between floating windows corresponding to different applications by clicking on the application icons in the first application list. This simplifies the operation steps and is suitable for scenarios where users frequently switch applications. This enhances the convenience of using floating windows and can significantly improve the user experience.
  • Figure 7 shows another interface schematic diagram of a floating window display provided by an embodiment of the present application. This embodiment can be applicable to a scenario where a user switches a floating window or adds a floating window.
  • a floating window 702 and a first application list 701 corresponding to the "Huawei Video" application are simultaneously displayed on the display interface of the electronic device 700, and the display levels of the floating window 702 and the first application list 701 are both at the top, wherein the first application list 701 displays application icons: browser icon, music icon, sports and health icon, smart life icon and SMS icon; in this case, when the user wants to add a floating window corresponding to the SMS application, the user can click on the SMS icon in the first application list 701.
  • the floating window 702 and the floating window 703 corresponding to the SMS application are simultaneously displayed on the display interface of the electronic device 700 (as shown in (b) in Figure 7), and the display of the SMS icon in the first application list 701 is cancelled.
  • the display order of multiple application icons is not limited, and can be determined according to user input or automatically determined by the system, and this application does not limit this.
  • the application icons displayed in the first application list are not necessarily all the application icons in the recent task list of the electronic device 700 that support floating window display (for example, the upper limit of the number of application icons that can be displayed is 5, and the 5 application icons can be displayed randomly or according to the priority of the application icons). Users can view these application icons by swiping up or pulling down.
  • the electronic device 700 can determine the number M of floating windows that can be displayed simultaneously based on the user's input, where M is a positive integer greater than or equal to 1.
  • the electronic device first determines whether the number N of floating windows currently displayed is greater than or equal to M, where N is a positive integer greater than or equal to 1. If so, the floating windows are switched (i.e., the newly added floating window is displayed on the display screen of the electronic device, and an existing floating window is canceled); if not, the newly added floating window is displayed on the display screen of the electronic device, and the display of the existing floating window is retained.
  • M is equal to 1
  • N is equal to 1 (i.e., there is currently one floating window 702 displayed on the display screen of the electronic device 700).
  • M is greater than or equal to 2
  • N is equal to 1 (i.e., one floating window 702 is currently displayed on the display screen of the electronic device 700).
  • M is equal to 2
  • N is equal to 2 (that is, there are currently 2 floating windows displayed on the display screen of the electronic device, taking the Huawei video floating window and the sports health floating window as examples)
  • the floating window corresponding to the SMS application is displayed on the display interface of the electronic device, while the display of the Huawei video floating window is retained, the display of the sports health floating window is canceled, and the display of the SMS icon is canceled in the first application list, and the display of the sports health icon is added
  • the floating window corresponding to the SMS application is displayed on the display interface of the electronic device, while the display of the sports health floating window is retained, the display of the Huawei video floating window is canceled, and the display of the SMS icon is canceled in the first application list, and the display of the Huawei video icon is added
  • the floating window that is switched (canceled) can be random, It may also be determined based on priority, or based on user input, or automatically determined by the system, which is not limited in this application.
  • the electronic device 700 is a large-screen electronic device (eg, a tablet computer, a foldable screen, etc.)
  • a number M of floating windows that can be displayed simultaneously is automatically set.
  • M when the electronic device 700 is a foldable electronic device, when the electronic device is in a folded state, M is equal to 1, and when the electronic device is in an unfolded state, M is equal to 2 or 3.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly add a floating window by clicking the application icon in the first application list, which simplifies the operation steps; and the method supports the simultaneous display of multiple floating windows on the display screen of the electronic device, and can independently set the number of floating windows displayed at the same time. It can be suitable for scenarios where the user handles multiple tasks at the same time, enhances the convenience of using floating windows, and can significantly improve the user experience.
  • FIG8 shows a schematic flow chart of a method 800 for displaying a floating window provided in an embodiment of the present application.
  • the method 800 includes:
  • S801 In response to a first operation of a user, display a first icon on a display screen of an electronic device.
  • the first icon may be a floating ball, or may be any icon with a floating window logo, which is not limited in the present application.
  • the position where the first icon is displayed may be any position in the current display interface of the electronic device, for example, a blank space in the current display interface, etc., and this application does not limit this.
  • the user's first operation may be an operation of sliding a finger to the left on the screen of the electronic device, or an operation of sliding a finger to the right on the screen of the electronic device, or a user operation predetermined based on the user's input, or an operation of the user issuing a voice command, which is not limited in this application.
  • the first icon is no longer displayed on the screen of the electronic device.
  • the first application list may be simply described as a first list.
  • the first icon described in S801 is the unexpanded state of the first application list.
  • the display order of multiple application icons is not limited, and can be determined based on user input or automatically determined by the system. This application does not limit this.
  • the application icons displayed in the first application list are not necessarily all the application icons in the recent task list of the electronic device that support floating window display. The user can view these application icons by swiping up or pulling down on the first application list.
  • the number of application icons that can be displayed in the first application list can be determined according to the screen size of the current electronic device, or according to user input.
  • the upper limit of the number of application icons that can be displayed in the first application list is 5.
  • the 5 application icons can be randomly determined from all the application icons in the first application list, or can be determined according to the priority of all application icons in the first application list, or can be determined according to user input, or can be determined by the system according to the user's frequency of use. This application is not limited to this.
  • step S801 and step S802 can be combined into one step: in response to the user's first operation, displaying a first application list on the display screen of the electronic device, the first application list including all application icons in the recent task list of the electronic device that support floating window display.
  • the first application icon is located in the first application list and refers to an application icon corresponding to the first application.
  • the first floating window and the first application list corresponding to the first application are displayed simultaneously on the display screen of the electronic device.
  • the application icon corresponding to the first application is removed from the first application list.
  • the method may further include the steps of: determining the first floating window corresponding to the first application; The position, size and zoom ratio of a floating window are determined, and then a first floating window corresponding to the first application is displayed on the display screen of the electronic device according to the position, size and zoom ratio of the floating window.
  • the first floating window corresponding to the first application may be displayed on the display screen of the electronic device.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly switch the application from the recent task list to the floating window by clicking the application icon in the first application list, which simplifies the operation steps, enhances the convenience of using the floating window, and can significantly improve the user experience.
  • Fig. 9 shows a schematic flow chart of another method 900 for displaying a floating window provided in an embodiment of the present application.
  • the method 900 includes:
  • a first floating window and a first application list corresponding to the first application are displayed on the current display screen of the electronic device.
  • the second application icon is located in the first application list and refers to an application icon corresponding to the second application.
  • step S901 may also be described as: in response to an operation for clicking on a second application icon, switching a first floating window displayed on the display screen of the electronic device to a second floating window corresponding to the second application.
  • the second floating window corresponding to the second application and the first application list are displayed on the display screen of the electronic device at the same time.
  • the application icon corresponding to the second application is removed from the first application list, and the application icon corresponding to the first application is added to the first application list.
  • the step of determining the position, size and zoom ratio of the second floating window may be included, and then displaying the second floating window corresponding to the second application on the display screen of the electronic device according to the position, size and zoom ratio of the floating window.
  • the position, size and scaling ratio of the second floating window are the same as those of the first floating window.
  • canceling the display of the first floating window may be to return the first application to the background for execution.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly switch between floating windows corresponding to different applications by clicking on the application icons in the first application list. This simplifies the operation steps and is suitable for scenarios where users frequently switch applications. This enhances the convenience of using floating windows and can significantly improve the user experience.
  • Fig. 10 shows a schematic flow chart of another method 1000 for displaying a floating window provided in an embodiment of the present application.
  • the method 1000 includes:
  • a first floating window and a first application list corresponding to the first application are displayed on the current display screen of the electronic device.
  • a first pop-up window is displayed on a display screen of the electronic device, and the first pop-up window is used to ask a user whether to retain the display of the original first floating window.
  • the first pop-up window is associated with a first control and a second control, wherein the first control is used to confirm that the display of the first floating window is retained, and the second control is used for the user to confirm that the display of the first floating window is not retained.
  • the second application icon is located in the first application list and refers to an application icon corresponding to the second application.
  • step S1001 can also be described as: in response to the user clicking the first control, simultaneously displaying the first floating window and the second floating window corresponding to the second application on the display screen of the electronic device; or, in response to the operation for clicking the second control, switching the first floating window displayed on the display screen of the electronic device to the second floating window corresponding to the second application.
  • the application icon corresponding to the second application is removed from the first application list.
  • the application icon corresponding to the second application is removed from the first application list, and the application icon corresponding to the first application is added to the first application list.
  • the first application list and the floating window are displayed simultaneously on the display screen of the electronic device.
  • the user when switching between floating windows corresponding to different applications, the user can choose whether to keep the originally displayed floating window, which can further enhance the user's usage experience.
  • Fig. 11 shows a schematic flow chart of another method 1100 for displaying a floating window provided in an embodiment of the present application.
  • the method 1100 includes:
  • the current display screen of the electronic device displays N floating windows corresponding to the N applications respectively, and also displays a first application list.
  • step S1101 In response to the user clicking on the second application icon, determine whether the number N of floating windows currently displayed on the electronic device display is greater than or equal to M. If so, execute step S1102; if not, execute step S1103, wherein M and N are both positive integers greater than or equal to 1.
  • M refers to the number of floating windows that can be displayed simultaneously on the display screen of the electronic device.
  • the value of M can be determined according to the user's input, can be automatically determined by the system, or can be determined according to the model of the current electronic device, and this application does not limit this.
  • the default value of M can be any positive integer greater than or equal to 2; when the electronic device is not a large-screen electronic device (such as a mobile phone, etc.), the default value of M can be 1 or 2.
  • the default value of M is any integer from 2 to 4; when the state of the foldable electronic device is the folded state, the default value of M is 1 or 2.
  • the second application icon is located in the first application list and refers to an application icon corresponding to the second application.
  • S1102 Displaying a second floating window corresponding to the second application on a display screen of the electronic device, and canceling display of a first floating window corresponding to the first application, wherein the N floating windows include the first floating window.
  • step S1102 can also be described as: switching the first floating window displayed on the display screen of the electronic device to a second floating window corresponding to the second application.
  • the first floating window is not a specific floating window, and the first floating window may be any one of N floating windows displayed simultaneously on the display screen of the electronic device.
  • the first floating window can be determined based on user input, or based on the priority of the N floating windows (for example, determining the floating window with the lowest priority among the N floating windows as the first floating window), or it can be automatically determined by the system, or it can be determined by the system based on the user's usage frequency, etc. This application is not limited to this.
  • step S1102 the second application icon corresponding to the second application is removed from the first application list, and the first application icon corresponding to the first application is added to the first application list.
  • the first application list and the floating window are displayed simultaneously on the display screen of the electronic device.
  • S1103 Displaying the second floating window corresponding to the second application and the N floating windows simultaneously on the display screen of the electronic device.
  • step S1103 the second application icon corresponding to the second application is removed from the first application list.
  • the first application list and the floating window are displayed simultaneously on the display screen of the electronic device.
  • the electronic device can adjust the size and display mode of the floating windows according to the number of floating windows simultaneously displayed on its display screen.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list.
  • the user can also quickly add or switch floating windows by clicking on the application icon in the first application list, thereby simplifying the operation steps; and the method supports the simultaneous display of multiple floating windows on the display screen of the electronic device, and can independently set the number of floating windows displayed at the same time. It can be suitable for scenarios where the user handles multiple tasks at the same time, enhances the convenience of using floating windows, and can significantly improve the user experience.
  • FIG12 shows a schematic flow chart of a method 1200 for generating the first application list provided in the embodiment of the present application.
  • the method 1200 includes:
  • step S1201 Determine whether the recent task list of the electronic device is not empty, if so, execute step S1202.
  • step S1201 may be executed cyclically, for example, once every certain period of time.
  • step S1201 may be executed when it is detected that the recent task list is updated.
  • S1202 Filter out applications that support floating window display from multiple applications in the recent task list.
  • the first application list is simultaneously displayed on the display screen of the electronic device.
  • the first application list is simultaneously displayed on the display screen of the electronic device.
  • the first threshold may be any value between 1/4 and 1, for example, 1/3 or 1/2.
  • the first application list displays all application icons in the recent task list that support floating window display.
  • the user can view which applications support floating window display through the first application list, so that the user does not need to enter the recent task list and click the corresponding button to determine whether the current application supports floating window display. This can simplify the user's operation steps and improve the user experience.
  • FIG13 shows a schematic diagram of functional modules of an electronic device 1300 provided in an embodiment of the present application.
  • the electronic device 1300 includes a display module 1310 and a determination module 1320. Specifically:
  • the display module 1310 is configured to display a first icon on a display screen of the electronic device in response to a first operation by a user.
  • the first icon may be a floating ball, or may be any icon with a floating window logo, which is not limited in the present application.
  • the position where the first icon is displayed may be any position in the current display interface of the electronic device, for example, a blank space in the current display interface, etc., and this application does not limit this.
  • the user's first operation may be an operation of sliding a finger to the left on the screen of the electronic device, or an operation of sliding a finger to the right on the screen of the electronic device, or a user operation predetermined based on the user's input, or an operation of the user issuing a voice command, which is not limited in this application.
  • the display module 1310 cancels display of the first icon on the screen of the electronic device.
  • the display module 1310 is further used to display a first application list on the display screen of the electronic device 1300 in response to a user clicking on the first icon.
  • the first application list includes all application icons in the recent task list of the electronic device 1300 that support floating window display.
  • the first icon represents the unexpanded state of the first application list.
  • the display order of multiple application icons is not limited, and can be determined based on user input or automatically determined by the system. This application does not limit this.
  • the application icons displayed in the first application list are not necessarily all the application icons in the recent task list of the electronic device 1300 that support floating window display. The user can view these application icons by swiping up or pulling down on the first application list.
  • the number of application icons that can be displayed in the first application list can be determined according to the screen size of the current electronic device, or according to user input.
  • the upper limit of the number of application icons that can be displayed in the first application list is 5.
  • the 5 application icons can be randomly determined from all the application icons in the first application list, or can be determined according to the priority of all application icons in the first application list, or can be determined according to user input, or can be determined by the system according to the user's frequency of use. This application is not limited to this.
  • the display module 1310 is further configured to display a first floating window corresponding to the first application on the display screen of the electronic device 1300 in response to a user clicking on the first application icon.
  • the first application icon is located in the first application list and refers to an application icon corresponding to the first application.
  • the first floating window and the first application list corresponding to the first application are displayed on the display screen of the electronic device 1300 at the same time.
  • the display module 1310 removes the application icon corresponding to the first application from the first application list.
  • the electronic device 1300 further includes:
  • the determination module 1320 is used to determine the position, size and zoom ratio of the first floating window before displaying the first floating window corresponding to the first application on the display screen of the electronic device;
  • the display module 1310 is further configured to display a first floating window corresponding to the first application on the display screen of the electronic device according to the position, size and zoom ratio of the floating window.
  • the first application list displays all application icons in the recent task list that support floating window display. You can use the first application list to check which applications support floating window display. Users can also quickly switch applications from the recent task list to the floating window by clicking the application icon in the first application list. This simplifies the operation steps, enhances the convenience of using the floating window, and can significantly improve the user experience.
  • An embodiment of the present application also provides an electronic device, which includes: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to execute the method of any one of the embodiments shown in Figures 5 to 12.
  • One or more of the modules or units described herein may be implemented in software, hardware, or a combination of the two.
  • the software exists in the form of computer program instructions and is stored in a memory, and a processor may be used to execute the program instructions and implement the above method flow.
  • the processor may include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU), or an artificial intelligence processor and other types of computing devices that run software, each of which may include one or more cores for executing software instructions for calculation or processing.
  • the processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip.
  • SoC system on chip
  • ASIC application specific integrated circuit
  • it may further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit for implementing a dedicated logic operation.
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or be independent of the software to execute the above method flow.
  • the modules or units described herein When the modules or units described herein are implemented using software, they 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 described in the embodiment of the present invention is generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may 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 integrated therein.
  • the available medium may 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)), etc.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including
  • the instructions are used to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种悬浮窗显示的方法,该方法应用于电子设备,方法包括:响应于用户的第一操作,在电子设备的显示屏上显示第一列表,该第一列表中包括与P个应用一一对应的P个应用图标,该P个应用为电子设备的最近任务列表中的所有支持悬浮窗显示的应用,其中,P为大于或等于1的正整数;响应于用户的第二操作,在电子设备的显示屏上显示第一应用对应的第一悬浮窗,第二操作是针对第一应用的操作。该方法中,第一列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过第一列表查看哪些应用支持悬浮窗显示,还能够通过第一列表实现应用从最近任务列表到悬浮窗的快速切换,能够简化操作步骤,提升用户的使用体验。

Description

悬浮窗显示的方法和电子设备
本申请要求于2022年11月23日提交中国专利局、申请号为202211469972.6、申请名称为“悬浮窗显示的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端显示领域,并且更具体地,涉及一种悬浮窗显示的方法和电子设备。
背景技术
随着电子设备的智能化程度和功能多样化程度的加深,人们对电子设备的依赖性越来越强,这就使得用户对电子设备的显示功能有了更高的要求,越来越多的用户希望能够在不关闭当前应用的情况下也能够使用其他应用的某些功能(例如在玩游戏的过程中回复聊天信息),悬浮窗的出现满足了用户的这一需求,然而,目前启用悬浮窗的过程比较繁琐,操作比较复杂,影响了用户的使用体验。
发明内容
本申请提供一种悬浮窗显示的方法和电子设备,该方法中,电子设备的显示屏上显示有第一列表,该第一列表中显示有电子设备的最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一列表查看哪些应用支持悬浮窗显示,还能够通过该第一列表实现应用从最近任务列表到悬浮窗的快速切换,能够简化操作步骤,从而提升用户的使用体验。
第一方面,提供一种悬浮窗显示的方法,该方法应用于电子设备,该方法包括:响应于用户的第一操作,在该电子设备的显示屏上显示第一列表,该第一列表中包括P个应用图标,该P个应用图标与P个应用一一对应,该P个应用为该电子设备的最近任务列表中的所有支持悬浮窗显示的应用,其中,P为大于或等于1的正整数;响应于用户的第二操作,在电子设备的显示屏上显示第一应用对应的第一悬浮窗,该第二操作是针对该第一应用的操作。
其中,第一应用图标对应于该第一应用。
可选地,用户的第一操作可以是用户用手指在电子设备的屏幕上向左滑动的操作,还可以是用户用手指在电子设备的屏幕上向右滑动的操作,还可以是根据用户的输入预先确定的用户操作,还可以是用户发出语音指令的操作,本申请对此不作限定。
可选地,用户的第二操作可以是点击该第一列表中的第一应用图标的操作,还可以是用户发出语音指令的操作,本申请对此不作限定。
应理解:第一列表中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
应理解:由于显示屏大小的限制,第一列表中所显示出来的应用图标并不一定是电子设备的最近任务列表中所有支持悬浮窗显示的应用图标,用户可以通过对第一列表执行上滑或下拉的操作,来查看这些应用图标。
可以理解:当电子设备的显示屏上显示有悬浮窗的情况下,该第一列表保持与悬浮窗同时显示在显示屏上,用户可以对该第一列表执行关闭或者最小化的操作,或者,在一段时间内未使用该第一列表时,该第一列表自动变为最小化状态。
可选地,第一列表可以是悬浮窗列表。
本申请实施例中,第一列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一列表中的应用图标实现应用从最近任务列表到悬浮窗的快速切换,简化了操作步骤,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,在电子设备的显示屏上显示该第一悬浮窗的同时,将该第一应用图标从该第一列表中移除。
本申请实施例中,当应用呈悬浮窗形式显示时,该应用对应的应用图标将不在第一列表中显示,这样能够使得第一列表得到及时更新,用户能够直观的看到最近任务列表中还有哪些应用支持悬浮窗显示,进而能够提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,响应于用户的第一操作,在电子设备的屏幕上显示第一列表,包括:响应于用户的第一操作,在电子设备的屏幕上显示第一图标;响应于用户点击该第一图标的操作,在该电子设备的屏幕上显示该第一列表。
可选地,该第一图标可以是悬浮球,该第一图标还可以是带有悬浮窗标志的任意图标,本申请对此不作限定。
可以理解:第一图标为第一列表的未展开状态(例如最小化状态)。
本申请实施例中,能够先触发第一图标的显示,该第一图标的显示不会影响电子设备的显示屏上正在显示的任务,能够防止因为用户的误触而导致第一列表的直接显示,从而能够避免对用户的使用过程造成不必要的影响。
结合第一方面,在一种可能的实现方式中,该方法还包括:响应于用户点击该第一列表中的第二应用图标的操作,将该电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗,该第二应用图标对应于所述第二应用。
可选地,该第二悬浮窗与该第一悬浮窗的位置、大小和缩放比相同。
本申请实施例中,第一列表中显示有电子设备的最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一列表中的应用图标实现不同应用对应的悬浮窗之间的快速切换,简化了操作步骤,能够适用于用户频繁切换应用的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,在将该第一悬浮窗切换为该第二悬浮窗的同时,将该第二应用图标从该第一列表中移除,并将该第一应用图标添加至该第一列表中。
本申请实施例中,当应用以悬浮窗形式显示时,该应用对应的应用图标将不在第一列表中显示,当应用不再以悬浮窗形式显示时,将该应用对应的应用图标添加至第一列表中,这样能够使得第一列表得到及时更新,用户能够直观的看到最近任务列表中还有哪些应用支持悬浮窗显示,进而能够提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,该方法还包括:响应于用户点击该第一列表中的第二应用图标的操作,在该电子设备的显示屏上显示第一弹窗,该第一弹窗用于询问用户是否保留该第一悬浮窗的显示,该第一弹窗关联有第一控件;响应于用户点击该第一控件的操作,在该电子设备的显示屏上同时显示该第一悬浮窗和第二应用对应的第二悬浮窗,该第二应用图标对应于所述第二应用。
可选地,在电子设备的显示屏上同时显示该第一悬浮窗和第二悬浮窗的同时,将该第二应用图标从该第一列表中移除。
可选地,该第一弹窗还关联有第二控件,所述第二控件用于用户确认不保留该第一悬浮窗的显示。也即:响应于用户点击该第二控件的操作,将该电子设备的显示屏上显示的该第一悬浮窗切换为第二应用对应的第二悬浮窗,该第二应用图标对应于所述第二应用。
可选地,该电子设备为平板电脑、可折叠电子设备、笔记本电脑中的任意一项。
本申请实施例中,在进行不同应用对应的悬浮窗之间的切换时,用户能够选择是否保留原来显示的悬浮窗,能够进一步提升用户的使用体验。
结合第一方面,在一种可能的实现方式中,响应于用户的第一操作,在该电子设备的显示屏上显示第一列表,还包括:响应于用户的第一操作,确定该电子设备的最近任务列表是否不为空;当确定该电子设备的最近任务列表不为空时,获取该最近任务列表中的所有支持悬浮窗显示的P个应用;将该P个应用对应的P个应用图标添加至该第一列表,并在该电子设备的显示屏上显示该第一列表。
本申请实施例中,第一列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一列表查看哪些应用支持悬浮窗显示,从而使得用户不需要通过进入最近任务列表并点击相应按钮的方式来判断当前应用是否支持悬浮窗显示,能够简化用户的操作步骤,从而提升用户的使用体验。
第二方面,提供一种悬浮窗显示的方法,该方法应用于电子设备,该电子设备的当前显示屏上同时显示有第一列表和N个悬浮窗,该第一列表中包括P个应用对应的P个应用图标,该P个应用为所述电子设备的最近任务列表中的所有支持悬浮窗显示的应用,该方法包括:响应于用户点击该第一列表中的 第二应用图标的操作,确定N是否大于或等于M,其中,M为允许在该电子设备的显示屏上同时显示的悬浮窗的数量,M、N、P均为大于或等于1的正整数;当确定N大于或等于M时,将该电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗,该N个悬浮窗包括所述第一悬浮窗,该第二应用图标对应于该第二应用;或,当确定N小于M时,在该电子设备的显示屏上同时显示该第二悬浮窗和该N个悬浮窗。
其中,M的取值可以是根据用户的输入确定的,还可以是系统自动确定的,还可以是根据当前电子设备的型号确定的,本申请对此不作限定。
可选地,该第一悬浮窗为该N个悬浮窗中优先级最低的悬浮窗,或,该第一悬浮窗为该N个悬浮窗中使用频率最低的悬浮窗。
可选地,该电子设备为平板电脑、可折叠电子设备、笔记本电脑中的任意一项。
可选地,M为1、2、3、4、5中的任意一个数值。
本申请实施例中,第一列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一列表中的应用图标实现快捷添加或切换悬浮窗,简化了操作步骤;并且,该方法支持在电子设备的显示屏上同时显示多个悬浮窗,能够自主设置同时显示的悬浮窗的个数,可以适用于用户同时处理多个任务的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
结合第二方面,在一种可能的实现方式中,该电子设备为可折叠电子设备,当该电子设备的当前状态为折叠态时,M=1;当该电子设备的当前状态为展开态时,M=2。
本申请实施例中,能够根据可折叠电子设备的开合形态确定当前允许同时显示的悬浮窗数量,能够适应于用户的实际需求,从而能够进一步提升用户的使用体验。
第三方面,提供一种电子设备,该电子设备包括存储器和处理器,其中,存储器用于存储计算机程序代码,处理器用于执行存储于存储器中的计算机程序代码,以实现上述第一方面或第一方面中任一种可能实现方式中的方法,或,实现上述第二方面或第二方面中任一种可能实现方式中的方法。
第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当该计算机程序或指令被执行时,实现上述第一方面或第一方面中任一种可能实现方式中的方法,或,实现上述第二方面或第二方面中任一种可能实现方式中的方法。
第五方面,提供了一种芯片,其中存储有指令,当其在设备上运行时,使得所述芯片执行上述第一方面或第一方面中任一种可能实现方式中的方法,或,执行上述第二方面或第二方面中任一种可能实现方式中的方法。
附图说明
图1是本申请实施例提供的电子设备的结构示意图;
图2是本申请实施例提供的电子设备的软件结构框图;
图3是一种现有的应用由最近任务切换为悬浮窗的界面示意图;
图4是另一种现有的应用由最近任务切换为悬浮窗的界面示意图;
图5是本申请实施例提供的一种悬浮窗显示的界面示意图;
图6是本申请实施例提供的又一种悬浮窗显示的界面示意图;
图7是本申请实施例提供的又一种悬浮窗显示的界面示意图;
图8是本申请实施例提供的一种悬浮窗显示的方法的示意性流程图;
图9是本申请实施例提供的又一种悬浮窗显示的方法的示意性流程图;
图10是本申请实施例提供的又一种悬浮窗显示的方法的示意性流程图;
图11是本申请实施例提供的又一种悬浮窗显示的方法的示意性流程图;
图12是本申请实施例提供的一种生成第一应用列表的方法的示意性流程图;
图13是本申请实施例提供的一种电子设备的功能模块示意图。
具体实施方式
下面将结合附图,对本申请中的技术方案进行描述。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户身份识别(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户身份识别(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在 一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的App(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应 用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用嵌入式SIM(embedded-SIM,eSIM)卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
应理解,本申请实施例中的电话卡包括但不限于SIM卡、eSIM卡、全球用户识别卡(universal subscriber identity module,USIM)、通用集成电话卡(universal integrated circuit card,UICC)等等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
应理解,本申请实施例中的技术方案可以用于Android、IOS、鸿蒙等系统中。
本申请实施例的技术方案可以应用于电子设备的最近任务和悬浮窗的切换场景,还可以应用于电子设备的悬浮窗和悬浮窗的切换场景。
本申请实施例中的电子设备可以是电视机、台式电脑、笔记本电脑,还可以是便携式电子设备,诸如手机、平板电脑、照相机、摄影机、录像机,还可以是其他具有屏幕显示功能的电子设备、5G网络中的电子设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的电子设备等,本申请对此不做限定。
随着电子设备的智能化程度和功能多样化程度的加深,人们对电子设备的依赖性越来越强,这就使得用户对电子设备的显示功能有了更高的要求,越来越多的用户希望能够在不关闭当前应用的情况下也能够使用其他应用的某些功能(例如在玩游戏的过程中回复聊天信息),悬浮窗功能的出现能在一定程度上满足用户的该需求。
为了更加清楚地理解本申请提供的方案,以下,先对本申请涉及到的技术术语进行介绍。
1.悬浮窗
悬浮窗以任务(task)为单位,通过控制窗口的大小非满屏以及控制窗口的层级在最上层,从而达到窗口悬浮的目的。悬浮窗通常用于在已有的任务基础上,临时处理另一个任务,或短时间内多任务并行使用的场景。如:玩游戏的时候回复聊天消息、购物的时候临时使用计算器等场景。并且,在该时间段内,用户的注意力更多的聚焦在悬浮窗的任务上。
2.最近任务列表
为方便用户查看并找回已经启动过的历史任务,安卓(android)提供最近任务列表。应用在从前台退到后台的时候,会对前台页面截图,生产taskSnapShot并持久化。进入最近任务列表的时候,会获取taskSnapShot数据用于显示最近任务列表卡片。
在一个示例中,华为所提供的最近任务列表,只显示非悬浮窗的任务,对于悬浮窗的历史任务,从最近任务列表中拆出,用悬浮球管理。
3.悬浮球
为了方便用户管理悬浮窗,把历史启动过的悬浮窗通过悬浮球卡片管理。悬浮球只管理历史悬浮窗,而最近任务列表管理非悬浮窗历史任务。
下面,以电子设备为手机为例,示例性地,图3示出了一种现有的应用由最近任务切换为悬浮窗的界面示意图。
如图3中的(a)所示,电子设备300的显示界面位于主界面,该主界面中显示有多个应用程序的应用图标(例如时钟、日历、图库、备忘录等);在此基础上,当用户希望通过最近任务列表启动某一应用的悬浮窗显示时,用户将手指在电子设备300的显示屏上从底部向上滑动,此时电子设备300的显示界面如图3中的(b)所示,该电子设备300的显示屏上显示最近任务列表,具体地,该电子设备300的显示屏上显示有最近使用的多个应用(也可以描述为退到后台的应用),用户能够通过左右滑动的方式查看这些最近任务,如图3中的(b)所示,电子设备300的显示界面显示最近任务“华为视频”的应用界面,在该“华为视频”应用界面的左边显示有“短信”应用界面的一部分(当用户向右滑动该最近任务列表时,该“短信”应用界面能够完整显示于电子设备300的显示屏上,同时“华为视频”应用界面部分显示于电子设备300的显示屏上),在该“华为视频”应用界面下方,显示有位于最近任务列表中的所有应用的图标,分别为:运动健康、智慧生活、短信、浏览器(应理解:由于“华为视频”应用界面在电子设备300的显示屏上完整显示,所以在此处不显示华为视频对应的图标),并且,在电子设备300的显示界面中完整显示的“华为视频”应用界面的右上方关联有控件301;当用户点击该控件301后,电子设备300的显示界面上显示选择框302,该选择框302中包括四个选项,分别为:锁定、浮窗、分屏和管理(如图3中的(c)所示);当用户点击该“浮窗”选项后,电子设备300的显示界面上显示该“华为视频”应用对应的悬浮窗303(如图3中的(d)所示)。
示例性地,图4示出了另一种现有的应用由最近任务切换为悬浮窗的界面示意图。
如图4中的(a)所示,电子设备400的显示界面位于主界面,该主界面中显示有多个应用程序的应用图标(例如时钟、日历、图库、备忘录等);在此基础上,当用户希望通过最近任务列表启动某一应用的悬浮窗显示时,用户将手指在电子设备400的显示屏上从底部向上滑动,此时电子设备400的显示界面如图4中的(b)所示,该电子设备400的显示屏上显示最近任务列表,具体地,该电子设备400的显示屏上显示有最近使用的多个应用(也可以描述为退到后台的应用),用户能够通过左右滑动的方式查看这些最近任务,如图4中的(b)所示,电子设备400的显示界面显示最近任务“华为视频”的应用界面,在该“华为视频”应用界面的左边显示有“短信”应用界面的一部分(当用户向右滑动该最近任务列表时,该“短信”应用界面能够完整显示于电子设备400的显示屏上,同时“华为视频”应用界面部分显示于电子设备400的显示屏上),在该“华为视频”应用界面下方,显示有位于最近任务列表中的所有应用的图标,分别为:运动健康、智慧生活、短信、浏览器(应理解:由于“华为视频”应用界面在电子设备400的显示屏上完整显示,所以在此处不显示华为视频对应的图标),并且,在电子设备400的显示界面中完整显示的“华为视频”应用界面的右上方关联有悬浮图标401;当用户点击该悬浮图标401后,电子设备400的显示界面上显示该“华为视频”应用对应的悬浮窗402(如图4中的(c)所示)。
应理解:为了将本申请提供的方案描述得更清楚,本申请中的实施例以电子设备为手机为例进行说明,其中,电子设备例如还可以是平板电脑、笔记本电脑、台式电脑或者电视等,本申请对此不作限定。
由上述可知,目前的通过最近任务进入悬浮窗的方案中,操作步骤较繁琐,操作流程较长(至少需要3步操作),无法实现最近任务和悬浮窗之间的快速切换,导致用户的使用体验较差。
有鉴于此,本申请提供了一种悬浮窗显示的方法和电子设备,该方法能够实现最近任务到悬浮窗的快速切换,并且,该方法中,所切换的对象可以是最近任务列表中所有支持悬浮窗显示的应用,能够适用于用户频繁切换应用或需要同时处理多个任务的场景,进而能够增强用户的使用体验。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“一个实施例”、“一些实施例”、“另一个实施例”、“另外一些实施例”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
下面,电子设备为手机为例,示例性地,结合图5至图7,对本申请实施例提供的悬浮窗显示的方法对应的界面示意图进行介绍。
示例性地,图5示出了本申请实施例提供的一种悬浮窗显示的界面示意图。该实施例例如可以适用于用户拉起悬浮窗显示的场景。
如图5中的(a)所示,电子设备500的显示界面位于主界面,该主界面中显示有多个应用程序的应用图标(例如时钟、日历、图库、备忘录等);在此基础上,当用户希望启动最近任务列表中的某一应用的悬浮窗显示时,用户可以用手指在电子设备500的显示屏上向左滑动,此时电子设备500的显示界面上显示有第一图标501(如图5中的(b)所示),该第一图标501的显示层级为最上层,用于用户展开第一应用列表502,该第一应用列表502包括电子设备500的最近任务列表中的所有支持悬浮窗显示的应用;当用户继续点击该第一图标501时,电子设备500的显示屏上显示该第一应用列表502(如图5中的(c)所示),该第一应用列表502的显示层级为最上层,其中包括电子设备500的最近任务列表中的所有支持悬浮窗显示的应用的图标,例如可以显示其中的部分应用图标:浏览器图标、音乐图标、运动健康图标、短信图标和华为视频图标;当用户点击第一应用列表502中的华为视频图标时,电子设备500的显示界面上同时显示该“华为视频”应用对应的悬浮窗503和第一应用列表502(如图5中的(d)所示),悬浮窗503和第一应用列表502的显示层级均为最上层,并且,此时的第一应用列表中不再显示华为视频图标。
可选地,当华为视频应用的界面不再以悬浮窗的形式显示时,第一应用列表502中恢复华为视频图标的显示。
应理解:第一应用列表502中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
其中,应理解:由于显示空间的限制,第一应用列表中所显示的应用图标并不一定是电子设备500的最近任务列表中支持悬浮窗显示的所有应用图标(例如:能显示的应用图标个数的上限为5个,该5个应用图标可以是随机显示的,也可以是根据应用图标的优先级显示的),用户可以通过上滑或下拉的方式,来查看这些应用图标。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现应用从最近任务列表到悬浮窗的快速切换,简化了操作步骤,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
示例性地,图6示出了本申请实施例提供的又一种悬浮窗显示的界面示意图。该实施例例如可以适用于用户进行悬浮窗切换的场景。
如图6中的(a)所示,电子设备600的显示界面上同时显示“华为视频”应用对应的悬浮窗602和 第一应用列表601,悬浮窗602和第一应用列表601的显示层级均为最上层,其中,第一应用列表601中显示有应用图标:浏览器图标、音乐图标、运动健康图标、智慧生活图标和短信图标;在此情况下,当用户希望将当前显示的悬浮窗602切换为短信应用对应的悬浮窗时,用户可以点击第一应用列表601中的短信图标,当用户点击该短信图标后,电子设备600的显示界面上显示短信应用对应的悬浮窗603(如图6中的(b)所示),同时取消悬浮窗602的显示,并且,第一应用列表601中取消短信图标的显示,增加华为视频图标的显示。
应理解:第一应用列表601中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
其中,应理解:由于显示空间的限制,第一应用列表中所显示的应用图标并不一定是电子设备600的最近任务列表中支持悬浮窗显示的所有应用图标(例如:能显示的应用图标个数的上限为5个,该5个应用图标可以是随机显示的,也可以是根据应用图标的优先级显示的),用户可以通过上滑或下拉的方式,来查看这些应用图标。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现不同应用对应的悬浮窗之间的快速切换,简化了操作步骤,能够适用于用户频繁切换应用的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
与图6所示实施例并列地,示例性地,图7示出了本申请实施例提供的又一种悬浮窗显示的界面示意图。该实施例例如可以适用于用户进行悬浮窗切换或者增加悬浮窗的场景。
如图7中的(a)所示,电子设备700的显示界面上同时显示“华为视频”应用对应的悬浮窗702和第一应用列表701,悬浮窗702和第一应用列表701的显示层级均为最上层,其中,第一应用列表701中显示有应用图标:浏览器图标、音乐图标、运动健康图标、智慧生活图标和短信图标;在此情况下,当用户希望增加显示短信应用对应的悬浮窗时,用户可以点击第一应用列表701中的短信图标,当用户点击该短信图标后,电子设备700的显示界面上同时显示悬浮窗702和短信应用对应的悬浮窗703(如图7中的(b)所示),并且,第一应用列表701中取消短信图标的显示。
应理解:第一应用列表701中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
其中,应理解:由于显示空间的限制,第一应用列表中所显示的应用图标并不一定是电子设备700的最近任务列表中支持悬浮窗显示的所有应用图标(例如:能显示的应用图标个数的上限为5个,该5个应用图标可以是随机显示的,也可以是根据应用图标的优先级显示的),用户可以通过上滑或下拉的方式,来查看这些应用图标。
可选地,电子设备700可以根据用户的输入确定可同时显示的悬浮窗个数M,其中,M为大于或等于1的正整数,响应于用户点击第一应用列表701中的应用图标的操作,电子设备先确定当前显示的悬浮窗的个数N是否大于或等于M,N为大于或等于1的正整数,若是,则进行悬浮窗的切换(即:将新增加的悬浮窗显示于电子设备的显示屏上,并取消显示某个已有悬浮窗);若否,则将新增加的悬浮窗显示于电子设备的显示屏上,并保留已有悬浮窗的显示。
在一个示例中,M等于1,N等于1(即电子设备700的显示屏上当前显示有1个悬浮窗702),当用户点击第一应用列表701中的短信图标后,电子设备700的显示界面上显示短信应用对应的悬浮窗703,同时取消悬浮窗702的显示,并且,第一应用列表701中取消短信图标的显示,增加华为视频图标的显示。
在又一个示例中,M大于或等于2,N等于1(即电子设备700的显示屏上当前显示有1个悬浮窗702),当用户点击第一应用列表701中的短信图标后,电子设备700的显示界面上显示短信应用对应的悬浮窗703,同时保留悬浮窗702的显示,并且,第一应用列表701中取消短信图标的显示。
在又一个示例中,M等于2,N等于2(即电子设备的显示屏上当前显示有2个悬浮窗,以华为视频悬浮窗和运动健康悬浮窗为例),当用户点击第一应用列表中的短信图标后,电子设备的显示界面上显示短信应用对应的悬浮窗,同时保留华为视频悬浮窗的显示,取消运动健康悬浮窗的显示,并且,第一应用列表中取消短信图标的显示,增加运动健康图标的显示;或者,电子设备的显示界面上显示短信应用对应的悬浮窗,同时保留运动健康悬浮窗的显示,取消华为视频悬浮窗的显示,并且,第一应用列表中取消短信图标的显示,增加华为视频图标的显示,其中,被切换(取消显示)的悬浮窗可以是随机的, 也可以是根据优先级确定的,还可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
可选地,当电子设备700为大屏电子设备(例如:平板电脑、可折叠屏等)时,自动设置一个可同时显示的悬浮窗个数M。
可选地,当电子设备700为可折叠电子设备时,当电子设备处于折叠态时,M等于1,当电子设备处于展开态时,M等于2或3。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现快捷添加悬浮窗,简化了操作步骤;并且,该方法支持在电子设备的显示屏上同时显示多个悬浮窗,能够自主设置同时显示的悬浮窗的个数,可以适用于用户同时处理多个任务的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
以下,示例性的,结合图8至图11,对本申请实施例提供的悬浮窗显示的方法进行详细介绍。
示例性地,图8示出了本申请实施例提供的一种悬浮窗显示的方法800的示意性流程图。如图8所示,该方法800包括:
S801:响应于用户的第一操作,在电子设备的显示屏上显示第一图标。
可选地,该第一图标可以是悬浮球,该第一图标还可以是带有悬浮窗标志的任意图标,本申请对此不作限定。
可选地,该第一图标显示的位置可以是电子设备的当前显示界面中的任意位置,例如可以是当前显示界面的空白处等,本申请对此不作限定。
可选地,用户的第一操作可以是用户用手指在电子设备的屏幕上向左滑动的操作,还可以是用户用手指在电子设备的屏幕上向右滑动的操作,还可以是根据用户的输入预先确定的用户操作,还可以是用户发出语音指令的操作,本申请对此不作限定。
可选地,当用户在一段时间内(例如20分钟)未对该第一图标执行进一步操作时,取消在电子设备的屏幕上显示该第一图标。
S802:响应于用户点击该第一图标的操作,在电子设备的显示屏上显示第一应用列表,该第一应用列表中包括电子设备的最近任务列表中的所有支持悬浮窗显示的应用图标。
其中,第一应用列表可以简单描述为第一列表。
可以理解:S801中所述的第一图标为第一应用列表的未展开状态。
应理解:第一应用列表中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
应理解:由于显示屏大小的限制,第一应用列表中所显示出来的应用图标并不一定是电子设备的最近任务列表中所有支持悬浮窗显示的应用图标,用户可以通过对第一应用列表执行上滑或下拉的操作,来查看这些应用图标。
可选地,第一应用列表中能显示出来的应用图标个数可以是根据当前电子设备的屏幕大小确定的,也可以是根据用户的输入确定的,例如:第一应用列表中能显示的应用图标个数的上限为5个,该5个应用图标可以是从第一应用列表中的所有应用图标中随机确定的,也可以是根据第一应用列表中的所有应用图标的优先级确定的,还可以是根据用户的输入确定的,还可以是系统根据用户的使用频率确定的,本申请对此不作限定。
可选地,在电子设备上显示第一图标可以省略,也就是说,步骤S801和步骤S802可以合并为一个步骤:响应于用户的第一操作,在电子设备的显示屏上显示第一应用列表,该第一应用列表中包括电子设备的最近任务列表中的所有支持悬浮窗显示的应用图标。
S803:响应于用户点击第一应用图标的操作,在电子设备的显示屏上显示该第一应用对应的第一悬浮窗。
其中,第一应用图标位于第一应用列表中,是指第一应用对应的应用图标。
可选地,该第一应用对应的第一悬浮窗和第一应用列表同时显示于该电子设备的显示屏上。
可选地,在电子设备的显示屏上显示该第一应用对应的第一悬浮窗的同时,将该第一应用对应的应用图标在第一应用列表中移除。
可选地,在电子设备的显示屏上显示该第一应用对应的第一悬浮窗之前,还可以包括步骤:确定第 一悬浮窗的位置、大小和缩放比,进而根据悬浮窗的位置、大小和缩放比在电子设备的显示屏上显示该第一应用对应的第一悬浮窗。
可选地,还可以是响应于用户的其他操作(例如语音指示、手势操作等),在电子设备的显示屏上显示该第一应用对应的第一悬浮窗。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现应用从最近任务列表到悬浮窗的快速切换,简化了操作步骤,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
示例性地,图9示出了本申请实施例提供的又一种悬浮窗显示的方法900的示意性流程图。如图9所示,该方法900包括:
电子设备的当前显示屏上显示有第一应用对应的第一悬浮窗和第一应用列表。
其中,关于第一悬浮窗和第一应用列表的解释在图8所示的实施例中已经做了详细解释,为了简洁,在此不再赘述。
S901:响应于用于点击第二应用图标的操作,在电子设备的显示屏上显示该第二应用对应的第二悬浮窗,同时取消显示第一悬浮窗。
其中,第二应用图标位于第一应用列表中,是指第二应用对应的应用图标。
可选地,该步骤S901还可以描述为:响应于用于点击第二应用图标的操作,将电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗。
可选地,该第二应用对应的第二悬浮窗和第一应用列表同时显示于该电子设备的显示屏上。
可选地,在将电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗的同时,将该第二应用对应的应用图标在第一应用列表中移除,并将该第一应用对应的应用图标增加至第一应用列表中。
可选地,在电子设备的显示屏上显示该第二应用对应的第二悬浮窗之前,还可以包括步骤:确定第二悬浮窗的位置、大小和缩放比,进而根据悬浮窗的位置、大小和缩放比在电子设备的显示屏上显示该第二应用对应的第二悬浮窗。
可选地,第二悬浮窗的位置、大小和缩放比与第一悬浮窗的位置、大小和缩放比相同。
可选地,取消显示第一悬浮窗,可以是将该第一应用退到后台运行。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现不同应用对应的悬浮窗之间的快速切换,简化了操作步骤,能够适用于用户频繁切换应用的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
示例性地,图10示出了本申请实施例提供的又一种悬浮窗显示的方法1000的示意性流程图。如图10所示,该方法1000包括:
电子设备的当前显示屏上显示有第一应用对应的第一悬浮窗和第一应用列表。
其中,关于第一悬浮窗和第一应用列表的解释在图8所示的实施例中已经做了详细解释,为了简洁,在此不再赘述。
S1001:响应于用于点击第二应用图标的操作,在电子设备的显示屏上显示第一弹窗,该第一弹窗用于询问用户是否保留原有的第一悬浮窗的显示,该第一弹窗关联有第一控件和第二控件,其中,该第一控件用于确认保留第一悬浮窗的显示,该第二控件用于用户确认不保留第一悬浮窗的显示。
S1002:响应于用户点击第一控件的操作,在电子设备的显示屏上同时显示第一悬浮窗和第二应用对应的第二悬浮窗;或,响应于用户点击第二控件的操作,在电子设备的显示屏上显示该第二应用对应的第二悬浮窗,同时取消显示第一悬浮窗。
其中,第二应用图标位于第一应用列表中,是指第二应用对应的应用图标。
可选地,该步骤S1001还可以描述为:响应于用户点击第一控件的操作,在电子设备的显示屏上同时显示第一悬浮窗和第二应用对应的第二悬浮窗;或,响应于用于点击第二控件的操作,将电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗。
可选地,在电子设备的显示屏上同时显示第一悬浮窗和第二应用对应的第二悬浮窗的同时,将该第二应用对应的应用图标在第一应用列表中移除。
可选地,在将电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗的同时,将该第二应用对应的应用图标在第一应用列表中移除,并将该第一应用对应的应用图标增加至第一应用列表中。
可选地,该第一应用列表与悬浮窗同时显示于该电子设备的显示屏上。
本申请实施例中,在进行不同应用对应的悬浮窗之间的切换时,用户能够选择是否保留原来显示的悬浮窗,能够进一步提升用户的使用体验。
示例性地,图11示出了本申请实施例提供的又一种悬浮窗显示的方法1100的示意性流程图。如图11所示,该方法1100包括:
电子设备的当前显示屏上显示有N个应用分别对应的N个悬浮窗,还显示有第一应用列表。
其中,关于第一应用列表的解释在图8所示的实施例中已经做了详细解释,为了简洁,在此不再赘述。
S1101:响应于用户点击第二应用图标的操作,确定电子设备显示屏上当前显示的悬浮窗的数量N是否大于或等于M,若是,则执行步骤S1102;若否,则执行步骤S1103,其中,M和N都为大于或等于1的正整数。
其中,M是指电子设备的显示屏上可以同时显示的悬浮窗个数。该M的取值可以是根据用户的输入确定的,还可以是系统自动确定的,还可以是根据当前电子设备的型号确定的,本申请对此不作限定。
在一种示例中,当电子设备为大屏电子设备(例如平板电脑等)时,M的默认取值可以是大于或等于2的任意正整数;当电子设备不是大屏电子设备(例如手机等)时,M的默认取值可以是1或2。
在另一种示例中,当电子设备为可折叠电子设备时,当该可折叠电子设备的状态为展开态时,M的默认取值为2至4中的任意整数;该可折叠电子设备的状态为折叠态时,M的默认取值为1或2。
其中,第二应用图标位于第一应用列表中,是指第二应用对应的应用图标。
S1102:在电子设备的显示屏上显示该第二应用对应的第二悬浮窗,同时取消显示第一应用对应的第一悬浮窗,该N个悬浮窗包括该第一悬浮窗。
其中,该步骤S1102还可以描述为:将电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第二悬浮窗。
应理解:上述第一悬浮窗并不是一个特定的悬浮窗,该第一悬浮窗可以是在电子设备的显示屏上同时显示的N个悬浮窗中的任意一个悬浮窗。
可选地,该第一悬浮窗可以是根据用户的输入确定的,还可以是根据该N个悬浮窗的优先级确定的(例如:将N个悬浮窗中优先级最低的悬浮窗确定为第一悬浮窗),还可以是系统自动确定的,还可以是系统根据用户的使用频率等确定的,本申请对此不作限定。
可选地,在执行该步骤S1102的同时,将该第二应用对应的第二应用图标在第一应用列表中移除,并将第一应用对应的第一应用图标增加至第一应用列表中。
可选地,该第一应用列表与悬浮窗同时显示于该电子设备的显示屏上。
S1103:在电子设备的显示屏上同时显示该第二应用对应的第二悬浮窗和该N个悬浮窗。
可选地,在执行该步骤S1103的同时,将该第二应用对应的第二应用图标在第一应用列表中移除。
可选地,该第一应用列表与悬浮窗同时显示于该电子设备的显示屏上。
可选地,电子设备能够根据其显示屏上同时显示的悬浮窗的个数对这些悬浮窗的大小和显示方式进行调节。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现快捷添加或切换悬浮窗,简化了操作步骤;并且,该方法支持在电子设备的显示屏上同时显示多个悬浮窗,能够自主设置同时显示的悬浮窗的个数,可以适用于用户同时处理多个任务的场景,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
为了更加清楚地理解本申请实施例中的第一应用列表的生成过程,示例性地,图12示出了本申请实施例提供的一种生成第一应用列表的方法1200的示意性流程图。如图12所示,该方法1200包括:
S1201:确定电子设备的最近任务列表是否不为空,若是,则执行步骤S1202。
可选地,该步骤S1201可以是循环执行的,例如可以是每隔一段时间执行一次。
可选地,该步骤S1201可以是在检测到最近任务列表有更新时执行。
S1202:从最近任务列表中的多个应用中筛选出支持悬浮窗显示的应用。
S1203:将筛选出的支持悬浮窗显示的应用添加至第一应用列表中。
可选地,当电子设备的显示屏上显示有悬浮窗时,将该第一应用列表同时显示在电子设备的显示屏上。
可选地,当电子设备的显示屏上显示有悬浮窗,且该悬浮窗在显示屏上的面积占比超过第一阈值时,将该第一应用列表同时显示在电子设备的显示屏上。该第一阈值可以是1/4至1之间的任意值,例如可以是1/3或1/2。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户可以通过该第一应用列表查看哪些应用支持悬浮窗显示,从而使得用户不需要通过进入最近任务列表并点击相应按钮的方式来判断当前应用是否支持悬浮窗显示,能够简化用户的操作步骤,从而提升用户的使用体验。
示例性地,图13示出了本申请实施例提供的一种电子设备1300的功能模块示意图。
如图13所示,该电子设备1300包括显示模块1310和确定模块1320。具体地:
显示模块1310,用于响应于用户的第一操作,在电子设备的显示屏上显示第一图标。
可选地,该第一图标可以是悬浮球,该第一图标还可以是带有悬浮窗标志的任意图标,本申请对此不作限定。
可选地,该第一图标显示的位置可以是电子设备的当前显示界面中的任意位置,例如可以是当前显示界面的空白处等,本申请对此不作限定。
可选地,用户的第一操作可以是用户用手指在电子设备的屏幕上向左滑动的操作,还可以是用户用手指在电子设备的屏幕上向右滑动的操作,还可以是根据用户的输入预先确定的用户操作,还可以是用户发出语音指令的操作,本申请对此不作限定。
可选地,当用户在一段时间内(例如20分钟)未对该第一图标执行进一步操作时,显示模块1310取消在电子设备的屏幕上显示该第一图标。
显示模块1310,还用于响应于用户点击该第一图标的操作,在电子设备1300的显示屏上显示第一应用列表,该第一应用列表中包括电子设备1300的最近任务列表中的所有支持悬浮窗显示的应用图标。
可以理解:该第一图标为第一应用列表的未展开状态。
应理解:第一应用列表中,多个应用图标的显示顺序不限定,可以是根据用户输入确定的,还可以是系统自动确定的,本申请对此不作限定。
应理解:由于显示屏大小的限制,第一应用列表中所显示出来的应用图标并不一定是电子设备1300的最近任务列表中所有支持悬浮窗显示的应用图标,用户可以通过对第一应用列表执行上滑或下拉的操作,来查看这些应用图标。
可选地,第一应用列表中能显示出来的应用图标个数可以是根据当前电子设备的屏幕大小确定的,也可以是根据用户的输入确定的,例如:第一应用列表中能显示的应用图标个数的上限为5个,该5个应用图标可以是从第一应用列表中的所有应用图标中随机确定的,也可以是根据第一应用列表中的所有应用图标的优先级确定的,还可以是根据用户的输入确定的,还可以是系统根据用户的使用频率确定的,本申请对此不作限定。
显示模块1310,还用于响应于用户点击第一应用图标的操作,在电子设备1300的显示屏上显示该第一应用对应的第一悬浮窗。
其中,第一应用图标位于第一应用列表中,是指第一应用对应的应用图标。
可选地,该第一应用对应的第一悬浮窗和第一应用列表同时显示于该电子设备1300的显示屏上。
可选地,在电子设备1300的显示屏上显示该第一应用对应的第一悬浮窗的同时,显示模块1310将该第一应用对应的应用图标在第一应用列表中移除。
可选地,该电子设备1300还包括:
确定模块1320,用于在电子设备的显示屏上显示该第一应用对应的第一悬浮窗之前,确定第一悬浮窗的位置、大小和缩放比;
显示模块1310,还用于根据悬浮窗的位置、大小和缩放比在电子设备的显示屏上显示该第一应用对应的第一悬浮窗。
本申请实施例中,第一应用列表中显示有最近任务列表中的所有支持悬浮窗显示的应用图标,用户 可以通过该第一应用列表查看哪些应用支持悬浮窗显示,用户还能够通过点击该第一应用列表中的应用图标实现应用从最近任务列表到悬浮窗的快速切换,简化了操作步骤,增强了使用悬浮窗的便利性,能够明显提升用户的使用体验。
本申请实施例还提供一种电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;以及一个或多个计算机程序,其中,一个或多个计算机程序被存储在一个或多个存储器中,该一个或多个计算机程序包括指令,当该指令被该一个或多个处理器执行时,使得该电子设备执行如图5至图12中任一项所示实施例的方法。
本文中所描述的模块或单元的一个或多个可以软件、硬件或二者结合来实现。当以上任一模块或单元以软件实现的时候,所述软件以计算机程序指令的方式存在,并被存储在存储器中,处理器可以用于执行所述程序指令并实现以上方法流程。所述处理器可以包括但不限于以下至少一种:中央处理单元(central processing unit,CPU)、微处理器、数字信号处理器(DSP)、微控制器(microcontroller unit,MCU)、或人工智能处理器等各类运行软件的计算设备,每种计算设备可包括一个或多个用于执行软件指令以进行运算或处理的核。该处理器可以内置于SoC(片上系统)或专用集成电路(application specificintegrated circuit,ASIC),也可是一个独立的半导体芯片。该处理器内处理用于执行软件指令以进行运算或处理的核外,还可进一步包括必要的硬件加速器,如现场可编程门阵列(field programmable gate array,FPGA)、PLD(可编程逻辑器件)、或者实现专用逻辑运算的逻辑电路。
当本文中所描述的模块或单元以硬件实现的时候,该硬件可以是CPU、微处理器、DSP、MCU、人工智能处理器、ASIC、SoC、FPGA、PLD、专用数字电路、硬件加速器或非集成的分立器件中的任一个或任一组合,其可以运行必要的软件或不依赖于软件以执行以上方法流程。
当本文中所描述的模块或单元使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid statedisk,SSD))等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若 干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种悬浮窗显示的方法,所述方法应用于电子设备,其特征在于,所述方法包括:
    响应于用户的第一操作,在所述电子设备的显示屏上显示第一列表,所述第一列表中包括P个应用图标,所述P个应用图标与P个应用一一对应,所述P个应用为所述电子设备的最近任务列表中的所有支持悬浮窗显示的应用,其中,P为大于或等于1的正整数;
    响应于用户的第二操作,在电子设备的显示屏上显示第一应用对应的第一悬浮窗,所述第二操作是针对所述第一应用的操作。
  2. 根据权利要求1所述的方法,其特征在于,在所述电子设备的显示屏上显示所述第一悬浮窗的同时,将所述第一应用图标从所述第一列表中移除。
  3. 根据权利要求1或2所述的方法,其特征在于,所述响应于用户的第一操作,在电子设备的屏幕上显示第一列表,包括:
    响应于用户的所述第一操作,在电子设备的屏幕上显示第一图标;
    响应于用户点击所述第一图标的操作,在所述电子设备的屏幕上显示所述第一列表。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户点击所述第一列表中的第二应用图标的操作,将所述电子设备的显示屏上显示的所述第一悬浮窗切换为第二应用对应的第二悬浮窗,所述第二应用图标对应于所述第二应用。
  5. 根据权利要求4所述的方法,其特征在于,在将所述第一悬浮窗切换为所述第二悬浮窗的同时,将所述第二应用图标从所述第一列表中移除,并将所述第一应用图标添加至所述第一列表中。
  6. 根据权利要求4或5所述的方法,其特征在于,所述第二悬浮窗与所述第一悬浮窗的位置、大小和缩放比相同。
  7. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户点击所述第一列表中的第二应用图标的操作,在所述电子设备的显示屏上显示第一弹窗,所述第一弹窗用于询问用户是否保留所述第一悬浮窗的显示,所述第一弹窗关联有第一控件;
    响应于用户点击所述第一控件的操作,在所述电子设备的显示屏上同时显示所述第一悬浮窗和第二应用对应的第二悬浮窗,所述第二应用图标对应于所述第二应用。
  8. 根据权利要求7所述的方法,其特征在于,所述第一弹窗还关联有第二控件,所述第二控件用于用户确认不保留所述第一悬浮窗的显示。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述响应于用户的第一操作,在所述电子设备的显示屏上显示第一列表,还包括:
    响应于用户的所述第一操作,确定所述电子设备的最近任务列表是否不为空;
    当确定所述电子设备的最近任务列表不为空时,获取所述最近任务列表中的所有支持悬浮窗显示的P个应用;
    将所述P个应用对应的P个应用图标添加至所述第一列表,并在所述电子设备的显示屏上显示所述第一列表。
  10. 根据权利要求7或8所述的方法,其特征在于,所述电子设备为平板电脑、可折叠电子设备、笔记本电脑中的任意一项。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述第一操作为在所述电子设备的显示屏上向左滑动的操作。
  12. 根据权利要求1至11中任一项所述的方法,其特征在于,所述第二操作为点击所述第一列表中的第一应用图标的操作。
  13. 一种悬浮窗显示的方法,其特征在于,所述方法应用于电子设备,所述电子设备的当前显示屏上同时显示有第一列表和N个悬浮窗,所述第一列表中包括P个应用对应的P个应用图标,所述P个应用为所述电子设备的最近任务列表中的所有支持悬浮窗显示的应用,所述方法包括:
    响应于用户点击所述第一列表中的第二应用图标的操作,确定N是否大于或等于M,其中,M为允许在所述电子设备的显示屏上同时显示的悬浮窗的数量,M、N、P均为大于或等于1的正整数;
    当确定N大于或等于M时,将所述电子设备的显示屏上显示的第一悬浮窗切换为第二应用对应的第 二悬浮窗,所述N个悬浮窗包括所述第一悬浮窗,所述第二应用图标对应于所述第二应用;或,
    当确定N小于M时,在所述电子设备的显示屏上同时显示所述第二悬浮窗和所述N个悬浮窗。
  14. 根据权利要求13所述的方法,其特征在于,所述第一悬浮窗为所述N个悬浮窗中优先级最低的悬浮窗,或,所述第一悬浮窗为所述N个悬浮窗中使用频率最低的悬浮窗。
  15. 根据权利要求13或14所述的方法,其特征在于,所述电子设备为平板电脑、可折叠电子设备、笔记本电脑中的任意一项。
  16. 根据权利要求14至15中任一项所述的方法,其特征在于,所述M为1、2、3、4、5中的任意一个数值。
  17. 根据权利要求13至16中任一项所述的方法,其特征在于,所述电子设备为可折叠电子设备,当所述电子设备的当前状态为折叠态时,所述M=1;当所述电子设备的当前状态为展开态时,所述M=2。
  18. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至11中任一项所述的方法,或,执行如权利要求13至17中任一项所述的方法。
  19. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有程序或指令,当所述程序或指令被运行时,实现如权利要求1至12中任一项所述的方法,或,实现如权利要求13至17中任一项所述的方法。
  20. 一种芯片,其特征在于,所述芯片中存储有指令,当所述指令在设备上运行时,使得所述芯片执行如权利要求1至12中任一项所述的方法,或,执行如权利要求13至17中任一项所述的方法。
PCT/CN2023/131183 2022-11-23 2023-11-13 悬浮窗显示的方法和电子设备 WO2024109573A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211469972.6A CN118113187A (zh) 2022-11-23 2022-11-23 悬浮窗显示的方法和电子设备
CN202211469972.6 2022-11-23

Publications (1)

Publication Number Publication Date
WO2024109573A1 true WO2024109573A1 (zh) 2024-05-30

Family

ID=91195164

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/131183 WO2024109573A1 (zh) 2022-11-23 2023-11-13 悬浮窗显示的方法和电子设备

Country Status (2)

Country Link
CN (1) CN118113187A (zh)
WO (1) WO2024109573A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609648A (zh) * 2019-08-30 2019-12-24 维沃移动通信有限公司 一种应用程序的控制方法及终端
CN111061419A (zh) * 2019-10-23 2020-04-24 华为技术有限公司 一种应用栏显示方法及电子设备
CN114327666A (zh) * 2020-09-30 2022-04-12 华为技术有限公司 应用启动方法、装置和电子设备
CN114911390A (zh) * 2022-07-17 2022-08-16 荣耀终端有限公司 显示方法及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609648A (zh) * 2019-08-30 2019-12-24 维沃移动通信有限公司 一种应用程序的控制方法及终端
CN111061419A (zh) * 2019-10-23 2020-04-24 华为技术有限公司 一种应用栏显示方法及电子设备
CN114327666A (zh) * 2020-09-30 2022-04-12 华为技术有限公司 应用启动方法、装置和电子设备
CN114911390A (zh) * 2022-07-17 2022-08-16 荣耀终端有限公司 显示方法及电子设备

Also Published As

Publication number Publication date
CN118113187A (zh) 2024-05-31

Similar Documents

Publication Publication Date Title
WO2021027747A1 (zh) 一种界面显示方法及设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021000881A1 (zh) 一种分屏方法及电子设备
US20240179237A1 (en) Screenshot Generating Method, Control Method, and Electronic Device
WO2021036585A1 (zh) 一种柔性屏显示方法和电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2020093988A1 (zh) 一种图像处理方法及电子设备
CN111913750B (zh) 一种应用程序管理方法、装置及设备
WO2021258814A1 (zh) 视频合成方法、装置、电子设备及存储介质
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2020155875A1 (zh) 电子设备的显示方法、图形用户界面及电子设备
WO2021238370A1 (zh) 显示控制方法、电子设备和计算机可读存储介质
CN114363462A (zh) 一种界面显示方法及相关装置
WO2022012418A1 (zh) 拍照方法及电子设备
WO2021042878A1 (zh) 一种拍摄方法及电子设备
CN112068907A (zh) 一种界面显示方法和电子设备
CN114995715B (zh) 悬浮球的控制方法和相关装置
CN113805797A (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
CN114089932A (zh) 多屏显示方法、装置、终端设备及存储介质
EP4163782A1 (en) Cross-device desktop management method, first electronic device, and second electronic device
EP4224298A1 (en) Screen display method and electronic device