WO2021104030A1 - 一种分屏显示方法及电子设备 - Google Patents

一种分屏显示方法及电子设备 Download PDF

Info

Publication number
WO2021104030A1
WO2021104030A1 PCT/CN2020/128357 CN2020128357W WO2021104030A1 WO 2021104030 A1 WO2021104030 A1 WO 2021104030A1 CN 2020128357 W CN2020128357 W CN 2020128357W WO 2021104030 A1 WO2021104030 A1 WO 2021104030A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
electronic device
display area
user
display
Prior art date
Application number
PCT/CN2020/128357
Other languages
English (en)
French (fr)
Inventor
关驰
王剑锋
苏宏凯
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20894833.1A priority Critical patent/EP4057119A4/en
Priority to US17/780,915 priority patent/US20220413695A1/en
Publication of WO2021104030A1 publication Critical patent/WO2021104030A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • This application relates to the field of human-computer interaction, and in particular to a split-screen display method and electronic equipment.
  • the embodiments of the present application provide a split-screen display method and electronic device, which can lock the display content of a split-screen display area.
  • an embodiment of the present application provides a split-screen display method.
  • the method includes: an electronic device displays a first interface of a first application in a first display area of a display screen, and displays a first interface of a first application in a second display area of the display screen.
  • the electronic device receives the first operation input by the user, and in response to the first operation, the electronic device displays the main interface of the electronic device on the display screen in full screen;
  • the electronic device displays a third interface of a third application in the first display area, and displays a fourth interface of a fourth application in the second display area;
  • the electronic device receives user input on the first display area The third operation;
  • the electronic device receives the fourth operation input by the user, in response to the fourth operation, the electronic device displays the third interface in the first display area, and in the second display area
  • the main interface is displayed, and the operation mode of the fourth operation is the same as the operation mode of the first operation. In this way, the user can conveniently lock the display content of a split-screen display area, which improves the efficiency of user operations.
  • the electronic device when the electronic device displays the third interface in the first display area and displays the main interface in the second display area, the electronic device receives The fifth operation of the third interface input; in response to the fifth operation, the electronic device displays the third interface in the first display area, and displays the third application in the second display area The fifth interface.
  • the electronic device when the electronic device displays the third interface in the first display area and displays the fifth interface of the third application in the second display area, the electronic device The device receives the sixth operation input by the user on the second display area; the electronic device receives the seventh operation input by the user on the third interface; in response to the seventh operation, the electronic device is in the The first display area displays the sixth interface of the third application, and the fifth interface is displayed in the second display area.
  • the electronic device when the electronic device displays the first interface in the first display area and displays the second interface in the second display area, the electronic device receives user input The eighth operation; in response to the eighth operation, the electronic device displays a seventh interface in full screen on the display screen, the seventh interface including the interface content of the first interface and the interface of the second interface Content; when the electronic device displays the third interface in the first display area and displays the main interface in the second display area, the electronic device receives the ninth operation input by the user; In the ninth operation, the electronic device displays the third interface in the first display area, and displays an eighth interface in the second display area, where the eighth interface includes the interface content of the first interface, For the interface content of the second interface and the interface content of the fourth interface, the operation mode of the ninth operation is the same as the operation mode of the eighth operation.
  • the electronic device when the electronic device displays the first interface in the first display area and displays the second interface in the second display area, the electronic device receives user input In response to the tenth operation, the electronic device displays the interface content of the first interface or the interface content of the second interface on the display screen in full screen; when the electronic device is in the The first display area displays the third interface. When the fourth interface is displayed in the second display area, the electronic device receives the eleventh operation input by the user on the first display area.
  • the operation mode of the eleventh operation is the same as that of the third operation; the electronic device receives the twelfth operation input by the user; in response to the twelfth operation, the electronic device is in the first
  • the display area displays the third interface, and the main interface is displayed in the second display area.
  • the first display area includes a first control
  • the second display area includes a second control
  • the electronic device receives the first control input by the user on the first display area.
  • the first control is displayed in the first state
  • the second control is displayed in the first state
  • the method further includes: in response to the third operation, the electronic device displays the first state A control is switched from being displayed in the first state to being displayed in the second state.
  • the method further includes: the electronic device receives the user input for the first control
  • the electronic device verifies the user's identity; if the verification is passed, the electronic device switches the first control from the second state to the display The first state.
  • the method further includes: the electronic device acquires the user's biological characteristics; the electronic device The device determines that the biological characteristics match the pre-stored biological characteristics; the electronic device receives the fourteenth operation input by the user for the first control, and in response to the fourteenth operation, the electronic device sets the A control is switched from being displayed in the second state to being displayed in the first state.
  • the method further includes: the electronic device acquires the user's biological characteristics; the electronic device The device determines that the biological characteristics do not match the pre-stored biological characteristics; the electronic device receives the fifteenth operation input by the user, and in response to the fifteenth operation, the electronic device verifies the user identity; if the verification passes, then The electronic device switches the first control from being displayed as the second state to being displayed as the first state.
  • this application provides an electronic device including one or more memories, a foldable display screen, and one or more memories.
  • the one or more memories are coupled with one or more processors, the foldable display screen is in communication with the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions
  • the electronic device is caused to execute the foregoing first aspect and the split-screen display method in any one of the possible implementation manners of the first aspect.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the first aspect described above and any one of the possible implementations of the first aspect Split screen display method in.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned first aspect and the split-screen display in any one of the possible implementations of the first aspect method.
  • the user inputs an operation for a split-screen display area, such as clicking a lock control of a split-screen display area, and in response to the operation, the electronic device locks the display content of the split-screen display area.
  • the display content of a split-screen display area can be conveniently locked, which improves the efficiency of user operations.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1B is a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • FIGS. 2A-2B are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIG. 2C is a schematic diagram of an electronic device 10 provided by an embodiment of the present application.
  • 3A-3C are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIG. 3D is a flowchart of a method for locking a display area provided by an embodiment of the present application.
  • FIGS. 4A-4F are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIG. 4G is a flowchart of a method for opening an application provided by an embodiment of the present application.
  • FIG. 5A is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 5B is a flowchart of a method for opening an Activity provided by an embodiment of the present application.
  • 5C-5D are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIGS. 6A-6B are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIG. 7 is a flowchart of a method for opening an Activity provided by an embodiment of the present application.
  • FIG. 8A is a flowchart of a method for unlocking a locked state according to an embodiment of the present application.
  • FIG. 8B is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 8C is a schematic diagram of an electronic device 10 provided by an embodiment of the present application.
  • FIG. 8D is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 9A is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 9B is a flowchart of a return operation provided by an embodiment of the present application.
  • FIG. 9C-FIG. 9I are schematic diagrams of some display interfaces provided by embodiments of the present application.
  • FIG. 10 is a flowchart of a split-screen display method provided by an embodiment of the present application.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or a touch panel. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel.
  • UI user interface
  • the term user interface (UI) in the specification, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users. It realizes the internal form of information and the user interface. Can accept the conversion between forms.
  • the user interface of the application program is the source code written in a specific computer language such as java, extensible markup language (XML), etc.
  • the interface source code is parsed and rendered on the electronic device 300 device, and finally presented as identifiable by the user Content, such as pictures, text, buttons and other controls.
  • Controls are the basic elements of the user interface. Typical controls include buttons, widgets, toolbars, menu bars, text boxes, and scroll bars. scrollbar), pictures and text.
  • the attributes and content of the controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or attribute in the interface, and the node is rendered as user-visible content after parsing and rendering.
  • applications such as hybrid applications, usually contain web pages in their interfaces.
  • a web page, also called a page, can be understood as a special control embedded in the application program interface.
  • the web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • 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 the browser.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of the web page through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • Activity in the description, claims and drawings of this application is one of the basic components of Android.
  • Activity can provide a graphical user interface for the electronic device to realize the interaction between the electronic device and the user.
  • an application contains multiple user interfaces.
  • the WeChat application can include a chat interface and a message list interface.
  • each user interface corresponds to an activity
  • multiple activities corresponding to the multiple user interfaces form an application activity stack, that is, a task. These activities are queued and stored in a stack according to the startup sequence.
  • the electronic device manages the Activity through the stack.
  • the main interface (launcher interface) of the electronic device 10 is the starting point of the task.
  • the task of the application will appear in the foreground. If the application does not have a task (the application has not been used recently), a new task will be created, and the initial Activity of the application will be opened as the root Activity in the stack.
  • the new Activity When the current Activity starts another Activity, the new Activity will be pushed to the top of the stack and become the focus.
  • the previous Activity remains in the stack, but it is in a stopped state.
  • the system maintains the current state of its user interface.
  • the current Activity When the user presses the "Back” button, the current Activity will pop up from the top of the stack (Activity is destroyed), and the previous Activity will resume execution (Restore the previous state of its UI). Activities in the stack will not be rearranged, only push and pop the stack, that is, push the stack when the current Activity is started, and pop the stack when the user exits with the "Back" button.
  • the electronic device if the electronic device displays a display interface of an application in full screen, then the electronic device has a task stack of the application. If the electronic device displays multiple display areas on a split screen, there are multiple task stacks corresponding to the multiple display areas in the electronic device, and one display area corresponds to one task stack.
  • a task stack can contain one or more application activities.
  • the display screen of the electronic device includes two display areas, namely a display area 221 and a display area 223.
  • the display area 221 may correspond to the active task stack A, and the display area 223 corresponds to the active task stack B.
  • the electronic device provides a split screen lock function.
  • the display screen of the electronic device is divided into two or more display areas.
  • one display area can display an application interface
  • one display area can contain a lock control.
  • the display screen of the electronic device includes two display areas, namely a display area 221 and a display area 223.
  • the display area 221 is used to display a chat interface of an instant messaging application (an example is QQ), and the display area 223 is used to display an interface of another instant messaging application (an example is WeChat).
  • the display area 221 includes a lock control 225, and the display area 223 includes a lock control 227.
  • the lock control 225 and the lock control 227 are both displayed in an unlocked state.
  • the electronic device switches the display state of the lock control 227 to the locked state (refer to the display state of the lock control 227 in FIG. 3B), and then The task stack corresponding to the display area where the lock control is located is switched to the locked state.
  • the task stack corresponding to the first display area no longer adds activities, or no longer adds activities other than the first application. In this way, the electronic device locks the display content of the first display area.
  • FIG. 1A shows a schematic diagram of the structure of the electronic device 10.
  • the electronic device 10 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, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera module 193, display 194 , And subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180G, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 10.
  • the electronic device 10 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a central processing unit (CPU), and a graphics processing unit (GPU).
  • AP application processor
  • CPU central processing unit
  • GPU graphics processing unit
  • NPU Neural network processor
  • modem processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor etc.
  • the different processing units may be independent devices or integrated in one or more processors.
  • the electronic device 10 may also include one or more processors 110.
  • the controller may be the nerve center and command center of the electronic device 10.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 10 is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera module 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the display screen 194 communicate through a DSI interface to implement the display function of the electronic device 10.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 10, and can also be used to transfer data between the electronic device 10 and peripheral devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 10.
  • the electronic device 10 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera module 193, and the wireless communication module 160.
  • the wireless communication function of the electronic device 10 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 10.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • LNA low noise amplifier
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the 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.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may 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 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
  • the antenna 1 of the electronic device 10 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 10 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), broadband Code division multiple access (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, etc.
  • the electronic device 10 can implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 10 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 10 can realize a camera function through a camera module 193, an ISP, a video codec, a GPU, a display screen 194, an application processor AP, a neural network processor NPU, and the like.
  • the camera module 193 can be used to collect color image data of the subject.
  • the ISP can be used to process the color image data collected by the camera module 193.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 10 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 10 may support one or more video codecs. In this way, the electronic device 10 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, MPEG-4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 10 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • 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 10.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, photos, videos and other data in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 10 to execute the photographing 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 storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 10.
  • 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the electronic device 10 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 10 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 10 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 10 may be provided with at least one microphone 170C.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 10 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 10 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 10 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 10. In some embodiments, the angular velocity of the electronic device 10 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 10 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 10 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 10 in various directions (generally three axes). When the electronic device 10 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 10 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 10 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 10 emits infrared light to the outside through the light emitting diode.
  • the electronic device 10 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 10. When insufficient reflected light is detected, the electronic device 10 can determine that there is no object near the electronic device 10.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 10 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 10 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180G is used to collect fingerprints.
  • the electronic device 10 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the electronic device 10 can also use the fingerprint characteristics collected by the fingerprint sensor 180G to unlock the locked state of a display area, so that a display area is switched from the locked state to the unlocked state.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 10 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 value, the electronic device 10 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 10 heats the battery 142 to avoid abnormal shutdown of the electronic device 10 due to low temperature.
  • the touch sensor 180K can also be called a touch panel or a touch-sensitive surface.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 10, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 10 can receive key input, and generate key signal input related to user settings and function control of the electronic device 10.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibrating notification of incoming calls, and can also be used for touch vibration feedback.
  • different touch operations acting on the lock control can correspond to different vibration feedback effects.
  • the touch operation of clicking the lock control and long-pressing the lock control can correspond to different vibration feedback effects.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 10.
  • the electronic device 10 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device 10 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
  • the electronic device 10 exemplarily shown in FIG. 1A can display various user interfaces described in the following embodiments through a display screen 194.
  • the electronic device 10 can detect touch operations in each user interface through the touch sensor 180K, such as a click operation in each user interface (such as a touch operation on an icon, a double-click operation), and for example, up or up in each user interface. Swipe down, or perform circle-drawing gestures, and so on.
  • the electronic device 10 can detect a motion gesture performed by the user holding the electronic device 10, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like.
  • the electronic device 10 can detect non-touch gesture operations through the camera module 193 (such as a 3D camera, a depth camera).
  • the structure illustrated in FIG. 1A does not constitute a specific limitation on the electronic device 10.
  • the electronic device 10 may include more or less components than those shown in 1A, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the software system of the electronic device 10 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 10 by way of example.
  • FIG. 1B is a software structure block diagram of an electronic device 10 provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include one or more applications.
  • FIG. 1B exemplarily shows applications such as a desktop launcher (Launcher), a system user interface (SystemUI), a setting (Setting), a camera, a gallery, a calendar, a navigation, a reading, a music, a video, and a short message.
  • the application layer can also include other applications, such as: telephone, game applications, instant messaging applications, shopping applications, and so on.
  • Launcher is one of the main program components in the Android system.
  • the electronic device 10 launches the Android desktop through the Launcher.
  • SystemUI is the system interface of the Android system. It may include a status bar at the top of the user interface of the electronic device 10, a navigation bar at the bottom (Navigation Bar), a lock screen interface (Keyguard), a power interface (PowerUI), a recent task interface (Recent Task), and so on.
  • SystemUI adjusts the display state of the task stack through the policy module according to the detected operation of the user clicking the lock control. For example, display the locked state switch of the task stack as the unlocked state, or display the unlocked state switch as the locked state.
  • the setting is an application program of the electronic device 10.
  • the user can customize various function options of the electronic device 10 through settings, for example, Bluetooth, GPS (Global Positioning System), Wi-Fi, and so on.
  • the user can also use the settings to customize various setting options of the electronic device, for example, display brightness, volume size, display font size, and so on.
  • the user can customize the split screen lock function provided in the embodiments of the present application by setting, and the split screen lock function can be turned on or off.
  • the lock control can be displayed in multiple display areas of the display screen of the electronic device 10, and the user can click (or, Double-click, long-press and other operations)
  • the lock control locks the display content in a display area.
  • the split screen lock function is turned off, the electronic device 10 is in a split screen display scenario, and the lock control is not displayed in multiple display areas of the display screen of the electronic device 10.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications at the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG. 1B, the application framework layer may include an activity management module (ActivityManagerService), a window management module (WindowManagerService), a screen lock module, a phone manager, a notification manager, etc. among them:
  • ActivityManagerService activity management module
  • WindowManagerService window management module
  • screen lock module a phone manager
  • notification manager etc. among them:
  • ActivityManagerService can be used to manage various activities of the electronic device 10. Specifically, for each Activity created by the application of the electronic device 10, there will be an ActivityRecord corresponding to it in the ActivityManagerService. ActivityManagerService will use this ActivityRecord as an identifier to manage the activity of the application.
  • the ActivityManagerService may include an activity starter module (ActivityStarter), a task starter module (TaskStarter), and an activity task stack and life cycle management module. Among them, ActivityStarter can be used to start a new Activity, TaskStarter can be used to create a new Task, and the activity task stack and life cycle management module can be used to schedule the Activity in the application and manage the life cycle of the Activity. Adjust the state of the task stack, and so on.
  • WindowManagerService is responsible for the window management of the electronic device 10.
  • WindowManagerService can be used for window creation and destruction, window display and hiding, window layout, input method management and wallpaper management, etc.
  • Each Activity will have its own window, and there will be a WindowState corresponding to the Activity in WindowManagerService.
  • WindowManagerService uses this to identify the window in the application, and uses this WindowState to store, query and control the state of the window.
  • WindowManagerService may include an animation module and a window display module. Among them, the motion effect module can be used to provide animation effects for window switching.
  • the window display module can be used to create and display windows.
  • the screen locking module can be used to lock or unlock the screen of the electronic device 10.
  • the screen lock module may display a lock screen interface above the entire display area of the current display screen of the electronic device 10.
  • the screen lock module can be based on the received user’s input unlocking password (for example, numbers or patterns, etc.) or the acquired user’s physiological data (for example, fingerprint information, facial information, voiceprint information, iris information). , Etc.) to determine whether to unlock the screen of the electronic device.
  • the received unlocking password is the same as the preset unlocking password, or when the acquired physiological data of the user matches the pre-stored physiological data, the screen locking module unlocks the screen and no longer displays the lock screen interface.
  • the electronic device 10 may further include an application lock module.
  • the application lock module can lock or unlock a display area of the application interface on the display screen.
  • the application lock module may display a lock screen interface above an activity currently displayed on the electronic device 10, and the activity corresponds to an application.
  • the application lock module can be unlocked similarly to the screen lock module, that is, it can be based on the received user’s input unlock password (for example, numbers or patterns, etc.) or the acquired user’s physiological data (for example, fingerprints). Information, facial information, voiceprint information, iris information, etc.), to determine whether to unlock the display area of the electronic device.
  • the unlocking method of the application locking module may also be different from the unlocking method of the screen locking module.
  • the phone manager can be used to provide the communication function of the electronic device 10. For example, the management of the call status (including connecting, hanging up, etc.).
  • the notification manager enables applications to display notification information in the status bar, can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of a chart or scroll bar text, or display notifications on the screen in the form of a dialog window.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager can be used to manage the display subsystem and provide a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still 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.
  • the 3D graphics processing library can be used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the software architecture of the electronic device shown in FIG. 1B is only an implementation manner of the embodiment of the present application. In practical applications, the electronic device may also include more or fewer software modules, which is not limited here.
  • the electronic device 10 may further include a display module based on the software structure shown in FIG. 1B, and the display module is configured to display a corresponding user interface according to the operation of each software module.
  • the user interface displayed by the display module can refer to the user interface exemplarily shown in the following embodiments.
  • the display module may be specifically implemented as the display screen 194 in FIG. 1A.
  • FIG. 2A is a schematic diagram of a display interface provided by an embodiment of the present application.
  • the user interface 21 is used to display a setting interface of auxiliary functions in the electronic device 10.
  • the user interface 21 includes a plurality of setting controls, for example, a voice control control 211, a touch control control 213, a dynamic effect control 215, a split screen lock control 217, and a switching control control 219.
  • the user interface 21 may also include other controls, which are only examples here.
  • the electronic device 10 When the user clicks the split screen lock control 217, in response to the click operation, the electronic device 10 turns on the split screen lock function, and switches the split screen lock control 217 from the "OFF" state to the "ON” state.
  • the electronic device 10 may also display a split screen lock control in the shortcut operation menu.
  • the electronic device 10 may display a shortcut operation menu 220 on the display screen.
  • the user interface 22 includes a shortcut operation menu 220 and multiple application icons.
  • the shortcut operation menu 220 includes multiple functional controls, such as a Bluetooth control, a flashlight control, a bell control, and a split screen lock control 222, and so on. The user can conveniently turn on or turn off the split screen lock function of the electronic device 10 through the split screen lock control 222. It should be noted that there may also be other ways to call out the shortcut operation menu, and this is only an example.
  • the split screen lock function of the electronic device 10 may also be enabled by default.
  • the display screen of the electronic device 10 may be a folding screen. By folding the electronic device 10, the display screen 194 of the electronic device 10 can be divided into different display areas.
  • FIG. 2C is a schematic diagram of an electronic device 10 according to an embodiment of the present application.
  • the display screen 194 of the electronic device 10 is a folding screen.
  • the display screen 194 can be divided into a display area 120, a display area 122, and a split screen column 124. among them:
  • the split screen bar 124 may be used to separate the display area 120 and the display area 122. In some embodiments, the split screen bar 124 may coincide with the folding area of the display screen 194. In some embodiments, the split screen bar 124 may not overlap with the folding area of the display screen 194. When an operation of dragging the split screen bar 124 by the user (for example, a sliding operation, etc.) is detected, the electronic device 10 adjusts the size of the display area 120 and the display area 122 in response to the operation. In other embodiments, the display screen 194 may not include the split screen bar 124.
  • the display area 120 is used to display an interface of a video playback application, and the display area 122 is used to display an interface of an instant messaging application.
  • the display area 120 includes a lock control 101, and the display area 122 includes a lock control 103. Among them, the lock control 101 and the lock control 103 are both displayed in an unlocked state. The user can lock or unlock the display content of the display area 120 through the lock control 101, and lock or unlock the display content of the display area 122 through the lock control 103.
  • the display interface exemplarily shown in the following embodiments may be displayed on the folding screen as shown in FIG. 2C.
  • the user interface 31 includes a status bar, a split screen bar 229, and two display areas, a display area 221 and a display area 223.
  • the display area 221 is used to display a chat interface of an instant messaging application (an example is QQ)
  • the display area 223 is used to display an interface of another instant messaging application (an example is WeChat) application, and the example is an official account.
  • Display interface It should be noted that the display area 221 and the display area 223 may also display different interfaces of the same application.
  • the display area 221 may display the chat interface of the WeChat application
  • the display area 223 may display the display interface of the official account of the WeChat application.
  • the split screen bar 229 is used to separate the display area 221 and the display area 223.
  • the electronic device 10 adjusts the size of the display area 221 and the display area 223 in response to the operation.
  • the split screen bar 229 may not be included in the user interface 22.
  • the lock control 225 When the split screen lock function of the electronic device 10 is turned on, the lock control 225 may be displayed in the display area 221, and the lock control 227 may be displayed in the display area 223. In some embodiments, in order not to block the interface display content of the display area, the lock control can be hidden and displayed. Exemplarily, after the electronic device 10 enters the split-screen display, the electronic device 10 displays the lock control 225 and the lock control 227. After the lock control 225 and the lock control 227 are displayed for a preset time, the electronic device 10 may no longer display the lock control . Optionally, after the lock control is hidden, it can be recalled according to the needs of the user.
  • the electronic device 10 calls up the lock control 225 again. It is understandable that hiding the lock control does not affect the split-screen lock function provided by the electronic device to the user.
  • the display state of the lock control 227 may indicate the lock state of the display area 223.
  • the lock control 227 is displayed in an unlocked state (refer to the display state of the lock control 227 in FIG. 3A), it indicates that the display area 223 is not locked.
  • the lock control 227 is displayed in the locked state (refer to the display state of the lock control 227 in FIG. 3B), it indicates that the display area 223 has been locked.
  • the display state of the lock control 225 may indicate the lock state of the display area 221.
  • the electronic device 10 may include more than two display areas.
  • the electronic device 10 includes three display areas (may be referred to as a three-split screen), or the electronic device 10 includes four display areas (may be called a four-split screen).
  • the electronic device 10 may include more than two lock controls.
  • a lock control has a corresponding relationship with a display area.
  • FIG. 3C is a schematic diagram of a display interface provided by an embodiment of the present application.
  • the user interface 33 includes a display area 231, a display area 233, a display area 235, a split screen bar 237, and a split screen bar 239. among them:
  • the split screen bar 237 and the split screen bar 239 may be used to separate the display area 231, the display area 233, and the display area 235. Similar to the split screen bar described above, the user can adjust the display size of each display area through the split screen bar. In other embodiments, the display screen 194 may not include the split screen bar 237 and/or the split screen bar 239.
  • the display area 231 is used to display the interface of the gallery application
  • the display area 233 is used to display the interface of the QQ application
  • the display area 235 is used to display the interface of the WeChat application.
  • the display area 231 includes a lock control 241, and the user can lock or unlock the display content of the display area 231 through the lock control 241.
  • the display area 233 includes a lock control 243, and the user can lock or unlock the display content of the display area 233 through the lock control 243.
  • the display area 235 includes a lock control 245, and the user can lock or unlock the display content of the display area 235 through the lock control 245.
  • FIG. 3D is a flowchart of a lock display area provided by an embodiment of the present application.
  • the display screen of the electronic device 10 includes a display area 221 and a display area 223.
  • the user interface displayed in the display area 221 corresponds to the active task stack A
  • the user interface displayed in the display area 223 corresponds to the active task stack B.
  • the SystemUI calls the strategy module to process the click event.
  • S103 The strategy module calls the active task stack and the life cycle management module to set the lock state of the active task stack B according to the click event.
  • the strategy module may query the state of the active task stack B to determine that the current state of the active task stack B is the unlocked state.
  • S104 The active task stack and the life cycle management module set the state of the active task stack B to a locked state.
  • the active task stack and life cycle management module can set, store, query, and modify the state of the active task stack B.
  • the status of the active task stack can be represented by a status identifier.
  • the status identifier can be a variety of data structures, for example, the status identifier can be a number, specifically, it can be a number or a series of numbers, for example, 1, 0, 10, 11, and so on.
  • the status identifier can also be a letter, specifically, it can be a letter or a string of letters, for example, Y, AA, and so on.
  • the status identifier may also be a symbol, specifically, it may be a symbol or a sequence of symbols, for example, " ⁇ ", " ⁇ " and " ⁇ ".
  • the status identifier may be one or more data structures used to indicate the status of the active task stack. These data structures may be stored in one or more memories, or stored in different parts of a memory. Exemplarily, the status indicator "1" indicates that the active task stack is locked, and the status indicator "0" indicates that the active task stack is not locked.
  • the way for the active task stack and life cycle management module to adjust the state of the active task stack B to the locked state may be to modify the state identifier of the active task stack B to the state identifier "1".
  • the active task stack and the life cycle management module feed back the lock state of the active task stack B to the strategy module.
  • the policy module instructs SystemUI to refresh the user interface.
  • the SystemUI refreshes the user interface, and switches the display state of the lock control 227 to the locked state.
  • the switching of the display interface of other display areas will not affect the display interface of the locked display area.
  • the electronic device 10 when the user slides up from the bottom of the display area 221, in response to the sliding operation, the electronic device 10 exits the displayed chat interface and switches the display area 221 to the main interface of the electronic device 10.
  • the display content of the display area 223 does not change.
  • the display area 221 is used to display the main interface of the electronic device 10.
  • the main interface of the electronic device 10 may include: a calendar widget 301 indicating the current time, a weather widget 303 indicating the weather type, a page indicator 305 and multiple application icons.
  • the page indicator 305 can be used to indicate the number of pages and which page the user is currently viewing. In addition, users can swipe left and right on the current page to browse application icons in other pages.
  • the electronic device 10 may include a navigation bar.
  • the navigation bar 901 may include system navigation keys such as a return button 902, a home screen button 903, and a call out task history button 904. The user can close the display area 221 through the return button 902 or the home screen button 903. This method will be introduced in the subsequent content, and will not be specifically expanded here.
  • the display area 221 may also have other display modes.
  • the display area 221 may also be switched to display support for split screens installed on the electronic device.
  • a display area if a display area is in an unlocked state, after the display interface of the other display area is exited, the display area may cover the exited display area.
  • the display area 221 and the display area 223 are both in an unlocked state.
  • the electronic device exits the displayed chat interface and displays the interface displayed in the original display area 223 (ie, the display area 223 in FIG. 4D) on the full screen of the display screen.
  • the display area of the electronic device 10 221 switches from the main display interface to the display interface that displays the application corresponding to the application icon, and the display content of the display area 223 will not change.
  • the display interface of the electronic device 10 can be referred to as shown in FIG. 4F.
  • the display area 221 is switched from displaying the main interface to displaying the display interface of the "settings” application.
  • the display interface of the “settings” application includes multiple setting controls. The user can set various functions of the electronic device 10 through these setting controls.
  • FIG. 4G is a flowchart of a method for opening an application according to an embodiment of the present application.
  • S202 SystemUI calls the activity start module to process the click event.
  • the activity initiation module calls the strategy module to process the click event.
  • ActivityStarter calls WindowService
  • WindowService calls a policy module to handle the click event.
  • S204 The strategy module calls the active task stack and the life cycle management module to query the status of the active task stack A and the active task stack B.
  • the active task stack and life cycle management module determines the status of the active task stack A and the active task stack B.
  • the state of the active task stack A is an unlocked state
  • the state of the active task stack B is a locked state
  • S206 The active task stack and life cycle management module feeds back the status of the active task stack A and the active task stack B to the strategy module.
  • the strategy module determines that the active task stack A is the active task stack of the "setting" application according to the states of the active task stack A and the active task stack B.
  • the strategy module determines that the active task stack in the unlocked state is the active task stack A according to the feedback status of the active task stack A and the active task stack B, and the strategy module determines that the active task stack A is the active task stack of the "settings" application.
  • the strategy module calls the window display module to set the display area of the "settings" application.
  • the window display module calls the setLaunchBounds(A) interface of the activity task stack A to set the size and screen position of the new Activity of the newly started application.
  • the window display module displays the user interface of the "settings" application.
  • a display area if a display area is in a locked state, the display area no longer displays other user interfaces.
  • the electronic device 10 when the user clicks the jump control 311 in the display interface of the display area 223 (see the jump control 311 in the user interface 41 shown in FIG. 4B), in response to the click operation, the electronic device 10 is in the display area
  • the user interface associated with the jump control 311 is displayed in 221 (the area in the unlocked state).
  • the display interface of the electronic device 10 can be referred to as shown in FIG. 5A.
  • the interface in the display area 221 is switched to the user interface associated with the jump control 311, and the interface in the display area 223 is the same as the interface in the display area 223 in FIG. 4B.
  • FIG. 5B is a flowchart of a method for opening an Activity provided by an embodiment of the present application.
  • the activity start module processes the click event.
  • the activity start module calls the strategy module to process the click event.
  • ActivityStarter calls WindowService
  • WindowService calls a policy module to handle the click event.
  • S303 The strategy module calls the active task stack and the life cycle management module to query the status of the active task stack A and the active task stack B.
  • the active task stack and life cycle management module determines the status of the active task stack A and the active task stack B.
  • S305 The active task stack and the life cycle management module feed back the status of the active task stack A and the active task stack B to the strategy module.
  • the state of the active task stack A is an unlocked state
  • the state of the active task stack B is a locked state
  • the strategy module determines that the active task stack A is the active task stack of the new Activity according to the states of the active task stack A and the active task stack B.
  • the strategy module determines that the active task stack in the unlocked state is the active task stack A according to the feedback status of the active task stack A and the active task stack B, and the strategy module determines that the active task stack A is the active task stack of the new Activity.
  • S307 The strategy module calls the window display module to set the display area of the new activity.
  • the window display module calls the setLaunchBounds(A) interface of the activity task stack A to set the size and screen position of the new Activity.
  • the window display module refreshes the user interface, and displays the new Activity, that is, the user interface associated with the jump control 311, in the display area 221.
  • the new Activity will be built on the top of the activity task stack A. If the user clicks on the return control of the new Activity, the current Activity will pop up from the top of the stack (Activity is destroyed) and will be located before the new Activity One of the Activity resumes execution (the activity of the main interface in the example). In other words, if the user clicks the return control of the new Activity (see control 501 in FIG. 5A), the display area 221 will switch from displaying the user interface associated with the jump control 311 to displaying the main interface (see FIG. 4B The display interface in the display area 221).
  • the electronic device 10 displays the user interface associated with the jump control 311 in the display area 223.
  • the display interface of the electronic device 10 can refer to the user interface 53 shown in FIG. 5D.
  • the split-screen locking method provided in the embodiments of the present application can also be applied to a security mode. In this mode, the unlocking of the locked state of a display area needs to be verified. Next, a method for the electronic device 10 to enter the security mode of split screen lock is introduced.
  • the user can choose whether to enter the security mode of split screen lock.
  • the electronic device 10 displays a prompt box 601.
  • the display area 223 includes a prompt box 601
  • the prompt box 601 includes a control 603 and a control 605. among them:
  • the control 605 can receive a user's operation, and in response to the user's operation, the electronic device 10 no longer displays the prompt box 601.
  • the control 603 can receive a user's operation, and in response to the user's operation, the electronic device 10 determines that the display area 223 enters the security mode of split screen lock.
  • the electronic device 10 switches the unlocked state of the lock control 227 to the locked state.
  • the display interface of the electronic device 10 can refer to the user interface 32 shown in FIG. 3B.
  • the display area 223 enters the split-screen lock security mode, indicating that the display area 223 is locked, the status of the active task stack B corresponding to the display area 223 is adjusted to the security lock state, and unlocking the display area 223 needs to be performed verification.
  • the safety lock state of the active task stack is different from the locked state and the unlocked state.
  • the unlocking of the display area corresponding to the active task stack needs to be verified; when the active task stack is in the locked state, it is not necessary to unlock the display area corresponding to the active task stack authenticating.
  • the lock control corresponding to the display area may be displayed in the security lock state.
  • the icon representing the security locked state may be different from the icon representing the locked state, and also different from the icon representing the unlocked state.
  • the display interface of the electronic device 10 may refer to the user interface 62 shown in FIG. 6B.
  • the user can also adjust the active task stack B to the safe locked state in a similar manner.
  • the user can press and hold the lock control to make the electronic device 10 enter the security mode of split-screen lock, unlocking any display area requires verification . In this way, it is convenient for the user to lock the display content of the electronic device, which improves the security of the electronic device 10 and avoids leakage of user information.
  • the electronic device 10 can obtain the user's facial information in real time through a camera. When the user's facial information does not match the pre-stored facial information, the electronic device 10 switches the display area that is already in the locked state to the safe mode. In another possible implementation manner, when the user's facial information does not match the pre-stored facial information, and each of the multiple display areas on the display screen of the electronic device 10 is in a locked state, the electronic device 10 Switch the locked display area to safe mode. In this way, it is not a pre-stored user that cannot release the locked state of the display area, and the security of the electronic device 10 can be improved and the leakage of user information can be avoided.
  • the display area in the locked state cannot exit the currently displayed application, and can only switch the Activity within the application. If the user wants to open the Activity of another application in the locked display area, the lock of the display area needs to be unlocked.
  • FIG. 7 is a flowchart of a method for opening an Activity provided by an embodiment of the present application.
  • the active task stack B corresponding to the display area 223 is in a safety-locked state.
  • the jump control 701 is associated with the Activity of another application that is different from the application currently displayed in the display area 223.
  • the application currently displayed in the display area 223 may be a shopping application
  • the activity associated with the jump control 701 may be a payment application.
  • the activity initiation module calls the strategy module to process the click event.
  • ActivityStarter calls WindowService
  • WindowService calls a policy module to handle the click event.
  • S503 The strategy module calls the active task stack and the life cycle management module to query the status of the active task stack B.
  • S504 The active task stack and the life cycle management module determine the state of the active task stack B.
  • the state of the active task stack B is the safety locked state.
  • S505 The active task stack and the life cycle management module feed back the status of the active task stack B to the strategy module.
  • the policy module After receiving the status of the active task stack B, the policy module calls the screen lock module to verify the user identity according to the status of the active task stack B.
  • the screen lock module verifies the user's identity.
  • the strategy module calls the active task stack and the life cycle management module according to the verification result to set the state of the active task stack B to an unlocked state.
  • the verification result is that the user's identity is successfully verified. It should be noted that if the verification result is that the user identity verification fails, the policy module will not modify the state of the active task stack B. The electronic device will not display the new Activity.
  • S510 The active task stack and the life cycle management module set the state of the active task stack B to an unlocked state.
  • S511 The active task stack and the life cycle management module feed back the status of the active task stack B to the strategy module.
  • the strategy module calls the window display module to set the display area of the new activity.
  • the window display module calls the setLaunchBounds(B) interface of the activity task stack B to set the size and screen position of the new Activity.
  • S514 The window display module displays the new Activity in the display area 223.
  • the activity start module instructs SystemUI to refresh the user interface.
  • the systemUI refreshes the user interface, and switches the display state of the lock control 227 to an unlocked state.
  • FIG. 8A is a flowchart of a method for unlocking a locked state according to an embodiment of the present application.
  • the systemUI calls the screen lock module to process the click event.
  • the screen locking module verifies the user identity.
  • the screen lock module locks the display screen of the electronic device 10, and the electronic device 10 displays a lock screen interface on the display screen.
  • the unlocking interface may refer to the user interface 81 shown in FIG. 8B.
  • the unlocking interface includes a time widget 801 and an unlocking indicator 802.
  • the time widget 801 can indicate the current time.
  • the unlock indicator 802 may be used to indicate an area where the user's fingerprint information is received.
  • the area of the screen where the unlock indicator 802 is located can receive the user's fingerprint information.
  • the screen lock module unlocks the display screen and no longer displays the lock screen interface.
  • the electronic device 10 may display a user interface 62 as shown in FIG. 6B.
  • the unlocking indicator 802 may not be included in the unlocking interface.
  • the user can unlock through the fingerprint button of the electronic device 10.
  • the fingerprint button may be a physical button. Referring to the schematic diagram of the electronic device 10 shown in FIG. 8C, the user can unlock the screen by touching the fingerprint button 803.
  • the systemUI may also call the application lock module to handle the click event.
  • the application lock module verifies the user's identity. In this manner, the application lock module displays the unlock indicator 804 in the display area 223.
  • the user interface displayed by the electronic device 10 can be referred to as shown in FIG. 8D.
  • the application lock module unlocks the display area 223 of the display screen and no longer displays the unlock indicator 804.
  • the screen lock module and the application lock module can also have other ways to verify user identity, for example, face recognition based on facial information collected by a camera, or voiceprint recognition based on voice information collected by a microphone, etc. .
  • the electronic device 10 may display a prompt message to prompt the user that the user's identity verification has failed, and display the user interface before unlocking after a preset time. Reference may be made to the user interface 62 shown in FIG. 6B.
  • S405 The strategy module calls the active task stack and the life cycle management module according to the verification result to set the state of the active task stack B to the unlocked state.
  • the verification result is that the user's identity is successfully verified. It should be noted that if the verification result is that the user identity verification fails, the policy module will not modify the state of the active task stack B. The electronic device 10 does not adjust the display state of the lock control 227.
  • the strategy module may query the state of the active task stack B and determine that the current state of the active task stack B is the locked state.
  • S406 The active task stack and the life cycle management module set the state of the active task stack B to an unlocked state.
  • S407 The active task stack and the life cycle management module feed back the status of the active task stack B to the strategy module.
  • the policy module instructs SystemUI to refresh the user interface.
  • the SystemUI refreshes the user interface, and switches the display state of the lock control 227 to an unlocked state.
  • the user interface after switching may refer to the user interface 31 shown in FIG. 3A.
  • the user interface of the electronic device further includes a navigation bar.
  • the user interface 91 includes a display area 221, a display area 223, a split screen bar 229, and a navigation bar 901.
  • the navigation bar 901 may include system navigation keys such as a return button 902, a home screen button 903, and a call out task history button 904.
  • the naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 901 can also be implemented as a physical key.
  • the display area 221 is in an unlocked state
  • the display area 223 is in a locked state.
  • the electronic device 10 when it is detected that the user clicks the return button 902, the electronic device 10 switches the display area in the unlocked state (ie, the display area 221) to display the previous interface of the current interface.
  • the display interface of the electronic device 10 may refer to the user interface 92 shown in FIG. 9C.
  • the electronic device 10 switches the display area in the unlocked state (ie, the display area 221) to display the home interface.
  • the display interface of the electronic device 10 may refer to the user interface 93 shown in FIG. 9D.
  • the electronic device 10 displays the task recently opened by the user in the display area in the unlocked state (ie, the display area 221).
  • the task recently opened by the user only includes the user interface in the active task stack corresponding to the display area 221.
  • the task recently opened by the user includes the user interface in the active task stack corresponding to the display area 221 and the display area 223.
  • the display interface of the electronic device 10 may refer to the user interface 94 shown in FIG. 9E. If the user selects a history interface, the electronic device 10 displays the history interface in the display area in the unlocked state.
  • both the display area 221 and the display area 223 are in an unlocked state.
  • the user interface 98 shown in FIG. 9I includes a display area 221, a display area 223, a split screen bar 229, and a navigation bar 901.
  • the navigation bar 901 may include system navigation keys such as a return button 902, a home screen button 903, and a call out task history button 904.
  • the electronic device 10 exits the split screen display, and displays the original display area 221 or the interface of the original display area 223 in full screen.
  • the display interface of the electronic device 10 may refer to the user interface 44 shown in FIG. 4E.
  • the display interface of the electronic device 10 may refer to the user interface 95 shown in FIG. 9F.
  • the electronic device 10 displays the task recently opened by the user in full screen.
  • the task recently opened by the user includes the display area 221 and the user interface in the active task stack corresponding to the display area 223.
  • the display interface of the electronic device 10 may refer to the user interface 96 shown in FIG. 9G. If the user selects a history interface, the electronic device 10 displays the history interface on a full screen.
  • the electronic device 10 determines that before clicking the return button 902, it has received the activity operated by the user last time, and switches the display area corresponding to the activity Displayed as the previous Activity of the currently displayed Activity.
  • FIG. 9B is a flowchart of a return operation provided in an embodiment of the present application.
  • the systemUI calls the activity management module to process the click event.
  • the activity management module determines the Activity that received the user operation last time.
  • the most recently received activity of the user operation is the activity displayed in the display area 221 of the user interface 91 as an example.
  • the activity management module calls the strategy module to process the return event for the activity task stack B according to the Activity that received the user operation last time.
  • the active task stack B is the active task stack corresponding to the display area 221.
  • S605 The strategy module calls the active task stack and the life cycle management module to update the active task stack B.
  • S606 The active task stack and the life cycle management module update the active task stack B.
  • the activity task stack and life cycle management module pops the current activity of activity task stack B from the top of the stack (the activity is destroyed), and resumes the execution of an activity before this new activity (in the example, the chat interface of the QQ application) ).
  • the strategy module calls the window display module to refresh the user interface.
  • the window display module refreshes the user interface, and switches and displays the display area 221 as the chat interface of the QQ application.
  • the display interface of the electronic device 10 may refer to the user interface 92 shown in FIG. 9C.
  • the electronic device 10 when the electronic device 10 is in the split-screen display state, if the user clicks the main interface button 903, in response to the click operation, the electronic device 10 determines that the most recent receipt was received before the main interface button 903 was clicked. The user operates the Activity, and switches the display area corresponding to the Activity to the main interface. Exemplarily, after switching, the display interface of the electronic device 10 may refer to the user interface 93 shown in FIG. 9D.
  • the electronic device 10 when the electronic device 10 is in the split-screen display state, if the user clicks the outgoing task history button 904, in response to the click operation, the electronic device 10 may display the task recently opened by the user in full screen. If the user selects a history interface, the electronic device 10 determines that before clicking the outgoing task history button 904, it has received the activity operated by the user last time, and switches and displays the display area corresponding to the activity as the history interface.
  • the manner in which the user interface of the electronic device 10 includes a navigation bar can also refer to the user interface 97 shown in FIG. 9H.
  • the user interface 97 includes a display area 221, a display area 223, a split screen bar 229, a navigation bar 905, and a navigation bar 906.
  • the navigation bar 905 may include system navigation keys such as a return button 911, a home screen button 912, and a call out task history button 913.
  • the navigation bar 906 may include system navigation keys such as a return button 921, a home screen button 922, and a call out task history button 923.
  • the naming of each navigation key can also be other, which is not limited in this application.
  • the navigation bar 905 and the display area 221 have a corresponding relationship.
  • the electronic device 10 switches the display area 221 to display the previous interface of the current interface.
  • the main interface button 912 the display area 221 of the electronic device 10 is switched to display the main interface.
  • the electronic device 10 displays the task recently opened by the user in the display area 221.
  • the task recently opened by the user only includes the user interface in the active task stack corresponding to the display area 221.
  • the task recently opened by the user includes the user interface in the active task stack corresponding to the display area 221 and the display area 223. If the user selects a history interface, the electronic device 10 displays the history interface in the display area 221.
  • the navigation bar 906 and the display area 223 have a corresponding relationship.
  • the electronic device 10 switches the display area 223 to display the previous interface of the current interface.
  • the display area 223 of the electronic device 10 is switched to display the main interface.
  • the electronic device 10 displays the task recently opened by the user in the display area 223.
  • the task recently opened by the user only includes the user interface in the active task stack corresponding to the display area 223.
  • the task recently opened by the user includes the user interface in the active task stack corresponding to the display area 221 and the display area 223. If the user selects a history interface, the electronic device 10 displays the history interface in the display area 221.
  • one display area may correspond to a group of navigation bars.
  • the user can switch the display interface of the display area through the navigation bar corresponding to the display area.
  • FIG. 10 is a flowchart of a split-screen display method provided by an embodiment of the present application. As shown in Figure 10, the method includes the following steps:
  • the electronic device displays the first interface of the first application in the first display area of the display screen, and displays the second interface of the second application in the second display area of the display screen.
  • the user interface displayed by the electronic device may refer to the user interface 98 shown in FIG. 9I.
  • the first display area may refer to the display area 223 in FIG. 9I
  • the second display area may refer to the display area 221 in FIG. 9I.
  • the first application is a WeChat application
  • the second application is also a WeChat application.
  • the user interface displayed by the electronic device may also refer to the user interface 31 shown in FIG. 3A.
  • the first display area may refer to the display area 223 in FIG. 3A
  • the second display area may refer to the display area 221 in FIG. 3A.
  • the first application is a WeChat application
  • the second application is a QQ application. It should be noted that the first application and the second application may be the same application, and the first application and the second application may also be different applications.
  • the electronic device receives a first operation input by the user, and in response to the first operation, the electronic device displays a main interface of the electronic device in a full screen on the display screen.
  • the first operation may be an operation input by the user to trigger the electronic device to switch back to the main interface.
  • the first operation may be an operation of the user on the main interface button 903 (for example, single-click, double-click, or long-press, etc.).
  • the first operation may also be dragging, pressing, voice input, light input, hovering gesture operation, or other operations.
  • the user interface for displaying the main interface on the full screen of the electronic device may refer to the user interface 95 shown in 9F.
  • the electronic device displays a third interface of a third application in the first display area, and displays a fourth interface of a fourth application in the second display area.
  • the electronic device may receive a second operation input by the user, and in response to the second operation, the electronic device displays a third interface of a third application in the first display area, and The second display area displays the fourth interface of the fourth application.
  • the second operation may include multiple operations.
  • the process of triggering the electronic device to display the third interface and the fourth interface may be: the user first inputs an operation for the icon of the third application in the main interface, and in response to the operation, the electronic device displays the third interface on the display screen.
  • the third interface of the application may be: the user first inputs an operation for the icon of the third application in the main interface, and in response to the operation, the electronic device displays the third interface on the display screen. The third interface of the application.
  • the user inputs a split screen operation on the display screen of the electronic device (for example, the user long presses the outgoing task history button in the navigation bar (refer to the outgoing task history button 904 in the user interface 95)), and the electronic device is displayed on the display screen.
  • the first display area of the display screen displays the third interface
  • the second display area of the display screen displays the icon of the application that supports the split screen function installed on the electronic device.
  • the user inputs an operation for the icon of the fourth application, and in response to the operation, the electronic device displays the fourth interface of the fourth application in the second display area.
  • the second operation includes: an operation of the user inputting an icon for the third application in the main interface, an operation of a split screen input by the user on the display screen of the electronic device, and an operation of the user inputting an icon for the fourth application.
  • the second operation may also be another operation, which is not limited in the embodiment of the present application.
  • the user interface displayed by the electronic device may refer to the user interface 98 shown in FIG. 9I.
  • the first display area may refer to the display area 223 in FIG. 9I
  • the second display area may refer to the display area 221 in FIG. 9I.
  • the third application is a WeChat application
  • the fourth application is also a WeChat application. It should be noted that the third application and the fourth application may be the same application, and the third application and the fourth application may also be different applications.
  • the third application may be the same application as the first application and the second application, or may be different applications.
  • the fourth application, the first application and the second application may be the same application or different applications.
  • the user interface displayed by the electronic device may also refer to the user interface 31 shown in FIG. 3A.
  • the first display area may refer to the display area 223 in FIG. 3A
  • the second display area may refer to the display area 221 in FIG. 3A.
  • the third application is a WeChat application
  • the fourth application is a QQ application.
  • the electronic device receives a third operation input by the user on the first display area.
  • the third operation may be an operation input by the user to lock the display content of the first display area.
  • the third operation may be an operation of the user on the control 227 (for example, a single click, a double click, or a long press, etc.).
  • the third operation may also be dragging, pressing, voice input, light input, hovering gesture operation, or other operations.
  • the user can conveniently lock the display content of the first display area.
  • the user can operate the display content in the first display area.
  • the user can slide up and down in the first display area to view other contents of the current official account.
  • the user can input content in the first display area if the document editing interface is displayed in the first display area.
  • the first display area includes a first control
  • the second display area includes a second control.
  • the first control is displayed in the first state
  • the second control is displayed in the first state.
  • the method further includes: in response to the third operation, the electronic device switches the first control from being displayed as a first state to being displayed as a second state.
  • the first display area may be the display area 223 in FIG. 3A or FIG. 3B, and the first control may be the control 227 in FIG. 3A or FIG. 3B;
  • the second display area may be the display area 221 in FIG. 3A or FIG. 3B, and the second control may be the control 225 in FIG. 3A or FIG. 3B.
  • the first control is displayed in the first state (refer to the display state of the control 227 in FIG. 3A), and the second control is displayed in the first state (refer to the display state of the control 225 in FIG. 3A) ).
  • the first control is switched from being displayed as the first state to being displayed as the second state (refer to the display state of the control 227 in FIG. 3B). In this way, the user can easily view the lock status of the split-screen display area.
  • the electronic device receives a fourth operation input by the user, and in response to the fourth operation, the electronic device displays the third interface in the first display area, and displays the third interface in the second display area. Main interface.
  • the operation mode of the fourth operation is the same as the operation mode of the first operation.
  • the fourth operation is also an operation input by the user to trigger the electronic device to switch back to the main interface.
  • the fourth operation may be an operation of the user on the main interface button 903 (for example, single-click, double-click, or long-press, etc.).
  • the fourth operation may also be dragging, pressing, voice input, light input, hovering gesture operation, or other operations.
  • the user interface displayed by the electronic device may refer to the user interface 93 shown in FIG. 9D.
  • the first display area can refer to the display area 223, and the second display area can refer to the display area 221.
  • the method further includes: the electronic device receives the user input for the first control
  • the electronic device verifies the user's identity; if the verification is passed, the electronic device switches the first control from the second state to the display The first state. In this way, the security of unlocking can be improved.
  • the thirteenth operation may be an operation of the user clicking the lock control 227.
  • the process of releasing the locked state of the first display area by the electronic device refer to the embodiment shown in FIG. 8A.
  • the method further includes: the electronic device obtains the user's biological characteristics; The electronic device determines that the biological characteristics match the pre-stored biological characteristics; the electronic device receives the fourteenth operation input by the user for the first control, and in response to the fourteenth operation, the electronic device sets the The first control is switched from being displayed in the second state to being displayed in the first state.
  • the biometric feature may include the user's facial information, fingerprint information, voiceprint information, and other physiological data. In this way, the efficiency of unlocking can be improved on the premise of ensuring the safety of unlocking.
  • the method further includes: the electronic device obtains the user's biological characteristics; The electronic device determines that the biological characteristics do not match the pre-stored biological characteristics; the electronic device receives the fifteenth operation input by the user, and in response to the fifteenth operation, the electronic device verifies the user identity; if the verification passes, Then the electronic device switches the first control from being displayed as the second state to being displayed as the first state. In this way, the security of unlocking can be improved.
  • the electronic device when the electronic device displays the third interface in the first display area and displays the main interface in the second display area, the electronic device receives the user’s response to the third interface.
  • the fifth operation of interface input in response to the fifth operation, the electronic device displays the third interface in the first display area, and displays the fifth interface of the third application in the second display area .
  • the electronic device displays the third interface in the first display area, and displays the main interface in the second display area.
  • the fifth operation may be an operation on the control 311 input by the user.
  • the electronic device displays the third interface in the first display area, and displays the fifth interface of the third application in the second display area. Refer to the user interface 51 shown in FIG. 5A.
  • the electronic device when the electronic device displays the third interface in the first display area and displays the fifth interface of the third application in the second display area, the electronic device receives the user The sixth operation input on the second display area; the electronic device receives the seventh operation input by the user on the third interface; in response to the seventh operation, the electronic device displays the The area displays the sixth interface of the third application, and the fifth interface is displayed in the second display area.
  • the electronic device displays the third interface in the first display area, and displays the fifth interface of the third application in the second display area.
  • the sixth operation may be an operation on the control 225 input by the user.
  • the electronic device may display the user interface 52 shown in FIG. 5C.
  • the seventh operation may be an operation on the control 311 input by the user.
  • the electronic device displays the sixth interface of the third application in the first display area, and displays the fifth interface in the second display area. Refer to the user interface 53 shown in FIG. 5D.
  • the electronic device when the electronic device displays the first interface in the first display area and displays the second interface in the second display area, the electronic device receives the eighth input from the user. Operation; in response to the eighth operation, the electronic device displays a seventh interface in full screen on the display screen, the seventh interface including the interface content of the first interface and the interface content of the second interface; when The electronic device displays the third interface in the first display area, and when the main interface is displayed in the second display area, the electronic device receives a ninth operation input by the user; In operation, the electronic device displays the third interface in the first display area, and displays an eighth interface in the second display area, where the eighth interface includes interface content of the first interface, the first interface For the interface content of the second interface and the interface content of the fourth interface, the operation mode of the ninth operation is the same as the operation mode of the eighth operation.
  • the eighth operation and the ninth operation may be operations input by the user for calling out the history task bar.
  • the electronic device displays the first interface in the first display area and displays the second interface in the second display area. Refer to the user interface shown in FIG. 9I.
  • the eighth operation input by the user may be the user's operation on the outgoing task history button 904.
  • the electronic device when the electronic device displays the first interface in the first display area and displays the second interface in the second display area, the electronic device receives the tenth input from the user. Operation; in response to the tenth operation, the electronic device displays the interface content of the first interface or the interface content of the second interface on the display screen in full screen; when the electronic device is in the first display The third interface is displayed in the area, and when the fourth interface is displayed in the second display area, the electronic device receives the eleventh operation input by the user on the first display area, and the eleventh operation
  • the operation mode is the same as that of the third operation; the electronic device receives the twelfth operation input by the user; in response to the twelfth operation, the electronic device displays The third interface displays the main interface in the second display area.
  • the tenth operation and the twelfth operation may be operations input by the user for exiting the interface.
  • the electronic device displays the first interface in the first display area and displays the second interface in the second display area.
  • the tenth operation input by the user may be an operation on the return button 902 by the user.
  • the eleventh operation input by the user may be an operation on the control 227.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).

Abstract

一种分屏显示方法及电子设备,该方法可以应用于人机交互领域,该方法包括:用户输入针对一个分屏显示区域的操作,例如点击一个分屏显示区域的锁定控件,响应于该操作,电子设备锁定该分屏显示区域的显示内容。可以方便的对一个分屏显示区域的显示内容进行锁定,提升用户操作的效率。

Description

一种分屏显示方法及电子设备
本申请要求于2019年11月30日提交中国国家知识产权局、申请号为201911212028.0、申请名称为“一种分屏显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人机交互领域,尤其涉及一种分屏显示方法及电子设备。
背景技术
随着移动通信技术的不断发展,智能终端上的应用的种类越来越多,一个应用所提供的服务也变得越来越复杂多样,例如,用户可以通过微信应用查看微信公众号的内容,还可以通过微信应用与其他用户聊天。但在现有技术中,智能终端的显示屏在同一时刻只能显示应用中的一个显示界面。在一些场景中,用户在查看公众号的过程中,接收到其他用户发来的微信消息,若用户想要及时回复聊天信息,则必须将微信应用切换为聊天界面进行回复,之后,再切换回公众号的显示界面继续查看。这种方式,需要用户在微信应用的多个显示界面之间来回切换,操作繁琐,用户体验差。
发明内容
本申请实施例提供一种分屏显示方法及电子设备,可以对一个分屏显示区域的显示内容进行锁定。
第一方面,本申请实施例提供了一种分屏显示方法,该方法包括:电子设备在显示屏的第一显示区域显示第一应用的第一界面,在所述显示屏的第二显示区域显示第二应用的第二界面;所述电子设备接收用户输入的第一操作,响应于所述第一操作,所述电子设备在所述显示屏上全屏显示所述电子设备的主界面;所述电子设备在所述第一显示区域显示第三应用的第三界面,在所述第二显示区域显示第四应用的第四界面;所述电子设备接收用户在所述第一显示区域上输入的第三操作;所述电子设备接收用户输入的第四操作,响应于所述第四操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面,所述第四操作的操作方式与所述第一操作的操作方式相同。通过这种方式,用户可以方便的对一个分屏显示区域的显示内容进行锁定,提升用户操作的效率。
在一种可能的实现方式中,当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户针对所述第三界面输入的第五操作;响应于所述第五操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面。
在一种可能的实现方式中,当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面时,所述电子设备接收用户在所述第二显示区域上输入的第六操作;所述电子设备接收用户针对所述第三界面输入的第七操作; 响应于所述第七操作,所述电子设备在所述第一显示区域显示所述第三应用的第六界面,在所述第二显示区域显示所述第五界面。
在一种可能的实现方式中,当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第八操作;响应于所述第八操作,所述电子设备在所述显示屏全屏显示第七界面,所述第七界面包括所述第一界面的界面内容和所述第二界面的界面内容;当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户输入的第九操作;响应于所述第九操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示第八界面,所述第八界面包括所述第一界面的界面内容、所述第二界面的界面内容和所述第四界面的界面内容,所述第九操作的操作方式与所述第八操作的操作方式相同。
在一种可能的实现方式中,当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第十操作;响应于所述第十操作,所述电子设备在所述显示屏全屏显示所述第一界面的界面内容或者所述第二界面的界面内容;当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第四界面时,所述电子设备接收用户在所述第一显示区域上输入的第十一操作,所述第十一操作的操作方式与所述第三操作的操作方式相同;所述电子设备接收所述用户输入的第十二操作;响应于所述第十二操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面。
在一种可能的实现方式中,所述第一显示区域中包括第一控件,所述第二显示区域包括第二控件;在所述电子设备接收用户在所述第一显示区域上输入的第三操作之前,所述第一控件显示为第一状态,所述第二控件显示为所述第一状态;所述方法还包括:响应于所述第三操作,所述电子设备将所述第一控件从显示为第一状态切换至显示为第二状态。
在一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备接收用户针对所述第一控件输入的第十三操作,响应于所述第十三操作,所述电子设备验证用户身份;若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
在一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备获取用户的生物特征;所述电子设备确定所述生物特征与预存的生物特征相匹配;所述电子设备接收用户针对所述第一控件输入的第十四操作,响应于所述第十四操作,所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
在一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备获取用户的生物特征;所述电子设备确定所述生物特征与预存的生物特征不相匹配;所述电子设备接收用户输入的第十五操作,响应于所述第十五操作,所述电子设备验证用户身份;若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
第二方面,本申请提供了一种电子设备,包括一个或多个存储器、可折叠显示屏和一 个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,该可折叠显示屏与该一个或多个处理器通信,该一个或多个存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,当该一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面以及该第一方面任一项可能的实现方式中的分屏显示方法。
第三方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面以及该第一方面任一项可能的实现方式中的分屏显示方法。
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面以及该第一方面任一项可能的实现方式中的分屏显示方法。
在本申请实施例中,用户输入针对一个分屏显示区域的操作,例如点击一个分屏显示区域的锁定控件,响应于该操作,电子设备锁定该分屏显示区域的显示内容。通过本申请实施例的方法,可以方便的对一个分屏显示区域的显示内容进行锁定,提升用户操作的效率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图1A是本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例提供的一种电子设备的软件结构框图;
图2A-图2B是本申请实施例提供的一些显示界面的示意图;
图2C是本申请实施例提供的一种电子设备10的示意图;
图3A-图3C是本申请实施例提供的一些显示界面的示意图;
图3D是本申请实施例提供的一种锁定显示区域的方法的流程图;
图4A-图4F是本申请实施例提供的一些显示界面的示意图;
图4G是本申请实施例提供的一种打开应用的方法的流程图;
图5A是本申请实施例提供的一种显示界面的示意图;
图5B是本申请实施例提供的一种打开Activity的方法的流程图;
图5C-图5D是本申请实施例提供的一些显示界面的示意图;
图6A-图6B是本申请实施例提供的一些显示界面的示意图;
图7是本申请实施例提供的一种打开Activity的方法的流程图;
图8A是本申请实施例提供的一种解锁锁定状态的方法的流程图;
图8B是本申请实施例提供的一种显示界面的示意图;
图8C是本申请实施例提供的一种电子设备10的示意图;
图8D是本申请实施例提供的一种显示界面的示意图;
图9A是本申请实施例提供的一种显示界面的示意图;
图9B是本申请实施例提供的一种返回操作的流程图;
图9C-图9I是本申请实施例提供的一些显示界面的示意图;
图10是本申请实施例提供的一种分屏显示方法的流程图。
具体实施方式
下面对本申请实施例中的技术方案进行更详细地描述。
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下介绍了电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面或触控面板的膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面或触控面板的台式计算机。
本申请的说明书和权利要求书及附图中的术语用户界面(user interface,UI),是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备300设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control),是用户界面的基本元素,典型的控件有按钮(button)、小工具(widget)、工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个窗口、控件等界面元素。
本申请的说明书和权利要求书及附图中的术语活动(Activity),是Android基本组件之一,Activity可以为电子设备提供图形用户界面,以实现电子设备与用户之间的交互。在Android架构中,一个应用包含多个用户界面。例如,微信应用可以包含聊天界面和消息列 表界面。其中,每个用户界面对应一个Activity,这多个用户界面对应的多个Activity形成一个应用活动栈,即一个任务。这些Activity按照启动顺序排队存入一个堆栈(stack)。电子设备通过堆栈来管理Activity。
大多数情况下,电子设备10的主界面(launcher界面),就是任务的起点,当用户触摸应用启动器中的图标(或主界面上的快捷方式)时,该应用的任务将出现在前台。如果应用不存在任务(应用最近未曾使用),则会创建一个新任务,并且该应用的初始Activity将作为堆栈中的根Activity打开。
当前Activity启动另一个Activity时,该新Activity会被推送到堆栈顶部,成为焦点所在。前一个Activity仍保留在堆栈中,但是处于停止状态。Activity停止时,系统会保持其用户界面的当前状态。用户按“返回”按钮时,当前Activity会从堆栈顶部弹出(Activity被销毁),而前一个Activity恢复执行(恢复其UI的前一状态)。堆栈中的Activity不会重新排列,仅推入和弹出堆栈,即:由当前Activity启动时推入堆栈,用户使用“返回”按钮退出时弹出堆栈。
在本申请的一些实施例中,若电子设备全屏显示一个应用的显示界面,那么电子设备中存在该一个应用的任务栈。若电子设备分屏显示多个显示区域,那么电子设备中存在该多个显示区域对应的多个任务栈,一个显示区域对应一个任务栈。一个任务栈可以包含一个或多个应用的Activity。示例性的,参见图3A所示的用户界面31,电子设备的显示屏上包括两个显示区域,即显示区域221和显示区域223。显示区域221可以对应于活动任务栈A,显示区域223对应于活动任务栈B。
在本申请的一些实施例中,电子设备提供分屏锁定功能。在电子设备处于分屏的情况下,电子设备的显示屏分为两个或两个以上的显示区域。其中,一个显示区域可以显示一个应用的界面,一个显示区域中可以包含一个锁定控件。示例性的,参见图3A所示的用户界面31,电子设备的显示屏上包括两个显示区域,即显示区域221和显示区域223。其中,显示区域221用于显示一个即时通讯应用(示例为QQ)的聊天界面,显示区域223用于显示另一个即时通讯应用(示例为微信(WeChat))的界面。显示区域221中包含锁定控件225,显示区域223中包含锁定控件227。其中,锁定控件225和锁定控件227均显示为未锁定状态。当检测到用户作用在锁定控件227上的用户操作,响应于该用户操作,电子设备切换锁定控件227的显示状态为锁定状态(可参照图3B中的锁定控件227的显示状态),并将该锁定控件所在的显示区域对应的任务栈切换为锁定状态。在任务栈切换为锁定状态之后,该第一显示区域对应的任务栈不再进行Activity的新增,或者不再进行除该第一应用的Activity的新增。通过这种方式,电子设备对该第一显示区域的显示内容进行锁定。
首先介绍本申请以下实施例中提供的示例性电子设备10。
图1A示出了电子设备10的结构示意图。
电子设备10可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受 话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像模组193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180G,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备10的具体限定。在本申请另一些实施例中,电子设备10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),中央处理器(central processing unit,CPU),图形处理器(graphics processing unit,GPU),神经网络处理器(neural-network processing unit,NPU),调制解调处理器,图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备10也可以包括一个或多个处理器110。
其中,控制器可以是电子设备10的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备10的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。 它将要传输的数据在串行通信与并行通信之间转换。
MIPI接口可以被用于连接处理器110与显示屏194,摄像模组193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和显示屏194通过DSI接口通信,实现电子设备10的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备10充电,也可以用于电子设备10与外围设备之间传输数据。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备10的结构限定。在另一些实施例中,电子设备10也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像模组193,和无线通信模块160等供电。
电子设备10的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备10中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备10上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备10上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球 导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块、Wi-Fi模块等。
在一些实施例中,电子设备10的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备10可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。
电子设备10通过GPU,显示屏194,以及应用处理器等可以实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备10可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备10可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
摄像模组193可用于采集拍摄对象的彩色图像数据。ISP可用于处理摄像模组193采集的彩色图像数据。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备10在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备10可以支持一种或多种视频编解码器。这样,电子设备10可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)-1,MPEG-2,MPEG-3,MPEG-4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备10的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备 10的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备10执行本申请一些实施例中所提供的电子设备的拍照预览方法,以及各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备10使用过程中所创建的数据(比如照片,联系人等)。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备10可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备10可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备10接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备10可以设置至少一个麦克风170C。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备10根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备10根据压力传感器180A检测所述触摸操作强度。电子设备10也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备10的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备10围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。
气压传感器180C用于测量气压。在一些实施例中,电子设备10通过气压传感器180C 测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备10可以利用磁传感器180D检测翻盖皮套的开合。
加速度传感器180E可检测电子设备10在各个方向上(一般为三轴)加速度的大小。当电子设备10静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备10可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备10可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备10通过发光二极管向外发射红外光。电子设备10使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备10附近有物体。当检测到不充分的反射光时,电子设备10可以确定电子设备10附近没有物体。
环境光传感器180L用于感知环境光亮度。电子设备10可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备10是否在口袋里,以防误触。
指纹传感器180G用于采集指纹。电子设备10可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。在本申请实施例中,电子设备10还可以利用指纹传感器180G采集的指纹特性实现对一个显示区域的锁定状态的解锁,使得一个显示区域从锁定状态切换为未锁定状态。
温度传感器180J用于检测温度。在一些实施例中,电子设备10利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备10执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备10对电池142加热,以避免低温导致电子设备10异常关机。
触摸传感器180K,也可称触控面板或触敏表面。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备10的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备10可以接收按键输入,产生与电子设备10的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动 反馈。例如,在本申请实施例中,作用于锁定控件的不同方式的触摸操作,可以对应不同的振动反馈效果。示例性的,点击锁定控件与长按锁定控件的触摸操作,可对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备10的接触和分离。电子设备10通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备10采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备10中,不能和电子设备10分离。
图1A示例性所示的电子设备10可以通过显示屏194显示以下各个实施例中所描述的各个用户界面。电子设备10可以通过触摸传感器180K在各个用户界面中检测触控操作,例如在各个用户界面中的点击操作(如在图标上的触摸操作、双击操作),又例如在各个用户界面中的向上或向下的滑动操作,或执行画圆圈手势的操作,等等。在一些实施例中,电子设备10可以通过陀螺仪传感器180B、加速度传感器180E等检测用户手持电子设备10执行的运动手势,例如晃动电子设备。在一些实施例中,电子设备10可以通过摄像模组193(如3D摄像头、深度摄像头)检测非触控的手势操作。
可以理解的是,图1A示意的结构并不构成对电子设备10的具体限定。在本申请另一些实施例中,电子设备10可以包括比1A所示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
在本申请实施例中,电子设备10的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备10的软件结构。
图1B是本申请实施例提供的一种电子设备10的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一个或多个应用。其中,图1B中示例性示出了桌面启动器(Launcher),系统用户界面(SystemUI),设置(Setting),相机,图库,日历,导航,阅读,音乐,视频,短信息等应用程序。另外,应用程序层还可以包括其他的应用,例如:电话,游戏类应用,即时通讯类应用,购物类等应用,等等。
Launcher是安卓(Android)系统中的主要程序组件之一。电子设备10通过Launcher启动安卓桌面。
SystemUI是安卓系统的系统界面。它可以包括电子设备10用户界面上方的状态栏(status bar),下方的导航栏(Navigation Bar),锁屏界面(Keyguard),电源界面(PowerUI),近期任务界面(Recent Task)等等。在本申请实施例中,SystemUI根据检测到的用户点击锁定控件的操作,通过策略模块对任务栈的显示状态进行调整。例如,将任务栈的锁定状 态切换显示为未锁定状态,或者将未锁定状态切换显示为锁定状态。
设置是电子设备10的一个应用程序。用户可以通过设置对电子设备10的各项功能选项进行自定义的选择,例如,蓝牙、GPS(Global Positioning System)、Wi-Fi,等等。用户还可以用过设置对电子设备的各项设置选项进行自定义的修改,例如,显示屏亮度、音量大小、显示字体大小,等等。在本申请的一些实施例中,用户可以通过设置对本申请实施例提供的分屏锁定功能进行自定义的选择,可以开启或者关闭分屏锁定功能。示例性的,在分屏锁定功能开启的情况下,电子设备10处于分屏显示的场景中,电子设备10显示屏的多个显示区域中可以显示锁定控件,用户可以通过点击(还可以是,双击、长按等其他操作)锁定控件对一个显示区域中的显示内容进行锁定。在分屏锁定功能关闭的情况下,电子设备10处于分屏显示的场景中,电子设备10显示屏的多个显示区域中不显示锁定控件。
应用程序框架层为应用层的应用提供应用编程接口(application programming interface,API)和编程框架。应用框架层包括一些预先定义的函数。如图1B所示,应用框架层可以包括,活动管理模块(ActivityManagerService),窗口管理模块(WindowManagerService),屏幕锁定模块,电话管理器,通知管理器等。其中:
ActivityManagerService,可以用于管理电子设备10的各项Activity。具体的,对于电子设备10的应用创建的每一个Activity,在ActivityManagerService中都会有一个与之对应的ActivityRecord。ActivityManagerService会利用这个ActivityRecord作为标识,来管理应用程序的Activity。在一些实施例中,ActivityManagerService可以包括活动启动模块(ActivityStarter)、任务启动模块(TaskStarter)和活动任务栈与生命周期管理模块。其中,ActivityStarter可以用于启动一个新的Activity,TaskStarter可以用于创建一个新的Task,活动任务栈与生命周期管理模块可以用于对应用程序中的Activity进行调度,对Activity的生命周期进行管理,对任务栈的状态进行调整,等等。
WindowManagerService,负责电子设备10的窗口管理。WindowManagerService可以用于窗口的创建和销毁、窗口的显示与隐藏、窗口的布局、输入法管理和壁纸管理,等等。每一个Activity都会有一个自己的窗口,在WindowManagerService中便会有一个与Activity对应的WindowState。WindowManagerService以此标识应用程序中的窗口,并用这个WindowState来存储,查询和控制窗口的状态。在一些实施例中,WindowManagerService可以包括动效模块和窗口显示模块。其中,动效模块可以用于提供窗口切换的动画效果。窗口显示模块可以用于窗口的创建与显示。
屏幕锁定模块,可以用于对电子设备10的屏幕进行锁定或者解锁。示例性的,屏幕锁定模块可以在电子设备10当前显示屏的整个显示区域上方显示锁屏界面。另外,该屏幕锁定模块可以根据接收到的用户的输入的解锁密码(例如,数字或者图案,等等)或者获取到的用户的生理数据(例如,指纹信息、面部信息、声纹信息、虹膜信息,等等),对是否解除电子设备的屏幕锁定进行判定。示例性的,当接收到的解锁密码与预设的解锁密码相同时,或者获取到的用户的生理数据和预存的生理数据相匹配时,屏幕锁定模块解除屏幕锁定,不再显示锁屏界面。
在一些实施例中,电子设备10还可以包括应用锁定模块。该应用锁定模块可以对显示 屏上显示应用界面的一个显示区域进行锁定或者解锁。示例性的,应用锁定模块可以在电子设备10当前显示的一个Activity上方显示锁屏界面,该一个Activity对应于一个应用。另外,该应用锁定模块可以与屏幕锁定模块的解锁方式相似,即可以根据接收到的用户的输入的解锁密码(例如,数字或者图案,等等)或者获取到的用户的生理数据(例如,指纹信息、面部信息、声纹信息、虹膜信息,等等),对是否解除电子设备的显示区域锁定进行判定。可选的,该应用锁定模块的解锁方式也可以不同于屏幕锁定模块的解锁方式。
电话管理器,可以用于提供电子设备10的通信功能。例如通话状态的管理(包括接通,挂断等)。
通知管理器,可以使得应用可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。通知管理器还可以是以图表或者滚动条文本形式在系统顶部状态栏显示通知,还可以是以对话窗口形式在屏幕上显示通知。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用层和应用框架层运行在虚拟机中。虚拟机将应用层和应用框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器,可以用于对显示子系统进行管理,并且为多个应用提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,G.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库,可以用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
需要说明的,图1B所示的电子设备的软件架构仅仅是本申请实施例的一种实现方式,实际应用中,电子设备还可以包括更多或更少的软件模块,这里不作限制。
在本申请实施例中,电子设备10在如图1B所示的软件结构的基础上,还可以包括显示模块,该显示模块用于根据各个软件模块的运行而显示对应的用户界面。该显示模块显示的用户界面可参照如下实施例中示例性所示的用户界面。该显示模块具体可以实现为图1A中的显示屏194。
以下结合界面图对本申请实施例提出的分屏显示方法进行介绍。首先,介绍本申请实施例提供的一些开启分屏锁定功能的方式。
参见图2A,是本申请实施例提供的一种显示界面的示意图。示例性的,用户界面21用于显示电子设备10中辅助功能的设置界面。用户界面21包括多个设置控件,例如,语 音控制控件211、触控控件213、动态效果控件215、分屏锁定控件217和切换控制控件219。用户界面21中还可以包括其他控件,此处仅为示例。
当用户点击分屏锁定控件217时,响应于该点击操作,电子设备10开启分屏锁定功能,并将分屏锁定控件217从显示“OFF”状态切换至显示“ON”状态。
在一些实施例中,电子设备10还可以在快捷操作菜单中显示分屏锁定控件。示例性的,参见图2B,当检测到在状态栏201上的向下滑动的用户操作时,响应于该用户操作,电子设备10可以在显示屏上显示快捷操作菜单220。用户界面22中包括快捷操作菜单220,以及多个应用图标。快捷操作菜单220中包含有多个功能控件,例如,蓝牙控件、手电筒控件、响铃控件和分屏锁定控件222,等等。用户可以通过该分屏锁定控件222方便的对电子设备10的分屏锁定功能进行开启或者关闭。需要说明的是,还可以存在其他的呼出快捷操作菜单的方式,此处仅为示例。
在一些实施例中,电子设备10的分屏锁定功能也可以默认开启。
在一些实施例中,电子设备10的显示屏可以为折叠屏。通过对电子设备10的折叠,电子设备10的显示屏194可以分为不同的显示区域。参见图2C,是本申请实施例提供的一种电子设备10的示意图。
如图2C所示,电子设备10的显示屏194为折叠屏。通过对电子设备10的折叠,显示屏194可以分为显示区域120、显示区域122和分屏栏124。其中:
分屏栏124可以用于分隔显示区域120和显示区域122。在一些实施例中,分屏栏124可以与显示屏194的折叠区域重合。在一些实施例中,分屏栏124也可以不与显示屏194的折叠区域重合。当检测到用户拖动分屏栏124的操作(例如,滑动操作,等等),响应于该操作,电子设备10调整显示区域120和显示区域122的大小。在另一些实施例中,显示屏194中也可以不包含分屏栏124。
显示区域120用于显示一个视频播放类应用的界面,显示区域122用于显示一个即时通讯应用的界面。显示区域120中包含锁定控件101,显示区域122中包含锁定控件103。其中,锁定控件101和锁定控件103均显示为未锁定状态。用户可以通过锁定控件101对显示区域120的显示内容进行锁定或者解锁,通过锁定控件103对显示区域122的显示内容进行锁定或者解锁。
需要说明的是,对于以下实施例中示例性示出的显示界面,可以显示在如图2C所示的折叠屏上。
接下来,基于上述内容中介绍的电子设备10,结合其他附图对本申请实施例提供的一种分屏显示方法进行详细说明。
参见图3A,是本申请提供的一种显示界面的示意图。用户界面31包括状态栏、分屏栏229以及两个显示区域,显示区域221和显示区域223。示例性的,显示区域221用于显示一个即时通讯应用(示例为QQ)的聊天界面,显示区域223用于显示另一个即时通讯应用(示例为微信(WeChat))应用的界面,示例为公众号的显示界面。需要说明的是,显示区域221和显示区域223也可以显示同一个应用的不同界面,例如,显示区域221可以 显示微信应用的聊天界面,显示区域223可以显示微信应用的公众号的显示界面。
分屏栏229用于分隔显示区域221和显示区域223。在一些实施例中,当检测到用户拖动分屏栏229的操作(例如,滑动操作,等等),响应于该操作,电子设备10调整显示区域221和显示区域223的大小。在一些实施例中,用户界面22中也可以不包含分屏栏229。
在电子设备10的分屏锁定功能开启的情况下,显示区域221中可以显示锁定控件225,显示区域223中可以显示锁定控件227。在一些实施例中,为了不遮挡显示区域的界面显示内容,锁定控件可以隐藏显示。示例性的,在电子设备10进入分屏显示之后,电子设备10显示锁定控件225以及锁定控件227,在锁定控件225以及锁定控件227显示了预设时间之后,电子设备10可以不再显示锁定控件。可选的,锁定控件被隐藏后还可以根据用户的需要重新调出。示例性的,当用户长按、双击、按压(force touch)显示区域221,或者在显示区域221中滑动,响应于该用户操作,电子设备10重新调出锁定控件225。可理解的,隐藏锁定控件并不影响电子设备向用户提供的分屏锁定功能。
锁定控件227的显示状态可以指示显示区域223的锁定状态。当锁定控件227显示为未锁定状态(可参照图3A中锁定控件227的显示状态)时,表明显示区域223未被锁定。当锁定控件227显示为锁定状态(可参照图3B中锁定控件227的显示状态)时,表明显示区域223已被锁定。相似的,锁定控件225的显示状态可以指示显示区域221的锁定状态。
如图3A-图3B示例性所示,当用户点击(还可以为双击、长按或者其他操作)锁定控件227,响应于该点击操作,电子设备10将锁定控件227的显示状态切换至锁定状态,并锁定显示区域223。
在一些实施例中,电子设备10可以包括两个以上的显示区域。例如,电子设备10包括三个显示区域(可称为三分屏),或者,电子设备10包括四个显示区域(可称为四分屏)。在这种情况下,电子设备10可以包括两个以上的锁定控件。一个锁定控件与一个显示区域具有对应关系。示例性的,参见图3C,是本申请实施例提供的一种显示界面的示意图。如图3C所示,用户界面33包括:显示区域231、显示区域233、显示区域235、分屏栏237和分屏栏239。其中:
分屏栏237和分屏栏239可以用于分隔显示区域231、显示区域233和显示区域235。与上述介绍的分屏栏相似,用户可以通过分屏栏调整各个显示区域的显示大小。在另一些实施例中,显示屏194中也可以不包含分屏栏237和/或分屏栏239。
示例性的,显示区域231用于显示图库应用的界面,显示区域233用于显示QQ应用的界面,显示区域235用于显示微信应用的界面。显示区域231中包含锁定控件241,用户可以通过锁定控件241对显示区域231的显示内容进行锁定或者解锁。显示区域233中包含锁定控件243,用户可以通过锁定控件243对显示区域233的显示内容进行锁定或者解锁。显示区域235中包含锁定控件245,用户可以通过锁定控件245对显示区域235的显示内容进行锁定或者解锁。
接下来以锁定控件227(可参照图3A所示的用户界面31中的锁定控件227)为例, 介绍锁定显示区域223的流程。参见图3D,是本申请实施例提供的一种锁定显示区域的流程图。电子设备10的显示屏中包含显示区域221和显示区域223,显示区域221中显示的用户界面对应于活动任务栈A,显示区域223中显示的用户界面对应于活动任务栈B。
S101、响应于用户点击锁定控件227的操作,SystemUI处理点击事件。
S102、SystemUI调用策略模块处理该点击事件。
S103、策略模块根据该点击事件调用活动任务栈与生命周期管理模块设置活动任务栈B的锁定状态。
可选的,策略模块调用活动任务栈与生命周期管理模块设置活动任务栈B的锁定状态之前,策略模块可以查询活动任务栈B的状态,确定当前活动任务栈B的状态为未锁定状态。
S104、活动任务栈与生命周期管理模块设置活动任务栈B的状态为锁定状态。
其中,活动任务栈与生命周期管理模块可以设置、存储、查询、修改活动任务栈B的状态。在一些实施例中,活动任务栈的状态可以利用状态标识来表示。状态标识可以是各种数据结构,例如状态标识可以为数字,具体的,可以为一个数字或者一串数字,例如为1,0,10,11等等。该状态标识还可以为字母,具体的,可以为一个字母或者一串字母,例如为Y,AA,等等。该状态标识还可以为符号,具体的,可以为一个符号或者一串符号序列,例如为“○”“□□”“△○”。此外,本申请中,该状态标识可以是一个或多个数据结构,用来表示活动任务栈的状态,这些数据结构可以存储在一个或者多个存储器中,或者存储在一个存储器中的不同部分。示例性的,状态标识“1”表示活动任务栈已被锁定,状态标识“0”表示活动任务栈未被锁定。
示例性的,活动任务栈与生命周期管理模块将活动任务栈B的状态调整为锁定状态的方式可以为,将活动任务栈B的状态标识修改为状态标识“1”。
S105、活动任务栈与生命周期管理模块将活动任务栈B的锁定状态反馈给策略模块。
S106、策略模块指示SystemUI刷新用户界面。
S107、SystemUI刷新用户界面,将锁定控件227的显示状态切换至锁定状态。
在一些实施例中,若一个显示区域处于锁定状态,那么其他显示区域的显示界面的切换不会对已锁定的显示区域的显示界面造成影响。
如图4A-图4B示例性所示,当用户从显示区域221的底部向上滑动,响应于该滑动操作,电子设备10退出显示的聊天界面,将显示区域221切换为电子设备10的主界面,显示区域223的显示内容不会发生改变。
如用户界面41示例性所示,显示区域221用于显示电子设备10的主界面。电子设备10的主界面中可以包括:指示当前时间的日历小工具301、指示天气类型的天气小工具303,页面指示符305和多个应用图标。页面指示符305可用于指示页面数量,以及用户当前浏览的是哪一个页面。此外,用户可以在当前页面左右滑动,来浏览其他页面中的应用程序图标。
在一些可能的实现方式中,还可以存在其他的关闭显示区域221的聊天界面的方式。例如,电子设备10可以包括导航栏。示例性的,可参照图9A所示的用户界面91。导航栏 901可包括:返回按键902、主界面(Home screen)按键903、呼出任务历史按键904等系统导航键。用户可以通过返回按键902或者主界面(Home screen)按键903关闭显示区域221,这种方式将在后续内容中进行介绍,此处不具体展开。
在一些可能的实现方式中,若用户关闭了显示区域221的聊天界面,显示区域221还可以存在其他的显示方式,例如,显示区域221还可以切换为显示安装在该电子设备上的支持分屏功能的应用的图标。这种显示方式可以参照图4C所示的用户界面42。本申请对用户关闭了显示区域221的聊天界面之后,显示区域221切换显示界面的方式不作限制。
在一些实施例中,若一个显示区域处于未锁定状态,那么在其他显示区域的显示界面的退出之后,该显示区域可以覆盖已退出的显示区域。示例性的,如图4D-图4E所示,显示区域221和显示区域223均处于未锁定状态。当用户从显示区域221的底部向上滑动,响应于该滑动操作,电子设备退出显示的聊天界面,并在显示屏全屏显示原显示区域223(即图4D中显示区域223)显示的界面。
在一些实施例中,在图4B或者图4C所示的显示区域221中,当用户点击了一个应用图标(例如,“设置”的应用图标),响应于该点击操作,电子设备10的显示区域221从显示主界面切换为显示该应用图标对应的应用的显示界面,显示区域223的显示内容不会发生改变。切换后,电子设备10的显示界面可以参照图4F所示。在用户界面45中,显示区域221从显示主界面切换为显示“设置”应用的显示界面。示例性的,“设置”应用的显示界面中包含有多个设置控件。用户可以通过这些设置控件对电子设备10的各项功能进行设定。
接下来以用户点击了“设置”的应用图标为例,介绍电子设备10打开新应用的流程。参见图4G,是本申请实施例提供的一种打开应用的方法的流程图。
S201、响应于用户点击“设置”的应用图标,SystemUI处理点击事件。
S202、SystemUI调用活动启动模块处理该点击事件。
S203、活动启动模块调用策略模块处理该点击事件。
在一些实施例中,ActivityStarter调用WindowService,WindowService调用策略模块处理该点击事件。
S204、策略模块调用活动任务栈与生命周期管理模块查询活动任务栈A和活动任务栈B的状态。
S205、活动任务栈与生命周期管理模块确定活动任务栈A和活动任务栈B的状态。
具体的,在该示例中,活动任务栈A的状态为未锁定状态,活动任务栈B的状态为锁定状态。
S206、活动任务栈与生命周期管理模块向策略模块反馈活动任务栈A和活动任务栈B的状态。
S207、在接收到活动任务栈A和活动任务栈B的状态之后,策略模块根据活动任务栈A和活动任务栈B的状态,确定活动任务栈A为“设置”应用的活动任务栈。
策略模块根据反馈的活动任务栈A和活动任务栈B的状态,确定处于未锁定状态的活动任务栈为活动任务栈A,则策略模块确定活动任务栈A为“设置”应用的活动任务栈。
S208、策略模块调用窗口显示模块设置“设置”应用的显示区域。
S209、窗口显示模块调用活动任务栈A的setLaunchBounds(A)接口设置新启动的应用的新Activity的尺寸和屏幕位置。
S210、窗口显示模块显示“设置”应用的用户界面。
在一些实施例中,若一个显示区域处于锁定状态,那么该显示区域不再显示其他用户界面。示例性的,当用户点击了显示区域223显示界面中的跳转控件311(可参见图4B所示的用户界面41中的跳转控件311),响应于该点击操作,电子设备10在显示区域221(处于未锁定状态的区域)中显示该跳转控件311关联的用户界面。切换后,电子设备10的显示界面可以参照图5A所示。在用户界面51中,显示区域221中的界面切换为跳转控件311关联的用户界面,显示区域223中的界面与图4B中的显示区域223的界面相同。
接下来以用户点击了跳转控件311为例,介绍电子设备10打开新Activity的流程。参见图5B,是本申请实施例提供的一种打开Activity的方法的流程图。
S301、响应于用户点击跳转控件311,活动启动模块处理点击事件。
S302、活动启动模块调用策略模块处理该点击事件。
在一些实施例中,ActivityStarter调用WindowService,WindowService调用策略模块处理该点击事件。
S303、策略模块调用活动任务栈与生命周期管理模块查询活动任务栈A和活动任务栈B的状态。
S304、活动任务栈与生命周期管理模块确定活动任务栈A和活动任务栈B的状态。
S305、活动任务栈与生命周期管理模块向策略模块反馈活动任务栈A和活动任务栈B的状态。
具体的,在该示例中,活动任务栈A的状态为未锁定状态,活动任务栈B的状态为锁定状态。
S306、在接收到活动任务栈A和活动任务栈B的状态之后,策略模块根据活动任务栈A和活动任务栈B的状态,确定活动任务栈A为新Activity的活动任务栈。
策略模块根据反馈的活动任务栈A和活动任务栈B的状态,确定处于未锁定状态的活动任务栈为活动任务栈A,则策略模块确定活动任务栈A为新Activity的活动任务栈。
S307、策略模块调用窗口显示模块设置新Activity的显示区域。
S308、窗口显示模块调用活动任务栈A的setLaunchBounds(A)接口设置新Activity的尺寸和屏幕位置。
S309、窗口显示模块刷新用户界面,在显示区域221中显示新Activity,即跳转控件311关联的用户界面。
需要说明的是,新的Activity将建立在活动任务栈A的栈顶,若用户点击了新的Activity的返回控件,当前Activity会从堆栈顶部弹出(Activity被销毁),而位于这个新的Activity之前的一个Activity恢复执行(示例中为主界面的Activity)。也就是说,若用户点击了新的Activity的返回控件(可参见图5A中的控件501),那么显示区域221将从显示跳转控件311关联的用户界面切换至显示主界面(可参见图4B中的显示区域221的显示界面)。
在另一些实施例中,如图5C-图5D示例性所示,若电子设备的两个显示区域(即显示 区域221和显示区域223)均处于锁定状态。当用户点击了图5C所示的用户界面52的显示区域223中的跳转控件311,响应于该点击操作,电子设备10在显示区域223中显示该跳转控件311关联的用户界面。切换后,电子设备10的显示界面可以参照图5D所示的用户界面53。
在一些实施例中,本申请实施例提供的分屏锁定方法还可以应用于安全模式,在这种模式下,对一个显示区域的锁定状态的解锁需要进行验证。接下来,对电子设备10进入分屏锁定的安全模式的方法进行介绍。
在一些实施例中,用户可以选择是否进入分屏锁定的安全模式。示例性的,参见图6A所示的用户界面61,若用户长按用户界面61中的锁定控件227,响应于该长按操作,电子设备10显示提示框601。在用户界面61中,显示区域223中包括提示框601,提示框601中包含控件603和控件605。其中:
控件605可以接收用户的操作,响应于该用户操作,电子设备10不再显示提示框601。
控件603可以接收用户的操作,响应于该用户操作,电子设备10确定显示区域223进入分屏锁定的安全模式。电子设备10将锁定控件227的从未锁定状态切换为锁定状态。点击控件603之后,电子设备10的显示界面可以参照图3B所示的用户界面32。需要说明的是,显示区域223进入分屏锁定的安全模式,表明显示区域223被锁定,显示区域223对应的活动任务栈B的状态调整为安全锁定状态,并且解除对显示区域223的锁定需要进行验证。也即是说,活动任务栈的安全锁定状态不同于锁定状态和未锁定状态。在活动任务栈处于安全锁定状态的情况下,解除对活动任务栈对应的显示区域的锁定需要进行验证;在活动任务栈处于锁定状态的情况下,解除对活动任务栈对应的显示区域的锁定无需进行验证。
在另一些实施例中,当显示区域处于分屏锁定的安全模式时,该显示区域对应的锁定控件可以显示为安全锁定状态。可选的,表示安全锁定状态的图标可以不同于表示锁定状态的图标,也不同于表示未锁定状态的图标。示例性的,点击控件603之后,电子设备10的显示界面可以参照图6B所示的用户界面62。
另外,若原活动任务栈B为锁定状态,用户也可以按照相似的方式,将活动任务栈B调整为安全锁定状态。在另一些实施例中,在电子设备10的显示区域均处于锁定状态时,用户可以通过长按锁定控件使得电子设备10进入分屏锁定的安全模式,解除任意一个显示区域的锁定均需要进行验证。这种方式,可以方便用户对电子设备的显示内容进行锁定,提升电子设备10的安全性,避免用户信息的泄露。
在另一些实施例中,电子设备10可以通过摄像头实时获取用户的面部信息。当用户的面部信息与预存的面部信息不匹配时,电子设备10将已处于锁定状态的显示区域切换为安全模式。在另一种可能的实现方式中,当用户的面部信息与预存的面部信息不匹配,且电子设备10的显示屏上的多个显示区域中每个显示区域均处于锁定状态时,电子设备10将已处于锁定状态的显示区域切换为安全模式。通过这种方式,不是预存用户无法解除显示区域的锁定状态,可以提升电子设备10的安全性,避免用户信息的泄露。
在另一些实施例中,在电子设备10应用于分屏锁定的安全模式的情况下,处于锁定状态的显示区域不可以退出当前显示的应用,只能进行应用内的Activity的切换。若用户想在处于锁定状态的显示区域中打开其他应用的Activity,需要解锁显示区域的锁定。参见图7,是本申请实施例提供的一种打开Activity的方法的流程图。在该示例中,显示区域223对应的活动任务栈B处于安全锁定状态。
S501、响应于用户点击跳转控件701,活动启动模块处理点击事件。
其中,跳转控件701关联了与显示区域223当前显示的应用不同的其他应用的Activity。示例性的,显示区域223当前显示的应用可以是一个购物类应用,跳转控件701关联的Activity可以是一个支付类应用。
S502、活动启动模块调用策略模块处理该点击事件。
在一些实施例中,ActivityStarter调用WindowService,WindowService调用策略模块处理该点击事件。
S503、策略模块调用活动任务栈与生命周期管理模块查询活动任务栈B的状态。
S504、活动任务栈与生命周期管理模块确定活动任务栈B的状态。
在该示例中,活动任务栈B的状态为安全锁定状态。
S505、活动任务栈与生命周期管理模块向策略模块反馈活动任务栈B的状态。
S506、在接收到活动任务栈B的状态之后,策略模块根据活动任务栈B的状态,调用屏幕锁定模块验证用户身份。
S507、屏幕锁定模块验证用户身份。
该步骤的实施方式可以参照后续内容中S403的实施过程。
S508、屏幕锁定模块向策略模块反馈验证结果。
S509、策略模块根据验证结果调用活动任务栈与生命周期管理模块设置活动任务栈B的状态为未锁定状态。
其中,该验证结果为验证用户身份成功。需要说明的是,若验证结果为验证用户身份失败,策略模块不会修改活动任务栈B的状态。电子设备不会显示新的Activity。
S510、活动任务栈与生命周期管理模块设置活动任务栈B的状态为未锁定状态。
S511、活动任务栈与生命周期管理模块向策略模块反馈活动任务栈B的状态。
S512、策略模块调用窗口显示模块设置新Activity的显示区域。
S513、窗口显示模块调用活动任务栈B的setLaunchBounds(B)接口设置新Activity的尺寸和屏幕位置。
S514、窗口显示模块在显示区域223中显示新Activity。
S515、活动启动模块指示SystemUI刷新用户界面。
S516、systemUI刷新用户界面,将锁定控件227的显示状态切换至未锁定状态。
接下来以用户点击了锁定控件227(可参见图6B中的锁定控件227)为例,介绍电子设备10在应用于分屏锁定的安全模式的情况下,解锁锁定状态的流程。参见图8A,是本申请实施例提供的一种解锁锁定状态的方法的流程图。
S401、响应于用户点击锁定控件227的操作,systemUI处理点击事件。
S402、systemUI调用屏幕锁定模块处理该点击事件。
S403、屏幕锁定模块对用户身份进行验证。
在一些实施例中,屏幕锁定模块对电子设备10的显示屏进行锁定,电子设备10在显示屏上显示锁屏界面。示例性的,解锁界面可参照图8B所示的用户界面81。具体的,解锁界面中包括时间小工具801和解锁指示符802。时间小工具801可以指示当前时间。解锁指示符802可以用于指示接收用户的指纹信息的区域。解锁指示符802所在的屏幕区域可以接收用户的指纹信息。当接收到的用户的指纹信息与预存的指纹信息相匹配时,屏幕锁定模块解除对显示屏的锁定,不再显示锁屏界面。电子设备10可显示如图6B所示的用户界面62。
在另一种可能的实现方式中,解锁界面中也可以不包含解锁指示符802。用户可以通过电子设备10的指纹按键进行解锁。可选的,该指纹按键可以为物理按键。参见图8C所示的电子设备10的示意图,用户可以通过触控指纹按键803来解除屏幕的锁定。
在另一些实施例中,systemUI还可以调用应用锁定模块处理该点击事件。应用锁定模块对用户身份进行验证。在这种方式中,应用锁定模块在显示区域223中显示解锁指示符804。示例性的,电子设备10显示的用户界面可参照图8D所示。当接收到的用户的指纹信息与预存的指纹信息相匹配时,应用锁定模块解除对显示屏的显示区域223的锁定,不再显示解锁指示符804。
需要说明的是,屏幕锁定模块和应用锁定模块还可以存在其他的验证用户身份的方式,例如,根据摄像头采集的面部信息进行人脸识别,或者根据麦克风采集的声音信息进行声纹识别,等等。
在一种可能的实现方式中,若屏幕锁定模块或者应用锁定模块验证用户身份失败,那么电子设备10可以显示提示信息以提示用户身份验证失败,并在预设时间之后显示解锁之前的用户界面,可参照图6B所示的用户界面62。
S404、屏幕锁定模块向策略模块反馈验证结果。
S405、策略模块根据验证结果调用活动任务栈与生命周期管理模块设置活动任务栈B的状态为未锁定状态。
其中,该验证结果为验证用户身份成功。需要说明的是,若验证结果为验证用户身份失败,策略模块不会修改活动任务栈B的状态。电子设备10不会调整锁定控件227的显示状态。
可选的,策略模块调用活动任务栈与生命周期管理模块设置活动任务栈B的状态之前,策略模块可以查询活动任务栈B的状态,确定当前活动任务栈B的状态为锁定状态。
S406、活动任务栈与生命周期管理模块设置活动任务栈B的状态为未锁定状态。
S407、活动任务栈与生命周期管理模块向策略模块反馈活动任务栈B的状态。
S408、策略模块指示SystemUI刷新用户界面。
S409、SystemUI刷新用户界面,将锁定控件227的显示状态切换至未锁定状态。
示例性的,切换后的用户界面可以参照图3A所示的用户界面31。
在一些实施例中,电子设备的用户界面中还包括导航栏。示例性的,可参照图9A所示的用户界面91。用户界面91中包括显示区域221、显示区域223、分屏栏229以及导航栏901。其中,导航栏901可包括:返回按键902、主界面(Home screen)按键903、呼出任务历史按键904等系统导航键。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏901中的各导航键也可以实现为物理按键。在该示例中,显示区域221处于未锁定状态,显示区域223处于锁定状态。
在一些实施例中,当检测到用户点击返回按键902时,电子设备10将处于未锁定状态的显示区域(即,显示区域221)切换为显示当前界面的上一个界面。示例性的,切换后,电子设备10的显示界面可以参照图9C所示的用户界面92。当检测到用户点击主界面按键903时,电子设备10将处于未锁定状态的显示区域(即,显示区域221)切换为显示主界面。示例性的,切换后,电子设备10的显示界面可以参照图9D所示的用户界面93。当检测到用户点击呼出任务历史按键904时,电子设备10在处于未锁定状态的显示区域(即,显示区域221)中显示用户最近打开的任务。在一种可能的实现方式中,用户最近打开的任务仅包含显示区域221对应的活动任务栈中的用户界面。在又一种可能的实现方式中,用户最近打开的任务包含显示区域221和显示区域223对应的活动任务栈中的用户界面。示例性的,切换后,电子设备10的显示界面可以参照图9E所示的用户界面94。若用户选定了一个历史界面,则电子设备10在处于未锁定状态的显示区域中显示该历史界面。
在另一种示例中,显示区域221和显示区域223均处于未锁定状态。示例性的,可参照图9I所示的用户界面98。用户界面98中包括显示区域221、显示区域223、分屏栏229以及导航栏901。其中,导航栏901可包括:返回按键902、主界面(Home screen)按键903、呼出任务历史按键904等系统导航键。当检测到用户点击返回按键902时,电子设备10退出分屏显示,并全屏显示原显示区域221或者全屏显示原显示区域223的界面。示例性的,切换后,电子设备10的显示界面可以参照图4E所示的用户界面44。当检测到用户点击主界面按键903时,退出分屏显示,并全屏显示主界面。示例性的,切换后,电子设备10的显示界面可以参照图9F所示的用户界面95。当检测到用户点击呼出任务历史按键904时,电子设备10全屏显示用户最近打开的任务。在一种可能的实现方式中,用户最近打开的任务包含显示区域221以及显示区域223对应的活动任务栈中的用户界面。示例性的,切换后,电子设备10的显示界面可以参照图9G所示的用户界面96。若用户选定了一个历史界面,则电子设备10全屏显示该历史界面。
在另一些实施例中,若用户点击了返回按键902,则响应于该点击操作,电子设备10确定点击返回按键902之前,最近一次接收到用户操作的Activity,并将该Activity对应的显示区域切换显示为当前显示Activity的上一个Activity。示例性的,参见图9B,是本申请实施例提供的一种返回操作的流程图。
S601、响应于用户点击返回按键的操作,systemUI处理点击事件。
S602、systemUI调用活动管理模块处理该点击事件。
S603、活动管理模块确定最近一次接收到用户操作的Activity。
在该实例中,以最近一次接收到的用户操作的Activity为用户界面91的显示区域221中显示的Activity为例。
S604、活动管理模块根据最近一次接收到用户操作的Activity调用策略模块处理针对活动任务栈B的返回事件。
其中,活动任务栈B为显示区域221对应的活动任务栈。
S605、策略模块调用活动任务栈与生命周期管理模块更新活动任务栈B。
S606、活动任务栈与生命周期管理模块更新活动任务栈B。
具体的,活动任务栈与生命周期管理模块将活动任务栈B当前Activity从堆栈顶部弹出(Activity被销毁),并将位于这个新的Activity之前的一个Activity恢复执行(示例中为QQ应用的聊天界面)。
S607、策略模块调用窗口显示模块刷新用户界面。
S608、窗口显示模块刷新用户界面,将显示区域221切换显示为QQ应用的聊天界面。示例性的,切换后,电子设备10的显示界面可以参照图9C所示的用户界面92。
需要说明的是,在电子设备10处于分屏显示状态的情况下,若用户点击了主界面按键903,则响应于该点击操作,电子设备10确定点击了主界面按键903之前,最近一次接收到用户操作的Activity,并将该Activity对应的显示区域切换显示为主界面。示例性的,切换后,电子设备10的显示界面可以参照图9D所示的用户界面93。
在另一些实施例中,在电子设备10处于分屏显示状态的情况下,若用户点击了呼出任务历史按键904,则响应于该点击操作,电子设备10可以全屏显示用户最近打开的任务。若用户选定了一个历史界面,则电子设备10确定点击了呼出任务历史按键904之前,最近一次接收到用户操作的Activity,并将该Activity对应的显示区域切换显示为该历史界面。
在另一实施例中,电子设备10的用户界面中包含导航栏的方式还可以参照图9H所示的用户界面97。用户界面97中包括显示区域221、显示区域223、分屏栏229、导航栏905以及导航栏906。其中,导航栏905可包括:返回按键911、主界面(Home screen)按键912、呼出任务历史按键913等系统导航键。导航栏906可包括:返回按键921、主界面(Home screen)按键922、呼出任务历史按键923等系统导航键。各导航键的命名还可以为其他,本申请对此不做限制。
在该实施例中,导航栏905与显示区域221具有对应关系。当检测到用户点击返回按键911时,电子设备10将显示区域221切换为显示当前界面的上一个界面。当检测到用户点击主界面按键912时,电子设备10显示区域221切换为显示主界面。当检测到用户点击呼出任务历史按键913时,电子设备10在显示区域221中显示用户最近打开的任务。在一种可能的实现方式中,用户最近打开的任务仅包含显示区域221对应的活动任务栈中的用户界面。在又一种可能的实现方式中,用户最近打开的任务包含显示区域221和显示区域223对应的活动任务栈中的用户界面。若用户选定了一个历史界面,则电子设备10在显示区域221中显示该历史界面。
导航栏906与显示区域223具有对应关系。当检测到用户点击返回按键921时,电子设备10将显示区域223切换为显示当前界面的上一个界面。当检测到用户点击主界面按键 922时,电子设备10显示区域223切换为显示主界面。当检测到用户点击呼出任务历史按键923时,电子设备10在显示区域223中显示用户最近打开的任务。在一种可能的实现方式中,用户最近打开的任务仅包含显示区域223对应的活动任务栈中的用户界面。在又一种可能的实现方式中,用户最近打开的任务包含显示区域221和显示区域223对应的活动任务栈中的用户界面。若用户选定了一个历史界面,则电子设备10在显示区域221中显示该历史界面。
需要说明的是,若电子设备10包括多个显示区域,那么一个显示区域可以对应于一组导航栏。参照上述示例,用户可以通过显示区域对应的导航栏,切换该显示区域的显示界面。
基于前述内容中介绍的实施例以及电子设备10,下面介绍本申请实施例提供的一种分屏显示方法。参见图10,图10是本申请实施例提供的一种分屏显示方法的流程图。如图10所示,该方法包括以下步骤:
S101、电子设备在显示屏的第一显示区域显示第一应用的第一界面,在所述显示屏的第二显示区域显示第二应用的第二界面。
示例性的,电子设备显示的用户界面可以参照图9I所示的用户界面98。第一显示区域可以参照图9I中的显示区域223,第二显示区域可以参照图9I中的显示区域221。该第一应用为微信应用,该第二应用也为微信应用。
示例性的,电子设备显示的用户界面还可以参照图3A所示的用户界面31。第一显示区域可以参照图3A中的显示区域223,第二显示区域可以参照图3A中的显示区域221。该第一应用为微信应用,该第二应用为QQ应用。需要说明的是,该第一应用和该第二应用可以为相同的应用,该第一应用和第二应用也可以为不同的应用。
S102、所述电子设备接收用户输入的第一操作,响应于所述第一操作,所述电子设备在所述显示屏上全屏显示所述电子设备的主界面。
第一操作可以为用户输入的用于触发电子设备切换回主界面的操作。示例性的,可参见图9I到图9F所对应的实施例,该第一操作可以为用户针对主界面按键903的操作(例如,单击、双击或者长按等等操作)。可选的,该第一操作还可以为拖动、按压、语音输入、光输入、悬浮手势操作或者其他方式的操作。示例性的,电子设备全屏显示主界面的用户界面可以参照9F所示的用户界面95。
S103、所述电子设备在所述第一显示区域显示第三应用的第三界面,在所述第二显示区域显示第四应用的第四界面。
需要说明的是,在执行步骤S103之前,电子设备可以接收用户输入的第二操作,响应于该第二操作,所述电子设备在所述第一显示区域显示第三应用的第三界面,在所述第二显示区域显示第四应用的第四界面。其中,该第二操作可以包含多次操作。示例性的,触发电子设备显示第三界面和第四界面的流程可以为:用户先在主界面中输入针对第三应用的图标的操作,响应于该操作,电子设备在显示屏上显示第三应用的第三界面。之后,用户在电子设备的显示屏上输入的分屏操作(例如,用户长按导航栏中的呼出任务历史按键(可参照用户界面95中的呼出任务历史按键904)),电子设备在显示屏的第一显示区域显 示第三界面,在显示屏的第二显示区域显示安装在该电子设备上的支持分屏功能的应用的图标。之后,用户输入针对第四应用的图标的操作,响应于该操作,电子设备在第二显示区域显示第四应用的第四界面。其中,第二操作包括:用户在主界面中输入针对第三应用的图标的操作、用户在电子设备的显示屏上输入的分屏操作和用户输入针对第四应用的图标的操作。该第二操作还可以为其他的操作,本申请实施例不做限制。
示例性的,电子设备显示的用户界面可以参照图9I所示的用户界面98。第一显示区域可以参照图9I中的显示区域223,第二显示区域可以参照图9I中的显示区域221。该第三应用为微信应用,该第四应用也为微信应用。需要说明的是,该第三应用和该第四应用可以为相同的应用,该第三应用和第四应用也可以为不同的应用。该第三应用与第一应用、第二应用可以为相同的应用,也可以为不同的应用。该第四应用与第一应用、第二应用可以为相同的应用,也可以为不同的应用。
示例性的,电子设备显示的用户界面还可以参照图3A所示的用户界面31。第一显示区域可以参照图3A中的显示区域223,第二显示区域可以参照图3A中的显示区域221。该第三应用为微信应用,该第四应用为QQ应用。
S104、所述电子设备接收用户在所述第一显示区域上输入的第三操作。
第三操作可以为用户输入的用于锁定第一显示区域的显示内容的操作。示例性的,可参见图3A-图3B所示的实施例,该第三操作可以为用户针对控件227的操作(例如,单击、双击或者长按等等操作)。可选的,该第三操作还可以为拖动、按压、语音输入、光输入、悬浮手势操作或者其他方式的操作。通过第三操作,用户可以方便地对第一显示区域的显示内容进行锁定。需要说明的是,第一显示区域的显示内容进行锁定之后,用户可以对第一显示区域中的显示内容进行操作。例如,参见图3B所示的实施例,用户可以在第一显示区域中上下滑动,以查看到当前公众号的其他内容。在另一些实施例中,若第一显示区域显示的是文档编辑界面,用户可以在第一显示区域中输入内容。
在一种可能的实现方式中,所述第一显示区域中包括第一控件,所述第二显示区域包括第二控件。在所述电子设备接收用户在所述第一显示区域上输入的第三操作之前,所述第一控件显示为第一状态,所述第二控件显示为所述第一状态。所述方法还包括:响应于所述第三操作,所述电子设备将所述第一控件从显示为第一状态切换至显示为第二状态。
示例性的,可参见图3A到图3B所示的实施例,该第一显示区域可以为图3A或者图3B中的显示区域223,第一控件可以为图3A或者图3B中的控件227;该第二显示区域可以为图3A或者图3B中的显示区域221,第二控件可以为图3A或者图3B中的控件225。在接收第三操作之间,第一控件显示为第一状态(可参照图3A中的控件227的显示状态),第二控件显示为第一状态(可参照图3A中的控件225的显示状态)。在接收第三操作之后,第一控件从显示为第一状态切换至显示为第二状态(可参照图3B中的控件227的显示状态)。通过这种方式,用户可以方便地查看到分屏显示区域的锁定情况。
S105、所述电子设备接收用户输入的第四操作,响应于所述第四操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面。
其中,所述第四操作的操作方式与所述第一操作的操作方式相同。第四操作也为用户输入的用于触发电子设备切换回主界面的操作。示例性的,可以参照图9A到图9D所示实 施例,该第四操作可以为用户针对主界面按键903的操作(例如,单击、双击或者长按等等操作)。可选的,该第四操作还可以为拖动、按压、语音输入、光输入、悬浮手势操作或者其他方式的操作。示例性的,响应于第四操作,电子设备显示的用户界面可以参照图9D所示的用户界面93。在用户界面93中,第一显示区域可以参照显示区域223,第二显示区域可以参照显示区域221。
在一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备接收用户针对所述第一控件输入的第十三操作,响应于所述第十三操作,所述电子设备验证用户身份;若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。通过这种方式,可以提高解除锁定的安全性。
示例性的,可参照图6B所对应的实施例,该第十三操作可以为用户点击锁定控件227的操作。电子设备解除第一显示区域的锁定状态的流程可以参照图8A所示的实施例。
在另一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备获取用户的生物特征;所述电子设备确定所述生物特征与预存的生物特征相匹配;所述电子设备接收用户针对所述第一控件输入的第十四操作,响应于所述第十四操作,所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。该生物特征可以包括用户的面部信息、指纹信息、声纹信息等等生理数据。通过这种方式,可以在保证解除锁定的安全性的前提下,提升解锁的效率。
在另一种可能的实现方式中,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:所述电子设备获取用户的生物特征;所述电子设备确定所述生物特征与预存的生物特征不相匹配;所述电子设备接收用户输入的第十五操作,响应于所述第十五操作,所述电子设备验证用户身份;若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。通过这种方式,可以提高解除锁定的安全性。
在一些实施例中,当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户针对所述第三界面输入的第五操作;响应于所述第五操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面。
示例性的,可参照图4B到图5A的实施例。所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面,可以参照图4B所示的用户界面41。该第五操作可以为用户输入的针对控件311的操作。所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面,可参照图5A所示的用户界面51。
在一些实施例中,当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面时,所述电子设备接收用户在所述第二显示区域 上输入的第六操作;所述电子设备接收用户针对所述第三界面输入的第七操作;响应于所述第七操作,所述电子设备在所述第一显示区域显示所述第三应用的第六界面,在所述第二显示区域显示所述第五界面。
示例性的,可参照图3B到图5C、再到图5D的实施例。所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面,可参照图3B所示的用户界面32。该第六操作可以为用户输入的针对控件225的操作。之后,电子设备可以显示图5C所示的用户界面52。该第七操作可以为用户输入的针对控件311的操作。所述电子设备在所述第一显示区域显示所述第三应用的第六界面,在所述第二显示区域显示所述第五界面,可参照图5D所示的用户界面53。
在一些实施例中,当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第八操作;响应于所述第八操作,所述电子设备在所述显示屏全屏显示第七界面,所述第七界面包括所述第一界面的界面内容和所述第二界面的界面内容;当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户输入的第九操作;响应于所述第九操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示第八界面,所述第八界面包括所述第一界面的界面内容、所述第二界面的界面内容和所述第四界面的界面内容,所述第九操作的操作方式与所述第八操作的操作方式相同。
示例性的,该第八操作和第九操作可以为用户输入的用于呼出历史任务栏的操作。所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面,可以参照图9I所示的用户界面。用户输入的第八操作可以为用户针对呼出任务历史按键904的操作。
在一些实施例中,当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第十操作;响应于所述第十操作,所述电子设备在所述显示屏全屏显示所述第一界面的界面内容或者所述第二界面的界面内容;当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第四界面时,所述电子设备接收用户在所述第一显示区域上输入的第十一操作,所述第十一操作的操作方式与所述第三操作的操作方式相同;所述电子设备接收所述用户输入的第十二操作;响应于所述第十二操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面。
示例性的,该第十操作和第十二操作可以为用户输入的用于退出界面的操作。所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面,可以参照图9I所示的用户界面。用户输入的第十操作可以为用户针对返回按键902的操作。用户输入的第十一操作可以为针对控件227的操作。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产 品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。
总之,以上所述仅为本申请技术方案的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (19)

  1. 一种分屏显示方法,其特征在于,包括:
    电子设备在显示屏的第一显示区域显示第一应用的第一界面,在所述显示屏的第二显示区域显示第二应用的第二界面;
    所述电子设备接收用户输入的第一操作,响应于所述第一操作,所述电子设备在所述显示屏上全屏显示所述电子设备的主界面;
    所述电子设备在所述第一显示区域显示第三应用的第三界面,在所述第二显示区域显示第四应用的第四界面;
    所述电子设备接收用户在所述第一显示区域上输入的第三操作;
    所述电子设备接收用户输入的第四操作,响应于所述第四操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面,所述第四操作的操作方式与所述第一操作的操作方式相同。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户针对所述第三界面输入的第五操作;
    响应于所述第五操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面时,所述电子设备接收用户在所述第二显示区域上输入的第六操作;
    所述电子设备接收用户针对所述第三界面输入的第七操作;
    响应于所述第七操作,所述电子设备在所述第一显示区域显示所述第三应用的第六界面,在所述第二显示区域显示所述第五界面。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第八操作;
    响应于所述第八操作,所述电子设备在所述显示屏全屏显示第七界面,所述第七界面包括所述第一界面的界面内容和所述第二界面的界面内容;
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,所述电子设备接收用户输入的第九操作;
    响应于所述第九操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示第八界面,所述第八界面包括所述第一界面的界面内容、所述第二界面的界面内容和所述第四界面的界面内容,所述第九操作的操作方式与所述第八操作的操作方式相同。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,所述电子设备接收用户输入的第十操作;
    响应于所述第十操作,所述电子设备在所述显示屏全屏显示所述第一界面的界面内容或者所述第二界面的界面内容;
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第四界面时,所述电子设备接收用户在所述第一显示区域上输入的第十一操作,所述第十一操作的操作方式与所述第三操作的操作方式相同;
    所述电子设备接收所述用户输入的第十二操作;
    响应于所述第十二操作,所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一显示区域中包括第一控件,所述第二显示区域包括第二控件;在所述电子设备接收用户在所述第一显示区域上输入的第三操作之前,所述第一控件显示为第一状态,所述第二控件显示为所述第一状态;
    所述方法还包括:
    响应于所述第三操作,所述电子设备将所述第一控件从显示为第一状态切换至显示为第二状态。
  7. 根据权利要求6所述的方法,其特征在于,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:
    所述电子设备接收用户针对所述第一控件输入的第十三操作,响应于所述第十三操作,所述电子设备验证用户身份;
    若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  8. 根据权利要求6所述的方法,其特征在于,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:
    所述电子设备获取用户的生物特征;
    所述电子设备确定所述生物特征与预存的生物特征相匹配;
    所述电子设备接收用户针对所述第一控件输入的第十四操作,响应于所述第十四操作,所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  9. 根据权利要求6所述的方法,其特征在于,在所述电子设备接收用户在所述第一显示区域上输入的第三操作之后,所述方法还包括:
    所述电子设备获取用户的生物特征;
    所述电子设备确定所述生物特征与预存的生物特征不相匹配;
    所述电子设备接收用户输入的第十五操作,响应于所述第十五操作,所述电子设备验证用户身份;
    若验证通过,则所述电子设备将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  10. 一种电子设备,其特征在于,所述电子设备包括,显示屏、存储器和至少一个处理器;所述存储器与所述一个或多个处理器耦合,所述存储用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行以下操作:
    在显示屏的第一显示区域显示第一应用的第一界面,在所述显示屏的第二显示区域显示第二应用的第二界面;
    接收用户输入的第一操作,响应于所述第一操作,在所述显示屏上全屏显示所述电子设备的主界面;
    在所述第一显示区域显示第三应用的第三界面,在所述第二显示区域显示第四应用的第四界面;
    接收用户在所述第一显示区域上输入的第三操作;
    接收用户输入的第四操作,响应于所述第四操作,在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面,所述第四操作的操作方式与所述第一操作的操作方式相同。
  11. 根据权利要求10所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,接收用户针对所述第三界面输入的第五操作;
    响应于所述第五操作,在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面。
  12. 根据权利要求10所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第三应用的第五界面时,接收用户在所述第二显示区域上输入的第六操作;
    接收用户针对所述第三界面输入的第七操作;
    响应于所述第七操作,在所述第一显示区域显示所述第三应用的第六界面,在所述第二显示区域显示所述第五界面。
  13. 根据权利要求10所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所 述第二界面时,接收用户输入的第八操作;
    响应于所述第八操作,在所述显示屏全屏显示第七界面,所述第七界面包括所述第一界面的界面内容和所述第二界面的界面内容;
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面时,接收用户输入的第九操作;
    响应于所述第九操作,在所述第一显示区域显示所述第三界面,在所述第二显示区域显示第八界面,所述第八界面包括所述第一界面的界面内容、所述第二界面的界面内容和所述第四界面的界面内容,所述第九操作的操作方式与所述第八操作的操作方式相同。
  14. 根据权利要求10所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    当所述电子设备在所述第一显示区域显示所述第一界面,在所述第二显示区域显示所述第二界面时,接收用户输入的第十操作;
    响应于所述第十操作,在所述显示屏全屏显示所述第一界面的界面内容或者所述第二界面的界面内容;
    当所述电子设备在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述第四界面时,接收用户在所述第一显示区域上输入的第十一操作,所述第十一操作的操作方式与所述第三操作的操作方式相同;
    接收所述用户输入的第十二操作;
    响应于所述第十二操作,在所述第一显示区域显示所述第三界面,在所述第二显示区域显示所述主界面。
  15. 根据权利要求10-14任一项所述的电子设备,其特征在于,所述第一显示区域中包括第一控件,所述第二显示区域包括第二控件;在接收用户在所述第一显示区域上输入的第三操作之前,所述第一控件显示为第一状态,所述第二控件显示为所述第一状态;
    当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    响应于所述第三操作,将所述第一控件从显示为第一状态切换至显示为第二状态。
  16. 根据权利要求15所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    接收用户针对所述第一控件输入的第十三操作,响应于所述第十三操作,所述电子设备验证用户身份;
    若验证通过,则将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  17. 根据权利要求15所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    获取用户的生物特征;
    确定所述生物特征与预存的生物特征相匹配;
    接收用户针对所述第一控件输入的第十四操作,响应于所述第十四操作,将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  18. 根据权利要求15所述的电子设备,其特征在于,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备还执行以下操作:
    获取用户的生物特征;
    确定所述生物特征与预存的生物特征不相匹配;
    接收用户输入的第十五操作,响应于所述第十五操作,验证用户身份;
    若验证通过,则将所述第一控件从显示为所述第二状态切换至显示为所述第一状态。
  19. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任一项所述的方法。
PCT/CN2020/128357 2019-11-30 2020-11-12 一种分屏显示方法及电子设备 WO2021104030A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20894833.1A EP4057119A4 (en) 2019-11-30 2020-11-12 SPLIT-SCREEN DISPLAY METHOD AND ELECTRONIC DEVICE
US17/780,915 US20220413695A1 (en) 2019-11-30 2020-11-12 Split-screen display method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911212028.0A CN112882777A (zh) 2019-11-30 2019-11-30 一种分屏显示方法及电子设备
CN201911212028.0 2019-11-30

Publications (1)

Publication Number Publication Date
WO2021104030A1 true WO2021104030A1 (zh) 2021-06-03

Family

ID=76039519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128357 WO2021104030A1 (zh) 2019-11-30 2020-11-12 一种分屏显示方法及电子设备

Country Status (4)

Country Link
US (1) US20220413695A1 (zh)
EP (1) EP4057119A4 (zh)
CN (1) CN112882777A (zh)
WO (1) WO2021104030A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995701A (zh) * 2022-07-19 2022-09-02 荣耀终端有限公司 悬浮窗控制方法及相关装置
EP4312112A1 (en) * 2022-07-29 2024-01-31 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for split-screen display and computer readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11095743B2 (en) 2014-07-16 2021-08-17 Tensera Networks Ltd. Optimized content-delivery network (CDN) for the wireless last mile
US11915012B2 (en) 2018-03-05 2024-02-27 Tensera Networks Ltd. Application preloading in the presence of user actions
US11922187B2 (en) 2018-03-05 2024-03-05 Tensera Networks Ltd. Robust application preloading with accurate user experience
US11824956B2 (en) 2019-07-30 2023-11-21 Tensera Networks Ltd. Pre-rendering of application user-interfaces in user devices using off-line pre-render mode
CN116670646A (zh) 2020-12-03 2023-08-29 腾赛拉网络有限公司 预加载具有现有任务的应用
CN113126840B (zh) * 2021-04-02 2023-02-21 广州三星通信技术研究有限公司 电子设备的应用界面管理方法和装置
USD1000473S1 (en) * 2021-07-23 2023-10-03 Samsung Electronics Co., Ltd. Display screen or portion thereof with transitional graphical user interface
USD1001155S1 (en) * 2021-07-23 2023-10-10 Samsung Electronics Co., Ltd. Display screen or portion thereof with transitional graphical user interface
CN115712373A (zh) * 2021-08-20 2023-02-24 华为技术有限公司 界面显示方法及电子设备
CN115525187B (zh) * 2022-01-30 2023-08-11 荣耀终端有限公司 一种分屏方法以及相关设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108076A (zh) * 2016-11-23 2018-06-01 天津三星通信技术研究有限公司 用于电子终端的切换应用的方法及设备
US10417019B2 (en) * 2014-10-21 2019-09-17 Samsung Electronics Co., Ltd. Method of screen splitting and electronic device adapted to the method
CN110362244A (zh) * 2019-06-30 2019-10-22 华为技术有限公司 一种分屏方法及电子设备
CN110471604A (zh) * 2019-07-01 2019-11-19 华为技术有限公司 一种多应用切换方法和相关装置
CN110471725A (zh) * 2019-07-02 2019-11-19 华为技术有限公司 一种分屏方法及电子设备

Family Cites Families (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4692529B2 (ja) * 2007-08-07 2011-06-01 セイコーエプソン株式会社 グラフィカルユーザインタフェース装置
US8337305B2 (en) * 2010-11-17 2012-12-25 Steelseries Aps Apparatus and method for managing user inputs in video games
KR101677639B1 (ko) * 2011-05-06 2016-11-18 엘지전자 주식회사 휴대 전자기기 및 이의 제어방법
EP2721467A4 (en) * 2011-06-20 2015-01-14 Alexander Buening SYSTEM AND METHOD FOR APPLICATION MANAGEMENT ON A DEVICE WITH A TOUCH SCREEN
KR101888457B1 (ko) * 2011-11-16 2018-08-16 삼성전자주식회사 복수 개의 어플리케이션을 실행하는 터치스크린을 가지는 장치 및 그 제어 방법
US20130346912A1 (en) * 2012-06-20 2013-12-26 Alexander Buening Method And System To Launch And Manage An Application On A Computer System Having A Touch Panel Input Device
US20130263042A1 (en) * 2012-03-27 2013-10-03 Alexander Buening Method And System To Manage Multiple Applications and Corresponding Display Status On A Computer System Having A Touch Panel Input Device
US20130300684A1 (en) * 2012-05-11 2013-11-14 Samsung Electronics Co. Ltd. Apparatus and method for executing multi applications
US9575708B2 (en) * 2012-05-14 2017-02-21 Lg Electronics Inc. Portable device and method for controlling the same
EP2741199B1 (en) * 2012-12-06 2020-08-05 Samsung Electronics Co., Ltd Application individual lock mechanism for a touch screen device
US9648062B2 (en) * 2014-06-12 2017-05-09 Apple Inc. Systems and methods for multitasking on an electronic device with a touch-sensitive display
CN104331246A (zh) * 2014-11-19 2015-02-04 广州三星通信技术研究有限公司 在终端中进行分屏显示的设备和方法
CN105573614B (zh) * 2015-07-28 2018-12-25 东莞酷派软件技术有限公司 一种屏幕解锁方法及用户终端
US10303328B2 (en) * 2015-09-14 2019-05-28 Lg Electronics Inc. Mobile terminal and method for controlling the same
KR102592649B1 (ko) * 2016-09-21 2023-10-23 엘지전자 주식회사 이동단말기 및 그 제어방법
US11054980B2 (en) * 2016-11-22 2021-07-06 Crown Equipment Corporation User interface device for industrial vehicle
WO2018128224A1 (en) * 2017-01-03 2018-07-12 Lg Electronics Inc. Mobile terminal and method for controlling the same
US10346004B2 (en) * 2017-01-18 2019-07-09 Michael E Murphy Systems and methods for intelligent layered interactive programmatic elements for fixed content
CN107168624A (zh) * 2017-05-17 2017-09-15 珠海市魅族科技有限公司 界面控制方法及装置、计算机装置和计算机可读存储介质
CN110140342B (zh) * 2017-07-14 2021-04-20 华为技术有限公司 锁屏界面处理方法及终端
KR101809215B1 (ko) * 2017-08-29 2017-12-14 굿윌헌팅 주식회사 앙케트가 연동된 사용자 인터페이스 방법
CN107728901B (zh) * 2017-10-24 2020-07-24 Oppo广东移动通信有限公司 界面显示方法、装置及终端
CN108416203A (zh) * 2018-03-21 2018-08-17 维沃移动通信有限公司 一种屏幕解锁方法及移动终端
US11170085B2 (en) * 2018-06-03 2021-11-09 Apple Inc. Implementation of biometric authentication
CN117093301A (zh) * 2018-08-15 2023-11-21 华为技术有限公司 显示方法及装置
CN109408174A (zh) * 2018-09-27 2019-03-01 上海哔哩哔哩科技有限公司 用于平板端应用的分屏方法、装置和存储介质
US11398168B2 (en) * 2019-04-03 2022-07-26 Samsung Electronics Co., Ltd. Mobile device with a foldable display and method of providing user interfaces on the foldable display
CN110231905B (zh) * 2019-05-07 2021-02-09 华为技术有限公司 一种截屏方法及电子设备
CN110456951B (zh) * 2019-06-26 2021-10-26 华为技术有限公司 一种应用显示方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10417019B2 (en) * 2014-10-21 2019-09-17 Samsung Electronics Co., Ltd. Method of screen splitting and electronic device adapted to the method
CN108108076A (zh) * 2016-11-23 2018-06-01 天津三星通信技术研究有限公司 用于电子终端的切换应用的方法及设备
CN110362244A (zh) * 2019-06-30 2019-10-22 华为技术有限公司 一种分屏方法及电子设备
CN110471604A (zh) * 2019-07-01 2019-11-19 华为技术有限公司 一种多应用切换方法和相关装置
CN110471725A (zh) * 2019-07-02 2019-11-19 华为技术有限公司 一种分屏方法及电子设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995701A (zh) * 2022-07-19 2022-09-02 荣耀终端有限公司 悬浮窗控制方法及相关装置
CN114995701B (zh) * 2022-07-19 2024-04-02 荣耀终端有限公司 悬浮窗控制方法及相关装置
EP4312112A1 (en) * 2022-07-29 2024-01-31 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for split-screen display and computer readable storage medium

Also Published As

Publication number Publication date
CN112882777A (zh) 2021-06-01
US20220413695A1 (en) 2022-12-29
EP4057119A4 (en) 2023-01-18
EP4057119A1 (en) 2022-09-14

Similar Documents

Publication Publication Date Title
WO2021104030A1 (zh) 一种分屏显示方法及电子设备
WO2021013158A1 (zh) 显示方法及相关装置
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
KR102470275B1 (ko) 음성 제어 방법 및 전자 장치
WO2021052147A1 (zh) 一种数据传输的方法及相关设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
CN110362244B (zh) 一种分屏方法及电子设备
KR102534354B1 (ko) 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스
WO2021000804A1 (zh) 锁定状态下的显示方法及装置
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2022052662A1 (zh) 显示方法及电子设备
WO2021175272A1 (zh) 一种应用信息的显示方法及相关设备
WO2022057512A1 (zh) 分屏方法、装置及电子设备
CN112068907A (zh) 一种界面显示方法和电子设备
WO2022213831A1 (zh) 一种控件显示方法及相关设备
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
CN115016697A (zh) 投屏方法、计算机设备、可读存储介质和程序产品
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2022002213A1 (zh) 翻译结果显示方法、装置及电子设备
CN114281440B (zh) 一种双系统中用户界面的显示方法及电子设备
WO2023160455A1 (zh) 删除对象的方法及电子设备
WO2024067551A1 (zh) 界面显示方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20894833

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020894833

Country of ref document: EP

Effective date: 20220608

NENP Non-entry into the national phase

Ref country code: DE