Display method and electronic equipment
By split-screen display of different windows in the application in the display screen of an electronic device, the problem of pop-up window blocking the main window is solved, improving the user experience and window flexibility.
Patent Information
- Application Number
- CN202311583583.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
AI Technical Summary
When an existing electronic device displays a pop-up window in the application, a new window or a floating window will block the main window of the application behind it, affecting the user experience.
By displaying different windows in the application program in the display screen of the electronic device, the controls in the first window perform operations, so that the content that should have been displayed in the pop-up window is displayed through the second window, thereby realizing the split-screen display of the first window and the second window.
It improves the user's visual experience and user experience, and enhances the flexibility and interactivity of the window through linkage or ordinary split-screen mode.
Smart Images

Figure CN120045251A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a display method and electronic equipment. Background Art
[0002] With the development of electronic equipment hardware and software technologies, electronic equipment has brought great convenience to people's life, study and work. For example, there are more and more scenarios of light interaction and multi-tasking on electronic equipment (mobile phones, tablets, etc.).
[0003] In order to enrich the screen and facilitate user operation and reference, electronic devices can display certain tasks or functions triggered by users in the application program in the form of pop-up new windows or floating windows. However, in this display mode, the new window or floating window will block the main window of the application program behind it, affecting the user experience. Summary of the invention
[0004] The present application provides a display method and an electronic device, which are used to enable the electronic device to display different windows within an application program in a split-screen manner to improve the user experience.
[0005] In the first aspect, the embodiments of the present application provide a display method, which can be applied to electronic devices. The terminal device here can refer to the terminal device itself, or a processor, module, chip, or chip system that implements the method in the terminal device. The following is an example of a terminal device, and the method includes the following steps:
[0006] An electronic device displays a first window of an application on a display screen; wherein the first window contains a first control, the first control is used to trigger a pop-up window or the first control is a pop-up window opened in the first window; in response to a first operation performed by a user on the first control in the first window, the first window and a second window are displayed in a split screen on the display screen; the second window is used to display the content displayed in the pop-up window.
[0007] Through this method, the electronic device can perform operations on the controls in the first window of the application to display the content that should have been displayed in the pop-up window of the application through the second window, and trigger the electronic device to display the first window and the second window in the application in split screen, thereby improving the user's visual experience and usage experience.
[0008] Exemplarily, the first control may be a control such as a virtual button, an icon, a hyperlink, etc., which is used to trigger a pop-up window to display corresponding content.
[0009] In one possible design, when the electronic device displays the first window and the second window in a split screen on the display screen, it can enter a linked split screen mode or a normal split screen mode; when the electronic device enters the linked split screen mode, in response to the second operation performed by the user on the first window, based on the first content displayed in the first window, second content corresponding to the first content is displayed in the second window; or when the electronic device enters the normal split screen mode, when the user performs the second operation on the first window, the content displayed in the second window is not updated; wherein the second operation is used to switch the display content of the first window, or the second operation is used to select the first content in the display content of the first window.
[0010] With this design, the electronic device can use the linkage split-screen mode to make the display content of the second window change as the display content of the first window changes; or can use the ordinary split-screen mode to make the first window and the second window independent of each other. This can improve the flexibility of the electronic device in displaying the first window and the second window in split-screen mode, and improve the user experience.
[0011] In a possible design, when the second operation is used to switch the display content of the first window, the first content is: all the content displayed in the first window after the display content of the first window is switched, or the content located at the set position of the first window after the display content of the first window is switched.
[0012] In a possible design, the electronic device may also display a first window partition area between the first window and the second window; the first window partition area includes a control icon; and the control icon is used to manage the split-screen mode of the electronic device.
[0013] This design makes it easy for users to manage the split-screen mode of the electronic device through the control icon.
[0014] In a possible design, when the electronic device is in the linked split-screen mode, the control icon is a first graphic; when the electronic device is in the normal split-screen mode, the control icon is a second graphic. This design can visually prompt the user of the current split-screen mode of the electronic device through the control icon.
[0015] In one possible design, the electronic device can also display a prompt window in response to the user's third operation on the control icon; wherein the prompt window includes a split-screen mode switch button and / or a position switch button; in response to the user selecting the split-screen mode switch button in the prompt window, the split-screen mode of the electronic device is switched; or in response to the user selecting the position switch button in the prompt window, the positions of the first window and the second window are switched.
[0016] Through this design, the user can switch the electronic device to split-screen mode or switch the positions of two windows being displayed in split-screen by operating the control icon. Optionally, the third operation can be a click operation, a combo operation, etc. performed on the control icon, which is not limited in this application. In addition, the electronic device can also actively close the prompt window after the prompt window is displayed for a certain period of time, or the electronic device can close the prompt window after the user selects any button in the prompt window, which is not limited in this application.
[0017] In one possible design, the electronic device can also switch the split-screen mode of the electronic device in response to a fourth operation performed by the user on the control icon; or switch the positions of the first window and the second window in response to a fifth operation performed by the user on the control icon.
[0018] Through this design, the user can switch the electronic device to split-screen mode or switch the positions of two windows being displayed in split-screen by performing operations on the control icon. The fourth operation and the fifth operation are different operations performed on the control icon. For example, the fourth operation is a single-click operation, and the fifth operation is a combo operation. For another example, the fourth operation and the fifth operation are both combo operations, but the number of combos of the two operations is different. For another example, in a scenario where the electronic device is equipped with an external input device, the fourth operation and the fifth operation can be different operations performed by the user through the external input device, such as the fourth operation is a left-click operation, the fifth operation is a right-click operation, etc.
[0019] In a possible design, the electronic device may also adjust the areas of the first window and the second window in response to the user's dragging operation on the first window partition.
[0020] With this design, the user can adjust the areas of the two windows displayed in split screen by dragging the first window split area.
[0021] In one possible design, the first operation is to drag the first control to a first side of a display area in the display screen, where the display area is an area in the display screen used to display a user interface.
[0022] The design defines an operation for triggering the split-screen display function of the electronic device. Further, the first operation may be to drag the first control into a set range of the first side. Exemplarily, the set range may be a middle position range of the first side except near the two end points (for example, the distance from the end points is less than a set distance threshold).
[0023] In a possible design, the first side is a set side, and an initial position relationship between the second window and the first window is set.
[0024] The first side may be a side specially set for the electronic device to start the split screen display multiple windows function, that is, the first side is a set side. Optionally, the first side may be a default side of the operating system of the electronic device, or may be set by the user.
[0025] In a possible design, the first side may be any side in the display area, and after the electronic device starts the split-screen display function, the initial position relationship between the second window and the first window may also change according to the change of the first side, as follows:
[0026] The first side edge is the left side edge, and the initial position relationship between the second window and the first window is that the second window is located on the left side of the first window; or the first side edge is the right side edge, and the initial position relationship between the second window and the first window is that the second window is located on the right side of the first window; or the first side edge is the upper side edge, and the initial position relationship between the second window and the first window is that the second window is located on the upper side of the first window; or the first side edge is the lower side edge, and the initial position relationship between the second window and the first window is that the second window is located on the lower side of the first window.
[0027] Through this design, the electronic device can flexibly display the initial position relationship between the second window and the first window during split-screen display based on the position of the first side, thereby improving user experience.
[0028] In a possible design, when the electronic device does not display other windows on the display screen, the initial area of the first window is the same as the initial area of the second window.
[0029] With this design, the electronic device can set the initial area of the first window to be the same as the initial area of the second window in a two-split screen scenario.
[0030] In one possible design, when the electronic device displays the first window and the third window in a split screen in the display screen, in response to the first operation performed on the first control, the electronic device displays the first window, the second window, and the third window in a split screen in the display screen.
[0031] Through this design, electronic devices can realize multi-split screen function.
[0032] In a possible design, the electronic device may display the first window, the second window, and the third window in split screen on the display screen through the following steps:
[0033] The electronic device determines the area ratio of the second window and the third window according to the contact position of the first operation on the first side; and displays the first window, the second window and the third window in split screen on the display screen according to the area ratio; wherein the second window and the third window are located on the same side of the first window.
[0034] With this design, the electronic device can determine the area ratio of the second window and the third window displayed in split screen according to the user's operation, so that the second window and the third window can be displayed in split screen according to the area ratio.
[0035] In a possible design, the electronic device may determine the area ratio of the second window and the third window according to the ratio of the distance between the contact point position and the two ends of the first side.
[0036] In a possible design, the second window and the third window are located on the same side of the first window, and an initial area of the second window is the same as an initial area of the third window.
[0037] In one possible design, the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window; or the sum of the initial area of the second window and the initial area of the third window is equal to the first area, and the first area is the final area of the third window when the electronic device displays the first window and the third window in split screen.
[0038] In one possible design, the electronic device may further display a second window partition area between the second window and the third window; and adjust the areas of the second window and the third window in response to the user dragging the second window partition area.
[0039] With this design, the user can adjust the areas of the second window and the third window displayed on the split screen by dragging the second window split area.
[0040] In a possible design, the electronic device may also switch the positions of the second window and the third window in response to a fifth operation performed by the user on the second window or the third window.
[0041] For example, the fifth operation may be a drag operation, a single click operation, a combo operation, etc. of the second window or the third window by the user, which is not limited in this application. Exemplarily, when the user drags the second window to the position of the third window, the electronic device may switch the positions of the second window and the third window.
[0042] In one possible design, the electronic device can also close the first window and the second window in response to the user's exit operation on the application; and continue to display the first window and the second window in split screen on the display screen in response to the user's start operation on the application.
[0043] With this design, the split-screen display function of the first window and the second window of the application in the electronic device will not be closed due to the exit of the application. When the application is started again, the electronic device can continue to display the first window and the second window in split screen.
[0044] In a second aspect, an embodiment of the present application provides an electronic device, including a unit for executing each step in the method provided in the first aspect above. For example, the electronic device may include a display unit and a processing unit, wherein the display unit is used to display a user interface, and the processing unit is used to implement the method provided in the first aspect.
[0045] In a third aspect, an embodiment of the present application provides an electronic device, comprising a display screen, at least one processor and a memory; the at least one processor is coupled to the memory, and the at least one processor is used to read a computer program stored in the memory to execute the method provided in the first aspect.
[0046] In a fourth aspect, an embodiment of the present application provides a chip, which is used to read a computer program stored in a memory and execute the method provided in the first aspect above. Optionally, the chip may include a processor, which is coupled to the memory and is used to read the computer program stored in the memory to implement the method provided in the above embodiment. Optionally, the chip may also include components such as a memory, a communication interface, and a power supply module. The memory is used to store a computer program; the communication interface is used to receive and send data; and the power supply unit is used to power the processor.
[0047] In a fifth aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method provided in the first aspect. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0048] In a sixth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program runs on an electronic device, the computer executes the method provided in the first aspect above.
[0049] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program; when the computer program is run on a computer, the computer executes the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A structural diagram of an electronic device provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0052] Figure 3 A flow chart of a display method provided in an embodiment of the present application;
[0053] Figure 4A-Figure 4R Example diagrams of user interfaces of several electronic devices provided in the embodiments of the present application;
[0054] Figure 5 An example diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0055] Figure 6 An example diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0056] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The present application provides a display method and an electronic device, which are used to enable the electronic device to display different windows in an application program in a split screen to improve the user experience. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve the problem in a similar manner, the implementation of the electronic device and the method can refer to each other, and the repetitive parts will not be repeated.
[0058] Some terms in this application are explained below to facilitate understanding by those skilled in the art.
[0059] 1) Electronic equipment refers to equipment or devices with data connectivity, data calculation and processing, and interface display functions.
[0060] For example, the electronic device in this application can be a tablet computer, a personal computer (PC), a laptop, a computer, a netbook, a car computer, a smart phone, a smart wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), etc. Of course, the electronic device can also be various portable devices, car terminal devices, personal digital assistants (PDA), smart home devices (such as smart TVs, etc.) and other smart devices. This application does not limit the specific form of the electronic device.
[0061] The electronic device can realize its functions through the operating system installed and provide services to the user. For example, the electronic device can be equipped with, but not limited to, Or other operating systems.
[0062] 2) Applications are used to be installed in electronic devices and can provide services to users after running. Applications can also be called application software or applications (APP). In the subsequent description, application and application are equivalent and can be replaced with each other.
[0063] The application program may be developed by the manufacturer of the electronic device, or by the supplier of the operating system of the electronic device, or by a third-party application manufacturer, and this application does not limit this.
[0064] For example, the application programs may include: various drawing applications, calling applications, camera applications, text messaging applications, chat applications, video applications, music applications, electronic map applications, social applications, office applications, etc.
[0065] 3) Controls are control components installed in electronic devices that encapsulate data and / or programs and are used to activate certain functions or applications of electronic devices. Optionally, in the user interface, controls can be presented in a variety of forms, including but not limited to virtual buttons, icons, hyperlinks, pop-up windows (e.g., pop-up boxes, floating windows, etc.).
[0066] In an embodiment of the present application, a control displayed in a window of an application is used to start a certain function of the application or to start another application during the operation of the application to support the application.
[0067] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0068] In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the electronic device will make corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the electronic device to make a judgment when implementing it, nor does it mean that there are other limitations.
[0069] It should be noted that in this application, "used for indication" can include being used for direct indication and being used for indirect indication. When describing that a certain information is used to indicate A, it can include that the information directly indicates A or indirectly indicates A, but it does not mean that the information must carry A. Taking the first information used to indicate the first content as an example, the first information can include the first content, and can also include a part of the first content or an identifier or index of the first content, and can also include an algorithm for determining the first content, a calculation parameter, etc. This application does not limit the method of "indication".
[0070] In the present application, "including / comprising A" may be equivalent to "including / comprising A information". A information is used to indicate A.
[0071] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
[0072] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0073] The present application embodiment provides an electronic device, which can implement the display method provided by the present application embodiment. Figure 1 , the structure of the electronic device provided in the embodiments of the present application is introduced.
[0074] like Figure 1As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc.
[0075] The processor 110 may include one or more processing units, for example: the processor 110 may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. 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 100. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0076] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. By providing the memory, the number of times the processor 110 accesses data to the internal memory 121 may be reduced, the waiting time of the processor 110 may be reduced, and thus the efficiency of the system may be improved.
[0077] The display method provided in the embodiment of the present application can be controlled by the processor 110 or other components can be called to complete, such as calling the software program of the embodiment of the present application stored in the internal memory 121, and controlling the display screen 194 to display the user interface. The processor 110 can include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU can cooperate to execute the display method provided in the embodiment of the present application. For example, part of the internal algorithm in the method is executed by the CPU, and another part of the algorithm for displaying the user interface is executed by the GPU to obtain faster processing efficiency.
[0078] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can be used to display information input by a user or information provided to a user and various graphical user interfaces (GUIs). For example, the display screen 194 can display windows, photos, videos, web pages, or files, etc. In addition, it can be understood that in some embodiments, the status bar may also include a Bluetooth icon, a Wi-Fi icon, an external device icon, etc. In some embodiments, when the processor 110 detects a touch operation of a user's finger (or a stylus, etc.) on the user interface, it executes corresponding instructions in response to the touch operation and may also display an updated user interface on the display screen 194 .
[0079] In the embodiment of the present application, the display screen 194 can be an integrated flexible display screen, or a spliced display screen composed of two or more rigid screens and a flexible screen located between two adjacent rigid screens. After the processor 110 runs the display method provided in the embodiment of the present application, the processor 110 can control the display screen 194 to display the user interface of the application.
[0080] In some embodiments, part or all of the area of the display screen 194 can be used to display a user interface. For example, the electronic device 100 can have multiple display modes, and each display mode has a corresponding display area. The shape or size of the display area corresponding to different display modes may be different. It should be noted that the display areas corresponding to different display modes may overlap.
[0081] In some specific scenarios, the display mode of the electronic device 100 may also be related to the state of the electronic device 100. For example, for a foldable electronic device with multiple display screens, the display area in the unfolded state and the folded state may be different, and the display screen where the display area is located and the size may also be different.
[0082] Of course, the electronic device 100 may also have only one display mode. In this case, the electronic device 100 may display the user interface through the entire area of the display screen 194 , or may display the user interface through a partial area of the display screen 194 .
[0083] The camera 193 is used to capture still images or videos. Optionally, the electronic device 100 may include 1 to N cameras 193. For example, the camera 193 may include a front camera or a rear camera, or a camera 193 may be used as both a front camera and a rear camera. Typically, the camera 193 may include a photosensitive element such as a lens group and an image sensor. Among them, the lens group includes a plurality of lenses (convex lenses or concave lenses) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signal.
[0084] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, a program code of at least one application, etc. The operating system may include, but is not limited to, The data storage area can store data created during the use of the electronic device 100 .
[0085] The internal memory 121 may also store one or more computer programs for executing the display method provided in the embodiment of the present application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions, which may be used to execute the various steps in the following embodiments.
[0086] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0087] The sensor module 180 may include, but is not limited to, a fingerprint sensor, a touch sensor, a pressure sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.
[0088] Touch sensor, also known as "touch panel". The touch sensor can be set on the display screen 194. The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some embodiments, the touch sensor can be integrated with the display screen 194 to form a touch display screen. In other embodiments, the touch sensor can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0089] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0090] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0091] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0092] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0093] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0094] In addition, the electronic device 100 can implement audio functions such as music playback, recording, etc. through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. The electronic device 100 can receive the key 190 input and generate the key signal input related to the user setting and function control of the electronic device 100. The electronic device 100 can generate a vibration prompt using the motor 191. The indicator 192 in the electronic device 100 can be an indicator light, which can be used to indicate the charging status, the change of the power, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195, to achieve contact and separation with the electronic device 100.
[0095] It should be understood that in practical applications, Figure 1 The electronic device 100 shown is only an example and does not constitute a limitation of the electronic device. And the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application-specific integrated circuits.
[0096] The software system of the electronic device 100 provided in the embodiment of the present application can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Figure 2 The software structure of the electronic device is exemplified.
[0097] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. Figure 3 As shown, the software architecture can be divided into four layers, from top to bottom, namely, application layer, application framework layer (framework, FWK), system library, and kernel layer. In addition, the electronic device may also include a hardware layer.
[0098] The application layer is the top layer of the operating system, including native applications of the operating system and third-party applications, such as camera, gallery, calendar, Bluetooth, music, video, information and so on.
[0099] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0100] The window manager is used to provide window management services (WMS). The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The window manager can provide multiple management functions to control the transparency, position, size and other parameters of the window or interface on the display screen.
[0101] Content providers are used to store and retrieve data and make these data accessible to applications. The data may include files (such as documents, videos, images, audio), text and other information.
[0102] The view system includes visual controls, such as controls for displaying text, images, documents, etc. The view system can be used to build applications. The interface in the display window can be composed of one or more controls. For example, a display interface showing a file icon can include controls for displaying text and controls for displaying images.
[0103] The phone manager is used to provide the communication function of the terminal device. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.
[0104] Optionally, the application framework layer may also include a split screen manager. The split screen manager may be used to implement the display method provided in the embodiment of the present application, that is, when a window of an application is displayed, when a control operation performed on a control in the window is detected, the window and another window are displayed in a split screen. It should be noted that, at the application framework layer, the split screen manager may be deployed independently or integrated in a window manager, and the present application does not limit this.
[0105] Optionally, in the Android system, the software structure of the electronic device also includes an Android runtime. The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library of the Android system consists of two parts: one part is the function function that the Java language needs to call, and the other part is the core library of the Android system. The application layer and the application framework layer run in the virtual machine. Taking Java as an example, the virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0106] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0107] The kernel layer provides the core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, which are all implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer has many drivers related to electronic devices, the main drivers are: display driver; keyboard driver as input device; Flash driver based on memory technology device; camera driver; audio driver; Bluetooth driver; WiFi driver, etc.
[0108] The hardware layer can include various sensors, display screens, cameras, etc.
[0109] It should be noted that Figure 2 This is only an example of a software structure diagram of an electronic device, in which only some levels and software modules are simply listed. In practical applications, the operating system of the electronic device may also include other levels and each level may also include other software modules for implementing one or more functions or services. This embodiment of the present application does not specifically limit this. In addition, the embodiment of the present application does not limit the specific level of each software module.
[0110] The present application provides a display method, which can be applied to Figure 1 The electronic device shown in FIG. 1 may be used to describe the software structure of the electronic device. Figure 2 As shown below. Figure 3 The flowchart shown specifically illustrates the method provided in the embodiment of the present application.
[0111] S301: The electronic device displays a first window of an application program on a display screen, wherein the first window includes a first control, and the first control is used to trigger a pop-up window or the first control is a pop-up window opened in the first window.
[0112] Optionally, the first control may be, but is not limited to, any of the following: a virtual button, an icon, a hyperlink, or a pop-up window (a pop-up box, a floating box). The virtual button, icon, or hyperlink is used to trigger a pop-up window to display corresponding content.
[0113] When the first control is a pop-up window, it can be used as a temporary window or a regular window of the application. The user can trigger the display of the pop-up window through a virtual button, icon, or hyperlink, or display the pop-up window by selecting the target content in the display content of the first window. The present application does not limit the triggering method of the pop-up window displayed in the first window.
[0114] Taking the reading application in a tablet computer as an example, when the user selects the target text in the main function window of the reading application, the reading application can start the translation function of the target text. Figure 4AAs shown, the first window displayed by the tablet computer is the main function window of the reading application, and the first window contains the text opened by the user; the first control in the first window is a pop-up window, which is used to implement the translation function of the reading application and to translate the target text selected by the user in the first window.
[0115] S302: In response to a first operation performed by a user on a first control in a first window, the electronic device displays a first window and a second window in a split screen on a display screen; the second window is used to display the content displayed in the pop-up window.
[0116] Continue with Figure 4A Taking the scenario shown in the figure as an example, when the user performs a first operation on the first control in the first window, the tablet computer can display the first window and the second window in split screen (ie, split screen of the two windows), such as Figure 4B shown.
[0117] Optionally, in an embodiment of the present application, when the electronic device displays the first window and the second window in a split screen on the display screen, it can enter a linked split screen mode or a normal split screen mode.
[0118] The linkage split-screen mode indicates that there is a correlation between multiple windows displayed in the split-screen. When the display content of one window changes, the display content of other windows displayed in the split-screen will also change. It can be understood that there is a primary and secondary relationship between these windows, one is the main window, and the other windows are secondary windows. The display content of the secondary window will change with the change of the display content of the main window, wherein the secondary window is the window that the user triggers to open through operation in the main window. In the embodiment of the present application, the first window is the main window and the second window is the secondary window.
[0119] Normal split-screen mode means that the multiple windows displayed in the split-screen are independent of each other. When the display content of one window changes, the display content of other windows displayed in the split-screen will not change. It can be understood that these windows are in a parallel relationship.
[0120] Different split-screen modes are described below through the following first implementation and second implementation.
[0121] The first implementation mode: When the electronic device executes S302, it enters the linkage split screen mode. In this case, the display content of the second window can change with the change of the display content of the first window. For example, the electronic device can realize the linkage between the two windows through the following steps:
[0122] The electronic device displays second content corresponding to the first content in the second window based on the first content displayed in the first window in response to a second operation performed by the user on the first window.
[0123] In one implementation, the second operation may be an operation for switching the display content of the first window. In this case, the first content may be all the content displayed in the first window after the display content of the first window is switched, or the content located at a set position in the first window after the display content of the first window is switched. Figure 4B Taking the scenario shown in FIG. 1 as an example, the second operation may be to switch the display content of the first window, such as Figure 4C As shown, the tablet computer assumes that all text displayed in the first window after the display content of the first window is switched is the text to be translated. At this time, the second window can display the translated text of the entire text; or Figure 4D As shown, the tablet computer can default to the text at the set position of the first window after switching the display content of the first window (for example, the first paragraph of text or the first sentence of text, the first paragraph of text is taken as an example in the figure) as the text that needs to be translated. At this time, the second window can display the translated text corresponding to the text at the set position.
[0124] In another implementation, the second operation may be an operation for selecting the first content in the first window. That is, the first content is the content to be reselected by the second operation. Figure 4B For example, the second operation may be to select text in the first window. Figure 4E As shown, the tablet computer can display the translation text of the re-selected text in the second window according to the text re-selected by the user through the second operation.
[0125] Second implementation mode: When the electronic device executes S302, it enters the normal split screen mode. In this case, the second window and the first window are independent of each other, and the displayed contents are not related to each other. That is, when the user performs the second operation on the first window, the content displayed in the second window is not updated. For the description of the second operation, please refer to the relevant description in the first implementation mode, which will not be repeated here.
[0126] For example, continue with Figure 4B For example, the second operation may be to select text in the first window. Figure 4F As shown, the text selected in the first window on the tablet is relative to Figure 4B The initial state of the second window has changed, but the content displayed in the second window has not changed. Figure 4B The second window in the initial state.
[0127] Optionally, in S302, when the electronic device displays the first window and the second window in split screen, the first window partition area may be displayed between the first window and the second window. FIG. 4B to FIG. 4FOptionally, the first window partition area may include a control icon; the control icon is used to manage the split screen mode of the electronic device.
[0128] In one implementation, in order to visually indicate to the user the current split-screen mode of the electronic device, the shape of the control icon may be different in different split-screen modes. That is, when the electronic device is in the linked split-screen mode, the control icon may be a first graphic; when the electronic device is in the normal split-screen mode, the control icon may be a second graphic. Figure 4B Take the scenario shown as an example, Figure 4G As shown in (a) of FIG. 1 , in the linkage split-screen mode, the shape of the control icon in the first window partition area is a first graphic; Figure 4G As shown in (b), in the normal split-screen mode, the shape of the control icon in the first window partition area is the second graphic.
[0129] In one implementation, the electronic device may manage the split screen mode of the electronic device based on the control icon in the first window split area in the following manner:
[0130] The electronic device displays a prompt window in response to a third operation performed by a user on the control icon; wherein the prompt window includes a split-screen mode switch button and / or a position switch button; the electronic device switches the split-screen mode of the electronic device in response to a selection operation performed by a user on the split-screen mode switch button in the prompt window; or switches the positions of the first window and the second window in response to a selection operation performed by a user on the position switch button in the prompt window.
[0131] Optionally, the third operation may be a click operation or a combo operation performed on the control icon, which is not limited in this application. In addition, the electronic device may actively close the prompt window after the prompt window is displayed for a certain period of time, or the electronic device may close the prompt window after the user selects any button in the prompt window, which is not limited in this application.
[0132] Continue with Figure 4B As an example, assume that in S302 the tablet computer responds to the first operation and enters the following state by default: Figure 4G Linked split screen mode as shown in (a) in the figure. Figure 4H For example, when a user clicks a control icon (in the shape of a first graphic) in a first window partition area between a first window and a second window, the tablet computer may display a prompt window, in which a split-screen mode switching button and a position switching button may be displayed, such as Figure 4H As shown in (a) in FIG. 1 ; when the user selects the split-screen mode switch button, the tablet computer can switch to the normal split-screen mode, such as Figure 4HAs shown in (b) in FIG. 1 ; when the user selects the position switching button, the tablet computer can switch the positions of the first window and the second window, such as Figure 4H As shown in (c) in .
[0133] In one implementation, the electronic device may also manage the split screen mode of the electronic device based on the control icon in the first window split area in the following manner:
[0134] The electronic device switches the split-screen mode of the electronic device in response to a fourth operation performed by the user on the control icon; or switches the positions of the first window and the second window in response to a fifth operation performed by the user on the control icon.
[0135] It should be noted that the fourth operation and the fifth operation are different operations performed on the control icon. For example, the fourth operation is a single-click operation, and the fifth operation is a continuous click operation. For another example, the fourth operation and the fifth operation are both continuous click operations, but the number of continuous clicks of the two operations is different. For another example, in a scenario where the electronic device is equipped with an external input device, the fourth operation and the fifth operation can be different operations performed by the user through the external input device, such as the fourth operation is a left-click operation, the fifth operation is a right-click operation, etc.
[0136] In one implementation, the electronic device may further adjust the areas of the two windows displayed in split screen based on the first window partition area in the following manner:
[0137] The electronic device may adjust the areas of the first window and the second window in response to a user's dragging operation on the first window partition.
[0138] Continue with Figure 4B As an example, assume that in S302 the tablet computer responds to the first operation and enters the following state by default: Figure 4G Linked split screen mode as shown in (a) in the figure. Fig. 4I As shown in (a) and (b) of FIG. 1 , when the user performs a drag operation on the first window partition to the left, the tablet computer can synchronously move the position of the first window partition to the left as the drag operation is performed, thereby gradually reducing the area of the first window and gradually enlarging the area of the second window. Similarly, when the user performs a drag operation on the first window partition to the right, the tablet computer can also synchronously move the position of the first window partition to the right, thereby gradually enlarging the area of the first window and gradually reducing the area of the second window.
[0139] The first operation performed by the user on the first control in S302 is introduced below. Optionally, the first operation can be a single-click operation, a double-click operation, a drag operation, etc. performed by the user on the first control, which is not limited in this application. In short, the first operation is an operation that can realize opening the second window and split-screen display of the first window and the second window.
[0140] In one embodiment, the first operation is to drag the first control to the first side of the display area in the display screen, and the display area is the area in the display screen used to display the user interface. Usually, in order to facilitate the electronic device content system service image plane engine (Surface Flinger) to manage and generate image data of the user interface, the display area is generally a regular quadrilateral. Furthermore, the first operation can be to drag the first control to a set range of the first side. Exemplarily, the set range can be the middle position range of the first side except near the two end points (for example, the distance from the end points is less than the set distance threshold).
[0141] In addition, the present application does not limit the position of the first side edge. The first side edge is described below in two implementation methods.
[0142] In a first implementation, the first side may be a side specially set for the electronic device to start the split-screen display function for multiple windows, that is, the first side is a set side. Optionally, the first side may be a default side of the operating system of the electronic device, or may be set by the user. For example, the first side may be the upper side or the right side of the display area. Based on this, in S302, after the electronic device starts the split-screen display function, the initial position relationship between the second window and the first window (the default window position relationship of the electronic device) may be set. For example, Figure 4B As shown, the tablet computer displays the first window and the second window in a left-right split screen, and the second window is located on the right side of the first window. For another example, in some scenarios, the electronic device can display the first window and the second window in an upper-lower split screen, and the second window can be located on the lower side of the first window.
[0143] In the second implementation, the first side may be any side in the display area. After the electronic device starts the split-screen display function, the initial position relationship between the second window and the first window may also change according to the change of the first side, as shown in the following ways:
[0144] Mode 1: The first side is the left side, and the initial position relationship between the second window and the first window is that the second window is located on the left side of the first window.
[0145] Mode 2: The first side is the right side, and the initial position relationship between the second window and the first window is that the second window is located on the right side of the first window.
[0146] Mode three: the first side is the upper side, and the initial position relationship between the second window and the first window is that the second window is located on the upper side of the first window.
[0147] Mode 4: the first side is the lower side, and the initial position relationship between the second window and the first window is that the second window is located at the lower side of the first window.
[0148] by Figure 4A The following is an example of the scenario shown in Figure 1 (in this case, the display area of the tablet computer can be considered to be the same as the size of the tablet computer). Figure 4J As shown in (a) of FIG. 1 , when the user drags the first control to the left side of the tablet computer, the tablet computer displays the first window and the second window in a split screen, and the second window is located on the left side of the first window. Figure 4J As shown in (b) of FIG. 1 , when the user drags the first control to the right side of the tablet computer, the tablet computer displays the first window and the second window in a split screen, and the second window is located on the right side of the first window. Figure 4J As shown in (c) of FIG. 1 , when the user drags the first control to the upper side of the tablet computer, the tablet computer displays the first window and the second window in a split screen, and the second window is located on the upper side of the first window. Figure 4J As shown in (d), when the user drags the first control to the lower side of the tablet computer, the tablet computer displays the first window and the second window in upper and lower split screens, and the second window is located at the lower side of the first window.
[0149] It should also be noted that, according to the number of windows displayed in split screen by the electronic device at S302, it can be divided into a two-split screen scenario and a multi-split screen scenario. The following describes these two scenarios respectively.
[0150] Scene 1: Two-split screen scene.
[0151] In S302, the electronic device does not display other windows on the display screen (only the first window and the second window are displayed in split screen). In this scenario, the initial area of the first window and the initial area of the second window can be the same. Figure 4B , Figure 4G as well as Figure 4J As shown, when the tablet computer only displays the first window and the second window in split screen (i.e., the electronic device enters the two-split screen scenario), the tablet computer defaults that the initial area of the first window is the same as the initial area of the second window. Afterwards, the electronic device can adjust the area of the first window and the second window through user operation, for example Fig. 4I shown.
[0152] Scenario 2: Multi-split screen scenario.
[0153] When the electronic device is in a split-screen display state before executing S302, the electronic device needs to display not only the first window and the second window in split-screen display but also other windows in split-screen display when executing S302. In the case that the electronic device displays the first window and the third window in split-screen display in S301, the electronic device needs to display the first window, the second window and the third window in split-screen display in S302.
[0154] Optionally, in this scenario, when the electronic device displays the first window and the third window in split screen in S301, the electronic device may be in a linked split screen mode or a normal split screen mode, which is not limited in this application. In addition, the electronic device may also start the split screen display function in response to the user performing a first operation on some other control in the first window, and start to display the first window and the third window in split screen, which is not limited in this application.
[0155] Continuing with the reading application in the tablet computer as an example, it is assumed that the user opens the memo function in the main function window of the reading application to start a pop-up window (referred to as the second control) for displaying the memo, and then the user performs a first operation on the second control to display the first window and the third window in a split screen on the display screen, and the third window is used to display the memo, see Figure 4K After that, when the user starts the translation function of the reading application, the tablet computer displays a pop-up window of the translation function (i.e., the first control) in the first window, and then the user performs a first operation on the first control, thereby splitting the first window, the second window, and the third window in the display screen, and the second window is used to display the translated text, see Figure 4L Optionally, the first window, the second window and the third window may be arranged in parallel; Figure 4L The windows other than the main function window are located on the same side of the main function window, that is, the second window and the third window are located on the same side of the first window.
[0156] In order to improve the flexibility of the electronic device in displaying multiple windows in a split screen, in scenario 2, the electronic device may display the first window, the second window, and the third window in a split screen through, but not limited to, the following implementations:
[0157] The first implementation mode: the electronic device can determine the area ratio of the second window and the third window according to the contact position of the first operation on the first side; and display the first window, the second window and the third window in split screen on the display screen according to the area ratio; wherein the second window and the third window are located on the same side of the first window.
[0158] Optionally, in this implementation, the electronic device may determine the area ratio of the second window and the third window according to the ratio of the distance between the contact point position and two ends of the first side.
[0159] In one implementation, when the electronic device displays the three windows in split screen, the sum of the initial area of the second window and the initial area of the third window may be equal to the first area. The first area is the final area of the third window when the electronic device displays the first window and the third window in split screen. When the electronic device displays the three windows in split screen, the initial area of the first window is equal to the second area, and the second area is the final area of the first window when the electronic device displays the first window and the third window in split screen. That is, the electronic device can divide the final area of the original third window according to the area ratio, so as to display the second window and the third window on the final area.
[0160] Continue with Figure 4K Taking the scenario shown in the figure as an example, after the user starts the translation function of the reading application in the scenario, the user drags the pop-up window of the translation function to the right side of the display area in the display screen through the first operation. The contact point position on the right side of the first operation is located at point C on the right side. At this time, the ratio between the distance AC and the distance BC is 2:1. Figure 4M When the tablet computer displays the three windows in split screen, the area ratio between the initial area of the third window and the initial area of the second window is 2:1. Figure 4M As shown in (b) in .
[0161] Another example Figure 4N As shown, if the user adjusts the areas of the first window and the third window when the tablet computer displays the first window and the third window in split screen, then the sum of the initial area of the second window and the initial area of the third window when the tablet computer displays three windows is equal to the final area of the third window when the electronic device displays the first window and the third window in split screen.
[0162] In another implementation, when the electronic device displays the three windows in split screen, the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window. That is, when the electronic device displays the three windows in split screen, by default, the first window occupies half of the display area, and the second window and the third window together occupy the other half of the display area according to the above area ratio.
[0163] Assume that the user adjusts the areas of the first window and the third window when the tablet computer displays the first window and the third window in split screen, such as Figure 4N As shown in (a) in FIG. 1 , when the electronic device displays the third window in split screen, it will also default that the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window, such as Figure 4N As shown in (b) in .
[0164] A second implementation manner: when the electronic device displays the first window, the second window and the third window in split screen, the second window and the third window are located on the same side of the first window, and an initial area of the second window is the same as an initial area of the third window.
[0165] It should be noted that when the electronic device displays the three windows in split screen, the initial area of the second window is the same as the initial area of the third window by default. The electronic device may also determine, based on the first operation, that the initial area of the second window is the same as the initial area of the third window. For example, when the electronic device displays the first window and the third window in left and right split screens, if the user drags the first control to the upper side or the lower side of the display area, the electronic device may use the second implementation to display the three windows in split screen; and if the user drags the first control to the left side or the right side of the display area, the electronic device may continue to use the above-mentioned first implementation to display the three windows in split screen.
[0166] In one implementation, when the electronic device displays the three windows in split screen, the sum of the initial area of the second window and the initial area of the third window may be equal to the first area. The first area is the final area of the third window when the electronic device displays the first window and the third window in split screen. When the electronic device displays the three windows in split screen, the initial area of the first window is equal to the second area, and the second area is the final area of the first window when the electronic device displays the first window and the third window in split screen. That is, the electronic device can evenly divide the final area of the original third window, so as to display the second window and the third window of equal area on the final area.
[0167] Continuing with the scenario shown in 4K as an example, no matter where the user drags the pop-up window of the translation function to the first side through the first operation, when the tablet displays three windows in split screen, the initial area of the second window is equal to the initial area of the third window. Figure 4M In the case of (a), the user drags the pop-up window of the translation function to a side of the display area of the display screen. The state of the tablet computer splitting the screen to display three windows can be referred to Fig.4O As shown. Figure 4N In the case of (a), the user drags the pop-up window of the translation function to a side of the display area of the display screen. The state of the tablet computer splitting the screen to display three windows can be referred to Figure 4P shown.
[0168] In another implementation, when the electronic device displays the three windows in split screen, the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window. That is, when the electronic device displays the three windows in split screen, by default the first window occupies half of the display area, and the second window and the third window evenly divide the other half of the display area.
[0169] Assume that the user adjusts the areas of the first window and the third window when the tablet computer displays the first window and the third window in split screen, such as Figure 4N As shown in (a) in the figure, when the electronic device displays the third window in split screen, it will also default that the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window, and the initial area of the second window is the same as the initial area of the third window, as shown in (a) in the figure, Fig.4O shown.
[0170] It should also be noted that in scenario 2, when the electronic device displays the first window, the second window and the third window in split screen, the second window partition area may be displayed between the second window and the third window. Figure 4L , Figure 4M (b) Figure 4N (b) in Fig.4O and Figure 4P Based on this, the electronic device can also adjust the area of the second window and the third window based on the second window partition area through the following steps:
[0171] The electronic device adjusts the areas of the second window and the third window in response to the user's dragging operation on the second window partition.
[0172] by Figure 4P Take the scenario shown in the figure as an example, see Figure 4Q As shown, when the user performs a downward drag operation on the second window partition, the tablet computer can synchronously move the position of the second window partition downward as the drag operation is performed, thereby gradually reducing the area of the second window and gradually enlarging the area of the third window. Similarly, when the user performs an upward drag operation on the second window partition, the tablet computer can synchronously move the position of the second window partition upward as the drag operation is performed, thereby enlarging the area of the second window and gradually reducing the area of the third window.
[0173] In addition, in scenario 2, when the electronic device displays the first window, the second window, and the third window in split screen, the user can also switch the positions of the second window and the third window through operation. That is, the electronic device can also switch the positions of the second window and the third window in response to the fifth operation performed by the user on the second window or the third window. For example, the fifth operation can be a drag operation, a single click operation, a combo operation, etc. of the user on the second window or the third window, and this application does not limit this. Exemplarily, when the user drags the second window to the position of the third window, the electronic device can switch the positions of the second window and the third window.
[0174] It should also be noted that in this scenario 2, the electronic device can still manage the split-screen mode of the electronic device through the control icon in the first window partition area, and adjust the first window and other windows through the first window partition area. For changes in the third window, please refer to the changes in the second window in the above-mentioned related process, which will not be repeated here. In addition, the multi-split screen scenario in scenario 2 is explained by taking the electronic device splitting the screen to display three windows as an example. The electronic device can also split the screen to display more than three windows. For details, please refer to the specific description of the electronic device splitting the screen to display the three windows, which will not be repeated here.
[0175] Through S302, the electronic device can perform operations on controls in the application program to display multiple windows in the application program in split screen, thereby improving the user's visual experience and usage experience.
[0176] In addition, after S302, the split-screen display function of the first window and the second window of the application in the electronic device will not be closed due to the exit of the application. When the application is started again, the electronic device can continue to display the first window and the second window in split screen. The specific process is as follows:
[0177] The electronic device can close the first window and the second window in response to the user's exit operation on the application; thereafter, the electronic device can also continue to display the first window and the second window in split screen on the display screen in response to the user's start operation on the application.
[0178] Continue with Figure 4B As an example, assume that in S302 the tablet computer responds to the first operation and enters the following state by default: Figure 4G When the user exits the reading application (swiping upward from the bottom of the display area), as shown in (a) of FIG. Figure 4R As shown in (a) of FIG. 1 , the tablet computer closes all windows (the first window and the second window) in the reading application to exit the reading application and enter the main interface of the tablet computer, such as Figure 4R As shown in (b) in FIG. 1 ; when the user performs a start operation (single click operation) on the icon of the reading application in the main interface of the tablet computer, as shown in FIG. Figure 4R As shown in (c) in FIG. 1 , the tablet computer starts the application again and continues to display the first window and the second window in split screen on the display screen, as shown in FIG. Figure 4R As shown in (d) in .
[0179] In summary, an embodiment of the present application provides a display method, through which an electronic device can perform operations on controls in a first window of an application so that content that should have been displayed in a pop-up window of the application is displayed through a second window, and the electronic device can be triggered to display the first window and the second window in the application in a split screen, thereby improving the user's visual experience and usage experience.
[0180] It should be noted that the above Figure 4A-Figure 4R The examples do not constitute any limitation on the electronic devices, scenarios, applications, and interface layouts to which the method provided in the embodiments of the present application is applicable. The method can be applied to any electronic device and any application. The following is an explanation with other examples.
[0181] Example 1: When a user opens an office application on a mobile phone to edit a document, the user can enable the office application to start the image insertion function and text search function through some operations, or the office application can automatically start the image insertion function and text search function according to the document content edited by the user, so that the mobile phone can display a pop-up window for inserting an image (referred to as the first control) and an icon for the text search function (referred to as the second control) in the main function window (referred to as the first window) of the office application, see Figure 5 As shown in (a) in FIG. 1 . Afterwards, the user can drag the first control and the second control to enable the mobile phone to display the first window, the second window and the third window in split screen, see Figure 5 As shown in (b) in the figure. The second window is used to display the content related to the inserted picture (the content originally displayed in the first control), and the third window is used to display the content related to the text search function. In addition, when the mobile phone displays the above three windows in split screen, it is a linkage split screen mode, and the content displayed in the second window and the third window can change with the text selected by the user in the first window or the change of the document content in the first window.
[0182] Example 2: When a user opens a video application on a mobile phone to watch a video, the user can enable the video application to start the smart introduction function and the image shopping function through some operations, or the video application can automatically start the smart introduction function and the image shopping function according to the video content or software settings watched by the user, so that the mobile phone can display a pop-up window of the smart introduction (referred to as the first control) and a pop-up window of the image shopping (referred to as the second control) in the main function window of the video application (referred to as the first window), see Figure 6 As shown in (a) in the figure. Afterwards, the user can drag the first control and the second control to enable the mobile phone to display the first window, the second window and the third string of hooks in split screens, see Figure 6As shown in (b) in the figure. The second window is used to display the relevant content of the intelligent introduction (the content that should have been displayed in the first control), and the third window is used to display the relevant content of the image recognition shopping (the content that should have been displayed in the second control). In addition, when the mobile phone displays the above three windows in split screen, it is a linkage split screen mode, and the content displayed in the second window and the third window can change with the text selected by the user in the first window or the change of the document content in the first window.
[0183] It should also be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a chip, processor, or chip system in the device, and the embodiments of the present application do not limit them. The above embodiments are only described by taking the execution by the corresponding device as an example. In addition, the specific implementation methods or examples in the above embodiments do not limit the solutions provided in the embodiments of the present application.
[0184] It should be noted that in the above embodiments, some steps can be selected for implementation, and the order of the steps in the diagram can be adjusted for implementation, and this application does not limit this. It should be understood that executing some steps in the diagram, adjusting the order of the steps, or combining them for specific implementation all fall within the scope of protection of this application.
[0185] It is understandable that, in order to implement the functions in the above embodiments, the various devices involved in the above embodiments include hardware structures and / or software modules corresponding to the execution of the various functions. It should be easily appreciated by those skilled in the art that, in combination with the units and method steps of the various examples described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0186] It can be understood that the above-mentioned network architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new services, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0187] It should be noted that the "steps" in the embodiments of the present application are only for illustration, and are a method of expression used to better understand the embodiments, and do not constitute a substantial limitation on the execution of the scheme of the present application. For example, the "steps" can also be understood as "features". In addition, the steps do not constitute any limitation on the execution order of the scheme of the present application. Any changes in the order of steps, step merging, or step splitting made on this basis that do not affect the implementation of the overall scheme, and the resulting new technical solutions are also within the scope of the disclosure of the present application.
[0188] Based on the same concept, the present application also provides an electronic device. Figure 7 As shown, the electronic device includes one or more processors 701, a memory 702, a transceiver 703 and a display screen 704. For example, the above-mentioned components can be connected via one or more communication buses. Among them, one or more computer programs are stored in the above-mentioned memory 702 and are configured to be executed by the processor 701. The one or more computer programs include instructions, and the above-mentioned instructions can be used to enable the electronic device to perform each step of the method in the above-mentioned embodiments.
[0189] Exemplarily, the processor 701 may be Figure 1 The processor 110 shown. The memory 702 may be Figure 1 The internal memory 121 shown and / or the external memory connected to the external memory interface 120 of the electronic device. The transceiver 703 can be Figure 1 The mobile communication module 150 and / or the wireless communication module 160 shown. The display screen 704 can be specifically Figure 1 The display screen 194 is shown, and the embodiment of the present application does not impose any limitation on this.
[0190] Based on the same concept, an embodiment of the present application also provides an electronic device, which includes a unit for executing each step of the method provided in the above embodiment. Optionally, the electronic device may include a display screen and a processing unit. Optionally, the electronic device may also include a communication unit. The display screen is used to display a user interface; the communication unit is used to receive and send data; and the processing unit is used to execute the method provided in the above embodiment.
[0191] For the specific functions of the above modules, please refer to the above embodiments and will not be repeated here.
[0192] Based on the above embodiments, the embodiments of the present application further provide a computer program product, which includes a computer program; when the computer program runs on a computer, the computer executes the method provided in the above embodiments.
[0193] Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.
[0194] Optionally, the above-mentioned computer may include, but is not limited to, electronic devices.
[0195] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.
[0196] Based on the above embodiments, the embodiments of the present application further provide a chip, the chip is used to read the computer program stored in the memory, and implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, the processor is coupled to the memory, and is used to read the computer program stored in the memory, and implement the method provided in the above embodiments.
[0197] Based on the above embodiments, the embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in the electronic device in the above embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0198] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0199] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0200] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0201] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0202] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A display method, applied to an electronic device, characterized in that, it includes: displaying a first window of an application in a display screen; wherein, a first control is included in the first window, and the first control is used to trigger a pop-up window or the first control is a pop-up window opened within the first window; in response to a first operation performed by a user on the first control within the first window, splitting the screen in the display screen to display the first window and a second window; the second window is used to display the content shown in the pop-up window.
2. The method according to claim 1, characterized in that, the method further includes: entering a linkage split-screen mode; in response to a second operation performed by the user on the first window, based on first content shown in the first window, displaying second content corresponding to the first content in the second window; or entering a normal split-screen mode; when the user performs a second operation on the first window, not updating the content shown in the second window; wherein, the second operation is used to switch the display content of the first window, or the second operation is used to select the first content from the display content of the first window.
3. The method according to claim 2, characterized in that, when the second operation is used to switch the display content of the first window, the first content is: all the content shown in the first window after the display content of the first window is switched, or the content located at a set position in the first window after the display content of the first window is switched.
4. The method according to claim 2 or 3, characterized in that, the method further includes: displaying a first window split area between the first window and the second window; a control icon is included in the first window split area; the control icon is used to manage the split-screen mode of the electronic device.
5. The method according to claim 4, characterized in that, when the electronic device is in the linkage split-screen mode, the control icon is a first graphic; when the electronic device is in the normal split-screen mode, the control icon is a second graphic.
6. The method according to claim 4 or 5, characterized in that, the method further includes: in response to a third operation performed by the user on the control icon, displaying a prompt window; wherein, a split-screen mode switching button and / or a position switching button are included in the prompt window; in response to a selection operation performed by the user on the split-screen mode switching button in the prompt window, switching the split-screen mode of the electronic device; or in response to a selection operation performed by the user on the position switching button in the prompt window, switching the positions of the first window and the second window; or in response to a fourth operation performed by the user on the control icon, switching the split-screen mode of the electronic device; or in response to a fifth operation performed by the user on the control icon, switching the positions of the first window and the second window.
7. The method according to any one of claims 4-6, characterized in that, the method further includes: In response to the user's dragging operation on the first window partition area, adjust the areas of the first window and the second window.
8. The method according to any one of claims 1-7, wherein, the first operation is to drag the first control to the first side of the display area on the display screen, and the display area is the area on the display screen for displaying the user interface.
9. The method according to claim 8, wherein, the first side is a set side, and the initial positional relationship between the second window and the first window is set.
10. The method according to claim 8, wherein, the first side is the left side, and the initial positional relationship between the second window and the first window is that the second window is located on the left side of the first window; or the first side is the right side, and the initial positional relationship between the second window and the first window is that the second window is located on the right side of the first window; or the first side is the upper side, and the initial positional relationship between the second window and the first window is that the second window is located on the upper side of the first window; or the first side is the lower side, and the initial positional relationship between the second window and the first window is that the second window is located on the lower side of the first window.
11. The method according to any one of claims 8-10, wherein, when the electronic device does not display other windows on the display screen, the initial area of the first window is the same as the initial area of the second window.
12. The method according to any one of claims 8-10, wherein, displaying the first window of the application program on the display screen includes: displaying the first window and the third window in split screen on the display screen; displaying the first window and the second window in split screen on the display screen includes: displaying the first window, the second window and the third window in split screen on the display screen.
13. The method according to claim 12, wherein, displaying the first window, the second window and the third window in split screen on the display screen includes: determining the area ratio of the second window and the third window according to the contact position of the first operation on the first side; displaying the first window, the second window and the third window in split screen on the display screen according to the area ratio; wherein, the second window and the third window are located on the same side of the first window.
14. The method according to claim 13, wherein, determining the area ratio of the second window and the third window according to the contact position of the first operation on the first side includes: determining the area ratio of the second window and the third window according to the ratio of the distance between the contact position and the two ends of the first side.
15. The method according to claim 12, wherein, the second window and the third window are located on the same side of the first window, and the initial area of the second window is the same as the initial area of the third window.
16. The method according to any one of claims 12-15, characterized in that, the sum of the initial area of the second window and the initial area of the third window is equal to the initial area of the first window; or the sum of the initial area of the second window and the initial area of the third window is equal to a first area, and the first area is the final area of the third window when the electronic device displays the first window and the third window in split screen.
17. The method according to any one of claims 12-16, characterized in that, the method further comprises: displaying a second window partition area between the second window and the third window; in response to a drag operation of the user on the second window partition area, adjusting the areas of the second window and the third window.
18. The method according to any one of claims 12-17, characterized in that, the method further comprises: in response to a fifth operation performed by the user on the second window or the third window, switching the positions of the second window and the third window.
19. The method according to any one of claims 1-18, characterized in that, the method further comprises: in response to an exit operation performed by the user on the application, closing the first window and the second window; in response to a start operation performed by the user on the application, continuing to display the first window and the second window in split screen on the display screen.
20. An electronic device, characterized in that, the electronic device comprises: a display screen for displaying a user interface; a memory for storing computer program instructions; a processor for executing the computer program instructions to support the electronic device to implement the method according to any one of claims 1-19.
21. A computer-readable storage medium, characterized in that, computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processing circuit, the method according to any one of claims 1-19 is implemented.
22. A computer program product comprising instructions, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1-19.
23. A chip system, characterized in that, the chip system comprises a processing circuit and a storage medium, and computer program instructions are stored in the storage medium; when the computer program instructions are executed by the processing circuit, the method according to any one of claims 1-19 is implemented.