WO2023226975A1 - Display method and electronic device - Google Patents

Display method and electronic device Download PDF

Info

Publication number
WO2023226975A1
WO2023226975A1 PCT/CN2023/095766 CN2023095766W WO2023226975A1 WO 2023226975 A1 WO2023226975 A1 WO 2023226975A1 CN 2023095766 W CN2023095766 W CN 2023095766W WO 2023226975 A1 WO2023226975 A1 WO 2023226975A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
information
electronic device
application
display screen
Prior art date
Application number
PCT/CN2023/095766
Other languages
French (fr)
Chinese (zh)
Inventor
张羽翕
王海军
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023226975A1 publication Critical patent/WO2023226975A1/en

Links

Classifications

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

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a display method and electronic equipment.
  • window A blocks the content of window B.
  • window A needs to be hidden or reduced. After window A is hidden or reduced, if the user needs to switch to window A to handle business, he or she needs to open window A again or enlarge window A. Obviously, this process is very cumbersome and affects the user experience.
  • the purpose of this application is to provide a display method and electronic device to improve the interactive experience during multi-window display.
  • a display method applied to an electronic device, the electronic device has a display screen, the method includes: displaying a first window; responding to a first step for selecting first information in the first window. Operation, a second window appears on the display screen; the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; in response to the The second operation of dragging the first information into the second window is to process the first information in the second window.
  • the second window when the electronic device displays the first window, when the second window is needed to process the first information in the first window, the second window can be called up through user operation (first operation), and the second window is suspended above the first window.
  • first operation user operation
  • the first window will not always be blocked by the second window, and the user's business processing progress in the first window will not be affected.
  • the user wants to process the first information in the first window through the second window for example, copy the first information into the second window
  • processing the first information in the second window includes multiple situations, such as situation 1: copying the first information into the second window; situation 2, in Search related information of the first information in the second window; for example, the second window is a window of a browser application, and the first information is searched in the browser application; case 3, open all the information in the second window Describe the first information, for example, the first information is a picture, the second window automatically displays Shown as the window of the photo album application, that is, the picture in the first window is opened through the photo album application.
  • the electronic device displays the first window
  • the user wants to copy the first information in the first window to the second window, or search for related information of the first information in the second window (for example, while browsing Search the first information in the browser application)
  • the operation is more convenient , higher user experience.
  • the first operation includes: a long press operation on the first information, or a drag operation after performing a long press operation on the first information. That is, when the electronic device displays the first window, if a second window is needed to process the first information in the first window, you can long press the first information or start dragging the first information to call up the second window. The second window will not always block the first window and will not affect the user's business processing progress in the first window. It should be understood that the first operation can also be other types of operations, which are not limited by the embodiments of this application.
  • the second operation is a subsequent operation in which the finger does not leave the display screen after the first operation.
  • the second operation and the first operation are continuous and have no interval.
  • the user continues to perform the second operation without leaving the screen with his finger.
  • the first operation is a long press operation on the first information
  • the second operation is a drag operation continued without leaving the screen after the long press operation on the first information. In this way, users can operate smoothly, conveniently and have a better experience.
  • the second window and the first window are windows of the same application, or windows of different applications. That is to say, when the electronic device displays the first window, it can call up a second window that belongs to the same application as the first window, or a second window that belongs to a different application from the first window through user operation (i.e., the first operation).
  • the first window is a window of a browser application
  • the second window is a window of an instant messaging application, realizing information processing between windows of different applications.
  • the second window satisfies at least one of the following conditions:
  • the second window is a window with information insertion bits; or,
  • the second window is the last window displayed on the display screen before the first window, or,
  • the second window is a window of a second application; wherein the second application includes at least one of: a background running application, an application in the electronic device with a usage frequency greater than a preset frequency, and a specific application, and the specific application Applications include default applications of the electronic device or user-specified applications.
  • the second window can also meet other conditions (for example, a specific/fixed window set by the user), etc., which are not limited by the embodiments of this application.
  • the second window after processing the first information in the second window, performs at least one of the following steps:
  • the second window is hidden;
  • the second window displays a first preset duration and is automatically hidden after the first preset duration; or,
  • the second window displays a second preset duration. If no operation in the second window is received within the second preset duration, the second window is hidden; or,
  • the second window Upon receiving an operation within the first window, the second window is hidden; or,
  • the second window displays a third preset duration. If an operation in the first window is received within the third preset duration, the second window is hidden.
  • the second window processes the first information, it can be hidden.
  • the first window is no longer blocked, and the user can continue to process business in the first window, and the user experience is high.
  • hiding the second window includes: the second window disappears from the display screen, Alternatively, the second window is displayed in a reduced size; or, the second window is displayed in a reduced size, and when an interactive operation in the first window is received, the reduced second window disappears.
  • the second window when the second window is hidden, it can disappear directly, or the display can be reduced, or it can be reduced and disappeared first and then completely hidden, etc.
  • the second window is hidden after processing the first information and no longer blocks the second window. With one window, users can continue to process business in the first window, and the user experience is high.
  • a second window in response to a first operation for selecting the first information in the first window, a second window appears on the display screen, including: in response to a first operation for selecting the first window In response to the first operation of dragging the first information to the first information, a prompt box of the second window appears on the display screen, and the second window runs in the background;
  • the second operation in the second window, processing the first information in the second window includes: in response to the second operation for dragging the first information to the prompt box, the second The window processes the first information in the background, or in response to the second operation for dragging the first information to the prompt box, the prompt box expands into the second window.
  • the electronic device calls up the second window, it calls up the prompt box of the second window.
  • the prompt box of the second window occupies a smaller display area than the second window and blocks the first window. smaller.
  • the user can process the first information in the second window by dragging the first information in the first window to the prompt box in the second window.
  • the second window is always displayed in the form of a prompt box, which is very important to the display.
  • the screen occlusion is very small and will hardly affect the user's business processing in the first window.
  • the prompt box expands into the second window, and the first information is processed in the second window. This facilitates the user to accurately process the first information in the second window. information processing within.
  • the prompt box expands into the second window.
  • processing the first information within the second window includes:
  • the prompt box expands into a second window
  • the second window is enlarged and displayed.
  • the first information is dragged to the enlarged second window, in the The first information is processed within the enlarged second window.
  • the prompt box when the user drags the first information to the prompt box, the prompt box first expands into a second window. At this time, the second window can be displayed in a smaller area.
  • the second window When the user continues to drag the first information to the third window, When dragging two windows, the second window is enlarged and displayed until the first information is dragged into the second window, and the second window processes the first information. In this way, at the beginning, the prompt box blocks the lower layer very little. If the user drags the first information, it means that the user has the intention to process the first information through the second window, and the prompt box expands into the second window. If The user continues to drag the first information to the second window, and the second window is enlarged to facilitate the user to view the processing of the first information in the second window.
  • the second window is enlarged and displayed, including: the second window is directly enlarged to the first preset area; or, as the drag operation approaches the distance of the second window , the display area of the second window is gradually enlarged to the second preset area.
  • the second window gradually enlarges. Since the second window gradually enlarges, the time required for the user to drag the first information into the second window can be shortened. In other words, as the second window gradually enlarges, the distance between the user's finger and the second window gradually shrinks, and the first information can be easily dragged into the second window, which is convenient to operate.
  • the first preset area and/or the second preset area is smaller than or equal to the display area. the entire display area of the screen.
  • the first preset area includes: one quarter of the area of the display screen, or the entire display area of the display screen; the second preset area includes: one quarter of the display screen. An area, or the entire display area of the display screen.
  • the second window is enlarged for display, including: when the second window has an information insertion position, the second window is enlarged to a first area, and the first area is smaller than the display area.
  • the size of the screen when the second window has multiple information insertion positions, the second window is enlarged to a second area or the full screen of the display screen, and the second area is smaller than the size of the display screen.
  • the second area is larger than the first area.
  • the second window is displayed in a larger area, which will not cause the first information to be inserted in the wrong position and improve user experience.
  • a second window in response to the first operation for selecting the first information in the first window, a second window appears on the display screen, including: in response to the first operation for selecting the first information in the first window.
  • the second window and the third window appear on the display screen at the same time; the third window and the second window are located above the first window, and the second window and the second window appear on the display screen at the same time.
  • the display area of the third window is smaller than the display area of the first window.
  • the electronic device when it displays the first window, it can call up multiple windows through the first operation, and the multiple windows are displayed with a smaller display area. If the user wants to process the first information in the first window through the second window among multiple windows, he only needs to drag the first information into the second window.
  • This method is not only convenient to operate, but also allows the user to Selecting a target window for processing the first information (for example, the second window) among the multiple windows that are called up provides a higher user experience.
  • the first window, the second window and the third window are windows of the same application or different applications.
  • the second window has an information insertion position
  • the third window is displayed differently from the second window to prompt the user what the information insertion position is.
  • the second window can process the first information
  • the third window cannot process the first information. It is understandable that some windows cannot insert information, so when these windows are called up, they can be displayed differently from other windows, so that users will not drag the first window in the first window to these windows, improving the accuracy of the operation. sex.
  • the method further includes: receiving a drag operation for moving any one of the second window and the third window to the edge of the display screen; responding to the drag operation Drag operation to hide the second window and the third window together. That is to say, after calling up multiple windows, if the user drags one of the windows to the edge of the display screen, multiple windows can be hidden together, realizing rapid hiding of multiple windows, easy operation, and avoiding affecting the user's first viewing experience. Business processing within the window.
  • hiding the second window and the third window together includes: the second window and the third window disappearing together or reducing the display together.
  • all floating windows superimposed on the first window can be hidden together, thereby reducing the blocking of the first window screen by the floating window.
  • all floating windows can be hidden at once, reducing user interaction steps.
  • the method further includes: restoring the display of the second window and the third window together through a one-key operation. Location and/or area. That is to say, when all floating windows disappear together, all hidden floating windows can be called up with one-click operation. There is no need to call them out one by one, which saves operation steps.
  • the method further includes: receiving an operation for the reduced second window, restoring the second window.
  • the display position and/or area of the window, the third window remains in a reduced display state; or, upon receiving an operation for the reduced second window, the display positions of the second window and the third window are restored together. and/or area.
  • the second window and the third window are both reduced and displayed in the form of prompt boxes.
  • One way is that when the user clicks the prompt box of the second window, only the area and/or position of the second window is restored, and the third window remains unchanged. Reduce the display.
  • Another method is that when the user clicks the prompt box of the second window, the areas and/or positions of the second window and the third window are restored together, which can save operating steps.
  • a display method is also provided, applied to an electronic device, where the electronic device includes a display screen, and the method includes:
  • a first window and a second window are displayed on the display screen, the second window is located above the first window and the display area of the second window is smaller than the display area of the first window;
  • the second window is enlarged and displayed, and the first information is processed in the enlarged second window.
  • processing the first information within the enlarged second window includes:
  • displaying the first window and the second window on the display screen includes: displaying prompt information of the first window and the second window on the display screen; responding to the The drag operation of the first information in the first window to the second window, and the enlarged display of the second window includes: in response to the operation of dragging the first information in the first window to the second window. By dragging the prompt information, the second window is enlarged and displayed.
  • the second window is enlarged and displayed, including:
  • the display area of the second window is gradually enlarged.
  • the area of the second window is enlarged to a preset area, and the preset area is a default area of the electronic device or an area set by the user.
  • the method further includes: when the second window has an information insertion position, the second window is enlarged to a first area, and the first area is smaller than the size of the display screen; When the second window has multiple information insertion positions, the second window is enlarged to the full screen of the display screen.
  • a display method is also provided, applied to an electronic device, the electronic device includes a display screen, and the method includes:
  • a first window and a second window are displayed on the display screen, the second window is located above the first window and the display area of the second window is smaller than the display area of the first window;
  • the second window is reduced to display or hidden.
  • processing the first information in the second window includes: copying the first information into the second window, or searching for all the information in the second window. information related to the first information.
  • the first operation includes: a click operation at any position within the first window; or a selection operation on information in the first window.
  • the second window shrinks the display or hiding, including: in response to the drag operation being released, the second window is reduced to display or hidden.
  • a first window and a second window are displayed on the display screen, including:
  • a first window is displayed on the display screen
  • the second window appears in response to a selection operation on the first information within the first window.
  • displaying the first window and the second window on the display screen includes: displaying prompt information of the first window and the second window on the display screen; responding to the The drag operation of the first information in the first window to the second window, and processing the first information in the second window includes: responding to the method for transferring the first information in the first window Drag and drop the prompt information to the second window to process the first information in the second window.
  • the first information in response to a drag operation for transferring the first information in the first window to the prompt information in the second window, the first information is processed in the second window,
  • the method includes: in response to a drag operation for moving the first information in the first window to the prompt information in the second window, the second window is enlarged and displayed, and processed in the enlarged second window. the first information.
  • a display method is also provided, applied to an electronic device, the electronic device includes a display screen, and the method includes:
  • a first window, a second window and a third window are displayed on the display screen, the second window and the third window are located above the first window, and the second window and the third window are The display area is smaller than the display area of the first window;
  • the second window and the third window are reduced, displayed or hidden together.
  • the method further includes: in response to a drag operation for moving the first information in the first window to the second window, processing the first information in the second window. a message; and/or,
  • the second information is processed in the third window.
  • processing the first information in the second window includes: copying the first information into the second window, or searching for all the information in the second window. information related to the first information; processing the second information in the third window includes: copying the second information to the third window, or searching for all the information in the third window. information related to the second information.
  • the second window has an information insertion bit
  • the third window is displayed differently from the second window to prompt the user that the information insertion bit is not available. Copy the information in the first window to the third window.
  • an electronic device including:
  • processor memory, and, one or more programs
  • the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the first aspect as described above. to the method steps described in any one of the fourth aspects.
  • a computer-readable storage medium is also provided.
  • the computer-readable storage medium is used to store a computer program.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect to the third aspect.
  • a computer program product including a computer program.
  • the computer program calculates When running on the computer, the computer is caused to execute the method steps described in any one of the above first to fourth aspects.
  • embodiments of the present application further provide a chip, which is coupled to a memory in an electronic device and used to call a computer program stored in the memory and execute the technical solution of the second or third aspect of the embodiment of the present application.
  • "Coupling" in the embodiment of this application means that two components are directly or indirectly combined with each other.
  • Figure 1 is a schematic diagram of a multi-window display provided by an embodiment of the present application.
  • Figure 2A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 2B is a schematic diagram of the software structure of the electronic device provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of an electronic device opening multiple windows according to an embodiment of the present application.
  • Figure 4 is a schematic diagram of multi-window movement or scaling provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a cross-window information pasting process provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 7A is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • Figure 7B is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of calling up a second window provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of hiding the second window provided by an embodiment of the present application.
  • FIGS. 10A and 10B are schematic diagrams of the background processing flow provided by an embodiment of the present application.
  • Figure 11 is another schematic diagram of calling up the second window provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of cross-window information processing provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of the window enlargement process provided by an embodiment of the present application.
  • Figure 14 is another schematic diagram of the window enlargement process provided by an embodiment of the present application.
  • Figure 15 is a schematic diagram of the background processing flow provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of multi-window calling provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of multi-window hiding provided by an embodiment of the present application.
  • Figure 18 is another schematic diagram of multi-window hiding provided by an embodiment of the present application.
  • Figure 19 is a schematic diagram of the background processing flow provided by an embodiment of the present application.
  • Figure 20 is another schematic diagram of multi-window calling provided by an embodiment of the present application.
  • Figure 21 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order.
  • the first window and the second window do not represent the importance of the two or the order of the two, but are only used to differentiate the description.
  • "and/or” only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations.
  • the character "/" generally indicates that the related objects are an "or” relationship.
  • the display method provided by the embodiment of the present application is suitable for electronic devices.
  • the electronic device has a display function, such as at least one display screen.
  • the electronic device may be a portable electronic device such as a mobile phone, a tablet, or a laptop; it may also be a wearable device such as a watch or a bracelet; or it may be a smart home device such as a television or a refrigerator; Or, it can also be a vehicle-mounted device, etc., or it can also be a virtual reality (Virtual Reality, VR) device, an augmented reality (Augmented Reality, AR) device, a mixed reality technology (Mixed Reality, MR) device, etc., in short
  • VR virtual reality
  • AR Augmented Reality
  • MR mixed reality technology
  • FIG. 2A shows a schematic structural diagram of an electronic device.
  • the electronic device is, for example, a mobile phone.
  • the electronic device 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, and a battery 142.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • 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. interface, pulse code modulation (PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), universal input and output (general- purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • 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 (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications 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 audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • 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 camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • 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 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the wireless communication function of the electronic device can be through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, implementation of modem processor and baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems for use in electronic devices. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (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 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 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 (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display the display interface of the application, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor The software passes the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store the operating system and the software code of at least one application program (such as iQiyi application, WeChat application, etc.).
  • the storage data area can store data (such as images, videos, etc.) generated during the use of the electronic device.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through one or more speakers 170A, or listen to external playback scenarios such as hands-free calls.
  • the receiver 170B also called “earpiece” may be one or more and is used to convert audio electrical signals into sound signals.
  • the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be equipped with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface can be a USB interface, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor. Electronic devices can use magnetic sensors 180D to detect the opening of flip-top leather cases combine. In some embodiments, when the electronic device is a flip machine, the electronic device may detect opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic devices can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device can utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • 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.
  • Electronic devices emit infrared light through light-emitting diodes.
  • Electronic devices use photodiodes 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. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device.
  • Electronic devices can use the proximity light sensor 180G to detect when the user holds the electronic device close to the ear and talk, so that the screen can be automatically turned off to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device can adaptively adjust the brightness of the display screen 194 based on perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, answer incoming calls with fingerprints, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142 to prevent the low temperature from causing abnormal shutdown of the electronic device. In some other embodiments, when the temperature is lower than another threshold, the electronic device performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195, or pull it out from the SIM card interface 195 to achieve contact and separation from the electronic device.
  • FIG. 2A do not constitute a specific limitation to the electronic device.
  • Electronic devices in embodiments of the present invention may include more or fewer components than in Figure 2A.
  • the combination/connection relationship between the components in Figure 2A can also be adjusted and modified.
  • FIG. 2B shows a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • the software structure of electronic equipment can be a layered architecture.
  • the software can be divided into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the electronic device is an Android system, it may include an application layer (referred to as the application layer), an application framework layer (referred to as the framework layer) (framework, FWK), a hardware layer, and so on.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, and more.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines.
  • Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the system library may also include a window processing module for controlling the hiding, appearance, shrinking, and enlarging of windows.
  • the window processing module can be a module in the system library, or it can be Modules in other layers, such as modules in the application framework layer or kernel layer, are not limited in this embodiment of the application.
  • 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 following takes the software structure shown in FIG. 2B as an example to illustrate the processing flow of the display method provided by the embodiment of the present application.
  • the touch sensor in the hardware layer receives the first input event.
  • the first input event includes operation type, operation time, position on the display screen, etc.
  • the touch sensor reports the first input event to a higher level, such as the window processing module in the system library.
  • the high-level layer determines that the first input event is a selection operation for the first information in the first window, and then calls the display driver to display the second window on the display screen.
  • the high-level layer eg, window processing module
  • the touch sensor receives an input event again, such as a second input event
  • the second input event is reported to a higher level, such as a window processing module.
  • the window processing module determines that the second input event is a drag operation of the first information to the second window, and then controls the second window to process the first information, for example, copies the first information to the second window or in the second window. Search for information related to the first information, etc.
  • multiple windows can be displayed on electronic devices (such as mobile phones).
  • the phone receives an operation to open multiple windows, the multiple windows are displayed.
  • the operation for opening multiple windows can be various types of operations.
  • One possible implementation method is, please refer to (a) in Figure 3, the mobile phone displays window A.
  • the smart multi-window application bar 301 is called up, as shown in Figure 3 As shown in (b).
  • the smart multi-window application bar 301 includes icons of various applications, such as icons of Application 1 to Application 3.
  • the electronic device receives an operation for the icon of application 1 in the smart multi-window application bar 301, and then opens window B of application 1, that is, displays the multi-window interface 302 as shown in (c) of Figure 3.
  • the interface 302 includes window B and window A. Window B is located above window A. Therefore, multiple windows can be opened through the method shown in Figure 3.
  • Figure 3 is only an example of a method for opening multiple windows. In actual applications, other methods (such as knuckle tapping) can also be used to open multiple windows. (click the screen) to open multiple windows.
  • the embodiments of this application will not give examples one by one.
  • window A may be a window displayed in full screen (or understood as an application interface displayed in full screen), and window B may be a small window displayed suspended on window A. That is, the display area of window B is smaller than that of window A.
  • window B can be a free (FreeForm) window (or: free small window).
  • a free window can be considered a system-level floating window.
  • the position of the small window eg, window B
  • the electronic device displays multiple windows
  • the position of the small window eg, window B
  • the window can be moved.
  • the window B can be changed.
  • the position of B is as shown in (b) in Figure 4.
  • the size of the small window can be adjusted, that is, it can be reduced or enlarged.
  • window B is enlarged and displayed, for example, window B completely covers window A, for example, full screen display, as shown in Figure 4 of(d).
  • window B is minimized, as in (f) in Figure 4.
  • a prompt box 404 may be displayed on window A.
  • the prompt box 404 is used to prompt the user that window B is minimized. For example, when an operation (for example, a click operation) on the prompt box 404 is received, window B can be restored, for example, restored to the image shown in FIG. As shown in (e) in 4.
  • an operation for example, a click operation
  • window located on the lower layer will be blocked by the window located on the upper layer.
  • the user wants to process business in the lower window, he needs to move the upper window or reduce the size of the upper window, for example, minimize the upper window.
  • window B is located above window A. If the user wants to process business in window A, he needs to manually move the position of window B, or minimize window B. After window B is minimized, if the user needs to switch to operate in window B, he or she needs to open window B again. Obviously, this process is more cumbersome.
  • FIG. 5 Please refer to (a) in Figure 5.
  • the electronic device displays window A and window B, and window B is located above window A. If the user wants to copy the information in window A to window B, he needs to perform the following steps:
  • Step 1 minimize window B. For example, as shown in (a) of Figure 5, when the electronic device receives an operation of clicking the button 403, window B is minimized to the prompt box 404 in (b) of Figure 5.
  • Step 2 copy the information in window A.
  • window A includes text information "Huawei"
  • the user copies the text information in window A (for example, the user selects the text information in window A and long-presses to copy).
  • Step 3 Open window B again and paste the information in window B.
  • the electronic device receives the operation of clicking the prompt box 404, it opens window B again.
  • the user pastes information in window B, for example, long presses in window B to call up the paste button and clicks the paste button to complete the copy (the paste process is not shown in the figure), as shown in (c) in Figure 5 .
  • step 1 is to copy the information in the upper window B.
  • Step 2 Close the upper window B.
  • Step 3. Paste the information into lower window A. 4. Open window B again. Obviously, the steps are very complicated.
  • embodiments of the present application provide a solution.
  • the second window can be called up so that The second window is displayed above the first window; if the second window is not needed, the second window can be hidden. In this way, the second window (upper window) will not always block the first window (lower window), improving the interactive experience.
  • the second window is needed.
  • the situation includes: when the electronic device displays the first window, the second window is needed to process the information in the first window.
  • the first window needs to be The information in the first window needs to be copied to the second window, or the second window needs to be used to search for the information in the first window, or the first information needs to be opened in the second window, etc.
  • the second window appears on the display screen; in response to the first Two preset operations (for example, a second operation for dragging the first information to the second window) to process the first information in the second window. That is to say, at a certain moment, only the first window can be displayed on the display screen of the electronic device.
  • the second window can be called up. In this way, the first window can be displayed on the display screen of the electronic device. The window will not always be blocked by the second window, which will not affect the operating experience of the first window.
  • the user wants to process the first information in the first window through the second window (for example, copy the first information into the second window), he only needs to drag the first information into the second window. Easy to operate.
  • the electronic device displays a first window.
  • the first window may be a window of any application in the electronic device (eg, instant messaging application, memo, photo album, browser, etc.).
  • an application in the electronic device eg, instant messaging application, memo, photo album, browser, etc.
  • taking the first window as a window of a browser application in an electronic device as an example, text information, picture information, etc. are displayed in the first window.
  • the user can perform various operations in the first window, for example, select information in the first window and copy the selected/selected information.
  • the electronic device can automatically appear the second window.
  • the first preset operation includes, for example: a selection operation on the first information in the first window (such as a long press operation on the first information in the first window), or performing a selection operation on the first information in the first window.
  • An operation that lasts for N seconds without letting go after a selection operation (such as a long press operation on the first information in the first window).
  • N is a positive integer, which can be set by default or customized, or performed on the first information in the first window. Start the drag operation after selecting the operation.
  • the first information may be text, pictures, etc. in the first window, which is not limited in the embodiment of the present application.
  • the electronic device may further include: determining the first information. For example, a click operation at any position in the first window is received, the start cursor and the end cursor are called, and the information between the start cursor and the end cursor is determined to be the first information. It should be understood that the user can change the positions of the start cursor and the end cursor, and, in order to facilitate the user to distinguish, the first information between the start cursor and the end cursor is displayed differently from other information in the first window, such as highlighting or dark background. .
  • the second window is a chat window with a certain contact in an instant messaging application as an example.
  • the second window can also be a window of other applications, which will be introduced later.
  • the electronic device receives the second preset operation, it copies the first information into the second window.
  • the second preset operation is an operation of dragging the first information to the second window and dragging the first information into the second window.
  • the electronic device receives a drag operation of dragging the first information into the input box of the second window, the first information is copied to the second window (immediately In the input box of the chat window of a communication application), if the user wants to send the information in the input box to the other party, just click the send button in the second window.
  • the electronic device can display a corresponding prompt (such as a prompt in the form of a corner mark) according to the area where the floating element is currently located to remind the user of the current location. Whether the region supports interaction.
  • a corresponding prompt such as a prompt in the form of a corner mark
  • the electronic device can display a corresponding prompt (such as a prompt in the form of a corner mark) according to the area where the floating element is currently located to remind the user of the current location.
  • a corresponding prompt such as a prompt in the form of a corner mark
  • the electronic device can also display an animation in which the shadow of the dragged object moves with the user's finger, for example, the shadow of text or pictures.
  • the electronic device can display the object dragged by the user as a floating element, and during the dragging process, the electronic device can display the animation of the floating element moving with the finger. Therefore, in this application, dragging the first information can also be understood as dragging the floating element corresponding to the first information.
  • the scene shown in Figure 6 includes two operations, the selection operation of the first information in the first window, and the dragging operation of dragging the first information into the second window.
  • Each operation can be two operations that are independent of each other, that is, after executing the After the selection operation of the first information, the finger can leave the screen, and then perform the drag operation on the first information; of course, the two operations can also be consecutive and without gaps, that is, after the selection operation on the first information is completed After that, the finger does not leave the screen and directly performs the drag operation on the first information. In this case, the operation is smoother and more convenient.
  • the electronic device displays a first window. Taking the first window as a memo application window in the electronic device as an example, text information is displayed in the first window.
  • the user can select information in the first window and search for the selected/selected information, for example, search on the Internet.
  • the electronic device can automatically appear the second window.
  • the first preset operation includes: a selection operation on the first information in the first window, or an operation of selecting the first information in the first window and then starting dragging. For details, see the operation of dragging the first information in the first window. The description of the first preset operation will not be repeated in order to save space.
  • the second window is a browser application as an example.
  • the second window can also be a window of other applications, which will be introduced later.
  • the electronic device receives the second preset operation, it searches for the first information in the second window.
  • the second preset operation is an operation of dragging the first information to the second window and dragging the first information into the second window.
  • the electronic device receives a drag operation of dragging the first information to the input box of the second window, the first information is input in the input box of the second window.
  • the user wants to search the first information just click the search button in the second window.
  • the scene shown in Figure 7A includes two operations, the selection operation of the first information in the first window, and the dragging operation of dragging the first information into the second window.
  • the introduction of each operation can be seen in Figure 6 and will not be repeated. It can be seen from Figure 7A that when the user wants to search for information in the current window (i.e. the first window), he only needs to select the information in the current window, or select the information in the current window and start the drag and drop operation. Call up the second window, and then drag the selected information into the second window to complete the search.
  • the operation is convenient and the user experience is high.
  • the electronic device displays a first window.
  • the first window is a window of a browser application as an example.
  • the first window includes text, pictures, etc.
  • the pictures in the first window are thumbnails.
  • the user can open the pictures in the first window.
  • the electronic device can automatically appear the second window.
  • the second window is an application window used to open pictures, such as photo album, picture browser, painting and other application windows.
  • the electronic device uses the photo album application to open the picture in the second window.
  • (c) in Figure 7B takes the second window occupying 1/4 of the display screen as an example.
  • the second window can also occupy a larger area (such as full screen) to facilitate the user to view the enlarged image in the second window, or You can also graffiti or perform other processing on the image in the second window.
  • the first preset operation and the second preset operation please refer to the above and will not be repeated.
  • the electronic device displays a first window, and the first window includes first information.
  • the first window may be a window of any application in the electronic device, for example, it may be the first window of the browser application in FIG. 6 or the first window of the memo application in FIG. 7A, and so on.
  • the first information may be text or images in the first window, which is not limited in this application.
  • the second window when the electronic device receives the first preset operation, the second window automatically appears on the display screen.
  • the second window is located on an upper layer of the first window, and its display area is smaller than that of the first window.
  • the first preset operation may include: a selection operation on the first information in the first window (for example, a long press operation on the first information); or, a selection operation on the first information in the first window.
  • the operation lasts for N seconds without letting go.
  • N is a positive integer.
  • the specific value of N can be set by the user or the system default setting; or, after selecting the first information in the first window, do not let go and start dragging. (or move) operation. It should be understood that this is an example of how to implement the first preset operation. In actual applications, other types of operations are also possible, as long as the second window can be called up.
  • the second window may be a window with an information insertion position, so that the information in the first window can be pasted into the second window.
  • the second window is a window last displayed by the electronic device before displaying the first window. For example, if the user chats with contact A in the chat window with the contact, and then opens a website and finds certain information with the intention of sharing the information with contact A, then when the web page window is displayed, You can call up the chat window with Contact A and drag the information in the web page window into the chat window with Contact A. The operation is fast and convenient.
  • the second window is a window running an application in the background.
  • the second window is a window of an application in the electronic device whose usage frequency is greater than the preset frequency.
  • the second window is a window of a specific application, and the specific application may be, for example, a default application in the electronic device or a user-specified application.
  • the second window and the first window may be windows of different applications or different windows of the same application.
  • the second window and the first window corresponding to different applications as an example, that is, the first window corresponds to the first application, the second window corresponds to the second application, and the first application and the second application are different.
  • the second application may satisfy at least one of the following conditions:
  • the second application is a specific application.
  • the so-called specific application can be an application set by the system by default or a user-defined application. For example, if the user has set the second application to be an instant messaging application in advance, then when the electronic device receives the first preset operation, the window of the instant messaging application will be called up.
  • the second application is a memo application, then when the electronic device receives the first preset operation, it calls up the memo window. In this way, the user can record the browsed information into the memo at any time.
  • the electronic device displays the first window of the first application
  • the second window of the specific application is called up through the first preset operation. There is no need for the user to manually open the specific application.
  • the operation is convenient, and the user can Frequently used applications or favorite applications are set as specific applications, so that the first window of the first application is displayed on the electronic device When you open your mouth, you can easily call up the window of your frequently used applications or favorite applications.
  • the second application is an application running in the background. For example, applications that were opened in the foreground before the first application was run in the foreground. For example, before (a) in Figure 8, the electronic device runs the second application in the foreground (for example, displays the second window of the second application), the user switches the second application to the background, and the first window of the first application opens in the foreground, Then, when the electronic device receives the first preset operation, the second window of the second application is called up.
  • the second application is an application that the user uses more frequently than the preset frequency within the preset time period.
  • the preset time period may be one day, 12 hours, 3 hours, etc., and the specific value is not limited in the embodiment of this application.
  • the second application is an application related to the content selected by the user.
  • the electronic device receives the first preset operation, it can automatically identify the second application that needs to be opened in the second window based on the content dragged by the user.
  • the second application can be a photo album application.
  • the picture can be opened using the photo album application and displayed in the second window.
  • the second window may be any window of the second application.
  • the second window is the window that was last opened by the second application, or the second window is a preset window of the second application.
  • the preset window is, for example, a window set by the system by default (for example, it is opened when the second application is started. the first window) or the window set by the user.
  • the second application as an instant messaging application as an example
  • the user can set the second window to be a chat window with contact A in the instant messaging application. In this way, when the electronic device displays the first window of the first application, the user can quickly call up the instant messaging application through the first preset operation, and what is called up is the chat with contact A that has been preset by the user in the instant messaging application. window.
  • the second window and the first window corresponding to the same application are different windows of the first application.
  • the second window can satisfy at least one of the following conditions:
  • the second window is the default window of the first application.
  • the so-called default window may be a system default window of the first application (for example, the first window opened when the first application is started) or a window set by the user.
  • the preset window of the first application may be, for example, a chat window with contact A in the first application. Then, when the electronic device displays the first window of the instant messaging application, the first preset window is used. Set the operation to automatically appear the chat window with contact A in the instant messaging application.
  • the second window is the last window displayed by the first application before the first window is displayed. It can also be understood that the interface displayed in the second window is the upper-level interface of the interface displayed in the first window. For example, if the first application first opens the second window and then opens the first window, and the first window covers the second window, that is, the second window is no longer displayed in the foreground, then the user can call up the second window through the first preset operation.
  • the second window is a window whose opening frequency is greater than the preset frequency in the first application within the preset time period.
  • the first application as an instant messaging application as an example
  • the user opens the chat window with contact A relatively frequently within a certain period of time. Therefore, when the electronic device displays the first window of the instant messaging application, the user can open the chat window through the first preset window.
  • the operation calls up the chat window with contact A in the instant messaging application, that is, the second window, which is in line with the user's recent usage habits.
  • the second window when the second window appears, it can be displayed at any position on the display screen.
  • the second window is displayed in the upper right corner area of the display screen when it appears.
  • the display position when the second window appears can be the position set by the system by default, or the position when the second window disappeared (or was folded) last time, or the position set by the user in advance.
  • this application is The display position of the second window is not limited.
  • the occupied display area when the second window appears, may be a preset area, for example, 1/4 of the display screen, or the entire display screen; alternatively, the display area of the second window may also be set by the user. .
  • the second window After the second window appears on the display screen of the electronic device, if the second preset operation is received, the second window can The first information is processed, as in (c) in Figure 8.
  • the second preset operation may include: an operation of dragging the first information into the second window, or an operation of dragging the first information into the second window and staying there for a preset period of time, etc. .
  • the second preset operation may be to drag the first information to any position in the second window.
  • the second preset operation may be to drag the first information to the input box of the second window. within the second window, or it can also be dragged to other positions in the second window. That is, there is no strict requirement to drag the first information into the input box and the first information can be filled into the input box. User requirements lower.
  • the second preset operation may be to drag the first information to a certain insertion slot where the user needs to insert the first information among the multiple information insertion slots in the second window. Precise insertion of information.
  • the first preset operation is mentioned above, and the second preset operation is mentioned here.
  • These two operations can be two independent operations.
  • the first preset operation is for the first information.
  • Long press operation the second preset operation is an operation of touching the screen again to drag the first information after the finger leaves the screen after the long press operation.
  • these two operations can also be continuous (or continuous), uninterrupted operations.
  • the first preset operation is a long press operation on the first information
  • the second preset operation is the long press operation.
  • Non-stop that is, the operation of dragging the first information without leaving the finger.
  • the first preset operation is the operation of long pressing the first information and starting to drag.
  • the second preset operation is the operation of dragging the first information without leaving the finger.
  • processing the first information in the second window includes, for example: copying the first information into the second window (i.e., application scenario 1 in the above figure 6), or searching for the first information in the second window (i.e., the above figure).
  • Application scenario two in Figure 7A or open the first information in the second window (ie, application scenario three in Figure 7B above).
  • the second window after the second window processes the first information, it may always be displayed on the display screen, or it may be automatically hidden (for example, the second window is switched back to the background).
  • the second preset operation is a drag operation of dragging the first information into the second window.
  • the drag operation is released (that is, the finger leaves the screen)
  • the second window is automatically hidden.
  • the second window After the second window processes the first information, it waits for a preset period of time and then automatically hides.
  • the second window After the second window processes the first information, it waits for a preset time period. If no operation in the second window is received within the preset time period, the second window is automatically hidden.
  • the second window processes the first information
  • the second window is automatically hidden.
  • the third preset operation may be, for example, a click operation (single or double-click) anywhere in the first window.
  • the user may still need to process business in the first window.
  • the user can click in the first window to automatically hide the second window. to avoid blocking the first window and affecting the user's business processing in the first window.
  • the third preset operation may be, for example, a specific interactive operation within the first window, such as complex interactive operations such as swiping, pinching with two fingers, zooming in with two fingers, multi-finger operations, etc.
  • the "hiding of the second window" mentioned in the above embodiment may include: completely disappearing, or reducing the display to block the first window as little as possible.
  • the second window is reduced to a prompt box 901, which is displayed in the upper right corner of the display screen.
  • the second window may be reduced to the prompt box 404 shown in (b) of FIG. 5 . In this case, the second window will not block the first window too much, and the user can continue to process the business in the first window.
  • the second window is first reduced in size and then completely disappears.
  • a second preset operation is received, and the second preset operation is a drag operation of dragging the first information into the second window.
  • the second window is reduced and displayed, as shown in (a) in Figure 9 .
  • the third preset operation is received in the first window, the second window disappears completely, as shown in (b) of Figure 9 . That is to say, when the user drags the first information into the second window and releases his finger, the second window is shrunk and displayed.
  • the third preset operation please refer to the previous introduction.
  • the electronic device determines whether the second window needs to be hidden or always displayed on the display screen based on the execution degree of the second preset operation.
  • the second default operation is a drag operation of dragging the first information to the second window. For example, although the drag operation drags the first information in the direction of the second window, it does not drag the first information to the direction of the second window. If the information is dragged into the second window, it means that the user may have made a mistake. Then after the drag operation is released, the second window can be hidden.
  • the second window can always be displayed on the display screen. This is because the user may copy the first information to the second window and perform corresponding processing in the second window in the next step, so the second window is always displayed. , waiting for user processing.
  • the second window processes the first information, it can also be automatically hidden after waiting for a preset period of time. Or, wait for a preset time period, and if no operation in the second window is received within the preset time period, the second window is automatically hidden. Or, if the third preset operation in the first window is received, the second window is automatically hidden, and so on.
  • the background processing process corresponding to the embodiment shown in Figure 8 will be described below with reference to Figures 10A and 10B.
  • the background process includes the following steps:
  • Step 1 The electronic device displays the second window of the second application in the foreground.
  • Step 2 The electronic device switches the second application to the background and records the background application list.
  • Step 3 Open the first window of the first application in the foreground of the electronic device.
  • Step 4 The electronic device receives the selection operation of the first information in the first window.
  • Step 5 The electronic device determines the second application according to the background application list.
  • Step 6 The second window of the second application appears on the front desk of the electronic device.
  • the electronic device may use FreeForm window technology to display the second window on the display screen.
  • the FreeForm window can be understood as having the functions of dynamic movement, size scaling, etc. on the display screen, as shown in Figure 10B, and various interfaces can be opened in the FreeForm window.
  • the FreeForm window can use view technology to lay out and draw information (text, images, etc.) in the interface to display various styles of interfaces to users.
  • the newly opened interface in the FreeForm window can overwrite the previously opened interface, as shown in Figure 10B. It can be understood that when the FreeForm window undergoes position changes and/or size scaling, the interface within the FreeForm window also undergoes corresponding position changes and/or size scaling to adapt to the changes in the FreeForm window.
  • Step 7 The electronic device receives the drag operation of the first information.
  • Step 8 The electronic device copies the first information into the second window.
  • Step 9 The electronic device hides the second window.
  • the second window occupies a certain display area when it appears.
  • the second window occupies 1/4 of the display screen when it appears.
  • the electronic device displays a first window, and the first window includes first information.
  • a second window appears on the display screen, as shown in (b) in Figure 11 , and the second window is displayed in the form of a prompt box 1101.
  • the prompt box 1101 may be a box that does not include text, images and other information, that is, the specific information in the second window cannot be seen through the prompt box 1101.
  • the prompt box 1101 may only occupy a part of the area near the edge of the display screen so as not to block the first window as much as possible.
  • the prompt box 1101 of the second window may have various designs, such as a rectangular or square prompt box, etc., which are not limited in the embodiment of this application. It should be noted that (b) in Figure 11 displays the second window in the form of a prompt box 1101. In practical applications, the second window can also be displayed in other ways, and in short, it occupies a smaller area. .
  • the second window can process the first information in the first window.
  • the second window processes the first information, for example, the first information is copied to the second window.
  • the first information is searched in the window (such as the application scenario one in the previous article) or the first information is searched in the second window (such as the application scenario two in the previous article) or the first information is opened in the second window (such as the application scenario three in the previous article).
  • the prompt box 1101 in order to prompt the user that the first information is successfully dragged to the prompt box 1101 of the second window, can be highlighted (for example, highlighted or darkened), as shown in (c) in Figure 11 shown. That is to say, after the user drags the first information in the first window to the prompt box of the second window, the second window is highlighted. In this way, the user can know that the first information has been successfully dragged to the second window.
  • the prompt box 1101 may be highlighted all the time or restored to its original state after being highlighted for a period of time, for example, from the dark display in (c) of Figure 11 to the normal display in (b) of Figure 11 .
  • the second window appears in the form of a prompt box 1101 and is not expanded and displayed. During this process, the user does not see the information in the second window and is not interested in the first window. The degree of occlusion is very small.
  • the user can also expand the second window through a certain operation (for example, a click operation on the prompt box 1101). For example, the expanded second window looks like (c) in Figure 8 .
  • the second window may be enlarged and displayed. , to show the user the specific content of the second window.
  • the first window includes first information.
  • a prompt box 1101 of the second window appears on the display screen, as shown in (b) of Figure 12 .
  • the second window has not yet appeared on the display screen.
  • the prompt box 1101 expands into a second window, as shown in (c) in Figure 12 .
  • the first information is dragged into the second window, or the first information is dragged into the second window and stays for a certain period of time, or it is determined that the first information is dragged into the second window and released, in the Process the first information in the second window (for example, copy the first information to the second window), as shown in (d) in Figure 12.
  • the electronic device displays the first window, if the user selects the first information in the first window, considering that the user may want to copy the first information to the second window, the second window appears first. Prompt box.
  • the prompt box is displayed as the second window.
  • the prompt box is displayed as the second window.
  • the first information is dragged to the second window inside, copy the first information to the second window.
  • the user selects the first information and the prompt box of the second window appears, but the user does not drag the first information to the prompt box of the second window, it means that the user does not want to copy the first information to the second window. You can cancel the display of the prompt box of the second window.
  • the second window occupies a certain display area.
  • the second window first smaller area is displayed, then Display enlarged.
  • the magnification method of the second window includes at least one of method A and method B.
  • Method A the second window is directly enlarged to the preset area, for example, occupying 1/4 of the entire display screen.
  • Zoom in B and the second window gradually enlarges.
  • the enlarged area of the second window is related to the distance from the user's finger that generates the drag operation to the second window (for example, the center point of the second window). The closer the distance, the larger the area of the second window.
  • a prompt box is displayed on the display screen.
  • the prompt box expands into a second window, as shown in (b) in Figure 13.
  • the distance A from the second window to the user's finger is A
  • the second window occupies an area A.
  • distance B is smaller than distance A.
  • the second window occupies area B, and area B is larger than area A. .
  • the second window gradually enlarges until the user's finger enters the second window and stops enlarging, as shown in (d) of Figure 13 .
  • the second window gradually enlarges as the user's finger approaches, but stops enlarging when it reaches a preset area, which is, for example, 1/4 of the display screen. That is to say, when the second window area occupies 1/4 of the display screen, it will no longer continue to enlarge as the finger approaches.
  • the second window is gradually enlarged as the finger approaches until it is enlarged to occupy the entire displayable area on the display screen, that is, the second window is displayed in full screen.
  • the electronic device determines whether the second window should be enlarged to a preset area (for example, 1/4 of the display screen) or full screen based on the properties of the second window.
  • the electronic device may support one or more preset areas of the second window, such as 1/4 of the display screen, 1/3 of the display screen, 1/2 of the display screen, full screen, etc.
  • the electronic device can determine the area to which the second window needs to be enlarged based on the number of information insertion bits in the second window.
  • the greater the number of inserted bits in the second window the larger the corresponding preset area after the second window is enlarged.
  • the second window can be enlarged to a preset area (for example, 1/4 of the display screen).
  • the second window is a chat window of an instant messaging application, in which there is only one information insertion position (ie, input box), so the chat window only needs to be enlarged to 1/4 of the display screen. It should be understood that there is only one information insertion position in the second window, and the user does not need to choose where to insert the first information, so the second window does not need to be enlarged too much.
  • the second window can be enlarged to the full screen or 1/3 of the display screen.
  • the second window can also be automatically hidden after it appears (for example, the second window is switched back to the background).
  • the hiding method of the second window described in the first embodiment is also applicable to the second embodiment. For example, the second window is first displayed as a prompt box and then enlarged; then, the second window is first reduced and then completely disappeared.
  • the background processing process corresponding to the second embodiment (for example, Figure 12) will be described below with reference to Figure 15.
  • the background process includes the following steps:
  • steps one to seven are the same as in Figure 10B, so they will not be repeated here.
  • Step 8 and subsequent steps that are different from those in Figure 10B are introduced below.
  • Step 8 Determine the real-time position (x, y) of the drag operation.
  • the real-time position (x, y) is the real-time position of the user's finger when performing a drag operation. For example, in (a) and (b) of Figure 13 above, during the process of the first information being dragged , the real-time position of the user's finger changes.
  • Step 9 Scale the second window according to (x, y). For example, as shown in Figure 13 above, as the user's finger (ie, the real-time position (x, y) of the drag operation) gradually approaches the second window, the area of the second window gradually enlarges.
  • Step 10 Determine the number of inserted bits in the second window.
  • Step 11 Determine whether the second window is enlarged to a preset area or to full screen according to the number of inserted bits in the second window. For example, as shown in (a) of Figure 14 above, when the number of inserted bits in the second window is 1, the second window can be enlarged to a preset area such as 1/4 of the display screen, and then as shown in (b of Figure 14 ), when the number of inserted bits in the second window is multiple, the second window is enlarged to full screen.
  • steps ten and eleven are optional steps that can be executed or not, so they are represented by dotted lines in the figure. If not executed, for example, the second window will be enlarged to the preset area or full screen or the area set by the user by default. etc.
  • Step 12 Determine whether at least one of the following conditions is met: 1. Determine whether the second window is the target window based on (x, y). For example, it is determined whether (x, y) is located in the second window. If so, it means that the second window is the target window, and the second window processes the first information. 2. Determine whether the second window supports the insertion of the first information. For example, it is determined whether the first information is text information, and if so, the insertion of the first information is supported. Or, determine whether there is an insertion bit in the second window, and if so, support the insertion of the first information.
  • a window that is, the second window is called up through user operation.
  • multiple windows can be called up through user operation (ie, the first preset operation).
  • the multiple windows are respectively the second window and the third window.
  • the window is used as an example for explanation.
  • the electronic device displays a first window, and the first window includes first information. If the first preset operation (for example, the selection operation for the first information) is received, the second window and the third window appear on the display screen, as shown in (b) of Figure 16 .
  • the first preset operation for example, the selection operation for the first information
  • the display screen includes three windows, a first window, a second window and a third window. At least two of these three windows may respectively correspond to different applications, or may correspond to the same application, which is not limited by the embodiments of this application. . If the first window corresponds to the first application, the second window corresponds to the second application, and the third window corresponds to the third application, it is assumed that the first application, the second application, and the third application are different, where the second application and/or the third application Conditions (a)-(d) as described in Embodiment 1 above can be satisfied. For convenience of description, the details will not be repeated. Assuming that the first application, the second application, and the third application are the same, the second window and the third window can satisfy conditions (e)-(g) as in the previous embodiment 1.
  • the second window and the third window may overlap or not overlap.
  • the second window and the third window do not overlap as an example.
  • the display position and display area of the second window and the third window please refer to the previous description of Embodiment 1 (it should be understood that the areas of the second window and the third window may be the same or different), and will not be repeated.
  • the electronic device calls up multiple windows at the same time, and the user can choose which window among the multiple windows to process the first information.
  • the first process is processed in the second window.
  • information for example, copy the first information to the second window or search the first information in the second window or open the first information in the second window, as shown in (c) in Figure 16 .
  • a drag operation of dragging the first information to the third window is received and the first information is dragged into the third window, the first information is processed in the third window.
  • the third window may also be hidden.
  • the hiding method of the second window please refer to the previous description of Embodiment 1, and the details will not be repeated.
  • the second window and the third window are hidden together.
  • Figure 17 takes dragging the third window to the right edge of the display screen as an example. You can also drag the second window or the third window to the left edge, upper edge, lower edge of the display screen, etc. Hide both windows.
  • hiding two windows means that the two windows completely disappear. After the two windows completely disappear, one-click operation can be performed (for example, interactive operations such as sliding up, down, left, and right in the display screen) Call up the two hidden windows at the same time.
  • hiding two windows may also refer to shrinking and displaying two windows.
  • the second window and the third window are reduced together, for example, reduced to a prompt box or smaller size. window.
  • both the second window and the third window are displayed in the right area of the display screen in the form of prompt boxes.
  • the second window and the third window may first be reduced in size and then disappear completely.
  • the prompt box of the second window and the prompt box of the third window can disappear completely.
  • the display of the window corresponding to the prompt box can be restored (for example, the prompt box is The window corresponding to the prompt box is restored to its previous position and/or size), or the display of all windows is restored (for example, all previously hidden windows are restored to their previous position and/or size).
  • the display of the second window can be restored.
  • the display of the second window and the third window can be restored at the same time. In this way, the user can restore all the prompt boxes by clicking the prompt box once.
  • the display of floating windows reduces user interaction steps.
  • the background processing process corresponding to the multi-window hiding process (for example, Figure 18) in Embodiment 3 will be described below with reference to Figure 19.
  • the background process includes the following steps:
  • Step 1 Display multiple windows. For example, a first window, a second window and a third window, where the second window and the third window are located on the upper layer of the first window, as shown in (a) of Figure 18 .
  • Step 2 Record the position and/or area of the second window and the third window.
  • Step 3 Receive a drag operation for any one of the second window and the third window.
  • steps two and three can also be performed at the same time.
  • Step 4 Make sure the reduction conditions are met. For example, when the drag operation is to drag the window (either the second window or the third window) to the edge (left edge or right edge) of the display screen, it is determined that the reduction condition is met.
  • Step 5 The second window and the third window are reduced and displayed together. For example, as shown in (b) of Figure 18, the second window and the third window are respectively reduced to prompt boxes.
  • Step 6 Receive an operation on the prompt box of the second window, for example, a click operation.
  • Step 7 Restore the position and/or area of the second window, that is, the position and/or area of the second window recorded in step 2.
  • Step 8 Restore the position and/or area of the second window and the third window together, that is, the position and/or area of the second window recorded in step 2.
  • step six you can perform either step seven or step eight.
  • step seven when the user clicks the prompt box of the second window in step seven, only the area and/or position of the second window is restored, and the third window is still reduced and displayed.
  • step eight when the user clicks the prompt box of the second window, the areas and/or positions of the second window and the third window are restored together, which can save operating steps.
  • each window occupies a larger area.
  • the second window and the third window occupy a larger area.
  • the blocking area of the window is relatively large, so in other embodiments, when multiple windows are called up, each window can appear in the form of a prompt box.
  • the electronic device displays a first window, and the first window includes first information.
  • the prompt box of the second window and the prompt box of the third window appear on the display screen, as shown in Figure 20 (b).
  • the display styles of the prompt box of the second window and the prompt box of the third window may be the same or different. For example, if there is an information insertion position in the second window, the prompt box of the second window will be displayed normally. If there is no information insertion position in the third window, then there will be slashes or grayscale display in the prompt box of the third window to remind the user. Unable to copy information within third window. In this way, although the prompt boxes of multiple windows are called up, certain prompts will be given to the user to facilitate the user to quickly find the target window to paste information.
  • the window that needs to be enlarged and displayed may be determined based on the user's drag direction and/or drag trajectory. For example, continuing to refer to (b) in Figure 20, assuming that the user drags the first information to the prompt box of the second window, the second window gradually enlarges, for example, as the dragging finger gradually moves closer to the second window , the area of the second window is gradually enlarged, and when the first information is dragged into the second window, the first information is pasted in the second window, as shown in (c) in Figure 20 . It should be noted that in (b) of Figure 20, both the second window and the third window are reduced and displayed at the edge.
  • the second window and the third window can be displayed according to the drag direction and/or drag operation.
  • the drag trajectory determines which prompt box the drag operation points to, and which prompt box is pointed to will enlarge the window corresponding to the prompt box.
  • the user may be prompted whether the first information can be input in the window. For example, there is an information insertion position in the second window.
  • a corner mark (such as a plus sign, check mark, etc.) can be displayed on the dragged first information.
  • the area of the second window is enlarged and displayed. For another example, there is no information insertion position in the third window.
  • a corner mark (such as a cross, etc.) can be displayed on the dragged first information.
  • the user is prompted not to input the first information in the third window.
  • the area of the third window may not be enlarged and displayed, or may be enlarged and displayed but does not support the user's input of the first information.
  • the number of multiple windows brought up by the electronic device may have a maximum value.
  • the multiple windows that are called up include: the windows of all applications opened in the background, the windows of all recently opened applications (where the most recent can be a week or a day, etc.), all specific applications (for example, the user has set up multiple specific applications, For specific applications (see above), at least one of the windows.
  • the electronic device can select one or more applications among many applications and call up the window of the selected application. For example, you can select an application that is frequently used or an application that is opened at a close time from all the applications running in the background, and call up the window of the selected application.
  • FIG 21 is a schematic structural diagram of an electronic device 2100 provided by an embodiment of the present application.
  • the electronic device 2100 may be the aforementioned electronic device (such as a mobile phone).
  • the electronic device 2100 may include: one or more processors 2101; one or more memories 2102; a communication interface 2103, and one or more computer programs 2104, The various devices described above may be connected through one or more communication buses 2105.
  • the one or more computer programs 2104 are stored in the memory 2102 and configured to be executed by the one or more processors 2101, the one or more computer programs 2104 include instructions.
  • the instruction can be used to perform the steps related to the mobile phone in the above corresponding embodiment, for example, the steps shown in FIG. 10A.
  • the communication interface 2103 is used to implement communication between the electronic device 2100 and other devices.
  • the communication interface may be a transceiver.
  • the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone) as the execution subject.
  • the electronic device may include a hardware structure and/or a software module to implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed as a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • the terms “when” or “after” may be interpreted to mean “if" or “after” or “in response to determining" or “in response to detecting ...”.
  • the phrase “when determining" or “if (stated condition or event) is detected” may be interpreted to mean “if it is determined" or “in response to determining" or “on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”.
  • relational terms such as first and second are used to distinguish one entity from another entity, without limiting any actual relationship and order between these entities.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • 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, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
  • SSD Solid State Disk

Landscapes

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

Abstract

A display method and an electronic device. The electronic device displays a first window; in response to a first operation for selecting first information in the first window, a second window appears on a display screen; the second window is located on an upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; and in response to a second operation for dragging the first information into the second window, the first information is processed in the second window. By means of the method, when the electronic device displays the first window, if the first information in the first window needs to be processed by means of the second window, the second window is called, i.e., the second window does not shield the first window all the time and does not affect the operation of a user on the first window, and after the second window is called, the first information can be processed in the second window by means of the operation of dragging the first information into the second window, so that the operation is convenient and fast, and the user experience is good.

Description

一种显示方法与电子设备Display method and electronic device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年05月24日提交中国专利局、申请号为202210570699.X、申请名称为“一种显示方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on May 24, 2022, with the application number 202210570699.X and the application name "A display method and electronic device". The entire content is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种显示方法与电子设备。The present application relates to the field of electronic technology, and in particular, to a display method and electronic equipment.
背景技术Background technique
随着移动设备的发展,人们的日常生活越来越依赖移动设备。以手机为例,人们的生活、工作的很大一部分可以在手机上完成。为了提升手机的处理效率,手机上可以多窗口显示,每个窗口内显示不同内容,方便用户在不同窗口内分别处理业务。With the development of mobile devices, people's daily life is increasingly dependent on mobile devices. Taking mobile phones as an example, a large part of people's lives and work can be completed on mobile phones. In order to improve the processing efficiency of the mobile phone, multiple windows can be displayed on the mobile phone, and different content can be displayed in each window, making it convenient for users to handle business in different windows.
然而,由于手机的显示屏较小,当手机显示多窗口时,往往会出现上层窗口遮挡下层窗口的情况。例如,如图1,手机上显示两个窗口,窗口A和窗口B,窗口A遮挡住了窗口B的内容。如此,当用户想要在窗口B内处理业务时,需要隐藏或缩小窗口A。在窗口A隐藏或缩小之后,如果用户需要切换到窗口A内处理业务,需要再次打开窗口A或放大窗口A,显然,该过程操作非常繁琐,影响用户体验。However, due to the small display screen of mobile phones, when the mobile phone displays multiple windows, the upper window often blocks the lower window. For example, as shown in Figure 1, two windows are displayed on the mobile phone, window A and window B. Window A blocks the content of window B. In this way, when the user wants to process business in window B, window A needs to be hidden or reduced. After window A is hidden or reduced, if the user needs to switch to window A to handle business, he or she needs to open window A again or enlarge window A. Obviously, this process is very cumbersome and affects the user experience.
发明内容Contents of the invention
本申请的目的在于提供了一种显示方法与电子设备,用以提升多窗口显示时的交互体验。The purpose of this application is to provide a display method and electronic device to improve the interactive experience during multi-window display.
第一方面,提供一种显示方法,应用于电子设备,所述电子设备具有显示屏,所述方法包括:显示第一窗口;响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上出现第二窗口;所述第二窗口位于所述第一窗口上层,且所述第二窗口的显示面积小于所述第一窗口的显示面积;响应于用于将所述第一信息拖拽到所述第二窗口内的第二操作,在所述第二窗口内处理所述第一信息。In a first aspect, a display method is provided, applied to an electronic device, the electronic device has a display screen, the method includes: displaying a first window; responding to a first step for selecting first information in the first window. Operation, a second window appears on the display screen; the second window is located on the upper layer of the first window, and the display area of the second window is smaller than the display area of the first window; in response to the The second operation of dragging the first information into the second window is to process the first information in the second window.
也就是说,电子设备显示第一窗口时,当需要第二窗口来处理第一窗口内的第一信息时,可以通过用户操作(第一操作)唤出第二窗口,第二窗口悬浮于第一窗口上且显示面积小,换言之,第一窗口不会一直被第二窗口遮挡,不会影响用户在第一窗口内的业务处理进度。而且,如果用户想要将第一窗口内的第一信息通过第二窗口处理(例如将第一信息复制到第二窗口内),只需要将第一信息拖拽到第二窗口内即可,操作便捷,用户体验较高。That is to say, when the electronic device displays the first window, when the second window is needed to process the first information in the first window, the second window can be called up through user operation (first operation), and the second window is suspended above the first window. On one window and the display area is small, in other words, the first window will not always be blocked by the second window, and the user's business processing progress in the first window will not be affected. Moreover, if the user wants to process the first information in the first window through the second window (for example, copy the first information into the second window), he only needs to drag the first information into the second window. Easy to operate and high user experience.
在一些实施例中,所述在所述第二窗口内处理所述第一信息,包括多种情况,例如情况1:将所述第一信息复制到所述第二窗口内;情况2,在所述第二窗口内搜索所述第一信息的相关信息;例如,第二窗口是浏览器应用的窗口,在浏览器应用中搜索第一信息;情况3,在所述第二窗口内打开所述第一信息,例如,第一信息是图片,第二窗口自动显 示为相册应用的窗口,即通过相册应用打开第一窗口内的图片。In some embodiments, processing the first information in the second window includes multiple situations, such as situation 1: copying the first information into the second window; situation 2, in Search related information of the first information in the second window; for example, the second window is a window of a browser application, and the first information is searched in the browser application; case 3, open all the information in the second window Describe the first information, for example, the first information is a picture, the second window automatically displays Shown as the window of the photo album application, that is, the picture in the first window is opened through the photo album application.
也就是说,电子设备显示第一窗口时,如果用户想要将第一窗口内的第一信息复制到第二窗口,或者,在第二窗口内搜索第一信息的相关信息(例如,在浏览器应用中搜索第一信息),可以通过第一操作唤出第二窗口并通过第二操作使得第二窗口处理第一信息,换言之,对于跨窗口的信息复制、内容搜索等过程,操作比较便捷,用户体验较高。That is to say, when the electronic device displays the first window, if the user wants to copy the first information in the first window to the second window, or search for related information of the first information in the second window (for example, while browsing Search the first information in the browser application), you can call up the second window through the first operation and make the second window process the first information through the second operation. In other words, for cross-window information copying, content search and other processes, the operation is more convenient , higher user experience.
在一种可能的设计中,所述第一操作,包括:对所述第一信息的长按操作,或者,对所述第一信息执行长按操作后开始拖拽的操作。即,电子设备显示第一窗口时,如果需要第二窗口来处理第一窗口内的第一信息,可以长按第一信息或者长按并开始拖拽第一信息,以唤出第二窗口,第二窗口不会一直遮挡第一窗口,不会影响用户在第一窗口内业务的处理进度。应理解,第一操作还可以是其它类型的操作,本申请实施例不作限定。In a possible design, the first operation includes: a long press operation on the first information, or a drag operation after performing a long press operation on the first information. That is, when the electronic device displays the first window, if a second window is needed to process the first information in the first window, you can long press the first information or start dragging the first information to call up the second window. The second window will not always block the first window and will not affect the user's business processing progress in the first window. It should be understood that the first operation can also be other types of operations, which are not limited by the embodiments of this application.
在一种可能的设计中,所述第二操作是在所述第一操作之后手指不离开所述显示屏的接续操作。简单来说,第二操作和第一操作是连续的、无间隔的,换言之,用户在执行第一操作后手指不离开屏幕继续执行第二操作。例如,第一操作是对第一信息的长按操作,第二操作是对第一信息执行长按操作之后手指不离开屏幕继续执行的拖拽操作。这种方式,用户操作流畅、便捷,体验更好。In a possible design, the second operation is a subsequent operation in which the finger does not leave the display screen after the first operation. To put it simply, the second operation and the first operation are continuous and have no interval. In other words, after performing the first operation, the user continues to perform the second operation without leaving the screen with his finger. For example, the first operation is a long press operation on the first information, and the second operation is a drag operation continued without leaving the screen after the long press operation on the first information. In this way, users can operate smoothly, conveniently and have a better experience.
在一种可能的设计中,所述第二窗口与所述第一窗口是同一应用的窗口,或者,不同应用的窗口。也就是说,电子设备显示第一窗口时,可以通过用户操作(即第一操作),唤出与第一窗口属于同一应用的第二窗口,或者,与第一窗口属于不同应用的第二窗口。例如,第一窗口是浏览器应用的窗口,第二窗口是即时通信应用的窗口,实现不同应用的窗口之间的信息处理。In a possible design, the second window and the first window are windows of the same application, or windows of different applications. That is to say, when the electronic device displays the first window, it can call up a second window that belongs to the same application as the first window, or a second window that belongs to a different application from the first window through user operation (i.e., the first operation). . For example, the first window is a window of a browser application, and the second window is a window of an instant messaging application, realizing information processing between windows of different applications.
在一种可能的设计中,所述第二窗口满足如下条件中的至少一种:In a possible design, the second window satisfies at least one of the following conditions:
所述第二窗口是具有信息插入位的窗口;或者,The second window is a window with information insertion bits; or,
所述第二窗口是所述显示屏在所述第一窗口之前上一个显示的窗口,或者,The second window is the last window displayed on the display screen before the first window, or,
所述第二窗口是第二应用的窗口;其中,所述第二应用包括:后台运行应用、所述电子设备中使用频率大于预设频率的应用、特定应用中的至少一种,所述特定应用包括所述电子设备默认应用或者用户指定应用。The second window is a window of a second application; wherein the second application includes at least one of: a background running application, an application in the electronic device with a usage frequency greater than a preset frequency, and a specific application, and the specific application Applications include default applications of the electronic device or user-specified applications.
可以理解的是,除去以上条件以外,第二窗口还可以满足其它的条件(例如,用户设置的特定/固定窗口)等,本申请实施例不作限定。It can be understood that, in addition to the above conditions, the second window can also meet other conditions (for example, a specific/fixed window set by the user), etc., which are not limited by the embodiments of this application.
在一种可能的设计中,在所述第二窗口内处理所述第一信息之后,所述第二窗口执行如下步骤中的至少一步:In a possible design, after processing the first information in the second window, the second window performs at least one of the following steps:
所述第二窗口隐藏;或者The second window is hidden; or
所述第二窗口显示第一预设时长,在所述第一预设时长之后自动隐藏;或者,The second window displays a first preset duration and is automatically hidden after the first preset duration; or,
所述第二窗口显示第二预设时长,若在所述第二预设时长内未接收到在所述第二窗口内的操作,所述第二窗口隐藏;或者,The second window displays a second preset duration. If no operation in the second window is received within the second preset duration, the second window is hidden; or,
接收到在所述第一窗口内的操作,所述第二窗口隐藏;或者,Upon receiving an operation within the first window, the second window is hidden; or,
所述第二窗口显示第三预设时长,若在所述第三预设时长内接收到在所述第一窗口内的操作,所述第二窗口隐藏。The second window displays a third preset duration. If an operation in the first window is received within the third preset duration, the second window is hidden.
也就是说,第二窗口处理第一信息之后,可以隐藏,这样的话,第一窗口不再被遮挡,用户可以继续在第一窗口内处理业务,用户体验较高。That is to say, after the second window processes the first information, it can be hidden. In this case, the first window is no longer blocked, and the user can continue to process business in the first window, and the user experience is high.
在一种可能的设计中,所述第二窗口隐藏,包括:所述第二窗口从所述显示屏上消失, 或者,所述第二窗口缩小显示;或者,所述第二窗口缩小显示,当接收到在所述第一窗口内的交互操作时,缩小后的所述第二窗口消失。In a possible design, hiding the second window includes: the second window disappears from the display screen, Alternatively, the second window is displayed in a reduced size; or, the second window is displayed in a reduced size, and when an interactive operation in the first window is received, the reduced second window disappears.
也就是说,第二窗口隐藏时,可以直接消失,也可以缩小显示,或者,还可以先缩小消失然后再完全隐藏,等等,总之,第二窗口处理第一信息之后隐藏,不再遮挡第一窗口,用户可以继续在第一窗口内处理业务,用户体验较高。That is to say, when the second window is hidden, it can disappear directly, or the display can be reduced, or it can be reduced and disappeared first and then completely hidden, etc. In short, the second window is hidden after processing the first information and no longer blocks the second window. With one window, users can continue to process business in the first window, and the user experience is high.
在一种可能的设计中,响应于用于选择所述第一窗口内第一信息的第一操作,在所述显示屏上出现第二窗口,包括:响应于用于选择所述第一窗口内第一信息的第一操作,在所述显示屏上出现所述第二窗口的提示框,所述第二窗口在后台运行;响应于用于将所述第一信息拖拽到所述第二窗口内的第二操作,在所述第二窗口内处理所述第一信息,包括:响应于用于将所述第一信息拖拽到所述提示框的第二操作,所述第二窗口在后台处理所述第一信息,或者,响应于用于将所述第一信息向所述提示框拖拽的第二操作,所述提示框展开为所述第二窗口,当所述第一信息被拖拽到所述第二窗口内时,在所述第二窗口内处理所述第一信息。In one possible design, in response to a first operation for selecting the first information in the first window, a second window appears on the display screen, including: in response to a first operation for selecting the first window In response to the first operation of dragging the first information to the first information, a prompt box of the second window appears on the display screen, and the second window runs in the background; The second operation in the second window, processing the first information in the second window includes: in response to the second operation for dragging the first information to the prompt box, the second The window processes the first information in the background, or in response to the second operation for dragging the first information to the prompt box, the prompt box expands into the second window. When the third When a piece of information is dragged into the second window, the first information is processed in the second window.
也就是说,电子设备唤出第二窗口时,唤出的是第二窗口的提示框,应理解,第二窗口的提示框比第二窗口占用的显示面积更小,对第一窗口的遮挡更小。用户将第一窗口内的第一信息拖拽到第二窗口的提示框就可以实现在第二窗口内处理第一信息,这种方式中,第二窗口始终以提示框的方式展示,对显示屏的遮挡非常小,几乎不会影响用户在第一窗口内的业务处理。或者,用户将第一窗口内的第一信息拖拽到第二窗口的提示框时,提示框展开成第二窗口,在第二窗口内处理第一信息,这样方便用户能够准确在第二窗口内进行信息处理。That is to say, when the electronic device calls up the second window, it calls up the prompt box of the second window. It should be understood that the prompt box of the second window occupies a smaller display area than the second window and blocks the first window. smaller. The user can process the first information in the second window by dragging the first information in the first window to the prompt box in the second window. In this way, the second window is always displayed in the form of a prompt box, which is very important to the display. The screen occlusion is very small and will hardly affect the user's business processing in the first window. Or, when the user drags the first information in the first window to the prompt box of the second window, the prompt box expands into the second window, and the first information is processed in the second window. This facilitates the user to accurately process the first information in the second window. information processing within.
在一种可能的设计中,响应于用于将所述信息向所述提示框拖拽的第二操作,所述提示框展开为所述第二窗口,当所述第一信息被拖拽到所述第二窗口内时,在所述第二窗口内处理所述第一信息,包括:In a possible design, in response to the second operation of dragging the information to the prompt box, the prompt box expands into the second window. When the first information is dragged to When within the second window, processing the first information within the second window includes:
响应于将所述第一信息向所述提示框拖拽的操作,所述提示框展开为第二窗口;In response to the operation of dragging the first information to the prompt box, the prompt box expands into a second window;
响应于将所述第一信息向所述第二窗口拖拽的操作,所述第二窗口放大显示,当所述第一信息被拖拽到放大后的所述第二窗口时,在所述放大后的所述第二窗口内处理所述第一信息。In response to the operation of dragging the first information to the second window, the second window is enlarged and displayed. When the first information is dragged to the enlarged second window, in the The first information is processed within the enlarged second window.
也就是说,用户将第一信息向提示框拖拽的过程中,提示框先展开成第二窗口,此时,第二窗口可以以较小的面积显示,当用户继续将第一信息向第二窗口拖拽时,第二窗口放大显示,直到第一信息被拖拽到第二窗口内,由第二窗口处理第一信息。采用这种方式,刚开始时,提示框对下层的遮挡非常小,如果用户拖拽第一信息,说明用户有通过第二窗口处理第一信息的意图,则提示框展开成第二窗口,如果用户继续将第一信息向第二窗口拖拽,则第二窗口放大以方便用户查看第二窗口内第一信息的处理。That is to say, when the user drags the first information to the prompt box, the prompt box first expands into a second window. At this time, the second window can be displayed in a smaller area. When the user continues to drag the first information to the third window, When dragging two windows, the second window is enlarged and displayed until the first information is dragged into the second window, and the second window processes the first information. In this way, at the beginning, the prompt box blocks the lower layer very little. If the user drags the first information, it means that the user has the intention to process the first information through the second window, and the prompt box expands into the second window. If The user continues to drag the first information to the second window, and the second window is enlarged to facilitate the user to view the processing of the first information in the second window.
在一种可能的设计中,所述第二窗口放大显示,包括:所述第二窗口直接放大到第一预设面积;或者,随着所述拖拽操作向所述第二窗口的距离靠近,所述第二窗口的显示面积逐渐放大到第二预设面积。举例来说,用户拖拽第一信息时,当用户手指逐渐靠近第二窗口时,第二窗口逐渐放大,由于第二窗口逐渐放大,就可以缩短用户将第一信息拖拽到第二窗口内部的难度,换言之,第二窗口逐渐放大的过程中,用户手指到第二窗口的距离也就逐渐缩小,就会很容易的将第一信息拖拽到第二窗口内,操作便捷。In one possible design, the second window is enlarged and displayed, including: the second window is directly enlarged to the first preset area; or, as the drag operation approaches the distance of the second window , the display area of the second window is gradually enlarged to the second preset area. For example, when the user drags the first information, when the user's finger gradually approaches the second window, the second window gradually enlarges. Since the second window gradually enlarges, the time required for the user to drag the first information into the second window can be shortened. In other words, as the second window gradually enlarges, the distance between the user's finger and the second window gradually shrinks, and the first information can be easily dragged into the second window, which is convenient to operate.
在一种可能的设计中,所述第一预设面积和/或所述第二预设面积小于或等于所述显示 屏的全部显示面积。例如,所述第一预设面积包括:所述显示屏的四分之一面积,或者,所述显示屏的全部显示面积;所述第二预设面积包括:所述显示屏的四分之一面积,或者,所述显示屏的全部显示面积。In a possible design, the first preset area and/or the second preset area is smaller than or equal to the display area. the entire display area of the screen. For example, the first preset area includes: one quarter of the area of the display screen, or the entire display area of the display screen; the second preset area includes: one quarter of the display screen. An area, or the entire display area of the display screen.
在一种可能的设计中,所述第二窗口放大显示,包括:所述第二窗口具有一个信息插入位时,所述第二窗口放大到第一面积,所述第一面积小于所述显示屏的尺寸;所述第二窗口具有多个信息插入位时,所述第二窗口放大到第二面积或所述显示屏的全屏,所述第二面积小于所述显示屏的尺寸,所述第二面积大于所述第一面积。可以理解的是,第二窗口中具有一个信息插入位时,第一信息插入第二窗口时不会出现插入位置出错的情况,所以第二窗口可以以较小的面积显示。第二窗口内具有多个信息插入位时,为了方便用户准确的将第一信息插入到某个插入位中,第二窗口以较大的面积显示,不会导致第一信息插错位置,提升用户体验。In a possible design, the second window is enlarged for display, including: when the second window has an information insertion position, the second window is enlarged to a first area, and the first area is smaller than the display area. The size of the screen; when the second window has multiple information insertion positions, the second window is enlarged to a second area or the full screen of the display screen, and the second area is smaller than the size of the display screen. The second area is larger than the first area. It can be understood that when there is an information insertion position in the second window, there will be no insertion position error when the first information is inserted into the second window, so the second window can be displayed in a smaller area. When there are multiple information insertion slots in the second window, in order to facilitate the user to accurately insert the first information into a certain insertion slot, the second window is displayed in a larger area, which will not cause the first information to be inserted in the wrong position and improve user experience.
在一种可能的设计中,响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上出现第二窗口,包括:响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上同时出现第二窗口和第三窗口;所述第三窗口和所述第二窗口位于所述第一窗口上层,且所述第二窗口和所述第三窗口的显示面积均小于所述第一窗口的显示面积。In one possible design, in response to the first operation for selecting the first information in the first window, a second window appears on the display screen, including: in response to the first operation for selecting the first information in the first window. In the first operation of the first information, the second window and the third window appear on the display screen at the same time; the third window and the second window are located above the first window, and the second window and the second window appear on the display screen at the same time. The display area of the third window is smaller than the display area of the first window.
也就是说,电子设备显示第一窗口时,可以通过第一操作唤出多个窗口,多个窗口以较小的显示面积显示。如果用户想要将第一窗口内的第一信息通过多个窗口中的第二窗口处理,只需要将第一信息拖拽到第二窗口内即可,这种方式不仅操作便捷,而且用户可以在唤出的多个窗口中选择用于处理第一信息的目标窗口(例如第二窗口),用户体验更高。That is to say, when the electronic device displays the first window, it can call up multiple windows through the first operation, and the multiple windows are displayed with a smaller display area. If the user wants to process the first information in the first window through the second window among multiple windows, he only needs to drag the first information into the second window. This method is not only convenient to operate, but also allows the user to Selecting a target window for processing the first information (for example, the second window) among the multiple windows that are called up provides a higher user experience.
在一种可能的设计中,所述第一窗口、所述第二窗口和所述第三窗口是同一应用或不同应用的窗口。In a possible design, the first window, the second window and the third window are windows of the same application or different applications.
在一种可能的设计中,所述第二窗口具有信息插入位,所述第三窗口不具有信息插入位的情况下,所述第三窗口与所述第二窗口区别显示,以提示用户所述第二窗口能够处理所述第一信息,所述第三窗口无法处理所述第一信息。可以理解的是,有的窗口无法插入信息,所以这些窗口被唤出时,可以与其它窗口区别显示,这样用户就不会将第一窗口内的第一窗口向这些窗口拖拽,提升操作准确性。In a possible design, the second window has an information insertion position, and when the third window does not have an information insertion position, the third window is displayed differently from the second window to prompt the user what the information insertion position is. The second window can process the first information, and the third window cannot process the first information. It is understandable that some windows cannot insert information, so when these windows are called up, they can be displayed differently from other windows, so that users will not drag the first window in the first window to these windows, improving the accuracy of the operation. sex.
在一种可能的设计中,所述方法还包括:接收到用于将所述第二窗口和所述第三窗口中任一个窗口向所述显示屏边缘的拖拽操作;响应于所述拖拽操作,一并隐藏所述第二窗口和所述第三窗口。也就是说,唤出多个窗口之后,如果用户将其中一个窗口向显示屏边缘拖拽,可以将多个窗口一并隐藏,实现多个窗口的快速隐藏,操作便捷,避免影响用户在第一窗口内的业务处理。In a possible design, the method further includes: receiving a drag operation for moving any one of the second window and the third window to the edge of the display screen; responding to the drag operation Drag operation to hide the second window and the third window together. That is to say, after calling up multiple windows, if the user drags one of the windows to the edge of the display screen, multiple windows can be hidden together, realizing rapid hiding of multiple windows, easy operation, and avoiding affecting the user's first viewing experience. Business processing within the window.
在一种可能的设计中,所述一并隐藏所述第二窗口和所述第三窗口,包括:所述第二窗口和所述第三窗口一并消失或一并缩小显示。通过这种方式,当识别到用户拖拽以隐藏一个悬浮窗口的意图时,可以一并隐藏叠加在第一窗口上的所有悬浮窗口,从而减少悬浮窗口对第一窗口画面的遮挡。采用这种方式,可以一次性隐藏所有悬浮窗口,减少了用户的交互步骤。In a possible design, hiding the second window and the third window together includes: the second window and the third window disappearing together or reducing the display together. In this way, when the user's intention of dragging to hide a floating window is recognized, all floating windows superimposed on the first window can be hidden together, thereby reducing the blocking of the first window screen by the floating window. In this way, all floating windows can be hidden at once, reducing user interaction steps.
在一种可能的设计中,所述第二窗口和所述第三窗口一并消失的情况下,还包括:通过一键操作,一并恢复所述第二窗口和所述第三窗口的显示位置和/或面积。也就是说,所有悬浮窗口一并消失时,通过一键操作可以唤出隐藏的所有悬浮窗口,不需要一一唤出,节省操作步骤。 In a possible design, when the second window and the third window disappear together, the method further includes: restoring the display of the second window and the third window together through a one-key operation. Location and/or area. That is to say, when all floating windows disappear together, all hidden floating windows can be called up with one-click operation. There is no need to call them out one by one, which saves operation steps.
在一种可能的设计中,所述第二窗口和所述第三窗口一并缩小显示的情况下,所述方法还包括:接收到针对缩小后的第二窗口的操作,恢复所述第二窗口的显示位置和/或面积,所述第三窗口保持缩小显示状态;或者,接收到针对缩小后的第二窗口的操作,一并恢复所述第二窗口和所述第三窗口的显示位置和/或面积。例如,第二窗口和第三窗口均以提示框的方式缩小显示,一种方式为,用户点击第二窗口的提示框时,只恢复了第二窗口的面积和/或位置,第三窗口仍然缩小显示。另一种方式为用户点击第二窗口的提示框时,一并恢复了第二窗口和第三窗口的面积和/或位置,可以节省操作步骤。In a possible design, when the second window and the third window are reduced for display together, the method further includes: receiving an operation for the reduced second window, restoring the second window. The display position and/or area of the window, the third window remains in a reduced display state; or, upon receiving an operation for the reduced second window, the display positions of the second window and the third window are restored together. and/or area. For example, the second window and the third window are both reduced and displayed in the form of prompt boxes. One way is that when the user clicks the prompt box of the second window, only the area and/or position of the second window is restored, and the third window remains unchanged. Reduce the display. Another method is that when the user clicks the prompt box of the second window, the areas and/or positions of the second window and the third window are restored together, which can save operating steps.
第二方面,还提供一种显示方法,应用于电子设备,所述电子设备包括显示屏,所述方法包括:In a second aspect, a display method is also provided, applied to an electronic device, where the electronic device includes a display screen, and the method includes:
所述显示屏上显示第一窗口和第二窗口,所述第二窗口位于所述第一窗口上层且所述第二窗口的显示面积小于第一窗口的显示面积;A first window and a second window are displayed on the display screen, the second window is located above the first window and the display area of the second window is smaller than the display area of the first window;
响应于用于将所述第一窗口内第一信息向所述第二窗口的拖拽操作,所述第二窗口放大显示,并且在放大后的所述第二窗口内处理所述第一信息。In response to a drag operation for dragging the first information in the first window to the second window, the second window is enlarged and displayed, and the first information is processed in the enlarged second window. .
在一种可能的设计中,在放大后的所述第二窗口内处理所述第一信息,包括:In one possible design, processing the first information within the enlarged second window includes:
将所述第一信息复制到所述放大后的第二窗口内,或者,在所述放大后的第二窗口内搜索所述第一信息的相关信息。Copy the first information into the enlarged second window, or search for information related to the first information in the enlarged second window.
在一种可能的设计中,所述显示屏上显示第一窗口和第二窗口,包括:所述显示屏上显示所述第一窗口以及所述第二窗口的提示信息;响应于用于将所述第一窗口内第一信息向所述第二窗口的拖拽操作,所述第二窗口放大显示,包括:响应于用于将所述第一窗口内第一信息向所述第二窗口的提示信息的拖拽操作,所述第二窗口放大显示。In a possible design, displaying the first window and the second window on the display screen includes: displaying prompt information of the first window and the second window on the display screen; responding to the The drag operation of the first information in the first window to the second window, and the enlarged display of the second window includes: in response to the operation of dragging the first information in the first window to the second window. By dragging the prompt information, the second window is enlarged and displayed.
在一种可能的设计中,响应于用于将所述第一信息向所述第二窗口的拖拽操作,所述第二窗口放大显示,包括:In one possible design, in response to a drag operation for dragging the first information to the second window, the second window is enlarged and displayed, including:
随着所述拖拽操作向所述第二窗口的靠近,所述第二窗口的显示面积逐渐放大。As the drag operation approaches the second window, the display area of the second window is gradually enlarged.
在一种可能的设计中,所述第二窗口的面积放大到预设面积,所述预设面积为所述电子设备默认设置的面积或用户设置的面积。In a possible design, the area of the second window is enlarged to a preset area, and the preset area is a default area of the electronic device or an area set by the user.
在一种可能的设计中,所述方法还包括:所述第二窗口具有一个信息插入位时,所述第二窗口放大到第一面积,所述第一面积小于所述显示屏的尺寸;所述第二窗口具有多个信息插入位时,所述第二窗口放大到所述显示屏的全屏。In a possible design, the method further includes: when the second window has an information insertion position, the second window is enlarged to a first area, and the first area is smaller than the size of the display screen; When the second window has multiple information insertion positions, the second window is enlarged to the full screen of the display screen.
第三方面,还提供一种显示方法,应用于电子设备,所述电子设备包括显示屏,所述方法包括:In a third aspect, a display method is also provided, applied to an electronic device, the electronic device includes a display screen, and the method includes:
所述显示屏上显示第一窗口和第二窗口,所述第二窗口位于所述第一窗口上层且所述第二窗口的显示面积小于第一窗口的显示面积;A first window and a second window are displayed on the display screen, the second window is located above the first window and the display area of the second window is smaller than the display area of the first window;
响应于用于将所述第一窗口内第一信息向所述第二窗口的拖拽操作,在所述第二窗口内处理所述第一信息;In response to a drag operation for moving the first information in the first window to the second window, process the first information in the second window;
响应于在所述第一窗口内的第一操作,所述第二窗口缩小显示或者隐藏。In response to the first operation in the first window, the second window is reduced to display or hidden.
在一种可能的设计中,在所述第二窗口内处理所述第一信息,包括:将所述第一信息复制到所述第二窗口内,或者,在所述第二窗口内搜索所述第一信息的相关信息。In a possible design, processing the first information in the second window includes: copying the first information into the second window, or searching for all the information in the second window. information related to the first information.
在一种可能的设计中,所述第一操作包括:在所述第一窗口内任意位置的点击操作;或者,对所述第一窗口信息的选择操作。In a possible design, the first operation includes: a click operation at any position within the first window; or a selection operation on information in the first window.
在一种可能的设计中,响应于在所述第一窗口内的第一操作,所述第二窗口缩小显示 或者隐藏,包括:响应于所述拖拽操作被释放,所述第二窗口缩小显示或者隐藏。In a possible design, in response to a first operation in the first window, the second window shrinks the display or hiding, including: in response to the drag operation being released, the second window is reduced to display or hidden.
在一种可能的设计中,所述显示屏上显示第一窗口和第二窗口,包括:In a possible design, a first window and a second window are displayed on the display screen, including:
所述显示屏上显示第一窗口;A first window is displayed on the display screen;
响应于对所述第一窗口内第一信息的选择操作,所述第二窗口出现。The second window appears in response to a selection operation on the first information within the first window.
在一种可能的设计中,所述显示屏上显示第一窗口和第二窗口,包括:所述显示屏上显示所述第一窗口和所述第二窗口的提示信息;响应于用于将所述第一窗口内第一信息向所述第二窗口的拖拽操作,在所述第二窗口内处理所述第一信息,包括:响应于用于将所述第一窗口内第一信息向所述第二窗口的提示信息的拖拽操作,在所述第二窗口内处理所述第一信息。In a possible design, displaying the first window and the second window on the display screen includes: displaying prompt information of the first window and the second window on the display screen; responding to the The drag operation of the first information in the first window to the second window, and processing the first information in the second window includes: responding to the method for transferring the first information in the first window Drag and drop the prompt information to the second window to process the first information in the second window.
在一种可能的设计中,响应于用于将所述第一窗口内第一信息向所述第二窗口的提示信息的拖拽操作,在所述第二窗口内处理所述第一信息,包括:响应于用于将所述第一窗口内第一信息向所述第二窗口的提示信息的拖拽操作,所述第二窗口放大显示,并在放大后的所述第二窗口内处理所述第一信息。In one possible design, in response to a drag operation for transferring the first information in the first window to the prompt information in the second window, the first information is processed in the second window, The method includes: in response to a drag operation for moving the first information in the first window to the prompt information in the second window, the second window is enlarged and displayed, and processed in the enlarged second window. the first information.
第四方面,还提供一种显示方法,应用于电子设备,所述电子设备包括显示屏,所述方法包括:In a fourth aspect, a display method is also provided, applied to an electronic device, the electronic device includes a display screen, and the method includes:
所述显示屏上显示第一窗口、第二窗口和第三窗口,所述第二窗口和所述第三窗口位于所述第一窗口上层,且所述第二窗口和所述第三窗口的显示面积均小于第一窗口的显示面积;A first window, a second window and a third window are displayed on the display screen, the second window and the third window are located above the first window, and the second window and the third window are The display area is smaller than the display area of the first window;
响应于用于将所述第二窗口和所述第三窗口中任一窗口向显示屏边缘的拖拽操作,所述第二窗口和所述第三窗口一并缩小显示或者隐藏。In response to a drag operation for dragging any one of the second window and the third window to the edge of the display screen, the second window and the third window are reduced, displayed or hidden together.
在一种可能的设计中,所述方法还包括:响应于用于将所述第一窗口内第一信息向所述第二窗口的拖拽操作,在所述第二窗口内处理所述第一信息;和/或,In a possible design, the method further includes: in response to a drag operation for moving the first information in the first window to the second window, processing the first information in the second window. a message; and/or,
响应于用于将所述第一窗口内第二信息向所述第三窗口的拖拽操作,在所述第三窗口内处理所述第二信息。In response to a drag operation for dragging the second information in the first window to the third window, the second information is processed in the third window.
在一种可能的设计中,在所述第二窗口内处理所述第一信息,包括:将所述第一信息复制到所述第二窗口内,或者,在所述第二窗口内搜索所述第一信息的相关信息;在所述第三窗口内处理所述第二信息,包括:将所述第二信息复制到所述第三窗口内,或者,在所述第三窗口内搜索所述第二信息的相关信息。In a possible design, processing the first information in the second window includes: copying the first information into the second window, or searching for all the information in the second window. information related to the first information; processing the second information in the third window includes: copying the second information to the third window, or searching for all the information in the third window. information related to the second information.
在一种可能的设计中,所述第二窗口具有信息插入位,所述第三窗口不具有信息插入位的情况下,所述第三窗口与所述第二窗口区别显示,以提示用户无法将所述第一窗口内的信息复制到所述第三窗口内。In a possible design, the second window has an information insertion bit, and when the third window does not have an information insertion bit, the third window is displayed differently from the second window to prompt the user that the information insertion bit is not available. Copy the information in the first window to the third window.
第五方面,还提供一种电子设备,包括:In a fifth aspect, an electronic device is also provided, including:
处理器,存储器,以及,一个或多个程序;processor, memory, and, one or more programs;
其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如上述第一方面至第四方面中任一方面所述的方法步骤。Wherein, the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the first aspect as described above. to the method steps described in any one of the fourth aspects.
第六方面,还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面至第四方面中任一方面所述的方法步骤。In a sixth aspect, a computer-readable storage medium is also provided. The computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute the above-mentioned first aspect to the third aspect. The method steps described in any of the four aspects.
第七方面,还提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算 机上运行时,使得所述计算机执行如上述第一方面至第四方面中任一方面所述的方法步骤。In a seventh aspect, a computer program product is also provided, including a computer program. When the computer program calculates When running on the computer, the computer is caused to execute the method steps described in any one of the above first to fourth aspects.
第八方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例第二方面或第三方面的技术方案,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。In an eighth aspect, embodiments of the present application further provide a chip, which is coupled to a memory in an electronic device and used to call a computer program stored in the memory and execute the technical solution of the second or third aspect of the embodiment of the present application. , "Coupling" in the embodiment of this application means that two components are directly or indirectly combined with each other.
上述第二方面至第八方面的有益效果,参见第一方面的有益效果,不重复赘述。For the beneficial effects of the above-mentioned second aspect to the eighth aspect, please refer to the beneficial effects of the first aspect and will not be repeated.
附图说明Description of the drawings
图1为本申请一实施例提供的多窗口显示的示意图;Figure 1 is a schematic diagram of a multi-window display provided by an embodiment of the present application;
图2A为本申请一实施例提供的电子设备的硬件结构示意图;Figure 2A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图2B为本申请一实施例提供的电子设备的软件结构示意图;Figure 2B is a schematic diagram of the software structure of the electronic device provided by an embodiment of the present application;
图3为本申请一实施例提供的电子设备打开多窗口的示意图;Figure 3 is a schematic diagram of an electronic device opening multiple windows according to an embodiment of the present application;
图4为本申请一实施例提供的多窗口移动或缩放的示意图;Figure 4 is a schematic diagram of multi-window movement or scaling provided by an embodiment of the present application;
图5为本申请一实施例提供的跨窗口的信息粘贴过程的示意图;Figure 5 is a schematic diagram of a cross-window information pasting process provided by an embodiment of the present application;
图6为本申请一实施例提供的一种应用场景的示意图;Figure 6 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图7A为本申请一实施例提供的另一种应用场景的示意图;Figure 7A is a schematic diagram of another application scenario provided by an embodiment of the present application;
图7B为本申请一实施例提供的另一种应用场景的示意图;Figure 7B is a schematic diagram of another application scenario provided by an embodiment of the present application;
图8为本申请一实施例提供的第二窗口唤出的示意图;Figure 8 is a schematic diagram of calling up a second window provided by an embodiment of the present application;
图9为本申请一实施例提供的第二窗口隐藏的示意图;Figure 9 is a schematic diagram of hiding the second window provided by an embodiment of the present application;
图10A至图10B为本申请一实施例提供的后台处理流程的示意图;Figures 10A and 10B are schematic diagrams of the background processing flow provided by an embodiment of the present application;
图11为本申请一实施例提供的第二窗口唤出的另一种示意图;Figure 11 is another schematic diagram of calling up the second window provided by an embodiment of the present application;
图12为本申请一实施例提供的跨窗口信息处理的示意图;Figure 12 is a schematic diagram of cross-window information processing provided by an embodiment of the present application;
图13为本申请一实施例提供的窗口放大过程的示意图;Figure 13 is a schematic diagram of the window enlargement process provided by an embodiment of the present application;
图14为本申请一实施例提供的窗口放大过程的另一种示意图;Figure 14 is another schematic diagram of the window enlargement process provided by an embodiment of the present application;
图15为本申请一实施例提供的后台处理流程的示意图;Figure 15 is a schematic diagram of the background processing flow provided by an embodiment of the present application;
图16为本申请一实施例提供的多窗口唤出的示意图;Figure 16 is a schematic diagram of multi-window calling provided by an embodiment of the present application;
图17为本申请一实施例提供的多窗口隐藏的示意图;Figure 17 is a schematic diagram of multi-window hiding provided by an embodiment of the present application;
图18为本申请一实施例提供的多窗口隐藏的另一种示意图;Figure 18 is another schematic diagram of multi-window hiding provided by an embodiment of the present application;
图19为本申请一实施例提供的后台处理流程的示意图;Figure 19 is a schematic diagram of the background processing flow provided by an embodiment of the present application;
图20为本申请一实施例提供的多窗口唤出的另一种示意图;Figure 20 is another schematic diagram of multi-window calling provided by an embodiment of the present application;
图21为本申请一实施例提供的电子设备的结构示意图。Figure 21 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本说明书的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。例如,第一窗口和第二窗口并不代表二者的重要程度或者代表二者的顺序,仅仅是为了区分描述。在本申请实施例中,“和/或”,仅仅是描述关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中 字符“/”,一般表示前后关联对象是一种“或”的关系。The at least one involved in the embodiments of this application includes one or more; where multiple means greater than or equal to two. In addition, it should be understood that in the description of this specification, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood to express or imply relative importance, nor can they be understood to express Or suggestive order. For example, the first window and the second window do not represent the importance of the two or the order of the two, but are only used to differentiate the description. In the embodiment of this application, "and/or" only describes the association relationship, indicating that three relationships can exist, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. these three situations. In addition, in this article The character "/" generally indicates that the related objects are an "or" relationship.
本申请实施例中所提到的方位用语,例如,“上”、“下”、“左”、“右”、“内”、“外”等,仅是参考附图的方向,因此,使用的方位用语是为了更好、更清楚地说明及理解本申请实施例,而不是指示或暗指所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。The directional terms mentioned in the embodiments of the present application, such as "upper", "lower", "left", "right", "inner", "outer", etc., are only for reference to the direction of the drawings. Therefore, use The orientation terms are used to describe and understand the embodiments of the present application better and more clearly, but do not indicate or imply that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. Limitations of Application Examples.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本说明书的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the specification. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
本申请实施例提供的显示方法适用于电子设备。电子设备具有显示功能,例如具有至少一个显示屏。在一些实施例中,所述电子设备可以是手机、平板电脑、笔记本电脑等便捷式电子设备;还可以是手表、手环等穿戴设备;或者,还可以是电视机、冰箱等智能家居设备;或者,还可以是车载设备等等,或者,还可以是虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、混合现实技术(Mixed Reality,MR)设备,等等,总之本申请实施例不限定电子设备的具体类型。The display method provided by the embodiment of the present application is suitable for electronic devices. The electronic device has a display function, such as at least one display screen. In some embodiments, the electronic device may be a portable electronic device such as a mobile phone, a tablet, or a laptop; it may also be a wearable device such as a watch or a bracelet; or it may be a smart home device such as a television or a refrigerator; Or, it can also be a vehicle-mounted device, etc., or it can also be a virtual reality (Virtual Reality, VR) device, an augmented reality (Augmented Reality, AR) device, a mixed reality technology (Mixed Reality, MR) device, etc., in short The embodiments of this application do not limit the specific type of electronic equipment.
图2A示出了电子设备的结构示意图。所述电子设备例如是手机。如图2A所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Figure 2A shows a schematic structural diagram of an electronic device. The electronic device is, for example, a mobile phone. As shown in Figure 2A, the electronic device 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, and a battery 142. Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions. The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器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)接口等。In some embodiments, 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. interface, pulse code modulation (PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), universal input and output (general- purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块 160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The wireless communication function of the electronic device can be through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, implementation of modem processor and baseband processor. Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备上的包括无线局域网(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转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems for use in electronic devices. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (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 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 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 (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
显示屏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)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display the display interface of the application, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。其中,ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元 件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like. Among them, the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor The software passes the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序(例如爱奇艺应用,微信应用等)的软件代码等。存储数据区可存储电子设备使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store the operating system and the software code of at least one application program (such as iQiyi application, WeChat application, etc.). The storage data area can store data (such as images, videos, etc.) generated during the use of the electronic device. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。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. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过一个或多个扬声器170A收听音乐,或收听免提通话等外放场景。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through one or more speakers 170A, or listen to external playback scenarios such as hands-free calls.
受话器170B,也称“听筒”,可以是一个或多个,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", may be one or more and is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be equipped with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface can be a USB interface, or it can be a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 .
陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开 合。在一些实施例中,当电子设备是翻盖机时,电子设备可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. Electronic devices can use magnetic sensors 180D to detect the opening of flip-top leather cases combine. In some embodiments, when the electronic device is a flip machine, the electronic device may detect opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic devices can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device can utilize the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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. Electronic devices emit infrared light through light-emitting diodes. Electronic devices use photodiodes 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. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device. Electronic devices can use the proximity light sensor 180G to detect when the user holds the electronic device close to the ear and talk, so that the screen can be automatically turned off to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 based on perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touching.
指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, answer incoming calls with fingerprints, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备对电池142加热,以避免低温导致电子设备异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142 to prevent the low temperature from causing abnormal shutdown of the electronic device. In some other embodiments, when the temperature is lower than another threshold, the electronic device performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a location different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口 195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device. The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195, or pull it out from the SIM card interface 195 to achieve contact and separation from the electronic device.
可以理解的是,图2A所示的部件并不构成对电子设备的具体限定。本发明实施例中的电子设备可以包括比图2A中更多或更少的部件。此外,图2A中的部件之间的组合/连接关系也是可以调整修改的。It can be understood that the components shown in FIG. 2A do not constitute a specific limitation to the electronic device. Electronic devices in embodiments of the present invention may include more or fewer components than in Figure 2A. In addition, the combination/connection relationship between the components in Figure 2A can also be adjusted and modified.
图2B示出了本申请一实施例提供的电子设备的软件结构框图。FIG. 2B shows a software structure block diagram of an electronic device provided by an embodiment of the present application.
电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。假设电子设备是Android系统,可包括应用程序层(简称应用层),应用程序框架层(简称框架层)(framework,FWK),硬件层等等。The software structure of electronic equipment can be a layered architecture. For example, the software can be divided into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. Assuming that the electronic device is an Android system, it may include an application layer (referred to as the application layer), an application framework layer (referred to as the framework layer) (framework, FWK), a hardware layer, and so on.
其中,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。Among them, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,例如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。例如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc. Among them, the window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions of the electronic device 100 . For example, call status management (including connected, hung up, etc.). The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, and more. The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。其中,应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system. The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android. Among them, the application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions. System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing. 2D Graphics Engine is a drawing engine for 2D drawing.
在另一些实施例中,系统库中还可以包括窗口处理模块,用于控制窗口的隐藏、出现、缩小、放大等处理。需要说明的是,窗口处理模块可以是系统库中的一个模块,也可以是 其它层中的模块,例如应用程序框架层或内核层中的模块,本申请实施例不作限定。In other embodiments, the system library may also include a window processing module for controlling the hiding, appearance, shrinking, and enlarging of windows. It should be noted that the window processing module can be a module in the system library, or it can be Modules in other layers, such as modules in the application framework layer or kernel layer, are not limited in this embodiment of the application.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。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.
下面以图2B所示的软件结构为例,示例性的说明本申请实施例提供的显示方法的处理流程。The following takes the software structure shown in FIG. 2B as an example to illustrate the processing flow of the display method provided by the embodiment of the present application.
例如,电子设备的显示屏上显示第一窗口时,硬件层中的触摸传感器接收到第一输入事件。第一输入事件包括操作类型、操作时间、在显示屏上的位置等等。触摸传感器将第一输入事件上报高层,例如系统库中的窗口处理模块。高层确定第一输入事件是针对第一窗口内的第一信息的选择操作,则调用显示驱动在显示屏上显示第二窗口。例如,高层(如,窗口处理模块)可以通过自由(FreeForm)窗口技术(将在后文介绍)显示第二窗口。显示屏显示出第二窗口之后,若触摸传感器再次接收到输入事件,例如第二输入事件,则将第二输入事件上报高层,例如窗口处理模块。窗口处理模块确定第二输入事件是针对第一信息向第二窗口的拖拽操作,则控制第二窗口来处理第一信息,例如,将第一信息复制到第二窗口内或者在第二窗口内搜索第一信息的相关信息,等等。For example, when the first window is displayed on the display screen of the electronic device, the touch sensor in the hardware layer receives the first input event. The first input event includes operation type, operation time, position on the display screen, etc. The touch sensor reports the first input event to a higher level, such as the window processing module in the system library. The high-level layer determines that the first input event is a selection operation for the first information in the first window, and then calls the display driver to display the second window on the display screen. For example, the high-level layer (eg, window processing module) can display the second window through FreeForm window technology (will be introduced later). After the display screen displays the second window, if the touch sensor receives an input event again, such as a second input event, the second input event is reported to a higher level, such as a window processing module. The window processing module determines that the second input event is a drag operation of the first information to the second window, and then controls the second window to process the first information, for example, copies the first information to the second window or in the second window. Search for information related to the first information, etc.
下面主要以电子设备是手机为例,结合附图对本申请的显示方法作详细介绍。The following mainly takes the electronic device as a mobile phone as an example, and introduces the display method of the present application in detail with reference to the accompanying drawings.
为了提升处理效率,电子设备(例如手机)上可以显示多窗口。例如,手机接收到用于打开多窗口的操作时,显示多窗口。其中,用于打开多窗口的操作可以是各种类型的操作。一种可实现方式为,请参见图3中的(a),手机显示窗口A。当接收到从屏幕右边缘(或左边缘)向内滑动的操作或者从屏幕右边缘(或左边缘)向内滑动且停顿一定时长的操作时,唤出智慧多窗口应用栏301,如图3中的(b)所示。智慧多窗口应用栏301中包括各种应用的图标,例如应用1至应用3的图标。假设电子设备接收到针对智慧多窗口应用栏301中应用1的图标的操作,则打开应用1的窗口B,即显示如图3中的(c)所示的多窗口界面302。界面302中包括窗口B和窗口A。窗口B位于窗口A的上层。因此,通过图3所示的方式可以打开多窗口,但是,需要说明的是,图3仅是举例了打开多窗口的一种方式,在实际应用中,还可以通过其它方式(例如指关节敲击屏幕的方式)打开多窗口,本申请实施例不一一举例。In order to improve processing efficiency, multiple windows can be displayed on electronic devices (such as mobile phones). For example, when the phone receives an operation to open multiple windows, the multiple windows are displayed. Among them, the operation for opening multiple windows can be various types of operations. One possible implementation method is, please refer to (a) in Figure 3, the mobile phone displays window A. When receiving an operation of sliding inward from the right edge (or left edge) of the screen or an operation of sliding inward from the right edge (or left edge) of the screen and pausing for a certain period of time, the smart multi-window application bar 301 is called up, as shown in Figure 3 As shown in (b). The smart multi-window application bar 301 includes icons of various applications, such as icons of Application 1 to Application 3. Assume that the electronic device receives an operation for the icon of application 1 in the smart multi-window application bar 301, and then opens window B of application 1, that is, displays the multi-window interface 302 as shown in (c) of Figure 3. The interface 302 includes window B and window A. Window B is located above window A. Therefore, multiple windows can be opened through the method shown in Figure 3. However, it should be noted that Figure 3 is only an example of a method for opening multiple windows. In actual applications, other methods (such as knuckle tapping) can also be used to open multiple windows. (click the screen) to open multiple windows. The embodiments of this application will not give examples one by one.
示例性地,窗口A可以是全屏显示的窗口(或者理解为全屏显示的应用界面),窗口B可以是悬浮显示在窗口A上的小窗,即,窗口B的显示面积小于窗口A。例如,窗口B可以是自由(FreeForm)窗口(或称:自由小窗)。自由窗口可以认为是一种系统级悬浮窗口。关于自由窗口的含义可以参见后文介绍。在一些实施例中,电子设备显示多窗口时,小窗(如,窗口B)的位置可以移动。例如,请参见图4中的(a),当接收到针对窗口B的状态栏401的操作(例如在状态栏401的空白区域内任一位置的长按且拖拽操作)时,可以改变窗口B的位置,如图4中的(b)。For example, window A may be a window displayed in full screen (or understood as an application interface displayed in full screen), and window B may be a small window displayed suspended on window A. That is, the display area of window B is smaller than that of window A. For example, window B can be a free (FreeForm) window (or: free small window). A free window can be considered a system-level floating window. For the meaning of the free window, please refer to the following introduction. In some embodiments, when the electronic device displays multiple windows, the position of the small window (eg, window B) can be moved. For example, please refer to (a) in Figure 4. When an operation on the status bar 401 of window B is received (such as a long press and drag operation anywhere in the blank area of the status bar 401), the window can be changed. The position of B is as shown in (b) in Figure 4.
在另一些实施例中,电子设备显示多窗口时,小窗(如,窗口B)的尺寸可以调整,即可以缩小或放大。例如,请参见图4中的(c),当接收到针对窗口B的状态栏401内按键402的操作时,放大显示窗口B,例如窗口B完全覆盖窗口A,例如全屏显示,如图4中的(d)。再例如,请参见图4中的(e),当接收到针对窗口B的状态栏401内按键403的操作时,窗口B最小化,如图4中的(f)。图4中的(f)中,窗口B最小化之后,窗口A上可以显示一个提示框404,提示框404用于提示用户窗口B被最小化。示例性的,当接收到针对提示框404的操作(例如,点击操作)时,可以恢复窗口B,例如恢复到图 4中的(e)所示的样子。In other embodiments, when the electronic device displays multiple windows, the size of the small window (eg, window B) can be adjusted, that is, it can be reduced or enlarged. For example, please refer to (c) in Figure 4. When an operation on the button 402 in the status bar 401 of window B is received, window B is enlarged and displayed, for example, window B completely covers window A, for example, full screen display, as shown in Figure 4 of(d). For another example, please refer to (e) in Figure 4. When an operation on the key 403 in the status bar 401 of window B is received, window B is minimized, as in (f) in Figure 4. In (f) of Figure 4, after window B is minimized, a prompt box 404 may be displayed on window A. The prompt box 404 is used to prompt the user that window B is minimized. For example, when an operation (for example, a click operation) on the prompt box 404 is received, window B can be restored, for example, restored to the image shown in FIG. As shown in (e) in 4.
可以理解的是,当电子设备显示多窗口时,位于下层的窗口会被位于上层的窗口遮挡。此时,如果用户想要在下层窗口内处理业务,需要移开上层窗口,或者缩小上层窗口的尺寸,例如最小化上层窗口。举例来说,继续以图3中的(c)为例,窗口B位于窗口A上层。若用户想要在窗口A内处理业务,需要手动移动窗口B的位置,或者,最小化窗口B。窗口B最小化后,如果用户需要切换到窗口B内操作,就需要再次打开窗口B,显然此过程操作较为繁琐。It is understandable that when an electronic device displays multiple windows, the window located on the lower layer will be blocked by the window located on the upper layer. At this time, if the user wants to process business in the lower window, he needs to move the upper window or reduce the size of the upper window, for example, minimize the upper window. For example, continuing to take (c) in Figure 3 as an example, window B is located above window A. If the user wants to process business in window A, he needs to manually move the position of window B, or minimize window B. After window B is minimized, if the user needs to switch to operate in window B, he or she needs to open window B again. Obviously, this process is more cumbersome.
为了方便理解,举一个例子,请参见图5中的(a),电子设备显示窗口A和窗口B,窗口B位于窗口A上层。若用户想将窗口A中的信息复制到窗口B中,需要执行如下步骤:To facilitate understanding, for an example, please refer to (a) in Figure 5. The electronic device displays window A and window B, and window B is located above window A. If the user wants to copy the information in window A to window B, he needs to perform the following steps:
步骤1,最小化窗口B。例如,如图5中的(a),电子设备接收到点击按键403的操作时,窗口B最小化为图5中的(b)中的提示框404。Step 1, minimize window B. For example, as shown in (a) of Figure 5, when the electronic device receives an operation of clicking the button 403, window B is minimized to the prompt box 404 in (b) of Figure 5.
步骤2,在窗口A内复制信息。例如,如图5中的(b),窗口A内包括文字信息“华为”,用户在窗口A内复制该文字信息(例如,用户在窗口A内选择该文字信息并长按复制)。Step 2, copy the information in window A. For example, as shown in (b) of Figure 5, window A includes text information "Huawei", and the user copies the text information in window A (for example, the user selects the text information in window A and long-presses to copy).
步骤3,再次打开窗口B,在窗口B内粘贴信息。例如,如图5中的(b),电子设备接收到点击提示框404的操作时,再次打开窗口B。用户在窗口B内粘贴信息,例如在窗口B内长按以唤出粘贴按键并点击粘贴按键完成复制(该粘贴过程图中未示出),如图5中的(c)。Step 3: Open window B again and paste the information in window B. For example, as shown in (b) of Figure 5 , when the electronic device receives the operation of clicking the prompt box 404, it opens window B again. The user pastes information in window B, for example, long presses in window B to call up the paste button and clicks the paste button to complete the copy (the paste process is not shown in the figure), as shown in (c) in Figure 5 .
以上步骤1至步骤3完成信息从窗口A复制到窗口B的过程。如果用户还需要回到窗口A处理业务,则需要再次最小化窗口B。由此可见,电子设备多窗口显示时,如果用户需要将下层窗口内的信息复制到上层窗口内时,操作非常繁琐,严重影响用户体验。当然,电子设备将上层窗口内的信息复制到下层窗口也需要多个操作步骤,继续以图5为例,步骤1,在上层的窗口B内复制信息。步骤2,关闭上层窗口B。步骤3,将信息粘贴到下层窗口A。4,再打开窗口B,显然,步骤非常繁琐。The above steps 1 to 3 complete the process of copying information from window A to window B. If the user still needs to return to window A to handle business, he needs to minimize window B again. It can be seen that when the electronic device displays multiple windows, if the user needs to copy the information in the lower window to the upper window, the operation is very cumbersome and seriously affects the user experience. Of course, the electronic device also requires multiple operation steps to copy the information in the upper window to the lower window. Continuing to take Figure 5 as an example, step 1 is to copy the information in the upper window B. Step 2: Close the upper window B. Step 3. Paste the information into lower window A. 4. Open window B again. Obviously, the steps are very complicated.
为了避免下层窗口被上层窗口遮挡,影响对下层窗口的业务处理,本申请实施例提供一种解决方案,电子设备显示第一窗口时,若需要第二窗口,可以唤出第二窗口,以使第二窗口显示于第一窗口上层;若不需要第二窗口,可以隐藏第二窗口,这样,第二窗口(上层窗口)不会一直遮挡第一窗口(下层窗口),提升交互体验。示例性的,电子设备显示第一窗口时,需要第二窗口的情况,例如包括:电子设备显示第一窗口时,需要第二窗口来处理第一窗口内的信息,例如,需要将第一窗口内的信息复制到第二窗口,或者,需要使用第二窗口搜索第一窗口内的信息,或者,需要在第二窗口内打开第一信息,等等。In order to prevent the lower window from being blocked by the upper window and affecting the business processing of the lower window, embodiments of the present application provide a solution. When the electronic device displays the first window, if a second window is needed, the second window can be called up so that The second window is displayed above the first window; if the second window is not needed, the second window can be hidden. In this way, the second window (upper window) will not always block the first window (lower window), improving the interactive experience. For example, when the electronic device displays the first window, the second window is needed. For example, the situation includes: when the electronic device displays the first window, the second window is needed to process the information in the first window. For example, the first window needs to be The information in the first window needs to be copied to the second window, or the second window needs to be used to search for the information in the first window, or the first information needs to be opened in the second window, etc.
举例来说,电子设备显示第一窗口时,响应于第一预设操作(例如,用于选择第一窗口内第一信息的第一操作),在显示屏上出现第二窗口;响应于第二预设操作(例如,用于将第一信息拖拽到第二窗口的第二操作),在第二窗口内处理第一信息。也就是说,在某个时刻,电子设备的显示屏上可以只显示第一窗口,当需要第二窗口来处理第一窗口内的第一信息时,可以唤出第二窗口,如此,第一窗口不会一直被第二窗口遮挡,不会影响对第一窗口的操作体验。而且,如果用户想要将第一窗口内的第一信息通过第二窗口处理(例如将第一信息复制到第二窗口内),只需要将第一信息拖拽到第二窗口内即可,操作便捷。 For example, when the electronic device displays the first window, in response to the first preset operation (for example, the first operation for selecting the first information in the first window), the second window appears on the display screen; in response to the first Two preset operations (for example, a second operation for dragging the first information to the second window) to process the first information in the second window. That is to say, at a certain moment, only the first window can be displayed on the display screen of the electronic device. When the second window is needed to process the first information in the first window, the second window can be called up. In this way, the first window can be displayed on the display screen of the electronic device. The window will not always be blocked by the second window, which will not affect the operating experience of the first window. Moreover, if the user wants to process the first information in the first window through the second window (for example, copy the first information into the second window), he only needs to drag the first information into the second window. Easy to operate.
以下介绍本申请实施例提供的两种应用场景,但是本申请不限定于以下两种应用场景。Two application scenarios provided by the embodiments of this application are introduced below, but this application is not limited to the following two application scenarios.
应用场景一Application scenario one
示例性的,如图6中的(a),电子设备显示第一窗口。第一窗口可以是电子设备中任一应用(例如,即时通信应用、备忘录、相册、浏览器等等)的窗口。图6中的(a)中,以第一窗口是电子设备中浏览器应用的窗口为例,第一窗口中显示文字信息、图片信息等。用户可以在第一窗口内执行各种操作,例如,在第一窗口内选择信息,对选择/选中的信息进行复制。为了方便用户将在第一窗口内选择的信息复制到第二窗口,电子设备可以自动出现第二窗口。Exemplarily, as in (a) of Figure 6, the electronic device displays a first window. The first window may be a window of any application in the electronic device (eg, instant messaging application, memo, photo album, browser, etc.). In (a) of Figure 6 , taking the first window as a window of a browser application in an electronic device as an example, text information, picture information, etc. are displayed in the first window. The user can perform various operations in the first window, for example, select information in the first window and copy the selected/selected information. In order to facilitate the user to copy the information selected in the first window to the second window, the electronic device can automatically appear the second window.
例如,如图6中的(b),电子设备接收到第一预设操作时,在显示屏上出现第二窗口。示例性的,第一预设操作例如包括:对第一窗口内第一信息的选择操作(例如对第一窗口内第一信息的长按操作),或者,对第一窗口内第一信息执行选择操作(例如对第一窗口内第一信息的长按操作)后持续N秒不松手的操作,N为正整数,可以默认设置或自定义,又或者,对第一窗口内第一信息执行选择操作后开始拖拽的操作。其中,第一信息可以是第一窗口内的文字、图片等等,本申请实施例不作限定,图6中的(b)中以第一信息是文字为例。可以理解的是,继续参见图6中的(b),电子设备在接收到对第一信息的长按操作之前,还可以包括:确定第一信息。例如,接收到在第一窗口内任意位置的点击操作,唤出起始光标和结束光标,确定起始光标和结束光标之间的信息为第一信息。应理解,用户可以改变起始光标和结束光标的位置,而且,为了方便用户区分,起始光标与结束光标之间的第一信息与第一窗口内其他信息区别显示,例如高亮或者暗底。For example, as shown in (b) of FIG. 6 , when the electronic device receives the first preset operation, a second window appears on the display screen. Exemplarily, the first preset operation includes, for example: a selection operation on the first information in the first window (such as a long press operation on the first information in the first window), or performing a selection operation on the first information in the first window. An operation that lasts for N seconds without letting go after a selection operation (such as a long press operation on the first information in the first window). N is a positive integer, which can be set by default or customized, or performed on the first information in the first window. Start the drag operation after selecting the operation. The first information may be text, pictures, etc. in the first window, which is not limited in the embodiment of the present application. In (b) of FIG. 6 , it is taken as an example that the first information is text. It can be understood that, continuing to refer to (b) in FIG. 6 , before receiving the long press operation on the first information, the electronic device may further include: determining the first information. For example, a click operation at any position in the first window is received, the start cursor and the end cursor are called, and the information between the start cursor and the end cursor is determined to be the first information. It should be understood that the user can change the positions of the start cursor and the end cursor, and, in order to facilitate the user to distinguish, the first information between the start cursor and the end cursor is displayed differently from other information in the first window, such as highlighting or dark background. .
需要说明的是,图6中,以第二窗口是即时通信应用中与某个联系人的聊天窗口为例,实际上,第二窗口还可以是其它应用的窗口,将在后文介绍。It should be noted that in Figure 6, the second window is a chat window with a certain contact in an instant messaging application as an example. In fact, the second window can also be a window of other applications, which will be introduced later.
继续参见图6中的(b),第二窗口出现之后,若电子设备接收到第二预设操作时,将第一信息复制到第二窗口内。示例性的,第二预设操作例如是将第一信息向第二窗口拖拽,且将第一信息拖拽到第二窗口内部的操作。例如,结合图6中的(b)和(c),电子设备接收到将第一信息拖拽到第二窗口的输入框中的拖拽操作时,第一信息被复制到第二窗口(即时通信应用的聊天窗口)的输入框中,如果用户想要将输入框中的信息发送给对方,则点击第二窗口中的发送按键即可。又或者,结合图6中的(b)和(d),电子设备接收到将第一信息拖拽到第二窗口的输入框中的拖拽操作后,第二窗口中直接将第一信息发送给了对方,无需将第一信息复制到输入框后由用户手动点击发送按键,更加节省操作。Continuing to refer to (b) in FIG. 6 , after the second window appears, if the electronic device receives the second preset operation, it copies the first information into the second window. For example, the second preset operation is an operation of dragging the first information to the second window and dragging the first information into the second window. For example, combining (b) and (c) in Figure 6, when the electronic device receives a drag operation of dragging the first information into the input box of the second window, the first information is copied to the second window (immediately In the input box of the chat window of a communication application), if the user wants to send the information in the input box to the other party, just click the send button in the second window. Or, combining (b) and (d) in Figure 6, after the electronic device receives the drag operation of dragging the first information into the input box of the second window, the first information is directly sent to the second window. To the other party, there is no need to copy the first information to the input box and then the user manually clicks the send button, which saves operations.
可选的,在第一信息对应的浮动元素在电子设备屏幕上移动的过程中,电子设备可以根据该浮动元素当前所处区域,显示对应提示(如以角标的形式提示),以提示用户当前区域是否支持交互。如,结合图6中的(c),在第一信息移动到可交互的区域,如输入框的所在区域时,该第一信息上可以显示角标(例如,加号等)提示用户当前区域支持交互。在用户在输入框处释放拖拽后,该第一信息可粘贴到输入框中。Optionally, while the floating element corresponding to the first information moves on the screen of the electronic device, the electronic device can display a corresponding prompt (such as a prompt in the form of a corner mark) according to the area where the floating element is currently located to remind the user of the current location. Whether the region supports interaction. For example, combined with (c) in Figure 6, when the first information moves to an interactive area, such as the area where the input box is located, a corner mark (for example, a plus sign, etc.) can be displayed on the first information to prompt the user for the current area. Support interaction. After the user releases drag at the input box, the first information can be pasted into the input box.
此外,示例性的,电子设备在拖拽过程中还可以显示被拖拽的对象的阴影随用户的手指移动的动画,例如,文字、图片的阴影。或者理解为,电子设备可以将用户拖拽的对象以浮动元素显示,在拖拽过程中,电子设备可以显示该浮动元素随手指移动的动画。因此,本申请中,拖拽第一信息也可以理解为拖拽第一信息所对应的浮动元素。需要说明的是,在图6所示的场景中,包括两个操作,对第一窗口内第一信息的选择操作,以及将第一信息拖拽到第二窗口内的拖拽操作,这两个操作可以是两个彼此独立的操作,即,执行完对 第一信息的选择操作之后,手指可以离开屏幕,然后执行对第一信息的拖拽操作;当然,这两个操作也可以是连贯、无间隔的,即,执行完对第一信息的选择操作之后,手指不离开屏幕,直接执行对第一信息的拖拽操作,这样的话,操作更为流畅、便捷。In addition, for example, during the dragging process, the electronic device can also display an animation in which the shadow of the dragged object moves with the user's finger, for example, the shadow of text or pictures. Or it can be understood that the electronic device can display the object dragged by the user as a floating element, and during the dragging process, the electronic device can display the animation of the floating element moving with the finger. Therefore, in this application, dragging the first information can also be understood as dragging the floating element corresponding to the first information. It should be noted that the scene shown in Figure 6 includes two operations, the selection operation of the first information in the first window, and the dragging operation of dragging the first information into the second window. Each operation can be two operations that are independent of each other, that is, after executing the After the selection operation of the first information, the finger can leave the screen, and then perform the drag operation on the first information; of course, the two operations can also be consecutive and without gaps, that is, after the selection operation on the first information is completed After that, the finger does not leave the screen and directly performs the drag operation on the first information. In this case, the operation is smoother and more convenient.
通过图6可知,当用户想要将当前窗口(即第一窗口)内的信息复制到其它窗口(即第二窗口)时,只需要在当前窗口内选择信息,或者在当前窗口内选择信息并开始执行拖拽操作,就可以唤出第二窗口,然后将选择的信息拖拽到第二窗口就可以完成复制。为了方便理解,请对比图6与图5,通过对比可知,图5中将一个窗口内的信息向另一个窗口复制需要至少3个步骤,但是图6中,将一个窗口内的信息向另一个窗口复制可以一步(选择信息并拖拽信息)完成,操作过程简化,提升用户体验。As can be seen from Figure 6, when the user wants to copy the information in the current window (i.e., the first window) to another window (i.e., the second window), he only needs to select the information in the current window, or select the information in the current window and Start the drag operation to call up the second window, and then drag the selected information to the second window to complete the copy. For easier understanding, please compare Figure 6 with Figure 5. Through comparison, we can see that in Figure 5, copying the information in one window to another window requires at least three steps, but in Figure 6, copying the information in one window to another window Window copying can be completed in one step (selecting information and dragging it), simplifying the operation process and improving user experience.
应用场景二Application scenario two
示例性的,如图7A中的(a),电子设备显示第一窗口,以第一窗口是电子设备中备忘录应用的窗口为例,第一窗口中显示文字信息。用户可以在第一窗口内选择信息,对选择/选中的信息进行搜索,例如在网络中搜索。为了方便用户对第一窗口内选择的信息进行搜索,电子设备可以自动出现第二窗口。Exemplarily, as shown in (a) of FIG. 7A , the electronic device displays a first window. Taking the first window as a memo application window in the electronic device as an example, text information is displayed in the first window. The user can select information in the first window and search for the selected/selected information, for example, search on the Internet. In order to facilitate the user to search the information selected in the first window, the electronic device can automatically appear the second window.
例如,如图7A中的(b),电子设备接收到第一预设操作时,在显示屏上出现第二窗口。示例性的,第一预设操作例如包括:对第一窗口内第一信息的选择操作,或者,对第一窗口内第一信息执行选择操作后开始拖拽的操作,具体参见图6中对第一预设操作的描述,为了节省篇幅不重复赘述。For example, as shown in (b) of FIG. 7A , when the electronic device receives the first preset operation, a second window appears on the display screen. Exemplarily, the first preset operation includes: a selection operation on the first information in the first window, or an operation of selecting the first information in the first window and then starting dragging. For details, see the operation of dragging the first information in the first window. The description of the first preset operation will not be repeated in order to save space.
需要说明的是,图7A中,以第二窗口是浏览器应用为例,实际上,第二窗口还可以是其它应用的窗口,将在后文介绍。It should be noted that in FIG. 7A , the second window is a browser application as an example. In fact, the second window can also be a window of other applications, which will be introduced later.
继续参见图7A中的(b),第二窗口出现之后,若电子设备接收到第二预设操作,在第二窗口内搜索第一信息。示例性的,第二预设操作例如将第一信息向第二窗口拖拽,且将第一信息拖拽到第二窗口内部的操作。例如,结合图7A中的(b)和(c),电子设备接收到将第一信息拖拽到第二窗口的输入框的拖拽操作时,在第二窗口的输入框中输入第一信息,如果用户想要搜索第一信息,则点击第二窗口中的搜索按键即可。又或者,结合图7A中的(b)和(d),电子设备接收到将第一信息拖拽到第二窗口的输入框的拖拽操作后,第二窗口中直接展示对第一信息的搜索结果,无需由用户手动点击搜索按键,更加节省操作。Continuing to refer to (b) in FIG. 7A , after the second window appears, if the electronic device receives the second preset operation, it searches for the first information in the second window. For example, the second preset operation is an operation of dragging the first information to the second window and dragging the first information into the second window. For example, combining (b) and (c) in Figure 7A, when the electronic device receives a drag operation of dragging the first information to the input box of the second window, the first information is input in the input box of the second window. , if the user wants to search the first information, just click the search button in the second window. Or, combining (b) and (d) in Figure 7A, after the electronic device receives the drag operation of dragging the first information to the input box of the second window, the second window directly displays the first information. Search results eliminate the need for users to manually click the search button, which saves operations.
需要说明的是,在图7A所示的场景中,包括两个操作,对第一窗口内第一信息的选择操作,以及将第一信息拖拽到第二窗口内的拖拽操作,这两个操作的介绍可以参见图6,不重复赘述。通过图7A可知,当用户想要对当前窗口(即第一窗口)内的信息进行搜索时,只需要在当前窗口内选择信息,或者在当前窗口内选择信息并开始执行拖拽操作,就可以唤出第二窗口,然后将选择的信息拖拽到第二窗口内就可以完成搜索,操作便捷,用户体验较高。It should be noted that the scene shown in Figure 7A includes two operations, the selection operation of the first information in the first window, and the dragging operation of dragging the first information into the second window. The introduction of each operation can be seen in Figure 6 and will not be repeated. It can be seen from Figure 7A that when the user wants to search for information in the current window (i.e. the first window), he only needs to select the information in the current window, or select the information in the current window and start the drag and drop operation. Call up the second window, and then drag the selected information into the second window to complete the search. The operation is convenient and the user experience is high.
应用场景三Application scenario three
示例性的,请参见图7B中的(a),电子设备显示第一窗口,第一窗口以浏览器应用的窗口为例,第一窗口内包括文字、图片等。一般,第一窗口内的图片是缩略图,为了看清楚图片,用户可以打开第一窗口内的图片。为了方便用户打开第一窗口内的图片,电子设备可以自动出现第二窗口。For example, please refer to (a) in FIG. 7B. The electronic device displays a first window. The first window is a window of a browser application as an example. The first window includes text, pictures, etc. Generally, the pictures in the first window are thumbnails. In order to see the pictures clearly, the user can open the pictures in the first window. In order to facilitate the user to open the picture in the first window, the electronic device can automatically appear the second window.
例如,请参见图7B中的(b),电子设备接收到针对图片的第一预设操作时,唤出第 二窗口,第二窗口是用于打开图片的应用窗口,例如相册、图片浏览器、画图等应用的窗口。参见图7B中的(c),电子设备接收到针对图片的第二预设操作时,在第二窗口内使用相册应用打开图片。图7B中的(c)以第二窗口占显示屏1/4为例,第二窗口还可以占用较大的面积(比如全屏),以方便用户在第二窗口内查看放大后的图像,或者也可以在第二窗口内对图像涂鸦或其它处理等等。其中,第一预设操作和第二预设操作请参见前文,不重复赘述。For example, please refer to (b) in Figure 7B. When the electronic device receives the first preset operation for the picture, it calls out the Second window, the second window is an application window used to open pictures, such as photo album, picture browser, painting and other application windows. Referring to (c) in FIG. 7B , when the electronic device receives the second preset operation for the picture, it uses the photo album application to open the picture in the second window. (c) in Figure 7B takes the second window occupying 1/4 of the display screen as an example. The second window can also occupy a larger area (such as full screen) to facilitate the user to view the enlarged image in the second window, or You can also graffiti or perform other processing on the image in the second window. For the first preset operation and the second preset operation, please refer to the above and will not be repeated.
以下对本申请实施例提供的技术方案进行详细的描述,为了方便理解,下文主要以应用场景一为例进行说明,应理解,对于应用场景二或其它应用场景也同样适用。The technical solutions provided by the embodiments of the present application are described in detail below. To facilitate understanding, the following description mainly takes application scenario one as an example. It should be understood that the same applies to application scenario two or other application scenarios.
实施例一Embodiment 1
如图8中的(a),电子设备显示第一窗口,第一窗口中包括第一信息。第一窗口可以是电子设备中任一应用的窗口,例如,可以是前文图6中浏览器应用的第一窗口或图7A中的备忘录应用的第一窗口,等等。第一信息可以是第一窗口内的文字或图像等,本申请不作限定。As shown in (a) of Figure 8, the electronic device displays a first window, and the first window includes first information. The first window may be a window of any application in the electronic device, for example, it may be the first window of the browser application in FIG. 6 or the first window of the memo application in FIG. 7A, and so on. The first information may be text or images in the first window, which is not limited in this application.
在一些实施例中,电子设备接收到第一预设操作时,显示屏上自动出现第二窗口。第二窗口位于第一窗口的上层,且显示面积小于第一窗口的显示面积。示例性的,第一预设操作例如可以包括:对第一窗口内第一信息的选择操作(例如,对第一信息的长按操作);或者,对第一窗口内第一信息执行选择操作后持续N秒不松手的操作,N为正整数,N的具体取值可以是用户设置的或系统默认设置的;又或者,对第一窗口内第一信息执行选择操作后不松手开始拖拽(或移动)的操作。应该理解的是,此处是对第一预设操作的实现方式的举例,实际应用中,其它类型的操作也是可以的,只要可以唤出第二窗口即可。In some embodiments, when the electronic device receives the first preset operation, the second window automatically appears on the display screen. The second window is located on an upper layer of the first window, and its display area is smaller than that of the first window. For example, the first preset operation may include: a selection operation on the first information in the first window (for example, a long press operation on the first information); or, a selection operation on the first information in the first window. The operation lasts for N seconds without letting go. N is a positive integer. The specific value of N can be set by the user or the system default setting; or, after selecting the first information in the first window, do not let go and start dragging. (or move) operation. It should be understood that this is an example of how to implement the first preset operation. In actual applications, other types of operations are also possible, as long as the second window can be called up.
示例性的,第二窗口可以是具有信息插入位的窗口,如此,第一窗口内的信息可以粘贴到第二窗口内。或者,第二窗口是电子设备在显示第一窗口之前上一个显示的窗口。示例性的,用户在与联系人A的聊天窗口内与该联系人聊天,之后,用户打开某个网站发现某信息,意图将该信息分享给联系人A,那么在显示网页窗口的情况下就可以唤出与联系人A的聊天窗口,并将网页窗口内的信息拖拽到与联系人A的聊天窗口内,操作快速、便捷。又或者,第二窗口是后台运行应用的窗口。又或者,第二窗口是电子设备中使用频率大于预设频率的应用的窗口。一般,使用频率较高的应用是用户常用或喜欢的应用,采用这种方式,可以快速唤出用户常用或喜欢的应用的窗口。又或者,第二窗口是特定应用的窗口,所述特定应用例如可以是电子设备中默认的应用或者用户指定应用。For example, the second window may be a window with an information insertion position, so that the information in the first window can be pasted into the second window. Alternatively, the second window is a window last displayed by the electronic device before displaying the first window. For example, if the user chats with contact A in the chat window with the contact, and then opens a website and finds certain information with the intention of sharing the information with contact A, then when the web page window is displayed, You can call up the chat window with Contact A and drag the information in the web page window into the chat window with Contact A. The operation is fast and convenient. Or, the second window is a window running an application in the background. Alternatively, the second window is a window of an application in the electronic device whose usage frequency is greater than the preset frequency. Generally, applications that are used more frequently are applications that are commonly used or liked by users. In this way, the windows of applications that are commonly used or liked by users can be quickly called up. Alternatively, the second window is a window of a specific application, and the specific application may be, for example, a default application in the electronic device or a user-specified application.
其中,第二窗口与第一窗口可以是不同应用的窗口或同一应用的不同窗口。The second window and the first window may be windows of different applications or different windows of the same application.
以第二窗口与第一窗口对应不同应用为例,即第一窗口对应第一应用,第二窗口对应第二应用,第一应用与第二应用不同。示例性的,第二应用可以满足如下条件中的至少一个:Taking the second window and the first window corresponding to different applications as an example, that is, the first window corresponds to the first application, the second window corresponds to the second application, and the first application and the second application are different. For example, the second application may satisfy at least one of the following conditions:
(a)第二应用是特定应用。所谓特定应用可以是系统默认设置好的应用或者用户自定义的应用。例如,用户事先设置了第二应用是即时通信应用,那么电子设备接收到第一预设操作时,就唤出即时通信应用的窗口。又例如,第二应用是备忘录应用,那么电子设备接收到第一预设操作时,唤出备忘录的窗口,这样,用户可以将浏览的信息随时记录到备忘录中。这种方式中,电子设备显示第一应用的第一窗口时,通过第一预设操作唤出的是特定应用的第二窗口,无需用户手动打开特定应用,操作便捷,而且,用户可以将自己经常使用的应用或者喜欢的应用设置为特定应用,这样,在电子设备显示第一应用的第一窗 口时,可以很方便的唤出自己常用应用或喜欢的应用的窗口。(a) The second application is a specific application. The so-called specific application can be an application set by the system by default or a user-defined application. For example, if the user has set the second application to be an instant messaging application in advance, then when the electronic device receives the first preset operation, the window of the instant messaging application will be called up. For another example, if the second application is a memo application, then when the electronic device receives the first preset operation, it calls up the memo window. In this way, the user can record the browsed information into the memo at any time. In this method, when the electronic device displays the first window of the first application, the second window of the specific application is called up through the first preset operation. There is no need for the user to manually open the specific application. The operation is convenient, and the user can Frequently used applications or favorite applications are set as specific applications, so that the first window of the first application is displayed on the electronic device When you open your mouth, you can easily call up the window of your frequently used applications or favorite applications.
(b)第二应用是后台运行的应用。例如,在第一应用在前台运行之前,前台所打开过的应用。例如,在图8中的(a)之前,电子设备前台运行第二应用(例如显示第二应用的第二窗口),用户将第二应用切换到后台,前台打开第一应用的第一窗口,那么当电子设备接收到第一预设操作时,唤出第二应用的第二窗口。(b) The second application is an application running in the background. For example, applications that were opened in the foreground before the first application was run in the foreground. For example, before (a) in Figure 8, the electronic device runs the second application in the foreground (for example, displays the second window of the second application), the user switches the second application to the background, and the first window of the first application opens in the foreground, Then, when the electronic device receives the first preset operation, the second window of the second application is called up.
(c)第二应用是预设时长内用户使用频率大于预设频率的应用。所述预设时长可以是一天、12小时、3小时等等,具体取值本申请实施例不作限定。(c) The second application is an application that the user uses more frequently than the preset frequency within the preset time period. The preset time period may be one day, 12 hours, 3 hours, etc., and the specific value is not limited in the embodiment of this application.
(d)第二应用是与用户选择的内容相关的应用。当电子设备接收到第一预设操作时,可以根据用户拖拽的内容自动识别第二窗口中需要打开的第二应用。例如,当用户拖拽的内容为图片时,第二应用可以为相册应用,当用户将图片拖拽到第二窗口时,可以使用相册应用打开该图片,并显示在第二窗口中。(d) The second application is an application related to the content selected by the user. When the electronic device receives the first preset operation, it can automatically identify the second application that needs to be opened in the second window based on the content dragged by the user. For example, when the content dragged by the user is a picture, the second application can be a photo album application. When the user drags the picture to the second window, the picture can be opened using the photo album application and displayed in the second window.
在一些实施例中,第二窗口可以是第二应用的任一窗口。例如,第二窗口是第二应用最近一次打开过的窗口,或者,第二窗口是第二应用的预设窗口,所述预设窗口例如是系统默认设置的窗口(例如第二应用启动时打开的首个窗口)或者用户设置的窗口。以第二应用是即时通信应用为例,用户可以设置第二窗口是该即时通信应用中与联系人A的聊天窗口。这样,当电子设备显示第一应用的第一窗口时,用户可以通过第一预设操作快速唤出即时通信应用,并且唤出的是即时通信应用中用户事先设置好的与联系人A的聊天窗口。In some embodiments, the second window may be any window of the second application. For example, the second window is the window that was last opened by the second application, or the second window is a preset window of the second application. The preset window is, for example, a window set by the system by default (for example, it is opened when the second application is started. the first window) or the window set by the user. Taking the second application as an instant messaging application as an example, the user can set the second window to be a chat window with contact A in the instant messaging application. In this way, when the electronic device displays the first window of the first application, the user can quickly call up the instant messaging application through the first preset operation, and what is called up is the chat with contact A that has been preset by the user in the instant messaging application. window.
以第二窗口与第一窗口对应同一应用为例,即第一窗口和第二窗口是第一应用的不同窗口,这种情况下,第二窗口可以满足如下条件中的至少一个:Taking the second window and the first window corresponding to the same application as an example, that is, the first window and the second window are different windows of the first application. In this case, the second window can satisfy at least one of the following conditions:
(e)第二窗口是第一应用的预设窗口。所谓预设窗口可以是第一应用的系统默认窗口(例如第一应用启动时打开的首个窗口)或者用户设置的窗口。以第一应用是即时通信应用为例,第一应用的预设窗口例如可以是第一应用中与联系人A的聊天窗口,那么电子设备显示即时通信应用的第一窗口时,通过第一预设操作,自动出现该即时通信应用中与联系人A的聊天窗口。(e) The second window is the default window of the first application. The so-called default window may be a system default window of the first application (for example, the first window opened when the first application is started) or a window set by the user. Taking the first application as an instant messaging application as an example, the preset window of the first application may be, for example, a chat window with contact A in the first application. Then, when the electronic device displays the first window of the instant messaging application, the first preset window is used. Set the operation to automatically appear the chat window with contact A in the instant messaging application.
(f)第二窗口是第一应用在显示第一窗口之前上一个显示的窗口。也可以理解为,第二窗口显示的界面是第一窗口显示的界面的上一级界面。例如,第一应用先打开第二窗口,然后打开第一窗口,第一窗口覆盖了第二窗口,即前台不再显示第二窗口,那么用户通过第一预设操作可以唤出第二窗口。(f) The second window is the last window displayed by the first application before the first window is displayed. It can also be understood that the interface displayed in the second window is the upper-level interface of the interface displayed in the first window. For example, if the first application first opens the second window and then opens the first window, and the first window covers the second window, that is, the second window is no longer displayed in the foreground, then the user can call up the second window through the first preset operation.
(g)第二窗口是预设时长内第一应用中打开频率大于预设频率的窗口。以第一应用是即时通信应用为例,用户在某段时间内与联系人A的聊天窗口打开频率较高,因此,电子设备在显示即时通信应用的第一窗口时,用户可以通过第一预设操作唤出该即时通信应用中与联系人A的聊天窗口,即第二窗口,符合用户近期使用习惯。(g) The second window is a window whose opening frequency is greater than the preset frequency in the first application within the preset time period. Taking the first application as an instant messaging application as an example, the user opens the chat window with contact A relatively frequently within a certain period of time. Therefore, when the electronic device displays the first window of the instant messaging application, the user can open the chat window through the first preset window. Assume that the operation calls up the chat window with contact A in the instant messaging application, that is, the second window, which is in line with the user's recent usage habits.
在一些实施例中,第二窗口出现时,可以显示于显示屏上的任一位置。例如,图8中,第二窗口出现时显示于显示屏的右上角区域,当然,还可以显示于显示屏的左上角区域、左下角区域、右下角区域,等等,本申请实施例不作限定。或者,第二窗口出现时的显示位置可以是系统默认设置好的位置,或者,第二窗口上次消失(或收起)时的位置,或者,用户事先设置好的位置,总之,本申请对第二窗口的显示位置不作限定。In some embodiments, when the second window appears, it can be displayed at any position on the display screen. For example, in Figure 8, the second window is displayed in the upper right corner area of the display screen when it appears. Of course, it can also be displayed in the upper left corner area, lower left corner area, lower right corner area, etc. of the display screen. This is not limited by the embodiment of the present application. . Alternatively, the display position when the second window appears can be the position set by the system by default, or the position when the second window disappeared (or was folded) last time, or the position set by the user in advance. In short, this application is The display position of the second window is not limited.
在另一些实施例中,第二窗口出现时,占用的显示面积可以是预设面积,例如,显示屏的1/4,或者,全部显示屏;或者,第二窗口的显示面积也可以用户设置。In other embodiments, when the second window appears, the occupied display area may be a preset area, for example, 1/4 of the display screen, or the entire display screen; alternatively, the display area of the second window may also be set by the user. .
电子设备的显示屏上出现第二窗口之后,若接收到第二预设操作,可以在第二窗口内 处理第一信息,如图8中的(c)。示例性的,第二预设操作例如可以包括:将第一信息拖拽到第二窗口内部的操作,或者,将第一信息拖拽到第二窗口内部且停留预设时长的操作,等等。After the second window appears on the display screen of the electronic device, if the second preset operation is received, the second window can The first information is processed, as in (c) in Figure 8. For example, the second preset operation may include: an operation of dragging the first information into the second window, or an operation of dragging the first information into the second window and staying there for a preset period of time, etc. .
考虑到第二窗口内可能具有一个或多个信息插入位,如果具有一个信息插入位,第二预设操作可以是将第一信息拖拽到第二窗口内的任一位置。例如,图6中第二窗口内只有一个信息插入位即输入框内的信息插入位,这种情况下,第二预设操作可以是将第一信息拖拽到第二窗口的所述输入框内,或者,也可以是拖拽到第二窗口内的其它位置,即,不需要严格的要求将第一信息拖拽到输入框中也能够将第一信息填充到输入框中,对用户要求较低。如果第二窗口内具有多个信息插入位,第二预设操作可以是将第一信息拖拽到第二窗口内多个信息插入位中用户需要插入第一信息的某个插入位中,实现信息的精准插入。Considering that there may be one or more information insertion positions in the second window, if there is one information insertion position, the second preset operation may be to drag the first information to any position in the second window. For example, in Figure 6, there is only one information insertion position in the second window, that is, the information insertion position in the input box. In this case, the second preset operation may be to drag the first information to the input box of the second window. within the second window, or it can also be dragged to other positions in the second window. That is, there is no strict requirement to drag the first information into the input box and the first information can be filled into the input box. User requirements lower. If there are multiple information insertion slots in the second window, the second preset operation may be to drag the first information to a certain insertion slot where the user needs to insert the first information among the multiple information insertion slots in the second window. Precise insertion of information.
需要说明的是,前文中提到第一预设操作,此处提到第二预设操作,这两个操作可以是两个独立的操作,例如,第一预设操作是对第一信息的长按操作,第二预设操作是在所述长按操作后,手指离开屏幕之后,再次接触屏幕以拖拽第一信息的操作。或者,这两个操作也可以是持续的(或者连贯的)、无间断的操作,例如,第一预设操作是对第一信息的长按操作,第二预设操作是所述长按操作不停止,即手指不离开屏幕且拖拽第一信息的操作,又例如,第一预设操作是对第一信息的长按操作并开始拖拽的操作,第二预设操作是手指不离开屏幕且继续拖拽第一信息的操作。换言之,用户可以通过无间断的连贯操作,实现第二窗口的唤出以及将第一窗口内的第一信息通过第二窗口处理的目的,操作更为便捷、流畅。其中,第二窗口内处理第一信息例如包括:将第一信息复制到第二窗口内(即前文图6中的应用场景一),或者,在第二窗口内搜索第一信息(即前文图7A中的应用场景二),或者,在第二窗口内打开第一信息(即前文图7B中的应用场景三)。It should be noted that the first preset operation is mentioned above, and the second preset operation is mentioned here. These two operations can be two independent operations. For example, the first preset operation is for the first information. Long press operation, the second preset operation is an operation of touching the screen again to drag the first information after the finger leaves the screen after the long press operation. Alternatively, these two operations can also be continuous (or continuous), uninterrupted operations. For example, the first preset operation is a long press operation on the first information, and the second preset operation is the long press operation. Non-stop, that is, the operation of dragging the first information without leaving the finger. For another example, the first preset operation is the operation of long pressing the first information and starting to drag. The second preset operation is the operation of dragging the first information without leaving the finger. screen and continue dragging the first information. In other words, the user can achieve the purpose of calling up the second window and processing the first information in the first window through the second window through continuous and uninterrupted operations, making the operation more convenient and smooth. Among them, processing the first information in the second window includes, for example: copying the first information into the second window (i.e., application scenario 1 in the above figure 6), or searching for the first information in the second window (i.e., the above figure). Application scenario two in Figure 7A), or open the first information in the second window (ie, application scenario three in Figure 7B above).
在一些实施例中,第二窗口处理完第一信息之后,可以一直显示于显示屏上,或者也可以自动隐藏(例如,第二窗口切回到后台)。In some embodiments, after the second window processes the first information, it may always be displayed on the display screen, or it may be automatically hidden (for example, the second window is switched back to the background).
例如,第二预设操作是将第一信息拖拽到第二窗口内的拖拽操作,当检测到拖拽操作被释放(即手指离开屏幕)时,第二窗口自动隐藏。For example, the second preset operation is a drag operation of dragging the first information into the second window. When it is detected that the drag operation is released (that is, the finger leaves the screen), the second window is automatically hidden.
再例如,第二窗口处理完第一信息之后,等待预设时长后自动隐藏。For another example, after the second window processes the first information, it waits for a preset period of time and then automatically hides.
再例如,第二窗口处理完第一信息之后,等待预设时长,若预设时长内并未接收到在第二窗口内的任何操作,则第二窗口自动隐藏。For another example, after the second window processes the first information, it waits for a preset time period. If no operation in the second window is received within the preset time period, the second window is automatically hidden.
再例如,第二窗口处理完第一信息之后,若接收到在第一窗口内的第三预设操作,则第二窗口自动隐藏。一种实现方式中,第三预设操作例如可以是在第一窗口内任意位置的点击操作(单击或双击)。举例来说,用户将第一窗口内的信息复制到第二窗口之后,用户可能仍然需要在第一窗口内处理业务,此时用户可以在第一窗口内单击,以使第二窗口自动隐藏,以避免遮挡第一窗口,影响用户在第一窗口内的业务处理。另一种实现方式中,第三预设操作例如可以是在第一窗口内特定的交互操作,例如划动、双指捏合、双指放大、多指操作等复杂的交互操作。这样,当用户需要在第一窗口内进行复杂的交互时,可以自动隐藏第二窗口。需要说明的是,上面的实施例中提到的“第二窗口隐藏”可以包括:完全消失,或者,缩小显示,以尽可能的少遮挡第一窗口。例如,请参见图9中的(a),第二窗口缩小为一个提示框901,显示于显示屏右上角区域。又例如,第二窗口可以缩小为图5中的(b)所示的提示框404。这种情况下,第二窗口对第一窗口的遮挡不至于太多,用户可以在第一窗口内继续处理业务。 For another example, after the second window processes the first information, if it receives the third preset operation in the first window, the second window is automatically hidden. In one implementation, the third preset operation may be, for example, a click operation (single or double-click) anywhere in the first window. For example, after the user copies the information in the first window to the second window, the user may still need to process business in the first window. At this time, the user can click in the first window to automatically hide the second window. to avoid blocking the first window and affecting the user's business processing in the first window. In another implementation, the third preset operation may be, for example, a specific interactive operation within the first window, such as complex interactive operations such as swiping, pinching with two fingers, zooming in with two fingers, multi-finger operations, etc. In this way, when the user needs to perform complex interactions within the first window, the second window can be automatically hidden. It should be noted that the "hiding of the second window" mentioned in the above embodiment may include: completely disappearing, or reducing the display to block the first window as little as possible. For example, please refer to (a) in Figure 9. The second window is reduced to a prompt box 901, which is displayed in the upper right corner of the display screen. For another example, the second window may be reduced to the prompt box 404 shown in (b) of FIG. 5 . In this case, the second window will not block the first window too much, and the user can continue to process the business in the first window.
在一些实施例中,存在一种可能的情况:第二窗口先缩小显示,后完全消失。例如,以图8中的(c)为例,在第二窗口出现之后,接收到第二预设操作,以第二预设操作是将第一信息拖拽到第二窗口内的拖拽操作为例,当检测到拖拽操作释放(即手指离开屏幕)时,第二窗口缩小显示,如图9中的(a)所示。第二窗口缩小显示之后,若接收到在第一窗口内的第三预设操作,则第二窗口完全消失,如图9中的(b)。也就是说,用户将第一信息拖拽到第二窗口内,释放手指时,第二窗口缩小显示,当用户在第一窗口内执行第三预设操作时,第二窗口完全不显示。关于第三预设操作请参见前文介绍。In some embodiments, there is a possible situation: the second window is first reduced in size and then completely disappears. For example, taking (c) in Figure 8 as an example, after the second window appears, a second preset operation is received, and the second preset operation is a drag operation of dragging the first information into the second window. For example, when it is detected that the drag operation is released (that is, the finger leaves the screen), the second window is reduced and displayed, as shown in (a) in Figure 9 . After the second window is reduced and displayed, if the third preset operation is received in the first window, the second window disappears completely, as shown in (b) of Figure 9 . That is to say, when the user drags the first information into the second window and releases his finger, the second window is shrunk and displayed. When the user performs the third preset operation in the first window, the second window is not displayed at all. For the third preset operation, please refer to the previous introduction.
在另一些实施例中,电子设备根据第二预设操作的执行程度判断第二窗口需要隐藏还是一直显示于显示屏上。如前文所述第二预设操作是将第一信息向第二窗口的拖拽操作,例如,该拖拽操作虽然将第一信息向第二窗口所在的方向拖拽,但是并未将第一信息拖拽到第二窗口内部,说明用户有可能是误操作,那么在该拖拽操作被释放之后,第二窗口可以隐藏。再例如,所述拖拽操作将第一信息拖拽到了第二窗口内部、或者不仅拖拽到第二窗口内部且停留了一定的时长,则说明用户是要将第一信息复制到第二窗口内,则第二窗口可以一直显示在显示屏上,这样是考虑到用户将第一信息复制到第二窗口内下一步可能会在第二窗口内进行相应的处理,所以第二窗口一直显示着,等待用户处理。当然,第二窗口处理完第一信息之后,等待预设时长后也可以自动隐藏。或者,等待预设时长,若预设时长内并未接收到在第二窗口内的任何操作,则第二窗口自动隐藏。或者,若接收到在第一窗口内的第三预设操作,则第二窗口自动隐藏,等等。In other embodiments, the electronic device determines whether the second window needs to be hidden or always displayed on the display screen based on the execution degree of the second preset operation. As mentioned above, the second default operation is a drag operation of dragging the first information to the second window. For example, although the drag operation drags the first information in the direction of the second window, it does not drag the first information to the direction of the second window. If the information is dragged into the second window, it means that the user may have made a mistake. Then after the drag operation is released, the second window can be hidden. For another example, if the drag operation drags the first information into the second window, or not only drags it into the second window and stays there for a certain period of time, it means that the user wants to copy the first information to the second window. , the second window can always be displayed on the display screen. This is because the user may copy the first information to the second window and perform corresponding processing in the second window in the next step, so the second window is always displayed. , waiting for user processing. Of course, after the second window processes the first information, it can also be automatically hidden after waiting for a preset period of time. Or, wait for a preset time period, and if no operation in the second window is received within the preset time period, the second window is automatically hidden. Or, if the third preset operation in the first window is received, the second window is automatically hidden, and so on.
对应的,下面结合图10A和图10B,说明图8所示的实施例对应的后台处理过程。为了方便描述,以第二窗口是电子设备后台运行的第二应用的窗口为例,如图10A,后台流程包括如下步骤:Correspondingly, the background processing process corresponding to the embodiment shown in Figure 8 will be described below with reference to Figures 10A and 10B. For the convenience of description, take the second window as the window of the second application running in the background of the electronic device as an example, as shown in Figure 10A. The background process includes the following steps:
步骤一、电子设备前台显示第二应用的第二窗口。Step 1: The electronic device displays the second window of the second application in the foreground.
步骤二、电子设备将第二应用切换到后台,并记录后台应用列表。Step 2: The electronic device switches the second application to the background and records the background application list.
步骤三、电子设备前台打开第一应用的第一窗口。Step 3: Open the first window of the first application in the foreground of the electronic device.
步骤四、电子设备接收到第一窗口内第一信息的选择操作。Step 4: The electronic device receives the selection operation of the first information in the first window.
步骤五、电子设备根据后台应用列表,确定第二应用。Step 5: The electronic device determines the second application according to the background application list.
步骤六、电子设备前台出现第二应用的第二窗口。Step 6: The second window of the second application appears on the front desk of the electronic device.
示例性的,电子设备可以使用自由(FreeForm)窗口技术在显示屏上显示第二窗口。示例性的,FreeForm窗口可以理解为,具有在显示屏上进行动态的变化移动、尺寸缩放等的功能,如图10B所示,而且,FreeForm窗口中可以打开各种界面。例如,FreeForm窗口可以使用视图(view)技术进行界面内信息(文字、图像等)的布局、绘制等,为用户展示各种样式的界面。在一些实施例中,FreeForm窗口中新打开的界面可以覆盖之前打开的界面,如图10B。可以理解的是,在FreeForm窗口进行位置变化和/或尺寸缩放时,FreeForm窗口内界面也进行相应的位置变化和/或尺寸缩放,以适配FreeForm窗口的变化。For example, the electronic device may use FreeForm window technology to display the second window on the display screen. For example, the FreeForm window can be understood as having the functions of dynamic movement, size scaling, etc. on the display screen, as shown in Figure 10B, and various interfaces can be opened in the FreeForm window. For example, the FreeForm window can use view technology to lay out and draw information (text, images, etc.) in the interface to display various styles of interfaces to users. In some embodiments, the newly opened interface in the FreeForm window can overwrite the previously opened interface, as shown in Figure 10B. It can be understood that when the FreeForm window undergoes position changes and/or size scaling, the interface within the FreeForm window also undergoes corresponding position changes and/or size scaling to adapt to the changes in the FreeForm window.
步骤七、电子设备接收到第一信息的拖拽操作。Step 7: The electronic device receives the drag operation of the first information.
步骤八、电子设备将第一信息复制到第二窗口内。Step 8: The electronic device copies the first information into the second window.
步骤九、电子设备隐藏第二窗口。Step 9. The electronic device hides the second window.
实施例二Embodiment 2
在前面的实施例一(例如图8)中,第二窗口出现时就占用了一定的显示面积,例如,图8中的(b)中,第二窗口出现时占用显示屏的1/4。本实施例二中,第二窗口出现时可 以占用更小的显示面积,这样可以尽可能不遮挡第一窗口。In the previous embodiment 1 (for example, FIG. 8 ), the second window occupies a certain display area when it appears. For example, in (b) of FIG. 8 , the second window occupies 1/4 of the display screen when it appears. In this second embodiment, when the second window appears, you can to occupy a smaller display area, so as not to block the first window as much as possible.
示例性的,请参见图11中的(a),电子设备显示第一窗口,第一窗口内包括第一信息。电子设备接收到针对第一信息的选择操作时,显示屏上出现第二窗口,如图11中的(b),第二窗口以提示框1101的方式展示。示例性的,提示框1101可以是一个不包括文字、图像等信息的框,即通过提示框1101无法看出第二窗口内的具体信息。例如,提示框1101可以仅占用显示屏的边缘附近的部分区域,以尽可能的不遮挡第一窗口。其中,第二窗口的提示框1101可以有多种设计,例如长方形或正方形的提示框,等等,本申请实施例不作限定。需要说明的是,图11中的(b)是以第二窗口以提示框1101的形式展出,在实际应用中,第二窗口还可以以其它方式展出,总之占用较小的面积即可。For example, please refer to (a) in Figure 11. The electronic device displays a first window, and the first window includes first information. When the electronic device receives the selection operation for the first information, a second window appears on the display screen, as shown in (b) in Figure 11 , and the second window is displayed in the form of a prompt box 1101. For example, the prompt box 1101 may be a box that does not include text, images and other information, that is, the specific information in the second window cannot be seen through the prompt box 1101. For example, the prompt box 1101 may only occupy a part of the area near the edge of the display screen so as not to block the first window as much as possible. The prompt box 1101 of the second window may have various designs, such as a rectangular or square prompt box, etc., which are not limited in the embodiment of this application. It should be noted that (b) in Figure 11 displays the second window in the form of a prompt box 1101. In practical applications, the second window can also be displayed in other ways, and in short, it occupies a smaller area. .
本实施例二中,第二窗口以提示框1101的方式展出之后,第二窗口可以处理第一窗口内的第一信息。例如,继续参见图11中的(b),当接收到将第一信息拖拽到提示框1101上的拖拽操作时,第二窗口处理第一信息,例如,第一信息被复制到第二窗口中(如前文中的应用场景一)或者在第二窗口内搜索第一信息(如前文中的应用场景二)或者在第二窗口内打开第一信息(如前文中的应用场景三)。在一些实施例中,为了提示用户第一信息成功被拖拽到第二窗口的提示框1101上,提示框1101可以突出显示(例如,高亮或暗地),如图11中的(c)所示。也就是说,用户将第一窗口内的第一信息拖拽到第二窗口的提示框后,第二窗口突出显示,这样,用户就可以知道第一信息成功被拖拽到第二窗口。示例性的,提示框1101可以一直突出显示或者突出显示一段时间之后恢复到原来状态,例如,从图11中的(c)的暗底显示恢复到图11中的(b)的正常显示。值得说明的是,图11所示的方式中,第二窗口以提示框1101的方式出现,并未展开显示,在此过程中,用户没有看到第二窗口内的信息,对第一窗口的遮挡程度非常小。当然,用户也可以通过一定的操作(例如,在提示框1101上的点击操作)展开第二窗口,例如,展开后的第二窗口如图8中的(c)一样。In the second embodiment, after the second window is displayed in the form of prompt box 1101, the second window can process the first information in the first window. For example, continuing to refer to (b) in Figure 11, when receiving a drag operation to drag the first information to the prompt box 1101, the second window processes the first information, for example, the first information is copied to the second window. The first information is searched in the window (such as the application scenario one in the previous article) or the first information is searched in the second window (such as the application scenario two in the previous article) or the first information is opened in the second window (such as the application scenario three in the previous article). In some embodiments, in order to prompt the user that the first information is successfully dragged to the prompt box 1101 of the second window, the prompt box 1101 can be highlighted (for example, highlighted or darkened), as shown in (c) in Figure 11 shown. That is to say, after the user drags the first information in the first window to the prompt box of the second window, the second window is highlighted. In this way, the user can know that the first information has been successfully dragged to the second window. For example, the prompt box 1101 may be highlighted all the time or restored to its original state after being highlighted for a period of time, for example, from the dark display in (c) of Figure 11 to the normal display in (b) of Figure 11 . It is worth noting that in the method shown in Figure 11, the second window appears in the form of a prompt box 1101 and is not expanded and displayed. During this process, the user does not see the information in the second window and is not interested in the first window. The degree of occlusion is very small. Of course, the user can also expand the second window through a certain operation (for example, a click operation on the prompt box 1101). For example, the expanded second window looks like (c) in Figure 8 .
在另一些实施例中,在第二窗口以提示框1101的方式显示之后,且在第二窗口处理第一信息(或者第一信息未被拖入第二窗口)之前,第二窗口可以放大显示,以向用户展示第二窗口的具体内容。例如,请参见图12中的(a),电子设备显示第一窗口,第一窗口内包括第一信息。电子设备接收到对第一信息的选择操作时,显示屏上出现第二窗口的提示框1101,如图12中的(b)。此时,显示屏上还未出现第二窗口。当接收到第一信息向提示框1101的拖拽操作时,提示框1101展开为第二窗口,如图12中的(c)。当确定第一信息被拖拽到第二窗口内、或者第一信息被拖拽到第二窗口内且停留一定时长、或者确定第一信息被拖拽到第二窗口内并释放时,在第二窗口内处理第一信息(如,将第一信息复制到第二窗口内),如图12中的(d)。一种可能的场景为,电子设备显示第一窗口时,若用户选择第一窗口内的第一信息,考虑到用户有可能想要复制第一信息到第二窗口,所以先出现第二窗口的提示框,如果用户拖拽第一信息到该提示框,即确定用户要复制第一信息到第二窗口,此时提示框展出为第二窗口,当第一信息被拖拽到第二窗口内时,将第一信息复制到第二窗口内。当然,如果用户选择了第一信息导致第二窗口的提示框出现,但是用户并未拖拽第一信息到第二窗口的提示框,说明用户并未想要复制第一信息到第二窗口,可以取消显示第二窗口的提示框。In other embodiments, after the second window is displayed in the form of prompt box 1101 and before the second window processes the first information (or the first information is not dragged into the second window), the second window may be enlarged and displayed. , to show the user the specific content of the second window. For example, please refer to (a) in Figure 12. The electronic device displays a first window, and the first window includes first information. When the electronic device receives the selection operation for the first information, a prompt box 1101 of the second window appears on the display screen, as shown in (b) of Figure 12 . At this time, the second window has not yet appeared on the display screen. When the drag operation of the first information to the prompt box 1101 is received, the prompt box 1101 expands into a second window, as shown in (c) in Figure 12 . When it is determined that the first information is dragged into the second window, or the first information is dragged into the second window and stays for a certain period of time, or it is determined that the first information is dragged into the second window and released, in the Process the first information in the second window (for example, copy the first information to the second window), as shown in (d) in Figure 12. One possible scenario is that when the electronic device displays the first window, if the user selects the first information in the first window, considering that the user may want to copy the first information to the second window, the second window appears first. Prompt box. If the user drags the first information to the prompt box, it is determined that the user wants to copy the first information to the second window. At this time, the prompt box is displayed as the second window. When the first information is dragged to the second window inside, copy the first information to the second window. Of course, if the user selects the first information and the prompt box of the second window appears, but the user does not drag the first information to the prompt box of the second window, it means that the user does not want to copy the first information to the second window. You can cancel the display of the prompt box of the second window.
在图12所示的实施例中,提示框展开为第二窗口时,第二窗口就占用一定的显示面积,在另一些实施例中,提示框展开为第二窗口时,第二窗口先以较小的面积显示,然后 放大显示。第二窗口的放大方式包括方式A和方式B中的至少一种。方式A,第二窗口直接放大到预设面积,例如占用整个显示屏的1/4。放大B,第二窗口逐渐放大。例如,第二窗口放大的面积与产生拖拽操作的用户手指到第二窗口的距离(例如第二窗口的中心点)相关,所述距离越近,第二窗口的面积越大。示例性的,请参见13(a),假设还未开始拖拽第一信息时,显示屏上显示提示框。开始拖拽或者拖拽到某个时刻时,提示框展开为第二窗口,如图13中的(b)。此时第二窗口到用户手指距离A,第二窗口占用面积A。如图13中的(c),在继续拖拽过程中的某时刻,用户手指到第二窗口的距离缩小为距离B,距离B小于距离A,第二窗口占用面积B,面积B大于面积A。即,随着用户手指逐渐靠近第二窗口,第二窗口的面积逐渐放大,直到用户手指进入第二窗口内停止放大,如图13中的(d)。在另一些实施例中,第二窗口随着用户手指靠近逐渐放大,但放大到预设面积时,停止放大,预设面积例如为显示屏的1/4。也就是说,当第二窗口面积占到显示屏的1/4时,不再随着手指的靠近而继续放大。当然,在又一些实施例中,第二窗口随着手指靠近逐渐放大,直到放大到占满显示屏上全部可显示区域位置,即全屏显示第二窗口。In the embodiment shown in Figure 12, when the prompt box is expanded into the second window, the second window occupies a certain display area. In other embodiments, when the prompt box is expanded into the second window, the second window first smaller area is displayed, then Display enlarged. The magnification method of the second window includes at least one of method A and method B. Method A, the second window is directly enlarged to the preset area, for example, occupying 1/4 of the entire display screen. Zoom in B and the second window gradually enlarges. For example, the enlarged area of the second window is related to the distance from the user's finger that generates the drag operation to the second window (for example, the center point of the second window). The closer the distance, the larger the area of the second window. For example, please refer to 13(a). It is assumed that before dragging the first information, a prompt box is displayed on the display screen. When you start dragging or drag to a certain moment, the prompt box expands into a second window, as shown in (b) in Figure 13. At this time, the distance A from the second window to the user's finger is A, and the second window occupies an area A. As shown in (c) in Figure 13, at a certain moment during the dragging process, the distance between the user's finger and the second window shrinks to distance B. Distance B is smaller than distance A. The second window occupies area B, and area B is larger than area A. . That is, as the user's finger gradually approaches the second window, the area of the second window gradually enlarges until the user's finger enters the second window and stops enlarging, as shown in (d) of Figure 13 . In other embodiments, the second window gradually enlarges as the user's finger approaches, but stops enlarging when it reaches a preset area, which is, for example, 1/4 of the display screen. That is to say, when the second window area occupies 1/4 of the display screen, it will no longer continue to enlarge as the finger approaches. Of course, in some embodiments, the second window is gradually enlarged as the finger approaches until it is enlarged to occupy the entire displayable area on the display screen, that is, the second window is displayed in full screen.
存在一种可能的情况:电子设备根据第二窗口的性质判断第二窗口要放大到预设面积(例如显示屏的1/4)还是全屏。示例性的,电子设备可以支持的第二窗口的预设面积可以有一个或多个,例如显示屏的1/4、显示屏的1/3、显示屏的1/2、全屏等。进一步的,如上所述,电子设备可以根据第二窗口中信息插入位的数量确定第二窗口需要放大到的面积。可选的,第二窗口中插入位的数量越多,第二窗口放大后对应的预设面积可以越大。例如,电子设备确定第二窗口中只有一个信息插入位(例如,可以显示光标的位置)时,第二窗口放大到预设面积(例如显示屏的1/4)即可。例如,如图14中的(a),第二窗口是即时通信应用的聊天窗口,其中只有一个信息插入位(即输入框),所以该聊天窗口只需放大到显示屏的1/4。应该理解的是,第二窗口中只有一个信息插入位,不需要用户选择第一信息插入到哪个位置,所以第二窗口无需放大过多。再例如,电子设备确定第二窗口中有多个信息插入位时,第二窗口可以放大到全屏、或者显示屏的1/3。例如,如图14中的(b),以第二窗口是备忘录应用的窗口为例,由于该窗口中有多个信息插入位,不确定用户要将第一信息插入到哪一个位置,所以第二窗口放大到全屏,以方便用户选择第一信息的插入位置。本实施例二中,第二窗口出现之后也可以自动隐藏(例如,第二窗口切回到后台)。前面实施例一中描述的第二窗口的隐藏方式同样适用于本实施例二。例如,第二窗口先以提示框的方式展现,然后放大显示;然后,第二窗口先缩小显示,再完全消失。There is a possible situation: the electronic device determines whether the second window should be enlarged to a preset area (for example, 1/4 of the display screen) or full screen based on the properties of the second window. For example, the electronic device may support one or more preset areas of the second window, such as 1/4 of the display screen, 1/3 of the display screen, 1/2 of the display screen, full screen, etc. Further, as mentioned above, the electronic device can determine the area to which the second window needs to be enlarged based on the number of information insertion bits in the second window. Optionally, the greater the number of inserted bits in the second window, the larger the corresponding preset area after the second window is enlarged. For example, when the electronic device determines that there is only one information insertion position in the second window (for example, the position of the cursor can be displayed), the second window can be enlarged to a preset area (for example, 1/4 of the display screen). For example, as shown in (a) of Figure 14, the second window is a chat window of an instant messaging application, in which there is only one information insertion position (ie, input box), so the chat window only needs to be enlarged to 1/4 of the display screen. It should be understood that there is only one information insertion position in the second window, and the user does not need to choose where to insert the first information, so the second window does not need to be enlarged too much. For another example, when the electronic device determines that there are multiple information insertion positions in the second window, the second window can be enlarged to the full screen or 1/3 of the display screen. For example, as shown in (b) of Figure 14, taking the second window as a memo application window, since there are multiple information insertion positions in this window, it is not sure where the user wants to insert the first information, so the The second window is enlarged to full screen to facilitate the user to select the insertion position of the first information. In the second embodiment, the second window can also be automatically hidden after it appears (for example, the second window is switched back to the background). The hiding method of the second window described in the first embodiment is also applicable to the second embodiment. For example, the second window is first displayed as a prompt box and then enlarged; then, the second window is first reduced and then completely disappeared.
对应的,下面结合图15,说明实施例二(例如图12)对应的后台处理过程。为了方便描述,以第二窗口是电子设备后台运行的第二应用的窗口为例,如图15,后台流程包括如下步骤:Correspondingly, the background processing process corresponding to the second embodiment (for example, Figure 12) will be described below with reference to Figure 15. For the convenience of description, take the second window as the window of the second application running in the background of the electronic device as an example, as shown in Figure 15. The background process includes the following steps:
其中,步骤一至步骤七,与图10B相同,所以此处不重复赘述。下面介绍与图10B不同的步骤八以及之后的步骤。Among them, steps one to seven are the same as in Figure 10B, so they will not be repeated here. Step 8 and subsequent steps that are different from those in Figure 10B are introduced below.
步骤八,确定拖拽操作的实时位置(x,y)。所述实时位置(x,y)即执行拖拽操作时用户手指的实时位置,例如前面的图13中的(a)和图13中的(b)中,在第一信息被拖拽的过程中,用户手指的实时位置发生变化。Step 8: Determine the real-time position (x, y) of the drag operation. The real-time position (x, y) is the real-time position of the user's finger when performing a drag operation. For example, in (a) and (b) of Figure 13 above, during the process of the first information being dragged , the real-time position of the user's finger changes.
步骤九,根据(x,y)对第二窗口进行缩放。示例性的,如前文图13所示,随着用户手指(即拖拽操作的实时位置(x,y))逐渐靠近第二窗口,第二窗口的面积逐渐放大。 Step 9: Scale the second window according to (x, y). For example, as shown in Figure 13 above, as the user's finger (ie, the real-time position (x, y) of the drag operation) gradually approaches the second window, the area of the second window gradually enlarges.
步骤十,确定第二窗口的插入位数量。Step 10: Determine the number of inserted bits in the second window.
步骤十一,根据第二窗口的插入位数量,确定第二窗口放大到预设面积或者放大到全屏。示例性的,如前文图14中的(a),当第二窗口插入位数量为1时,第二窗口放大到预设面积例如显示屏1/4即可,再如图14中的(b),当第二窗口插入位数量是多个时,第二窗口放大到全屏。Step 11: Determine whether the second window is enlarged to a preset area or to full screen according to the number of inserted bits in the second window. For example, as shown in (a) of Figure 14 above, when the number of inserted bits in the second window is 1, the second window can be enlarged to a preset area such as 1/4 of the display screen, and then as shown in (b of Figure 14 ), when the number of inserted bits in the second window is multiple, the second window is enlarged to full screen.
应理解,步骤十和步骤十一是可选步骤,可以执行或不执行,所以图中使用虚线表示,如果不执行,例如默认的将第二窗口放大到预设面积或者全屏或者用户设置的面积等等。It should be understood that steps ten and eleven are optional steps that can be executed or not, so they are represented by dotted lines in the figure. If not executed, for example, the second window will be enlarged to the preset area or full screen or the area set by the user by default. etc.
步骤十二,判断是否满足如下条件中的至少一个:1,根据(x,y)判断第二窗口是否为目标窗口。例如,判断(x,y)是否位于第二窗口内,如果是,说明第二窗口是目标窗口,则第二窗口处理第一信息。2,判断第二窗口是否支持第一信息的插入。例如,判断第一信息是否为文本信息,如果是,则支持第一信息的插入。或者,判断第二窗口内是否有插入位,如果有,则支持第一信息的插入。Step 12: Determine whether at least one of the following conditions is met: 1. Determine whether the second window is the target window based on (x, y). For example, it is determined whether (x, y) is located in the second window. If so, it means that the second window is the target window, and the second window processes the first information. 2. Determine whether the second window supports the insertion of the first information. For example, it is determined whether the first information is text information, and if so, the insertion of the first information is supported. Or, determine whether there is an insertion bit in the second window, and if so, support the insertion of the first information.
实施例三Embodiment 3
在前面的实施例一和实施例二中,电子设备显示第一窗口时,通过用户操作唤出一个窗口,即第二窗口。在本实施例三中,电子设备显示第一窗口时,通过用户操作(即第一预设操作),可以唤出多个窗口,为了方便区分,以多个窗口分别是第二窗口和第三窗口为例进行说明。In the previous Embodiment 1 and Embodiment 2, when the electronic device displays the first window, a window, that is, the second window is called up through user operation. In the third embodiment, when the electronic device displays the first window, multiple windows can be called up through user operation (ie, the first preset operation). In order to facilitate the distinction, the multiple windows are respectively the second window and the third window. The window is used as an example for explanation.
示例性的,请参见图16中的(a),电子设备显示第一窗口,第一窗口内包括第一信息。若接收到第一预设操作(例如针对第一信息的选择操作),显示屏上出现第二窗口和第三窗口,如图16中的(b)。For example, please refer to (a) in Figure 16. The electronic device displays a first window, and the first window includes first information. If the first preset operation (for example, the selection operation for the first information) is received, the second window and the third window appear on the display screen, as shown in (b) of Figure 16 .
此时,显示屏上包括三个窗口,第一窗口、第二窗口和第三窗口,这三个窗口中的至少两个可以分别对应不同应用,或者,对应同一应用,本申请实施例不作限定。若第一窗口对应第一应用,第二窗口对应第二应用,第三窗口对应第三应用,假设第一应用、第二应用与第三应用不同,其中,第二应用和/或第三应用可以满足如前文实施例一中所述的条件(a)-(d),为了方便描述,不重复赘述。假设第一应用、第二应用和第三应用相同,第二窗口和第三窗口可以满足如前文实施例一中的条件(e)-(g)。At this time, the display screen includes three windows, a first window, a second window and a third window. At least two of these three windows may respectively correspond to different applications, or may correspond to the same application, which is not limited by the embodiments of this application. . If the first window corresponds to the first application, the second window corresponds to the second application, and the third window corresponds to the third application, it is assumed that the first application, the second application, and the third application are different, where the second application and/or the third application Conditions (a)-(d) as described in Embodiment 1 above can be satisfied. For convenience of description, the details will not be repeated. Assuming that the first application, the second application, and the third application are the same, the second window and the third window can satisfy conditions (e)-(g) as in the previous embodiment 1.
在一些实施例中,第二窗口和第三窗口可以重叠或不重叠,例如,图16中的(b)中,以第二窗口与第三窗口不重叠为例。其中,第二窗口、第三窗口的显示位置、显示面积等请参见前文实施例一的描述(应理解,第二窗口与第三窗口的面积可以相同或不同),不重复赘述。In some embodiments, the second window and the third window may overlap or not overlap. For example, in (b) of FIG. 16 , the second window and the third window do not overlap as an example. For the display position and display area of the second window and the third window, please refer to the previous description of Embodiment 1 (it should be understood that the areas of the second window and the third window may be the same or different), and will not be repeated.
这种方式,电子设备同时唤出了多个窗口,用户可以在多个窗口中选择在哪一个窗口内处理第一信息。例如,继续参见图16中的(b),当接收到将第一信息向第二窗口的拖拽操作,且将第一信息拖拽到第二窗口内时,在第二窗口内处理第一信息(例如将第一信息复制到第二窗口内或者在第二窗口内搜索第一信息或者在第二窗口内打开第一信息),如图16中的(c)。当然,如果接收到将第一信息向第三窗口的拖拽操作,且将第一信息拖拽到第三窗口内时,在第三窗口内处理第一信息。In this way, the electronic device calls up multiple windows at the same time, and the user can choose which window among the multiple windows to process the first information. For example, continuing to refer to (b) in Figure 16, when a drag operation of the first information to the second window is received, and the first information is dragged into the second window, the first process is processed in the second window. information (for example, copy the first information to the second window or search the first information in the second window or open the first information in the second window), as shown in (c) in Figure 16 . Of course, if a drag operation of dragging the first information to the third window is received and the first information is dragged into the third window, the first information is processed in the third window.
在一些实施例中,多个窗口被唤出之后,可以一直显示在显示屏上,或者,也可以自动隐藏。在一些实施例中,第二窗口隐藏时,第三窗口可以一并隐藏。其中,第二窗口的隐藏方式请参见前文实施例一的描述,不重复赘述。再例如,请参见图17中的(a),当接收到将第二窗口或第三窗口向显示屏右边缘的拖拽操作时,第二窗口和第三窗口一并隐藏, 如图17中的(b)。需要说明的是,图17以将第三窗口向显示屏右边缘拖拽为例,还可以是将第二窗口或第三窗口向显示屏左边缘、上边缘、下边缘等拖拽以一并隐藏两个窗口。In some embodiments, after multiple windows are called up, they may always be displayed on the display screen, or they may be automatically hidden. In some embodiments, when the second window is hidden, the third window may also be hidden. For the hiding method of the second window, please refer to the previous description of Embodiment 1, and the details will not be repeated. For another example, please refer to (a) in Figure 17. When a drag operation of the second window or the third window to the right edge of the display screen is received, the second window and the third window are hidden together. As shown in (b) in Figure 17. It should be noted that Figure 17 takes dragging the third window to the right edge of the display screen as an example. You can also drag the second window or the third window to the left edge, upper edge, lower edge of the display screen, etc. Hide both windows.
可以理解,当用户拖拽多个悬浮窗口中的一个(例如,第二窗口或第三窗口)以隐藏该窗口时,判断用户认为悬浮窗口对第一窗口的内容造成了遮挡。因此,当识别到用户拖拽以隐藏一个悬浮窗口的意图时,可以一并隐藏叠加在第一窗口上的所有悬浮窗口,从而减少悬浮窗口对第一窗口画面的遮挡。采用这种方式,可以一次性隐藏所有悬浮窗口,减少了用户的交互步骤。It can be understood that when the user drags one of the multiple floating windows (for example, the second window or the third window) to hide the window, it is determined that the user believes that the floating window blocks the content of the first window. Therefore, when the user's intention of dragging to hide a floating window is recognized, all floating windows superimposed on the first window can be hidden together, thereby reducing the blocking of the first window screen by the floating window. In this way, all floating windows can be hidden at once, reducing user interaction steps.
图17中,两个窗口隐藏是指两个窗口完全消失,在两个窗口完全消失之后,可以通过一键操作(例如,在显示屏内的上、下、左、右的滑动等交互操作)同时唤出被隐藏的两个窗口。在一些实施例中,两个窗口隐藏还可以是指两个窗口缩小显示。例如,请参见图18中的(a),接收到将第三窗口向显示屏右边缘的拖拽操作时,第二窗口和第三窗口一并缩小显示,例如缩小为提示框或者更小尺寸的窗口。如图18中的(b),第二窗口和第三窗口均以提示框的方式显示于显示屏右侧区域。在另一些实施例中,第二窗口和第三窗口可以先缩小显示,然后完全消失。例如,图18中的(b)中,若电子设备接收到在第一窗口内的第三预设操作,则第二窗口的提示框和第三窗口的提示框可以完全消失。In Figure 17, hiding two windows means that the two windows completely disappear. After the two windows completely disappear, one-click operation can be performed (for example, interactive operations such as sliding up, down, left, and right in the display screen) Call up the two hidden windows at the same time. In some embodiments, hiding two windows may also refer to shrinking and displaying two windows. For example, please refer to (a) in Figure 18. When receiving the drag operation of the third window to the right edge of the display screen, the second window and the third window are reduced together, for example, reduced to a prompt box or smaller size. window. As shown in (b) of Figure 18, both the second window and the third window are displayed in the right area of the display screen in the form of prompt boxes. In other embodiments, the second window and the third window may first be reduced in size and then disappear completely. For example, in (b) of FIG. 18 , if the electronic device receives the third preset operation in the first window, the prompt box of the second window and the prompt box of the third window can disappear completely.
上述实施例中,当第二窗口和第三窗口缩小为提示框的方式显示时,可选的,此后,当用户点击或拖拽提示框时,可以恢复提示框对应的窗口的显示(例如将该提示框对应的窗口恢复到之前的位置和/或大小)、或者恢复所有窗口的显示(例如将之前隐藏的所有窗口恢复到之前的位置和/或大小)。例如,当用户点击图18中的(b)中第二窗口对应的提示框时,可以恢复第二窗口的显示。又例如,当用户点击图18中的(b)中第二窗口对应的提示框时,可以同时恢复第二窗口和第三窗口的显示,这样,用户通过一次点击提示框的操作即可以恢复所有悬浮窗口的显示,减少了用户的交互步骤。In the above embodiment, when the second window and the third window are reduced to a prompt box, optionally, after that, when the user clicks or drags the prompt box, the display of the window corresponding to the prompt box can be restored (for example, the prompt box is The window corresponding to the prompt box is restored to its previous position and/or size), or the display of all windows is restored (for example, all previously hidden windows are restored to their previous position and/or size). For example, when the user clicks the prompt box corresponding to the second window in (b) of Figure 18, the display of the second window can be restored. For another example, when the user clicks the prompt box corresponding to the second window in (b) of Figure 18, the display of the second window and the third window can be restored at the same time. In this way, the user can restore all the prompt boxes by clicking the prompt box once. The display of floating windows reduces user interaction steps.
对应的,下面结合图19,说明实施例三中多窗口的隐藏过程(例如图18)对应的后台处理过程。如图19,后台流程包括如下步骤:Correspondingly, the background processing process corresponding to the multi-window hiding process (for example, Figure 18) in Embodiment 3 will be described below with reference to Figure 19. As shown in Figure 19, the background process includes the following steps:
步骤一、显示多窗口。例如,第一窗口、第二窗口和第三窗口,其中,第二窗口和第三窗口位于第一窗口的上层,如图18中的(a)。Step 1. Display multiple windows. For example, a first window, a second window and a third window, where the second window and the third window are located on the upper layer of the first window, as shown in (a) of Figure 18 .
步骤二、记录第二窗口和第三窗口的位置和/或面积。Step 2: Record the position and/or area of the second window and the third window.
步骤三、接收到针对第二窗口和第三窗口中任一窗口的拖拽操作。Step 3: Receive a drag operation for any one of the second window and the third window.
需要说明的是,步骤二和步骤三也可以同时执行。It should be noted that steps two and three can also be performed at the same time.
步骤四、确定满足缩小条件。例如,当所述拖拽操作是将窗口(第二窗口和第三窗口中任一窗口)拖拽到显示屏边缘(左边缘或右边缘)时,确定满足缩小条件。Step 4: Make sure the reduction conditions are met. For example, when the drag operation is to drag the window (either the second window or the third window) to the edge (left edge or right edge) of the display screen, it is determined that the reduction condition is met.
步骤五、第二窗口和第三窗口一并缩小显示。例如,如图18中的(b),第二窗口和第三窗口分别缩小为提示框。Step 5: The second window and the third window are reduced and displayed together. For example, as shown in (b) of Figure 18, the second window and the third window are respectively reduced to prompt boxes.
以上的步骤一至步骤五中,当电子设备多窗口显示时,若识别到用户拖拽以隐藏一个悬浮窗口的意图时,可以一并隐藏叠加在第一窗口上的所有悬浮窗口,减少交互操作。In the above steps one to five, when the electronic device displays multiple windows, if the user's intention of dragging to hide a floating window is recognized, all floating windows superimposed on the first window can be hidden together to reduce interaction operations.
步骤六、接收到针对第二窗口的提示框的操作,例如,点击操作。Step 6: Receive an operation on the prompt box of the second window, for example, a click operation.
步骤七、恢复第二窗口的位置和/或面积,即步骤二中记录的第二窗口的位置和/或面积。Step 7: Restore the position and/or area of the second window, that is, the position and/or area of the second window recorded in step 2.
步骤八、一并恢复第二窗口和第三窗口的位置和/或面积,即步骤二中记录的第二窗口的位置和/或面积。 Step 8: Restore the position and/or area of the second window and the third window together, that is, the position and/or area of the second window recorded in step 2.
需要说明的是,在执行完步骤六之后,可以执行步骤七或者步骤八中的任一步。其中,步骤七中用户点击第二窗口的提示框时,只恢复了第二窗口的面积和/或位置,第三窗口仍然缩小显示。步骤八中用户点击第二窗口的提示框时,一并恢复了第二窗口和第三窗口的面积和/或位置,可以节省操作步骤。It should be noted that after performing step six, you can perform either step seven or step eight. Among them, when the user clicks the prompt box of the second window in step seven, only the area and/or position of the second window is restored, and the third window is still reduced and displayed. In step eight, when the user clicks the prompt box of the second window, the areas and/or positions of the second window and the third window are restored together, which can save operating steps.
在前面的实施例中,多个窗口同时被唤出时,每个窗口均占用了较大的面积例如图16中第二窗口和第三窗口占用了较大的面积,考虑到这样对第一窗口的遮挡面积较大,所以,在另一些实施例中,多个窗口被唤出时,每个窗口均可以以提示框的方式出现。例如,请参见图20中的(a),电子设备显示第一窗口,第一窗口中包括第一信息。当接收到对第一信息的选择操作、或者接收到对第一信息选择并开始拖拽的操作时,显示屏上出现第二窗口的提示框和第三窗口的提示框,如图20中的(b)。In the previous embodiment, when multiple windows are called up at the same time, each window occupies a larger area. For example, in Figure 16, the second window and the third window occupy a larger area. Considering that this affects the first window, The blocking area of the window is relatively large, so in other embodiments, when multiple windows are called up, each window can appear in the form of a prompt box. For example, please refer to (a) in FIG. 20 , the electronic device displays a first window, and the first window includes first information. When receiving a selection operation on the first information, or receiving an operation on selecting the first information and starting dragging, the prompt box of the second window and the prompt box of the third window appear on the display screen, as shown in Figure 20 (b).
在一些实施例中,第二窗口的提示框和第三窗口的提示框显示样式可以相同或不同。例如,第二窗口内具有信息插入位,则第二窗口的提示框正常显示,第三窗口内不具有信息插入位,则第三窗口的提示框内有斜线或者灰度显示,以提示用户无法在第三窗口内复制信息。这样,虽然唤出了多个窗口的提示框,也会给用户一定的提示,以方便用户快速寻找到要粘贴信息的目标窗口。In some embodiments, the display styles of the prompt box of the second window and the prompt box of the third window may be the same or different. For example, if there is an information insertion position in the second window, the prompt box of the second window will be displayed normally. If there is no information insertion position in the third window, then there will be slashes or grayscale display in the prompt box of the third window to remind the user. Unable to copy information within third window. In this way, although the prompt boxes of multiple windows are called up, certain prompts will be given to the user to facilitate the user to quickly find the target window to paste information.
在一些实施例中,可以根据用户的拖拽方向和/或拖拽轨迹确定需要放大显示的窗口。例如,继续参见图20中的(b),假设用户将第一信息拖拽向第二窗口的提示框,则第二窗口逐渐放大,例如,随着拖拽操作的手指向第二窗口逐渐靠近,第二窗口的面积逐渐放大,当第一信息被拖拽到第二窗口内时,在第二窗口内粘贴第一信息,如图20中的(c)。需要说明的是,图20中的(b)中,第二窗口和第三窗口都缩小显示于边缘位置,当接收到针对第一信息的拖拽操作时,可以根据拖拽方向和/或拖拽轨迹判断拖拽操作指向哪一个提示框,指向哪一个提示框则放大该提示框对应的窗口。其中,窗口放大方式可以参见前面实施例的描述,此处不重复赘述。In some embodiments, the window that needs to be enlarged and displayed may be determined based on the user's drag direction and/or drag trajectory. For example, continuing to refer to (b) in Figure 20, assuming that the user drags the first information to the prompt box of the second window, the second window gradually enlarges, for example, as the dragging finger gradually moves closer to the second window , the area of the second window is gradually enlarged, and when the first information is dragged into the second window, the first information is pasted in the second window, as shown in (c) in Figure 20 . It should be noted that in (b) of Figure 20, both the second window and the third window are reduced and displayed at the edge. When a drag operation for the first information is received, the second window and the third window can be displayed according to the drag direction and/or drag operation. The drag trajectory determines which prompt box the drag operation points to, and which prompt box is pointed to will enlarge the window corresponding to the prompt box. For the window magnification method, please refer to the description of the previous embodiment, and the details will not be repeated here.
在另一些实施例中,也可以在用户将第一信息拖拽到第二窗口的提示框和/或第三窗口的提示框时提示用户是否可以在该窗口内输入该第一信息。例如,第二窗口内具有信息插入位,当用户将第一信息拖拽到第二窗口的提示框时,拖拽的第一信息上可以显示角标(例如:加号,对勾等),以提示用户可以在第二窗口内输入该第一信息。此时,第二窗口的面积放大显示。又例如,第三窗口内不具有信息插入位,当用户将第一信息拖拽到第三窗口的提示框时,拖拽的第一信息上可以显示角标(例如:叉号等),以提示用户不可以在第三窗口内输入该第一信息。此时,第三窗口的面积可以不放大显示,或者放大显示但不支持用户输入该第一信息。In other embodiments, when the user drags the first information to the prompt box of the second window and/or the prompt box of the third window, the user may be prompted whether the first information can be input in the window. For example, there is an information insertion position in the second window. When the user drags the first information to the prompt box of the second window, a corner mark (such as a plus sign, check mark, etc.) can be displayed on the dragged first information. To prompt the user to input the first information in the second window. At this time, the area of the second window is enlarged and displayed. For another example, there is no information insertion position in the third window. When the user drags the first information to the prompt box of the third window, a corner mark (such as a cross, etc.) can be displayed on the dragged first information. The user is prompted not to input the first information in the third window. At this time, the area of the third window may not be enlarged and displayed, or may be enlarged and displayed but does not support the user's input of the first information.
在一些实施例中,电子设备唤出的多窗口的数量可以有最大值。例如,唤出的多窗口包括:后台打开的所有应用的窗口、最近打开过的所有应用的窗口(其中,最近可以是一周或一天等)、所有特定应用(例如用户设置了多个特定应用,关于特定应用请参见前文)的窗口中的至少一种。或者,电子设备可以在众多应用中选择一个或多个应用,唤出选择出的应用的窗口即可。例如,从后台运行的所有应用中选择使用频率较高的应用或者打开时间靠近的应用,唤出选择出的应用的窗口即可。In some embodiments, the number of multiple windows brought up by the electronic device may have a maximum value. For example, the multiple windows that are called up include: the windows of all applications opened in the background, the windows of all recently opened applications (where the most recent can be a week or a day, etc.), all specific applications (for example, the user has set up multiple specific applications, For specific applications (see above), at least one of the windows. Alternatively, the electronic device can select one or more applications among many applications and call up the window of the selected application. For example, you can select an application that is frequently used or an application that is opened at a close time from all the applications running in the background, and call up the window of the selected application.
图21为本申请实施例提供的电子设备2100的结构示意图。电子设备2100可以是前文中的电子设备(例如手机)。如图21所示,电子设备2100可以包括:一个或多个处理器2101;一个或多个存储器2102;通信接口2103,以及一个或多个计算机程序2104,上 述各器件可以通过一个或多个通信总线2105连接。其中该一个或多个计算机程序2104被存储在上述存储器2102中并被配置为被该一个或多个处理器2101执行,该一个或多个计算机程序2104包括指令。比如,当电子设备2100是前文中的手机时,该指令可以用于执行如上面相应实施例中手机的相关步骤,例如,图10A所示的步骤。通信接口2103用于实现电子设备2100与其他设备的通信,比如通信接口可以是收发器。Figure 21 is a schematic structural diagram of an electronic device 2100 provided by an embodiment of the present application. The electronic device 2100 may be the aforementioned electronic device (such as a mobile phone). As shown in Figure 21, the electronic device 2100 may include: one or more processors 2101; one or more memories 2102; a communication interface 2103, and one or more computer programs 2104, The various devices described above may be connected through one or more communication buses 2105. Where the one or more computer programs 2104 are stored in the memory 2102 and configured to be executed by the one or more processors 2101, the one or more computer programs 2104 include instructions. For example, when the electronic device 2100 is the mobile phone mentioned above, the instruction can be used to perform the steps related to the mobile phone in the above corresponding embodiment, for example, the steps shown in FIG. 10A. The communication interface 2103 is used to implement communication between the electronic device 2100 and other devices. For example, the communication interface may be a transceiver.
上述本申请提供的实施例中,从电子设备(例如手机)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone) as the execution subject. In order to implement each function in the method provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module to implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed as a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。As used in the above embodiments, depending on the context, the terms "when" or "after" may be interpreted to mean "if..." or "after" or "in response to determining..." or "in response to detecting …”. Similarly, depending on the context, the phrase "when determining..." or "if (stated condition or event) is detected" may be interpreted to mean "if it is determined..." or "in response to determining..." or "on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”. In addition, in the above embodiments, relational terms such as first and second are used to distinguish one entity from another entity, without limiting any actual relationship and order between these entities.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. appearing in different places in this specification are not necessarily References are made to the same embodiment, but rather to "one or more but not all embodiments" unless specifically stated otherwise. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. 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, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc. As long as there is no conflict, the solutions of the above embodiments can be used in combination.
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。 It should be noted that part of this patent application document contains content protected by copyright. The copyright owner retains copyright except in making copies of the contents of the patent document or records in the Patent Office.

Claims (23)

  1. 一种显示方法,其特征在于,应用于电子设备,所述电子设备具有显示屏,所述方法包括:A display method, characterized in that it is applied to an electronic device, the electronic device has a display screen, and the method includes:
    显示第一窗口;Show the first window;
    响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上出现第二窗口;所述第二窗口位于所述第一窗口上层,且所述第二窗口的显示面积小于所述第一窗口的显示面积;In response to the first operation for selecting the first information in the first window, a second window appears on the display screen; the second window is located above the first window, and the display of the second window The area is smaller than the display area of the first window;
    响应于用于将所述第一信息拖拽到所述第二窗口内的第二操作,在所述第二窗口内处理所述第一信息。In response to a second operation for dragging the first information into the second window, the first information is processed within the second window.
  2. 根据权利要求1所述的方法,其特征在于,所述在所述第二窗口内处理所述第一信息,包括:The method of claim 1, wherein processing the first information within the second window includes:
    将所述第一信息复制到所述第二窗口内;或者,Copy the first information to the second window; or,
    在所述第二窗口内搜索所述第一信息的相关信息;或者Search for information related to the first information in the second window; or
    在所述第二窗口内打开所述第一信息。Open the first information in the second window.
  3. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:
    所述第一操作,包括:对所述第一信息的长按操作,或者,对所述第一信息执行长按操作后开始拖拽的操作。The first operation includes: a long press operation on the first information, or a drag operation after performing a long press operation on the first information.
  4. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:
    所述第二操作是在所述第一操作之后手指不离开所述显示屏的接续操作。The second operation is a subsequent operation in which the finger does not leave the display screen after the first operation.
  5. 根据权利要求1所述的方法,其特征在于,所述第二窗口与所述第一窗口是同一应用的窗口,或者,不同应用的窗口。The method of claim 1, wherein the second window and the first window are windows of the same application, or windows of different applications.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述第二窗口满足如下条件中的至少一种:The method according to any one of claims 1-5, characterized in that the second window satisfies at least one of the following conditions:
    所述第二窗口是具有信息插入位的窗口;或者,The second window is a window with information insertion bits; or,
    所述第二窗口是所述显示屏在所述第一窗口之前上一个显示的窗口,或者,The second window is the last window displayed on the display screen before the first window, or,
    所述第二窗口是第二应用的窗口;其中,所述第二应用包括:后台运行应用、所述电子设备中使用频率大于预设频率的应用、特定应用中的至少一种,所述特定应用包括所述电子设备默认应用或者用户指定应用。The second window is a window of a second application; wherein the second application includes at least one of: a background running application, an application in the electronic device with a usage frequency greater than a preset frequency, and a specific application, and the specific application Applications include default applications of the electronic device or user-specified applications.
  7. 根据权利要求1所述的方法,其特征在于,在所述第二窗口内处理所述第一信息之后,还执行如下步骤中的至少一步:The method according to claim 1, characterized in that, after processing the first information in the second window, at least one of the following steps is also performed:
    所述第二窗口隐藏;或者The second window is hidden; or
    所述第二窗口显示第一预设时长,在所述第一预设时长之后自动隐藏;或者,The second window displays a first preset duration and is automatically hidden after the first preset duration; or,
    所述第二窗口显示第二预设时长,若在所述第二预设时长内未接收到在所述第二窗口 内的操作,所述第二窗口隐藏;或者,The second window displays a second preset time period. If the second window does not receive a message within the second preset time period, Within the operation, the second window is hidden; or,
    接收到在所述第一窗口内的操作,所述第二窗口隐藏;或者,Upon receiving an operation within the first window, the second window is hidden; or,
    所述第二窗口显示第三预设时长,若在所述第三预设时长内接收到在所述第一窗口内的操作,所述第二窗口隐藏。The second window displays a third preset duration. If an operation in the first window is received within the third preset duration, the second window is hidden.
  8. 根据权利要求7所述的方法,其特征在于,所述第二窗口隐藏,包括:The method according to claim 7, characterized in that hiding the second window includes:
    所述第二窗口从所述显示屏上消失,或者,The second window disappears from the display screen, or,
    所述第二窗口缩小显示;或者,The second window is reduced and displayed; or,
    所述第二窗口缩小显示,当接收到在所述第一窗口内的交互操作时,缩小后的所述第二窗口消失。The second window is displayed in a reduced size, and when an interactive operation in the first window is received, the reduced second window disappears.
  9. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:
    响应于用于选择所述第一窗口内第一信息的第一操作,在所述显示屏上出现第二窗口,包括:In response to a first operation for selecting first information in the first window, a second window appears on the display screen, including:
    响应于用于选择所述第一窗口内第一信息的第一操作,在所述显示屏上出现所述第二窗口的提示框,所述第二窗口在后台运行;In response to the first operation for selecting the first information in the first window, a prompt box of the second window appears on the display screen, and the second window runs in the background;
    响应于用于将所述第一信息拖拽到所述第二窗口内的第二操作,在所述第二窗口内处理所述第一信息,包括:In response to the second operation for dragging the first information into the second window, processing the first information in the second window includes:
    响应于用于将所述第一信息拖拽到所述提示框的第二操作,所述第二窗口在后台处理所述第一信息,或者,响应于用于将所述第一信息向所述提示框拖拽的第二操作,所述提示框展开为所述第二窗口,当所述第一信息被拖拽到所述第二窗口内时,在所述第二窗口内处理所述第一信息。In response to the second operation for dragging the first information to the prompt box, the second window processes the first information in the background, or in response to the second operation for dragging the first information to the prompt box. The second operation of dragging the prompt box is to expand the prompt box into the second window. When the first information is dragged into the second window, the processing is performed in the second window. First information.
  10. 根据权利要求9所述的方法,其特征在于,响应于用于将所述信息向所述提示框拖拽的第二操作,所述提示框展开为所述第二窗口,当所述第一信息被拖拽到所述第二窗口内时,在所述第二窗口内处理所述第一信息,包括:The method according to claim 9, characterized in that, in response to the second operation of dragging the information to the prompt box, the prompt box is expanded into the second window, and when the first When information is dragged into the second window, processing the first information in the second window includes:
    响应于将所述第一信息向所述提示框拖拽的操作,所述提示框展开为第二窗口;In response to the operation of dragging the first information to the prompt box, the prompt box expands into a second window;
    响应于将所述第一信息向所述第二窗口拖拽的操作,所述第二窗口放大显示,当所述第一信息被拖拽到放大后的所述第二窗口时,在所述放大后的所述第二窗口内处理所述第一信息。In response to the operation of dragging the first information to the second window, the second window is enlarged and displayed. When the first information is dragged to the enlarged second window, in the The first information is processed within the enlarged second window.
  11. 根据权利要求10所述的方法,其特征在于,所述第二窗口放大显示,包括:The method according to claim 10, characterized in that the second window is enlarged and displayed, including:
    所述第二窗口直接放大到第一预设面积;或者,The second window is directly enlarged to the first preset area; or,
    随着所述第一信息向所述第二窗口的距离靠近,所述第二窗口的显示面积逐渐放大到第二预设面积。As the first information approaches the second window, the display area of the second window is gradually enlarged to a second preset area.
  12. 根据权利要求11所述的方法,其特征在于,所述第一预设面积和/或所述第二预设面积小于或等于所述显示屏的全部显示面积。The method of claim 11, wherein the first preset area and/or the second preset area is less than or equal to the entire display area of the display screen.
  13. 根据权利要求10所述的方法,其特征在于,所述第二窗口放大显示,包括: The method according to claim 10, characterized in that the second window is enlarged and displayed, including:
    所述第二窗口具有一个信息插入位时,所述第二窗口放大到第一面积,所述第一面积小于所述显示屏的尺寸;When the second window has an information insertion position, the second window is enlarged to a first area, and the first area is smaller than the size of the display screen;
    所述第二窗口具有多个信息插入位时,所述第二窗口放大到第二面积或所述显示屏的全屏,所述第二面积小于所述显示屏的尺寸,所述第二面积大于所述第一面积。When the second window has multiple information insertion positions, the second window is enlarged to a second area or the full screen of the display screen, the second area is smaller than the size of the display screen, and the second area is larger than the size of the display screen. the first area.
  14. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:
    响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上出现第二窗口,包括:In response to the first operation for selecting the first information in the first window, a second window appears on the display screen, including:
    响应于用于选择所述第一窗口内第一信息的第一操作,所述显示屏上同时出现第二窗口和第三窗口;In response to the first operation for selecting the first information in the first window, a second window and a third window appear simultaneously on the display screen;
    所述第三窗口和所述第二窗口位于所述第一窗口上层,且所述第二窗口和所述第三窗口的显示面积均小于所述第一窗口的显示面积。The third window and the second window are located on an upper layer of the first window, and the display area of the second window and the third window is smaller than the display area of the first window.
  15. 根据权利要求14所述的方法,其特征在于,所述第一窗口、所述第二窗口和所述第三窗口是同一应用或不同应用的窗口。The method of claim 14, wherein the first window, the second window and the third window are windows of the same application or different applications.
  16. 根据权利要求14所述的方法,其特征在于,所述第二窗口具有信息插入位,所述第三窗口不具有信息插入位的情况下,所述第三窗口与所述第二窗口区别显示,以提示用户所述第二窗口能够处理所述第一信息,所述第三窗口无法处理所述第一信息。The method of claim 14, wherein the second window has an information insertion bit, and when the third window does not have an information insertion bit, the third window is displayed differently from the second window. , to remind the user that the second window can process the first information, and the third window cannot process the first information.
  17. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, further comprising:
    接收到用于将所述第二窗口和所述第三窗口中任一个窗口向所述显示屏边缘的拖拽操作;Receive a drag operation for dragging any one of the second window and the third window toward the edge of the display screen;
    响应于所述拖拽操作,一并隐藏所述第二窗口和所述第三窗口。In response to the drag operation, the second window and the third window are hidden together.
  18. 根据权利要求17所述的方法,其特征在于,所述一并隐藏所述第二窗口和所述第三窗口,包括:The method of claim 17, wherein hiding the second window and the third window together includes:
    所述第二窗口和所述第三窗口一并消失或一并缩小显示。The second window and the third window disappear together or are reduced in size.
  19. 根据权利要求18所述的方法,其特征在于,所述第二窗口和所述第三窗口一并消失的情况下,还包括:The method according to claim 18, characterized in that when the second window and the third window disappear together, it further includes:
    通过一键操作,一并恢复所述第二窗口和所述第三窗口的显示位置和/或面积。Through one-key operation, the display positions and/or areas of the second window and the third window are restored together.
  20. 根据权利要求18所述的方法,其特征在于,所述第二窗口和所述第三窗口一并缩小显示的情况下,所述方法还包括:The method according to claim 18, characterized in that when the second window and the third window are reduced and displayed together, the method further includes:
    接收到针对缩小后的第二窗口的操作,恢复所述第二窗口的显示位置和/或面积,所述第三窗口保持缩小显示状态;或者,Receive an operation for the reduced second window, restore the display position and/or area of the second window, and maintain the reduced display state of the third window; or,
    接收到针对缩小后的第二窗口的操作,一并恢复所述第二窗口和所述第三窗口的显示位置和/或面积。 After receiving the operation for the reduced second window, the display position and/or area of the second window and the third window are restored together.
  21. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    处理器,存储器,以及,一个或多个程序;processor, memory, and, one or more programs;
    其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1-20任一项所述的方法步骤。Wherein, the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the steps of claim 1- The method steps described in any one of 20.
  22. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至20中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program. When the computer program is run on a computer, it causes the computer to execute any one of claims 1 to 20. method described in the item.
  23. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1-20中任意一项所述的方法。 A computer program product, characterized in that it includes a computer program, which when the computer program is run on a computer, causes the computer to execute the method described in any one of claims 1-20.
PCT/CN2023/095766 2022-05-24 2023-05-23 Display method and electronic device WO2023226975A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210570699.XA CN117149008A (en) 2022-05-24 2022-05-24 Display method and electronic equipment
CN202210570699.X 2022-05-24

Publications (1)

Publication Number Publication Date
WO2023226975A1 true WO2023226975A1 (en) 2023-11-30

Family

ID=88910662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/095766 WO2023226975A1 (en) 2022-05-24 2023-05-23 Display method and electronic device

Country Status (2)

Country Link
CN (1) CN117149008A (en)
WO (1) WO2023226975A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325687A (en) * 2016-08-09 2017-01-11 深圳市金立通信设备有限公司 Method for calling program and terminal
CN107066172A (en) * 2017-02-16 2017-08-18 北京小米移动软件有限公司 The document transmission method and device of mobile terminal
CN110471725A (en) * 2019-07-02 2019-11-19 华为技术有限公司 A kind of split screen method and electronic equipment
WO2022089208A1 (en) * 2020-10-31 2022-05-05 华为技术有限公司 File dragging method, and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325687A (en) * 2016-08-09 2017-01-11 深圳市金立通信设备有限公司 Method for calling program and terminal
CN107066172A (en) * 2017-02-16 2017-08-18 北京小米移动软件有限公司 The document transmission method and device of mobile terminal
CN110471725A (en) * 2019-07-02 2019-11-19 华为技术有限公司 A kind of split screen method and electronic equipment
WO2022089208A1 (en) * 2020-10-31 2022-05-05 华为技术有限公司 File dragging method, and electronic device

Also Published As

Publication number Publication date
CN117149008A (en) 2023-12-01

Similar Documents

Publication Publication Date Title
US11450322B2 (en) Speech control method and electronic device
JP7498779B2 (en) Screen display method and electronic device
WO2021013158A1 (en) Display method and related apparatus
WO2021018067A1 (en) Floating window management method and related device
US20220342850A1 (en) Data transmission method and related device
US20220300154A1 (en) Split-Screen Display Processing Method and Apparatus, and Electronic Device
JP7474333B2 (en) INTERACTION METHOD FOR CROSS-DEVICE TASK PROCESSING, ELECTRONIC DEVICES AND STORAGE MEDIUM - Patent application
WO2021036571A1 (en) Desktop editing method and electronic device
WO2020221063A1 (en) Method of switching between parent page and subpage, and related device
WO2021082835A1 (en) Method for activating function and electronic device
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
WO2020238759A1 (en) Interface display method and electronic device
US20240176628A1 (en) Display method for card component, graphical user interface, and related apparatus
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
WO2022161119A1 (en) Display method and electronic device
EP4198709A1 (en) Navigation bar display method, display method and first electronic device
WO2021196980A1 (en) Multi-screen interaction method, electronic device, and computer-readable storage medium
WO2023226975A1 (en) Display method and electronic device
CN114173005A (en) Application layout control method and related device
WO2024022211A1 (en) Image processing method and electronic device
WO2024027570A1 (en) Interface display method and related apparatus
WO2024007966A1 (en) Multi-window display method and device
WO2023160455A1 (en) Object deletion method and electronic device
WO2023226922A1 (en) Widget management method, electronic device, and computer-readable storage medium

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: 23811046

Country of ref document: EP

Kind code of ref document: A1