Display method and related device

By modifying the translucent properties of the target application during the interface switching process, the problem of split-screen display is solved, the correct application display is achieved, and the reliability of interface switching is improved.

CN120469658AActive Publication Date: 2025-08-12HONOR DEVICE CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411295345.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-08-12
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

In existing split-screen pairing schemes, when electronic devices switch from split-screen pairs to the recent task interface, it may cause incorrect display of application pairs, such as split-screen pair B becomes full-screen content of application c and application d, rather than the expected split-screen display.

Method used

By modifying the translucent attribute of the target application to opaque during the startup process and restoring it to translucent at the end of the animation, the core module avoids the incorrect modification of the visibility of other applications, ensuring that the electronic device correctly obtains the visibility of the application pair.

Benefits of technology

It effectively avoids error display of split-screen pairs during interface switching, ensures the correct display status of application pairs, and improves the reliability of interface switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469658A_ABST
    Figure CN120469658A_ABST
Patent Text Reader

Abstract

The invention provides a display method and a related device. The method comprises the steps that a display screen displays a recent task interface, the recent task interface comprises thumbnails of at least two application pairs, and each application pair at least comprises two applications; receiving a first operation acting on the thumbnail of a first application pair, wherein the first application pair is one of the at least two application pairs; modifying the semitransparent attribute of the target application to be opaque in response to the first operation under the condition that the first application pair comprises the target application at the beginning of initiating the dynamic effect; wherein the target application is an application with a semitransparent attribute in the first application pair; when the dynamic effect is finished, modifying the semitransparent attribute of the target application from opaque to semitransparent again; and respectively displaying the interface of each application in the first application pair on the display screen by using a split-screen display function. By implementing the method, errors of the application pairs can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a display method and related devices. Background Art

[0002] At present, when users use electronic devices with larger display screens (such as foldable screen devices, tablets or large-screen mobile phones), these electronic devices usually support split-screen functions. In addition, there is already a split-screen pair solution. That is, applications can be combined in pairs. For example, split-screen pair A and split-screen pair B can be displayed in the recent tasks. After clicking split-screen pair A in the recent tasks, the screen can split-screen display the display content of application a and application b corresponding to split-screen pair A. After clicking split-screen pair B again in the recent tasks, the screen can split-screen display the display content of application c and application d corresponding to split-screen pair B. However, in the current split-screen pair solution, after clicking split-screen pair A in the recent tasks and then returning to the recent tasks, split-screen pair B may no longer exist in the recent tasks, but instead displays the full-screen content of application c and application d respectively, or, in the recent tasks, the split-screen pair consisting of application a and application c and the full-screen content of application b and application d are displayed. In other words, the current split-screen pair solution still has the problem of possible errors in split-screen pairs. Summary of the Invention

[0003] The embodiments of the present application provide a display method and related devices, which can avoid errors in split-screen pairing.

[0004] In the first aspect, the present application provides a display method, which is applied to an electronic device including a display screen, and the display screen has a split-screen display function; the method includes: the display screen displays a recent task interface, the recent task interface includes thumbnails of at least two application pairs, and each application pair includes at least two applications; receiving a first operation acting on the thumbnail of a first application pair, the first application pair being one of the at least two application pairs; at the beginning of initiating an animation, when the first application pair includes a target application, in response to the first operation, modifying the translucent attribute of the target application to opaque; wherein the target application is the application in the first application pair whose translucent attribute is translucent; at the end of the animation, the translucent attribute of the target application is modified from opaque to translucent; and displaying the interface of each application in the first application pair on the display screen with a split-screen display function.

[0005] In the current solution, due to the asynchronous execution of programs within the electronic device, the electronic device may modify the visibility of other applications (or the visibility of the interfaces of other applications) due to the presence of applications with translucent properties, thereby causing the electronic device to obtain incorrect visibility information, and thereby causing errors in the application pair. In an embodiment of the present application, by modifying the translucent property of the target application to opaque at the beginning of the initiation of the animation (i.e., the process of updating the interface displayed on the display screen from the recent task interface to displaying the interface of each application in the first application pair using the split-screen display function), the electronic device will not modify the visibility of other applications due to the presence of applications with translucent properties, thereby enabling the electronic device to correctly obtain the visibility of each application pair (or, each application), thereby avoiding errors in the application pair (or, split-screen pair).

[0006] In combination with the first aspect, in a possible implementation, the electronic device includes a shell module and a core module, and modifying the translucent attribute of the target application to opaque includes: sending a first window container transaction to the core module through the shell module, and the first window container transaction finds the operation that includes modifying the translucent attribute of the target application to opaque; parsing the first window container transaction through the core module, and modifying the translucent attribute of the target application to opaque.

[0007] In an embodiment of the present application, by setting the translucent attribute of the target application to opaque, the core module can be prevented from setting the visibility of the applications included in other application pairs to visible, thereby preventing the shell module from obtaining error information and further preventing application pair errors.

[0008] In combination with the first aspect, in a possible implementation, modifying the translucent attribute of the target application from opaque to translucent includes: sending a second window container transaction to the core module through the shell module, the second window container transaction including an operation of modifying the opaque attribute of the target application to translucent, the second window container transaction being a callback window container transaction of the first window container transaction; parsing the second window container transaction through the core module, and modifying the translucent attribute of the target application to translucent.

[0009] In an embodiment of the present application, by modifying the translucent property of the target application to be translucent again, the initial state (e.g., translucent) of the property (e.g., translucent property) of the target application can be restored while avoiding application errors.

[0010] In combination with the first aspect, in a possible implementation, the electronic device further includes a launcher module. Before the animation ends, the translucent property of the target application is changed from opaque to translucent, the method further includes: determining the visibility of at least two application pairs (or determining the visibility of each application in at least two application pairs) through the core module; and updating the visibility of at least two application pairs to the launcher module through the shell module.

[0011] In combination with the first aspect, in a possible implementation, the visibility of each application in the first application pair is visible, and the visibility of each application in at least two application pairs other than the first application is invisible.

[0012] In combination with the first aspect, in a possible implementation, the display screen includes a first screen and a second screen; the first application pair includes a target application and other applications; the interface of each application in the first application pair is displayed separately on the display screen with a split-screen display function, including: displaying the interface of the target application with a translucent attribute on the first screen, and displaying the interface of other applications with an opaque attribute on the second screen.

[0013] In combination with the first aspect, in a possible implementation, the first operation is a click, double-click, long press, or sliding operation on the thumbnail of the first application pair.

[0014] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method in the first aspect or any possible implementation of the first aspect.

[0015] In a third aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processors are used to call computer instructions to enable the electronic device to execute the method in the first aspect or any possible implementation of the first aspect.

[0016] In a fourth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method in the first aspect or any possible implementation of the first aspect.

[0017] The beneficial effects of the technical solutions provided in the second to fourth aspects of this application can refer to the beneficial effects of the technical solutions provided in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1A A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application;

[0020] Figure 1B A software structure block diagram of an electronic device 100 provided in an embodiment of the present application;

[0021] Figure 1C A schematic diagram of a software system framework provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of a user interface provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of a flow chart of a display method provided in an embodiment of the present application;

[0024] Figure 4 Another user interface diagram provided for an embodiment of the application;

[0025] Figure 5 An interactive schematic diagram of a display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.

[0027] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or touch panel. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or touch panel.

[0028] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is a source code written in a specific computer language such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>Nodes such as <head> and <body> are used to specify the controls contained in the interface. A node corresponds to a control or attribute in the interface, and the node is presented as user-visible content after parsing and rendering. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is a source code written in a specific computer language, such as hypertext markup language (GTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code, such as GTML through 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.

[0029] A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations that uses graphics. It can be an icon, window, control, or other interface element displayed on the display of an electronic device. Controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0030] First, an exemplary electronic device 100 provided in the following embodiments of the present application is introduced.

[0031] Figure 1A A schematic structural diagram of the electronic device 100 is shown.

[0032] 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. 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 180G, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

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

[0034] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), a modem processor, an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, etc. Among them, different processing units can be independent devices or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.

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

[0036] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly access the memory. This avoids repeated accesses, reduces the waiting time of processor 110, and thus improves the efficiency of electronic device 100.

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

[0038] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0039] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0040] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0041] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0042] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0043] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, 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.

[0044] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0045] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative description and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0046] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0047] 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 provides power to the processor 110, the internal memory 121, the external memory, the display 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 count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

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

[0049] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0050] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0051] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0052] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the electronic device 100. 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, frequency 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, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. Exemplarily, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, etc.

[0053] In some embodiments, 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).

[0054] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or modify display information.

[0055] Display screen 194 is used to display images, videos, and the like. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0056] The electronic device 100 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.

[0057] Camera 193 can be used to collect color image data and depth data of the subject. The ISP can be used to process the color image data collected by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and other factors. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be provided in camera 193.

[0058] In some embodiments, the camera 193 may be composed of a color camera module and a 3D sensing module.

[0059] In some embodiments, the photosensitive element of the camera of the color camera module can be a charge coupled device (CCD) or complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP for conversion 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 format such as RGB or YUV.

[0060] In some embodiments, the 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light 3D sensing module. Structured light 3D sensing is an active depth sensing technology, and its basic components may include an infrared emitter, an IR camera module, and the like. The operating principle of a structured light 3D sensing module is to first emit a specific pattern of light spots at the object being photographed, then receive the light coding on the object's surface, compare the light spot pattern with the original projected light spot, and calculate the object's three-dimensional coordinates using triangulation. These three-dimensional coordinates include the distance between the electronic device 100 and the object being photographed. Time of flight (TOF) 3D sensing is also an active depth sensing technology, and its basic components may include an infrared emitter, an IR camera module, and the like. The operating principle of a TOF 3D sensing module is to calculate the distance (i.e., depth) between the TOF 3D sensing module and the object being photographed based on the time it takes for the infrared light to return, thereby generating a 3D depth map.

[0061] Structured light 3D sensing modules can also be used in facial recognition, motion-sensing game consoles, industrial machine vision inspection, and other fields. Time of Flight 3D sensing modules can also be used in game consoles, augmented reality (AR) and virtual reality (VR).

[0062] In other embodiments, the camera 193 may also be composed of two or more cameras. The two or more cameras may include a color camera, which can be used to collect color image data of the object being photographed. The two or more cameras may use stereo vision technology to collect depth data of the object being photographed. Stereo vision technology is based on the principle of human eye parallax. Under natural light, two or more cameras are used to capture images of the same object from different angles, and then triangulation and other calculations are performed to obtain distance information between the electronic device 100 and the object being photographed, that is, depth information.

[0063] In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1. Specifically, the electronic device 100 may include one front camera 193 and one rear camera 193. The front camera 193 may generally be used to capture color image data and depth data of the photographer facing the display screen 194, while the rear camera 193 may be used to capture color image data and depth data of the subject (e.g., a person, scenery, etc.) facing the photographer.

[0064] In some embodiments, the CPU or GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera 193. In some embodiments, the NPU can identify the color image data collected by the camera 193 (specifically the color camera module) through a neural network algorithm based on the skeleton point recognition technology, such as a convolutional neural network algorithm (CNN), to determine the skeleton points of the person being photographed. The CPU or GPU can also run a neural network algorithm to determine the skeleton points of the person being photographed based on the color image data. In some embodiments, the CPU or GPU or NPU can also be used to confirm the figure of the person being photographed (such as body proportions, fatness and thinness of body parts between skeleton points) based on the depth data and identified skeleton points collected by the camera 193 (specifically the 3D sensing module), and can further determine the body beautification parameters for the person being photographed, and finally process the captured image of the person being photographed according to the body beautification parameters so that the body shape of the person being photographed in the captured image is beautified. How to perform body beautification processing on the image of the photographed person based on the color image data and depth data collected by the camera 193 will be described in detail in subsequent embodiments, which will not be described here in detail.

[0065] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0066] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

[0067] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0068] 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 via the external memory interface 120 to implement data storage functions. For example, data such as music, photos, and videos can be stored on the external memory card.

[0069] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can run the above instructions stored in the internal memory 121, so that the electronic device 100 executes the photo preview method of the electronic device provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data created during the use of the electronic device 100 (such as photos, contacts, etc.). In addition, 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.

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

[0071] 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. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0072] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0073] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.

[0074] Microphone 170C, also known as "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 the microphone 170C to input the sound signal into the 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 realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.

[0075] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0076] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0077] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope 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 gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0078] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0079] 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 case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0080] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0081] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0082] 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 is holding 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.

[0083] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0084] The fingerprint sensor 180G is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0085] The temperature sensor 180J is used to detect temperature. In some embodiments, 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 the 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 prevent the electronic device 100 from shutting down abnormally 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 prevent abnormal shutdown due to low temperature.

[0086] The touch sensor 180K may also be referred to as a touch panel or touch-sensitive surface. The touch sensor 180K may be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor may transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations may be provided via the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0087] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0088] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0089] 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. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0090] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0091] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it 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. In some embodiments, the electronic device 100 uses an eSIM, 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.

[0092] Figure 1A The exemplarily shown electronic device 100 can display the various user interfaces described in the following embodiments through the display screen 194. The electronic device 100 can detect touch operations in various user interfaces through the touch sensor 180K, such as click operations in various user interfaces (such as touch operations on icons, double-click operations), and for example, upward or downward sliding operations in various user interfaces, or operations of performing circle gestures, etc. In some embodiments, the electronic device 100 can detect motion gestures performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, etc. In some embodiments, the electronic device 100 can detect non-touch gesture operations through the camera 193 (such as a 3D camera, a depth camera).

[0093] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0094] Figure 1B It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0095] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

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

[0097] like Figure 1B As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0098] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0099] like Figure 1B As shown, the application framework layer may include a window manager, a content provider, a view system, an event manager, a phone manager, a resource manager, a notification manager, and the like.

[0100] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

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

[0102] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0103] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0104] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0105] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0106] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.

[0107] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0108] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0109] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0110] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0111] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, G.264, MP3, AAC, AMR, JPG, PNG, etc.

[0112] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0113] A 2D graphics engine is a drawing engine for 2D drawings.

[0114] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0115] Figure 1B The software system shown involves application presentation using sharing capabilities (such as gallery, file manager), instant sharing module that provides sharing capabilities, print service (print service) and print spooler that provide printing capabilities, as well as the application framework layer that provides printing framework, WLAN service, Bluetooth service, and the kernel and bottom layer that provide WLAN Bluetooth capabilities and basic communication protocols.

[0116] The following describes the workflow of the software and hardware of the electronic device 100 in combination with display scenarios.

[0117] When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the application layer to call the window manager of the application framework layer to modify the translucent properties of the application through the window manager, thereby avoiding application errors.

[0118] For details, see Figure 1C , Figure 1C A software system framework diagram provided in the embodiment of the present application may include a launcher module, a shell module and a core module. The core module and the shell module belong to Figure 1B The window manager in the application framework layer. The launcher module belongs to Figure 1B The core module is responsible for handling the most basic tasks, such as hardware management, memory management, and process scheduling. The core module is the foundation of the software system framework, providing the basic services and interfaces for all upper-layer components to operate. The shell module is responsible for providing an interface for users to interact with the system, which can be a command-line interface, a graphical user interface, or other forms of interactive interface. The shell module receives user input, converts it into instructions that the core module can understand, and presents the core module's output to the user. The launcher module is a component in the user interface used to launch applications or perform specific tasks. The launcher module can be a shortcut on the desktop, a start menu, an application drawer, a game launcher, etc. It provides users with an entry point for quickly accessing and launching other programs or services. In other words, the core module provides basic services, and the shell module builds on these services to provide users with a friendly interaction method. The shell module receives user commands or operations and executes them through the interface provided by the core module. The launcher module provides the ability to quickly launch applications, allowing users to easily access the programs or services they need.

[0119] At present, when users use electronic devices with larger display screens (such as foldable screen devices, tablets or large-screen mobile phones), these electronic devices usually support split-screen functions. In addition, there is already a split-screen pair solution. That is, applications can be combined in pairs. For example, split-screen pair A and split-screen pair B can be displayed in the recent tasks. After clicking split-screen pair A in the recent tasks, the screen can split-screen display the display content of application a and application b corresponding to split-screen pair A. After clicking split-screen pair B again in the recent tasks, the screen can split-screen display the display content of application c and application d corresponding to split-screen pair B. However, in the current split-screen pair solution, after clicking split-screen pair A in the recent tasks and then returning to the recent tasks, split-screen pair B may no longer exist in the recent tasks, but instead displays the full-screen content of application c and application d respectively, or, in the recent tasks, a split-screen pair consisting of application a and application c and the full-screen content of application b and application d are displayed. In other words, the current split-screen pair solution still has the problem that split-screen pairs may be wrong. Among them, split-screen pairs can also be called application pairs.

[0120] For example, see Figure 2 , Figure 2 A user interface diagram provided for an embodiment of the present application. When a user creates two application pairs and one full-screen application and enters the recent task interface, the user interface may display the following: Figure 2 The recent task interface shown in (A) includes two thumbnails of application pairs and a thumbnail of a full-screen application c. The two application pairs are application pair A consisting of application a1 and application a2, and application pair B consisting of application b1 and application b2. The translucent property of application a1 in application pair A is translucent, while the translucent properties of application a2, application b1 and application b2 in application pair B are opaque. When clicking Figure 2 After the thumbnail of A is applied in (A), the user interface can be displayed as follows Figure 2 The application a1 and application a2 are displayed separately in the split screen display function as shown in (B) in FIG. Figure 2 When the user interface shown in (B) returns to the recent tasks interface, it should be displayed as follows Figure 2 The recent task interface shown in (A) is shown in the figure. But in reality, it may show the following Figure 2 The recent task interface shown in (C). Figure 2 In the recent task interface shown in (C), there are three full-screen applications (application a1, application b1 and application c) and an application pair D consisting of application a2 and application b2. This is because, in Figure 2 After the recent task interface shown in (A) receives the first operation on the application a1 with the semi-transparent attribute, the application Figure 2 Before the split-screen display function is used to display application a1 and application a2, there will be other application groups (or applications) M (for example, before entering the Figure 2 Before the recent task shown in (A), the application displayed on the display screen) is located behind the interface of application a1 and the interface of application a2. It can be understood that application group M is still displayed on the display screen at this time, but is covered by application a1 and application a2, so application group M is not visible to the user. When the core module ensures the visibility of each application in the task group, due to the existence of application a1 with a semi-transparent attribute, the applications in other application pairs that should be invisible and located behind application a1 (for example, application b2) are modified (or set) to be visible, which causes the shell module to make an error when obtaining the visible application, thereby causing an error in the application pair. Among them, the first operation is used to update the display screen from displaying the recent task interface to displaying the interfaces of each application in a certain application pair (for example, application pair A) separately with a split-screen display function.

[0121] It should be noted that Figure 2 The application pair error shown in (C) is a possible error mode, and there may be other error modes. For example, another error mode may be that application a1 and application b2 form an application pair, and any one of application a2, application b1 and application c can be displayed in full screen and does not form an application pair with other applications. It should be noted that when Figure 2 After the interface shown in (A) receives the first operation for application A, that is, when the display screen changes from displaying Figure 2 The recent task interface shown in (A) is updated to show the following Figure 2 Before the split-screen display function is used to display application a1 and application a2 in application pair A, the information obtained by the shell module has already been wrong, instead of entering the Figure 2 The error occurs only after entering the recent tasks interface shown in (C), but you can check whether the error occurs by entering the recent tasks interface again.

[0122] In response to the above problems, the present application provides a display method. This method can avoid application errors by modifying the translucent properties of the application at a certain time. Figure 3-Figure 5 Related instructions.

[0123] See Figure 3 , which is a flow chart of a display method provided in an embodiment of the present application.

[0124] like Figure 3 As shown, the display method may include the following steps S301 to S305.

[0125] Step S301: The display screen displays the recent task interface.

[0126] The recent task interface includes thumbnails of at least two application pairs, and each application pair includes at least two applications.

[0127] For example, the display screen can display a recent task interface in a horizontal or vertical orientation, and the recent task interface includes thumbnails of at least two application pairs. Thumbnails can also be called cards.

[0128] The recent task interface may include thumbnails of at least two application pairs, and may also include thumbnails of at least two applications. An application pair may consist of two or more applications that can be displayed on the display screen using a split-screen display function. Figure 2 The recent task interface shown in (A) includes thumbnails of two application pairs (application pair A and application pair B) and a thumbnail of an application (application c). It can be understood that the thumbnails of the application pairs and / or the thumbnails of the applications displayed on the recent task interface represent the applications that the user has opened and used on the electronic device, which can also be said to be the most recently used applications. The thumbnails corresponding to the application pairs and / or the thumbnails corresponding to the applications can clearly display the content on an interface of the application corresponding to the thumbnail, or can fuzzily display the content on an interface of the application corresponding to the thumbnail. Furthermore, the thumbnail of any application pair can clearly display the content on an interface of one or more applications in the application pair, and fuzzily display the content on an interface of another one or more applications in the application pair. This embodiment of the present application does not limit this. For example, in Figure 2 On the recent task interface shown in (A), in the thumbnail of application A, the content of application a1's interface can be clearly displayed, and the content of application a2's interface can be blurred. Alternatively, the content of application a2's interface can be clearly displayed, and the content of application a1's interface can be blurred. Alternatively, the content of application a1's interface and the content of application a2's interface can be clearly displayed. Alternatively, the content of application a1's interface and the content of application a2's interface can be blurred.

[0129] Step S302: Receive a first operation on a thumbnail of a first application pair.

[0130] The first application pair is one of the at least two application pairs. That is, the recent task interface may include thumbnails of at least two application pairs, and the application pair corresponding to one of the thumbnails is the first application pair. Alternatively, it can be understood that in order to distinguish the application pair affected by the first operation from other application pairs, the application pair affected by the first operation is referred to as the first application pair.

[0131] The first operation is used to update the display screen from displaying the recent task interface to displaying the interfaces of each application in the first application pair using a split-screen display function.

[0132] In a possible implementation, the first operation portion may be a click operation, a double-click operation, a long press operation, or a slide operation on the thumbnail of the first application pair.

[0133] In a possible implementation, the electronic device may further include a launcher module.

[0134] Specifically, the launcher module may receive a first operation performed on a thumbnail of the first application pair.

[0135] Step S303 : at the start of initiating the animation effect, in a case where the target application is included in the first application pair, in response to the first operation, modifying the semi-transparent attribute of the target application to opaque.

[0136] The target application is an application in the first application pair whose translucent attribute is translucent.

[0137] In the embodiment of the present application, unless otherwise specified, the dynamic effect may refer to the dynamic effect of updating the content displayed on the display screen from the recent task interface to the interface of each application in the first application pair displayed separately using the split-screen display function.

[0138] For example, whether the translucent property of the target application in the first application pair is translucent can be determined by the Boolean value of the translucent property. For example, if the Boolean value of the translucent property of the application in the first application pair is true, then the application is the target application; if the Boolean value of the translucent property of the application in the first application pair is false, then the application is not the target application. Figure 2 In (A), application a1 in application pair A is the target application, that is, the Boolean value of the translucent property of application a1 is true; application a2 in application pair A is not the target application, that is, the Boolean value of the translucent property of application a2 is false.

[0139] That is, if there is an application in the first application pair whose translucent attribute is translucent, then that application is the target application. It is understood that the number of target applications in the application pair can be N, where N is an integer greater than or equal to 0. In other words, in an application pair, the number of target applications can be 0, 1, 2, etc., and this embodiment of the application does not limit this.

[0140] In the case that the first application pair includes the target application, that is, in the case that the number of target applications in the first application pair is greater than or equal to 1, in response to the first operation, the electronic device modifies the translucent attribute of the target application in the first application pair to opaque, and displays the interfaces of each application in the first application pair separately on the display screen with a split-screen display function.

[0141] For example, one implementation of modifying the translucent property of the target application to be opaque may be to set the Boolean value of the translucent property to false.

[0142] In one possible implementation, an electronic device may include a shell module and a core module. Modifying the semi-transparent attribute of a target application to opaque may specifically include: sending a first window container transaction to the core module via the shell module, where the first window container transaction includes an operation (or referred to as an instruction, command, or instruction, etc.) for modifying the semi-transparent attribute of the target application to opaque; and then, after the core module receives the first window container transaction, parsing the first window container transaction and modifying the semi-transparent attribute of the target application to opaque.

[0143] Exemplarily, after the shell module receives a first operation for a first application pair, if the first application pair includes a target application, the shell module includes an operation to modify the target application's translucent attribute to opaque in the first window container transaction sent to the core module. That is, if the first application pair includes the target application, the shell module notifies or instructs the core module to modify the target application's translucent attribute to opaque in the first window container transaction sent to the core module. It is understood that the shell module itself does not modify the target application's translucent attribute. Instead, after receiving the first window container transaction sent by the shell module, the core module parses the first window container transaction to obtain a command or instruction to modify the target application's translucent attribute. The core module then modifies the target application's translucent attribute to opaque based on the parsed first window container transaction. The first window container transaction may be sent to the core module when an animation is initiated. That is, the first window container transaction that initiates the animation may include a command or instruction to modify the target application's translucent attribute from translucent to opaque.

[0144] Step S304: When the animation ends, the translucent property of the target application is modified from opaque to translucent.

[0145] Since the original translucent attribute of the target application is translucent, after the shell module correctly obtains the visibility of each application and / or each application in the application pair, the electronic device needs to modify the translucent attribute of the target application from opaque to translucent.

[0146] For example, one implementation of modifying the translucent property of the target application from opaque to translucent may be to modify the Boolean value of the translucent property from false to true.

[0147] Among them, when the dynamic effect ends, it can refer to the display screen showing Figure 2 In (B), the split-screen display function is used to display the interfaces of application a1 and application a2 in application pair A. Alternatively, the translucent property of the target application can be changed from opaque to transparent before the animation ends.

[0148] In one possible implementation, the translucent property of the target application is modified from opaque to translucent, including: when the animation ends, sending a second window container transaction to the core module through the shell module, the second window container transaction including an operation of modifying the opaque property of the target application to translucent, and the second window container transaction being a callback window container transaction of the first window container transaction; parsing the second window container transaction through the core module, and modifying the translucent property of the target application to translucent.

[0149] Exemplarily, when the animation ends, it means that the shell module has correctly obtained the visibility of each application and / or each application in the application pair, and is not affected by the target application. At this time, the shell module can send a second window container transaction (i.e., the callback window container transaction of the first window container transaction) to the core module. In the second window container transaction, a command or instruction to change the translucent attribute of the target application from opaque to translucent can be carried. Therefore, after the core module receives the second window container transaction and parses the second window container transaction, the translucent attribute of the target application can be changed from opaque to translucent according to the instruction or command in the second window container transaction. Thus, under the premise that the attributes of the target application (for example, the translucent attribute) are not changed in the end, errors in the application pair are avoided. That is to say, after adopting the display method provided by the present application, in the following example Figure 2 After clicking on the application pair A including the target application a1 in the recent task interface shown in (A), the following can still be displayed when the recent task interface is displayed again: Figure 2 The recent tasks interface shown in (A).

[0150] In one possible implementation, the electronic device also includes a launcher module. Before the animation ends, the translucent property of the target application is changed from opaque to translucent, including: determining the visibility of at least two application pairs through the core module; and updating the visibility of at least two application pairs to the launcher module through the shell module.

[0151] That is to say, after initiating the animation, before re-modifying the target's translucent property from opaque to translucent, the visibility of at least two application pairs in the recent task interface can be determined by the core module. After the translucent property of the target application is modified from translucent to opaque by the core module, when the core module determines the visibility of each application and / or each application pair, the visibility of the application in other application pairs will not be modified from invisible to visible due to the target application, so that the core module can obtain the correct visibility of each application and / or each application pair. That is, after initiating the animation, when determining the visibility of at least two application pairs in the recent task interface by the core module, it can be obtained that the visibility of each application in the first application pair is visible, and the visibility of each application in at least two application pairs other than the first application (that is, other application pairs other than the first application in the recent task interface) is invisible. Then, the shell module updates the visibility of the at least two applications to the launcher module based on the visibility information (visibility of the at least two application pairs) obtained by the core module, thereby avoiding errors in application pairs.

[0152] Step S305 : Displaying the interfaces of the respective applications in the first application pair on the display screen using a split-screen display function.

[0153] In one possible implementation, the display screen includes a first screen and a second screen, the first application pair includes a target application and other applications, and a split-screen display function displays the interface of each application in the first application pair on the display screen, including: displaying the interface of the target application with a translucent attribute as semi-transparent on the first screen, and displaying the interface of other applications with an opaque translucent attribute on the second screen.

[0154] For example, Figure 2 As shown in (B), the display screen includes a first screen on the left and a second screen on the right. The interface of application a1 (target application) is displayed on the first screen, and the interface of application a2 (other application) is displayed on the second screen. Since application a1 is the target application, after the translucent attribute of application a1 is changed from opaque to translucent, the interface of application a1 is still displayed with the translucent attribute as translucent, and the interface of application a2 is displayed with the translucent attribute as opaque. It should be noted that the first screen on the left and the second screen on the right is an example. It can also be that the left side of the display screen is the second screen and the right side is the first screen; it can also be as follows Figure 4 The user interface shown has a first screen on the top (displaying application a1) and a second screen on the bottom (displaying application a2); it can also be the second screen on the top and the first screen on the bottom. Furthermore, when the number of applications in the application pair is greater than 2, the number of first screens and / or second screens on the display screen can be greater than 1. The embodiments of the present application are not limited to this. It is understandable that an application pair consisting of 2 applications may include left and right split-screen applications or top and bottom split-screen applications, and an application pair consisting of more than 2 applications may include left and right split-screen applications or top and bottom split-screen applications. In addition, it can also include left and right split-screen applications and top and bottom split-screen applications. It is understandable that application pairs with different split-screen forms can be displayed simultaneously on the recent task interface, for example, application pairs with top and bottom split-screen applications and left and right split-screen application pairs can be displayed simultaneously, and the embodiments of the present application are not limited to this. If the application pair with top and bottom split-screen applications (or application pairs with other split-screen forms) includes an application with a translucent attribute of translucent, the display method provided by the embodiments of the present application can also be applied.

[0155] See Figure 5 , which is an interactive schematic diagram of a display method provided in an embodiment of the present application.

[0156] like Figure 5 As shown, the following steps S501 to S509 may be included.

[0157] Step S501: The launcher module receives a first operation.

[0158] The display shows Figure 2 In the recent task interface shown in (A), the first operation performed on the thumbnail of the first application pair can be received by the launcher module.

[0159] Step S502: The launcher module sends a first notification to the shell module.

[0160] Correspondingly, the shell module receives the first notification.

[0161] The first notification is used to notify the shell module to build a first window container transaction and initiate an animation.

[0162] Step S503: The shell module initiates an animation and builds a first window container transaction.

[0163] The term "build" may also be referred to as "create." After receiving the first notification sent by the launcher module, the shell module may initiate an animation and build a first window container transaction based on the first notification.

[0164] Wherein, in a case where the first application pair includes the target application, the first window container transaction constructed by the shell module includes an operation of modifying the semi-transparent attribute of the target application to opaque.

[0165] Step S504: the shell module sends the first window container transaction to the core module.

[0166] Correspondingly, the core module receives the first window container transaction.

[0167] Step S505: The core module parses the first window container transaction.

[0168] After receiving the first window container transaction, the core module may parse the first window container transaction and modify the visibility of the semi-transparent attribute of the target application based on the first window container transaction.

[0169] Step S506: The core module determines the visibility of at least two application pairs.

[0170] Determining the visibility of at least two application pairs can be understood as determining the visibility of each application in the at least two application pairs. It is understandable that if the core module does not modify the translucent attribute of the target application to opaque in step S505, then in step S506, when the core module determines the visibility of the at least two application pairs, since the translucent attribute of the target application is translucent, the core module may modify the visibility of the applications in other application pairs from invisible to visible, thereby causing an error in the visibility of the at least two application pairs determined by the core module.

[0171] By changing the translucent attribute of the target application from opaque to transparent through the core module, the core module can obtain correct information when determining the visibility of at least two applications, thereby obtaining a correct application pair and avoiding application pair errors.

[0172] Step S507: The shell module obtains visibility of at least two application pairs from the core module.

[0173] It is understandable that when errors occur in the at least two application pairs determined by the core module, the visibility of the at least two application pairs obtained by the shell module from the core module is also wrong.

[0174] Step S508: The shell module sends the second window container transaction to the core module.

[0175] Correspondingly, the core module receives the second window container transaction.

[0176] At the end of the animation, or just before the animation ends, the shell module sends a second window container transaction to the core module. The second window container transaction is a callback window container transaction to the first window container transaction. The second window container transaction includes an operation that resets the target application's translucent attribute to semi-transparent.

[0177] After receiving the second window container transaction, the core module parses the second window container transaction and changes the translucent attribute of the target application from opaque to translucent.

[0178] Among them, steps S503 to S508 can be executed during the animation process from the initiation of the animation to the end of the animation.

[0179] In step S509 , the shell module sends the visibility of at least two application pairs to the launcher module.

[0180] Accordingly, the launcher module receives visibility of at least two applications.

[0181] Among them, step S509 can be executed during the animation process or after the animation ends, and this embodiment of the application does not limit this.

[0182] After the animation ends, the display can show Figure 2 In the middle (B), application a1 and application a2 are displayed separately using the split-screen display function.

[0183] In the embodiment of the present application, by modifying the translucent property of the target application to opaque during the animation process, the core module can be prevented from obtaining incorrect application pair information (visibility of the application pair), thereby avoiding application pair errors.

[0184] An embodiment of the present application further provides an electronic device, the electronic device comprising: one or more processors and a memory;

[0185] The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method shown in the above embodiment.

[0186] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0187] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).

[0188] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A display method, characterized in that: Applicable to an electronic device including a display screen having a split-screen display function; the method includes: The display screen displays a recent task interface, wherein the recent task interface includes thumbnails of at least two application pairs, and each application pair includes at least two applications; receiving a first operation performed on a thumbnail of the first application pair, where the first application pair is one of the at least two application pairs; At the start of initiating the animation effect, if the first application pair includes a target application, in response to the first operation, modifying the translucent attribute of the target application to opaque; wherein the target application is the application in the first application pair whose translucent attribute is translucent; When the animation ends, changing the translucent property of the target application from opaque to translucent; The interfaces of the respective applications in the first application pair are displayed separately on the display screen using a split-screen display function.

2. The method according to claim 1, characterized in that The electronic device includes a shell module and a core module, and the modifying the translucent attribute of the target application to be opaque includes: Sending a first window container transaction to the core module through the shell module, wherein the first window container transaction includes an operation of modifying a semi-transparent attribute of the target application to an opaque attribute; The first window container transaction is parsed by the core module, and the semi-transparent attribute of the target application is modified to opaque.

3. The method according to claim 2, characterized in that Modifying the translucent property of the target application from opaque to translucent includes: sending, through the shell module, a second window container transaction to the core module, wherein the second window container transaction includes an operation of modifying the opaque attribute of the target application to semi-transparent, and the second window container transaction is a callback window container transaction of the first window container transaction; The second window container transaction is parsed by the core module, and the translucent attribute of the target application is modified to be translucent.

4. The method according to claim 2 or 3, characterized in that The electronic device further includes a launcher module. Before the animation ends and the translucent property of the target application is changed from opaque to translucent, the method further includes: Determining visibility of the at least two application pairs by the core module; The visibility of the at least two application pairs is updated to the launcher module through the shell module.

5. The method according to claim 4, characterized in that The visibility of each application in the first application pair is visible, and the visibility of each application in the at least two application pairs except the first application is invisible.

6. The method according to claim 4 or 5, characterized in that The display screen includes a first screen and a second screen, the first application pair includes the target application and other applications; and displaying interfaces of each application in the first application pair on the display screen using a split-screen display function includes: The interface of the target application is displayed on the first screen with a semi-transparent attribute, and the interface of the other application is displayed on the second screen with an opaque attribute.

7. The method according to any one of claims 1 to 6, characterized in that The first operation is a click, double-click, long press, or slide operation on the thumbnail of the first application pair.

8. An electronic device, characterized in that: The electronic device includes: one or more processors, a memory and a display screen; The memory is coupled to the one or more processors, and is configured to store computer program codes, where the computer program codes include computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 7.

9. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method as described in any one of claims 1-7.

10. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method of windows management

    CN101055520A

  • Application split screen method, application split screen device and intelligent terminal

    CN104808782A

  • Alarm clock control method and mobile terminal

    CN105635449A

  • Method and device for processing notification message, and mobile terminal

    CN108111675A

  • Split-screen display method and electronic equipment

    CN111142730A