Display method and electronic equipment

By adjusting the display mode of windows and input interfaces on the display screen of electronic devices, the problem of poor display effects of floating keyboards and application windows is solved, and the use efficiency is improved.

CN120216060APending Publication Date: 2025-06-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311809147.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

When existing electronic devices adjust the input interface, the display effect of the floating keyboard and the application window is poor, resulting in low viewing and use efficiency.

Method used

By displaying the first window on the display screen and switching it to a second window in response to user operations, the second window contains part or all of the input interface and the first window, the size and position of the window are adjusted to optimize the display of the input interface.

Benefits of technology

It improves the combined display effect of the input interface and application window, and enhances the user's operating experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216060A_ABST
    Figure CN120216060A_ABST
Patent Text Reader

Abstract

The invention provides a display method and electronic equipment, the method is applied to the electronic equipment, and the method comprises the following steps: displaying a first window on a display screen; wherein the first window comprises first content, and the first window occupies a part of display area on the display screen; in response to the received first operation, switching the first window into a second window; wherein the first operation is used for indicating to display the first input interface; the second window comprises the first input interface and part or all of the first content; the second window occupies a part of display area on the display screen. According to the method, the display effect of simultaneously displaying the input interface and the window can be improved, and the efficiency of viewing and using the input interface and the application window is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic devices, and in particular, to a display method and an electronic device. Background Art

[0002] Currently, after an electronic device displays an application interface in a windowed manner, such as a floating window-style application window, when an input interface is invoked within the application window, a floating keyboard is mostly invoked. After the floating keyboard is invoked, the electronic device can display the floating keyboard and the application window simultaneously, but there are problems such as poor display effects, low viewing and usage efficiency, etc. Summary of the Invention

[0003] This application provides a display method and an electronic device, which are used to improve the display effect of simultaneously displaying an input interface and a window, and improve the efficiency of viewing and using the input interface and the application window.

[0004] In a first aspect, an embodiment of this application provides a display method applied to an electronic device. The method includes: displaying a first window on a display screen; where the first window includes first content, and the first window occupies a partial display area on the display screen; in response to a received first operation, switching the first window to a second window; where the first operation is used to indicate the display of a first input interface; the second window includes: the first input interface, and part or all of the first content; the second window occupies a partial display area on the display screen.

[0005] In this method, the first window can be an application window of any application in the electronic device. The second window can be the first window after the size and / or position is adjusted. During the adjustment process, the content in the first window can be adaptively adjusted to adapt to the size change of the first window. Optionally, the input interface can be a keyboard interface. In the above method, after the electronic device displays the first window in a partial display area on the display screen, when the first input interface needs to be invoked, the electronic device can display part or all of the content in the first window and the first input interface in the same window that still occupies a partial display area on the display screen, that is, the second window, which means that the first input interface can be displayed in the adjusted first window (i.e., the second window). In this method, by coordinating the window and the input interface to be displayed in one window, the relative size and relative position of the input interface and the window can be appropriately restricted, so that the input interface and the window are appropriately aligned, thereby improving the combined display effect of the application window and the keyboard. In addition, the distance between the input box in the window and the input interface can be restricted within a small range, thereby improving the hand-eye consistency and further improving the efficiency of input using the input interface. In summary, the above method can improve the display effect of simultaneously displaying the input interface and the window, and improve the efficiency of viewing and using the input interface and the window.

[0006] In a possible design, the size of the second window is determined according to the size of the first input interface; and / or, the position of the second window is determined according to the position of the first input interface.

[0007] In this method, the size and / or position of the second window is determined based on the size and / or position of the first input interface, and the final presentation of the window and the input interface can be carried out with the goal of giving priority to ensuring the display effect of the first input interface, thereby giving priority to ensuring the user experience of the input interface.

[0008] In a possible design, the size of the first input interface is any one of the following: a set default size; the size of the input interface displayed on the electronic device last time; the average size of multiple candidate sizes; the largest size among multiple candidate sizes; the smallest size among multiple candidate sizes; the size with the highest usage frequency among multiple candidate sizes; wherein, the candidate sizes are the sizes of the input interfaces displayed on the electronic device within a set historical time period. Optionally, the size of the input interface belongs to the size configured by the electronic device system or the size indicated by the user operation received by the electronic device.

[0009] In the above method, the electronic device can determine the display size of the input interface in various ways, with high flexibility and practicability. Among them, by determining the size of the input interface as the size of the input interface displayed on the electronic device last time or the size with the highest usage frequency among multiple candidate sizes, it is possible to ensure that the size of the input interface is a size that is comfortable for the user to use, thereby improving the user experience.

[0010] In a possible design, the position of the first input interface is any one of the following: a set default position; the position including the action point of the first operation on the display screen; the position of the input interface displayed on the electronic device last time; any position among multiple candidate positions; the position with the highest usage frequency among multiple candidate positions; wherein, the candidate positions are the positions of the input interfaces displayed on the electronic device within a set historical time period.

[0011] Optionally, the position of the input interface belongs to the position configured by the electronic device system or the position indicated by the user operation received by the electronic device.

[0012] In the above method, the electronic device can determine the display position of the input interface in various ways, with high flexibility and practicability. At the same time, it is possible to ensure that the position of the input interface is a position that is comfortable for the user to use, thereby improving the user experience.

[0013] In a possible design, the size of the second window meets the following conditions: the width of the second window is greater than or equal to the width of the first input interface, and the height of the second window is greater than the height of the first input interface; or, the width of the second window is greater than the width of the first input interface, and the height of the second window is greater than or equal to the height of the first input interface.

[0014] In the above method, the size of the first input interface is adapted to the size of the second window, which can improve the aesthetics of the combined display of the input interface and the window, and thus improve the user experience.

[0015] In a possible design, the position of the second window meets the following conditions: the boundary of the second window partially coincides with the boundary of the first input interface.

[0016] Based on the above method, the first input interface can be located at any boundary of the second window, which can improve the aesthetics of the combined display of the input interface and the window, and thus improve the user experience.

[0017] In a possible design, the boundary of the second window partially coincides with the boundary of the first input interface, specifically including: the boundary of the second window in the first direction coincides with the boundary of the first input interface in the first direction; and / or, the boundary of the second window in the second direction partially coincides with the boundary of the first input interface in the second direction. Optionally, the first direction is any one of up, down, left, and right. The second direction is any one of up, down, left, and right that is different from the first direction, or the second direction is each of any two directions that are different from the first direction among up, down, left, and right.

[0018] In the above method, while ensuring that the first input interface can be located at any boundary of the second window, there are multiple choices for the position of the first input interface in the second window. Therefore, the flexibility and practicality of this solution are relatively high. This method can further improve the aesthetics of the combined display of the input interface and the window, and thus improve the user experience.

[0019] In a possible design, the size of the first window is less than or equal to a first set size, and the size of the second window is greater than the size of the first window; or, the size of the first window is greater than or equal to a second set size, and the size of the second window is less than the size of the first window.

[0020] Based on the above method, when the size of the window is too small, the electronic device can increase the size of the window and then perform combined display of the window and the input interface, thereby controlling the window size to an appropriate size, which helps to improve the display effect of the window and facilitates the user to view relevant content. Or, when the size of the window is too large, the electronic device can reduce the size of the window and then perform combined display of the window and the input interface, thereby controlling the window size to an appropriate size, which helps to improve the display effect of the window and facilitates the user to view relevant content.

[0021] In a possible design, the switching of the first window to the second window includes: displaying a window switching animation effect, where the window switching animation effect includes: an animation effect for representing the process of the first window changing to a first size and moving to a first position; where the first size is the size of the second window and the first position is the position of the second window; after the window switching animation effect ends, display the second window.

[0022] In this method, during the window switching process, by displaying the corresponding window switching animation effect, the visibility of the window switching and the aesthetics of the relevant interface display can be improved, thereby improving the overall display effect.

[0023] In a possible design, the window switching animation effect further includes: an animation effect for displaying the first input interface; or, an animation effect for displaying a second input interface, and, an animation effect for representing the process of the second input interface changing to a second size and / or moving to a second position; where the second size is the size of the first input interface and the second position is the position of the first input interface.

[0024] In this method, during the window switching process, by displaying the animation effect related to the input interface, the visibility of the input interface display and the aesthetics of the relevant interface display can be improved, thereby improving the overall display effect.

[0025] Optionally, the size of the second input interface is the same as the size of the first input interface, or, the size of the second input interface is a set default size. Optionally, the position of the second input interface is the same as the position of the first input interface, or, the position of the second input interface is a set default position.

[0026] Based on the above method, the electronic device can adopt different ways to flexibly display the animation effect related to the input interface, thereby improving the overall display effect.

[0027] In a possible design, the first window includes an input control, and the input control is used to control the display of the first input interface, and the first operation is an operation on the input control. In this method, the electronic device can perform switching display of the window and the input interface under the control of the user.

[0028] In a possible design, the method further includes: in response to a received second operation, switching the second window to the first window; or, in response to a received third operation, switching the second window to a third window; wherein, the third window includes third content. Optionally, the third window and the second window have the same size and the same position.

[0029] Based on the above method, after the electronic device displays an input interface within a window, it can further perform window switching under user control, and the practicality of the solution is relatively high, which can improve the user experience.

[0030] Optionally, the first input interface includes an end input control for controlling the stop of displaying the first input interface, and the second operation is an operation acting on the end input control. In this method, the electronic device can perform switching displays related to windows and input interfaces under user control.

[0031] In a possible design, the first window is any one of a floating window, a split-screen window, or a parallel vision window.

[0032] The foregoing method can be applied to scenarios where an electronic device displays a floating window, a split-screen window, or a parallel vision. It can improve the effect of combining the display of a window and an input interface after invoking the input interface in a small window, thereby improving the efficiency of viewing and using the input interface and the window. Herein, a small window is a window that occupies a partial display area of the display screen.

[0033] In a second aspect, the present application provides an electronic device, which includes a display screen, a memory, and one or more processors; wherein, the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device is caused to execute the method described in the first aspect or any possible design of the first aspect.

[0034] In a third aspect, the present application provides a computer-readable storage medium storing a computer program, which, when running on an electronic device, causes the electronic device to execute the method described in the first aspect or any possible design of the first aspect.

[0035] In a fourth aspect, the present application provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions run on an electronic device, the electronic device is caused to execute the method described in the first aspect or any possible design of the first aspect.

[0036] In a fifth aspect, the present application provides a chip system, which includes a processor and a memory, and instructions are stored in the memory; when the instructions are executed by the processor, the method described in the first aspect or any possible design of the first aspect is implemented. The chip system may be composed of chips or may include chips and other discrete devices.

[0037] For the beneficial effects of the second aspect to the fifth aspect above, reference may be made to the beneficial effects of the first aspect above, which will not be repeated here. Description of the Drawings

[0038] Figure 1a It is a schematic diagram of the interface of an application window;

[0039] Figure 1b It is a schematic diagram of the interface showing an application window and a keyboard;

[0040] Figure 1c It is a schematic diagram of the interface showing an application window and a keyboard;

[0041] Figure 1d It is a schematic diagram of the interface showing an application window and a keyboard;

[0042] Figure 2 It is a schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present application;

[0043] Figure 3 It is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of a display method provided by an embodiment of the present application;

[0045] Figure 5 It is a schematic diagram of an application window provided by an embodiment of the present application;

[0046] Figure 6 It is a schematic diagram of the interface showing a keyboard within a window provided by an embodiment of the present application;

[0047] Figure 7 It is a schematic diagram of the interface showing a keyboard within a window provided by an embodiment of the present application;

[0048] Figure 8 It is a schematic diagram of a split-screen window provided by an embodiment of the present application;

[0049] Figure 9 It is a schematic diagram of the interface showing a keyboard within a split-screen window provided by an embodiment of the present application;

[0050] Figure 10Schematic diagram of a window switching method provided by an embodiment of the present application;

[0051] Figure 11 Schematic diagram of a keyboard size provided by an embodiment of the present application;

[0052] Figure 12 Schematic diagram of a window size provided by an embodiment of the present application;

[0053] Figure 13a Schematic diagram of an interface related to the first window switching animation effect provided by an embodiment of the present application;

[0054] Figure 13b Schematic diagram of an interface related to the first window switching animation effect provided by an embodiment of the present application;

[0055] Figure 14a Schematic diagram of an interface related to the second window switching animation effect provided by an embodiment of the present application;

[0056] Figure 14b Schematic diagram of an interface related to the second window switching animation effect provided by an embodiment of the present application;

[0057] Figure 15 Schematic diagram of an interface of an application window provided by an embodiment of the present application;

[0058] Figure 16 Schematic diagram of an interface of an application window provided by an embodiment of the present application;

[0059] Figure 17 Schematic diagram of an interface for displaying a window and a keyboard side by side provided by an embodiment of the present application;

[0060] Figure 18 Schematic diagram of an interface of an application window provided by an embodiment of the present application;

[0061] Figure 19 Schematic diagram of an interface for displaying a window and a keyboard side by side provided by an embodiment of the present application;

[0062] Figure 20 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0063] In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0064] Among them, in the description of the embodiments of the present application, hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.

[0065] For ease of understanding, illustrative descriptions of concepts related to the present application are provided for reference.

[0066] An electronic device can be a device with a display function or a device with a display screen. In some embodiments of the present application, the electronic device can be a portable device, such as a mobile phone, a tablet computer, a wearable device with a display function (such as a watch, etc.), a vehicle-mounted terminal device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart home device (such as a smart TV, a smart screen, etc.), a smart robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flying device (such as a smart robot, a drone, an airplane), etc.

[0067] Among them, a wearable device is a portable device that a user can directly wear on the body or integrate into the user's clothes or accessories.

[0068] In some embodiments of the present application, the electronic device can also be a portable terminal device with other functions. Exemplary embodiments of the portable terminal device include, but are not limited to, those equipped with or other operating systems. The above portable terminal device can also be other portable terminal devices, such as a laptop with a touch-sensitive surface (such as a touch panel), etc. It should also be understood that in some other embodiments of the present application, the above electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (such as a touch panel).

[0069] It should be understood that in the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item) of the following" or a similar expression refers to any combination of these items, including any combination of a single item or multiple items. For example, at least one (item) 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, and c can be single or multiple.

[0070] Currently, an electronic device can display an application interface in a windowed manner (i.e., non-full screen display), that is, the electronic device can display the application interface in a window (which can be understood as a floating window) that occupies a partial display area on the display screen. After the electronic device displays the application interface in a windowed manner, that is, displays the application window, when invoking an input method (i.e., an input interface), a floating keyboard is mostly invoked. The display priority of the floating keyboard is usually higher than that of other windows, such as the above-mentioned application window. After the floating keyboard is invoked, the electronic device will default to display the floating keyboard at a specific position that first ensures the display effect of the floating keyboard. This may affect the display effect of the application window and subsequent usage experience, and may also affect the combined display effect of the application window and the floating keyboard and subsequent usage experience, resulting in lower efficiency in viewing and using the application window and lower efficiency in inputting using the floating keyboard.

[0071] For example, as Figure 1a shown, while the electronic device is displaying a gallery interface, it can display the memo interface of the memo application in a windowed manner, that is, the electronic device can display the memo window in the form of a floating window. Among them, the memo window includes an input box. When the user clicks on the input box in the memo window, the electronic device can invoke and display the floating keyboard. Based on the above solution, after the electronic device invokes and displays the floating keyboard in the Figure 1a scene shown, the displayed interface can refer to Figure 1b or Figure 1c or Figure 1d . Among them, in Figure 1b , the floating keyboard will block part of the memo window, and the boundary between the floating keyboard and the memo window is not aligned, which will affect the overall display effect. In Figure 1c , the position distance between the floating keyboard and the input box is relatively far, the overall display effect is poor, and it is not convenient for the user to use the floating keyboard and view the content entered in the input box at the same time, resulting in the separation of the user's hand and eye, which will reduce the efficiency of inputting using the floating keyboard. In Figure 1dIn this case, the floating keyboard will block part of the memo window, and the user cannot perform one-handed operations, which will also cause the user's hand-eye separation. Therefore, the display effect and input efficiency are poor.

[0072] Based on the above problems, in order to better display non-full-screen windows and input interfaces, and thus improve the efficiency of viewing and using non-full-screen windows and the efficiency of input using the input interface, the embodiments of the present application provide a display method and an electronic device. This method can display non-full-screen windows and input interfaces in a more reasonable and beautiful manner, so as to view and operate non-full-screen windows and input interfaces more efficiently, and thus improve the efficiency of viewing and using non-full-screen windows and input interfaces.

[0073] Next, refer to Figure 2 to introduce the structure of the electronic device to which the method provided by the embodiments of the present application is applicable.

[0074] As Figure 2 shown in, 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, a headphone jack 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] Among them, the sensor module 180 may include a gyroscope sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.

[0076] It can be understood that Figure 2 the electronic device 100 shown is only an example, which does not constitute a limitation on the electronic device, and the electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 The various components shown in 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.

[0077] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics 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 may be independent devices or integrated in one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0078] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0079] The execution of the display method provided by the embodiments of the present application may be controlled by the processor 110 or other components may be called to complete it. For example, the processing program of the embodiments of the present application stored in the internal memory 121 is called, or the processing program of the embodiments of the present application stored in a third-party device is called through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU may cooperate to execute the display method provided by the embodiments of the present application. For example, some algorithms in the display method are executed by the CPU and another part of the algorithms are executed by the GPU to obtain a faster processing efficiency.

[0080] 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 (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one 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 the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, the display screen 194 can display photos, videos, web pages, or files, etc. For another example, the display screen 194 can display the first window, the second window, the floating keyboard, etc. described in the following embodiments of the present application.

[0081] In the embodiments of the present application, the display screen 194 can be an integrated flexible display screen, or can be a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.

[0082] The camera 193 (front camera or rear camera, or a camera that can be used as both a front camera and a rear camera) is used to capture static images or videos. Generally, the camera 193 can include a photosensitive element such as a lens group and an image sensor. Among them, the lens group includes multiple lenses (convex lenses or concave lenses), which are used to collect the optical signals reflected by the object to be photographed and transmit the collected optical signals to the image sensor. The image sensor generates the original image of the object to be photographed according to the optical signal.

[0083] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes 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 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, the code of application programs (such as the functions corresponding to the solutions of the present application), etc. The data storage area can store the data created during the use of the electronic device 100.

[0084] The internal memory 121 may also store one or more computer programs corresponding to the algorithms of the solution of this application. The one or more computer programs are stored in the internal memory 121 described above and are configured to be executed by one or more processors 110. The one or more computer programs include instructions, and the instructions can be used to execute the respective steps in the following embodiments.

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

[0086] Of course, the code of the algorithm of the solution of the embodiment of this application may also be stored in an external memory. In this case, the processor 110 may run the code of the algorithm of the solution of this application stored in the external memory through the external memory interface 120.

[0087] The touch sensor, also known as the "touch panel". The touch sensor may be disposed on the display screen 194. The touch sensor and the display screen 194 together form a touch display screen, also known as a "touch screen". The touch sensor is used to detect touch operations acting thereon or nearby. The touch sensor may transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation may be provided through the display screen 194. In some other embodiments, the touch sensor may also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.

[0088] The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0089] The antenna 1 and the 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 multiplexed to improve the utilization rate of the antennas. For example: the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0090] The mobile communication module 150 may provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc., which is applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, and perform processing such as filtering and amplifying on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves through the antenna 1 and radiate them out. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be disposed in the same device. In the embodiments of the present application, the mobile communication module 150 may also be used for information interaction with other devices.

[0091] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.

[0092] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation. In the embodiments of the present application, the wireless communication module 160 may be used to establish a connection with other electronic devices and perform data interaction. Or the wireless communication module 160 may be used to access an access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.

[0093] In addition, the electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc. The electronic device 100 may receive inputs from the keys 190 and generate key signal inputs related to the user settings and function controls of the electronic device 100. The electronic device 100 may use the motor 191 to generate vibration prompts (such as incoming call vibration prompts). The indicator 192 in the electronic device 100 may be an indicator light, which can be used to indicate the charging state, the change in battery level, 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 in contact with and separated from the electronic device 100 by being inserted into or removed from the SIM card interface 195.

[0094] It should be understood that in practical applications, the electronic device 100 may include more than Figure 2More or fewer components shown are not limited in the embodiments of the present application. The illustrated electronic device 100 is only an example, and the electronic device 100 may have more or fewer components than those shown in the figure, two or more components may be combined, or different component configurations may be provided. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0095] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interfaces. Exemplarily, as Figure 3 shown, the software architecture may be divided into four layers, from top to bottom, an application layer, an application framework layer (framework, FWK), a runtime and system libraries, and a (Linux) kernel layer.

[0096] The application layer is the top layer of the operating system and includes native applications of the operating system, such as a camera, a gallery, a calendar, Bluetooth, music, video, messages, etc., and may also include third-party applications. The application involved in the embodiments of the present application is simply referred to as an application (application, APP), which is a software program capable of implementing one or more specific functions. Generally, multiple applications may be installed in the electronic device, such as a camera application, an email application, etc. The application mentioned hereinafter may be a system application pre-installed when the electronic device leaves the factory, or a third-party application downloaded from the network or obtained from other electronic devices by the user during the use of the electronic device.

[0097] Certainly, for developers, developers may write application programs and install them in this layer. In a possible implementation, the application program may be developed using the Java language and completed by calling the application programming interface (API) provided by the application framework layer. Developers may interact with the underlying layer of the operating system (such as the kernel layer, etc.) through the application framework to develop their own application programs.

[0098] The application framework layer is the API and programming framework for 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 telephone manager, a resource manager, a notification manager, etc.

[0099] The window manager is used to manage window programs. The window manager may obtain the size of the display screen, determine whether there is a status bar, lock the display screen (or the screen), capture the display screen, etc.

[0100] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include information such as files (e.g., documents, videos, images, audio), text, etc.

[0101] The view system includes visual controls, such as controls for displaying content like text, pictures, documents, etc. The view system can be used to build applications. The interface in the display window can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

[0102] The telephone manager is used to provide the communication function of the electronic device. The notification manager enables applications to display notification information in the status bar, can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.

[0103] The runtime includes a core library and a virtual machine. The runtime is responsible for the scheduling and management of the system.

[0104] The core library of the system contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the 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 in the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0105] The system library can include multiple functional modules. For example: the surface manager, the media library, the 3D graphics processing library (e.g., OpenGL ES), the 2D graphics engine (e.g., SGL), the image processing library, etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.564, 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 the drawing engine for 2D drawing.

[0106] The kernel layer provides the core system services of the operating system. Services such as security, memory management, process management, network protocol stack, and driver model are all implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. There are many driver programs related to electronic devices in this layer. The main drivers include: display driver; keyboard driver as an input device; Flash driver based on memory technology devices; camera driver; audio driver; Bluetooth driver; WiFi driver, etc.

[0107] It should be understood that the functional services described above are only examples. In actual applications, electronic devices can also be divided into more or fewer functional services according to other factors, or the functions of each service can be divided in other ways, or the functional services can be not divided, but work as a whole.

[0108] The solution provided by the embodiments of the present application will be described in detail below.

[0109] Optionally, the solution provided by the embodiments of the present application can be applied to the scenario where an electronic device displays a non-full-screen window (such as an application window in the form of a floating window, etc.). More specifically, the solution provided by the embodiments of the present application can be applied to the scenario where an electronic device invokes an input interface (which can also be referred to as an input method or an input method interface or a floating keyboard or a virtual keyboard or a keyboard interface, etc.) within a non-full-screen window. Among them, a non-full-screen window is a window that is not full-screen displayed and is only displayed in a partial display area on the display screen.

[0110] For ease of description, in the following embodiments, the input interface is taken as a keyboard interface and the keyboard interface is simply referred to as a keyboard to describe the solution provided by the embodiments of the present application. It should be understood that the keyboard described in the following embodiments can be replaced with any of the following descriptions: input interface, input method interface, keyboard interface, virtual keyboard, virtual keyboard interface.

[0111] In the first possible solution provided by the embodiments of the present application, after the electronic device displays a non-full-screen application window, when the user invokes the keyboard within the application window, the electronic device can first determine the display size (or size) and display position of the keyboard that is comfortable for the user, then adjust the size and position of the application window according to the determined display size and display position of the keyboard, and finally perform combined display of the application window and the keyboard, so that the keyboard can be presented reasonably and beautifully within the application window, thereby improving the display effect of the keyboard and the application window and facilitating the user to perform subsequent operations efficiently.

[0112] It should be noted that the size of the keyboard or the display size described in the embodiments of the present application may include parameters that can reflect the shape and / or size characteristics of the keyboard, such as parameters including width, height, aspect ratio, area, etc., and no specific limitations are made in the embodiments of the present application. The size of the window or the display size described in the embodiments of the present application may include parameters that can reflect the shape and / or size characteristics of the window, such as parameters including width, height, aspect ratio, area, etc., and no specific limitations are made in the embodiments of the present application.

[0113] Based on the above description, with reference to Figure 4 , a display method provided by an embodiment of the present application may include:

[0114] S401: The electronic device displays a first window on the display screen; wherein, the first window includes first content, and the first window occupies a partial display area of the display screen.

[0115] In some embodiments of the present application, the display screen may be a straight screen or a foldable screen. Optionally, the display screen may also be a display screen on a vehicle-mounted device.

[0116] Optionally, when the display screen is a foldable screen, the display screen may be in an unfolded state, that is, a state where the display screen is not folded.

[0117] In some embodiments of the present application, the first window may be an application window of a first application installed in the electronic device, and the first content may be application content provided by the first application.

[0118] In some embodiments of the present application, the first window may be displayed as any one of a floating window, a split-screen window, or a parallel vision window, etc. Among them, the processing method corresponding to the first window being a split-screen window or any one of the parallel vision windows may be implemented with reference to the processing method when the first window is a floating window, and details are not described again in the embodiments of the present application.

[0119] In some embodiments of the present application, the size of the first window may belong to a set size range. For example, the size of the first window may be less than or equal to a first set size (such as a set smaller size), or the size of the first window may be greater than or equal to a second set size (such as a set larger size). For another example, the height of the first window may be less than or equal to a set height, and the width of the first window may be less than or equal to a set width. For another example, the area of the first window may be less than or equal to a set area.

[0120] S402: The electronic device switches from displaying the first window to displaying a second window in response to a received first operation; wherein, the second window includes second content and a keyboard, and the second content includes some or all of the content in the first content.

[0121] Among them, the first operation is used to indicate the display of the keyboard. The keyboard included in the second window can also be referred to as the first input interface, so the first operation can be used to indicate the display of the first input interface.

[0122] In some embodiments of the present application, the first window may include an input control, and the first operation may be an operation on the input control. For example, the input control in the first window may be an input box, and the first operation may be an operation where the user clicks on the input box.

[0123] In some embodiments of the present application, the second window occupies a partial display area on the display screen.

[0124] In some embodiments of the present application, the size of the second window may be determined according to the size of the keyboard (or the first input interface); and / or, the position of the second window may be determined according to the position of the keyboard (or the first input interface).

[0125] Optionally, when the size of the first window is less than or equal to a first set size, the size of the second window may be greater than the size of the first window. When the size of the first window is greater than or equal to a second set size, the size of the second window may be less than the size of the first window.

[0126] In some embodiments of the present application, the second window may include a first area and a second area. The second content may be located in the first area, and the keyboard may be located in the second area. Among them, as a first optional implementation manner, the first area and the second area may be arranged vertically. As a second optional implementation manner, the first area and the second area may be arranged horizontally. Of course, the division or arrangement manner of the first area and the second area may also adopt other ways, which will not be listed one by one in the embodiments of the present application.

[0127] Optionally, in the above method, the sizes of the first area and the second area may be the same or different, and no specific limitation is made in the embodiments of the present application. For example, the widths of the first area and the second area may be the same, and the heights of the first area and the second area may be the same. Optionally, the width may be the width of the second window, and the height may be half of the height of the second window; or, the width may be half of the width of the second window, and the height may be the height of the second window. For another example, in the above first optional implementation manner, the widths of the first area and the second area may be the same, and the heights of the first area and the second area may be different. Optionally, the width may be the width of the second window. For another example, in the above second optional implementation manner, the heights of the first area and the second area may be the same, and the widths of the first area and the second area may be different. Optionally, the height may be the height of the second window. For another example, the aspect ratios (i.e., the ratio of width to height) and / or areas of the first area and the second area may be the same.

[0128] Embodiment 1. In one example, taking the above-mentioned first application as a social chat application, as Figure 5 shown, the first window displayed on the electronic device can be a chat window of the social chat application, and the chat interface in the first window is the first content. As Figure 5 shown, the first window may include an input box, and the electronic device can respond to the operation of the user clicking on the input box, and switch from the interface shown Figure 5 to the interface shown Figure 6 . Among them, Figure 5 the first window shown is updated to Figure 6 the second window shown. In Figure 6 the shown interface, the first area in the second window includes part of the content in the first window, and the second area in the second window includes a keyboard. Among them, the first area and the second area are arranged vertically, and the widths of the first area and the second area are the same.

[0129] Embodiment 2. In one example, taking the first window shown Figure 5 as an example, the electronic device can respond to the operation of the user clicking on the input box in the first window shown Figure 5 , and switch from the interface shown Figure 5 to the interface shown Figure 7 . Among them, Figure 5 the first window shown is updated to Figure 7 the second window shown. In Figure 7 the shown interface, the first area in the second window includes all the content in the first window, and the second area in the second window includes a keyboard. Among them, the first area and the second area are arranged horizontally, and the heights of the first area and the second area are the same, but the widths are different.

[0130] Embodiment 3. In one example, taking the above-mentioned first application as a memo application, as Figure 8 shown, the first window displayed on the electronic device can be a chat window of the social application, and this window can be a split-screen window, and the other split-screen window can be a window of other applications (for example Figure 8 the gallery window shown), which is not specifically limited in the embodiments of the present application. The chat interface in the first window is the first content. As Figure 8 shown, the first window may include an input box, and the electronic device can respond to the operation of the user clicking on the input box, and switch from the interface shown Figure 8 to the interface shown Figure 9 . Among them, Figure 8 the first window shown is updated to Figure 9 the second window shown, Figure 8The gallery window shown in Figure 9 is adaptively adjusted with the update of the first window to be the gallery window shown in Figure 9 In the interface shown in

[0131] the first area in the second window includes the content in the first window, and a keyboard is included in the second area in the second window. Among them, the first area and the second area are arranged vertically, and the widths of the first area and the second area are the same. Based on the above method, the electronic device can coordinate the application window (i.e., the first window) and the keyboard to be displayed in one window (i.e., the second window), so that the boundaries of the application window and the keyboard are properly aligned, which can improve the combined display effect of the application window and the keyboard. In addition, by coordinating the application window and the keyboard to be displayed in one window, the above method can limit the distance between the input box in the application window and the keyboard within a small range, thereby improving the hand-eye consistency and further improving the input efficiency using the keyboard.

[0132] The specific implementation method of the above step S402 will be described in detail below.

[0133] Referring to Figure 10 a possible specific implementation method of step S402 provided by the embodiment of the present application may include:

[0134] S1001: The electronic device determines a first target size and a first target position in response to a received first operation; wherein, the first target size is used as the display size of the keyboard, and the first target position is used as the display position of the keyboard.

[0135] Optionally, the first target size may include at least one of the following types of size parameters: width, height, area, aspect ratio.

[0136] The method for the electronic device to determine the first target size will be described in detail below.

[0137] In some embodiments of the present application, the electronic device may determine the first target size in at least one of the following ways:

[0138] Method 1: Determine the first target size according to multiple candidate sizes statistically obtained within a historical time period.

[0139] Optionally, the historical time period may be a time period with a set duration before the current moment, or may be a set time period.

[0140] In some embodiments of the present application, the multiple candidate sizes may include at least one of the following: the size of the keyboard displayed by the electronic device each time within the historical time period; the size of the keyboard manually adjusted by the user each time within the historical time period; the set default size.

[0141] Among them, the size of the keyboard displayed by the electronic device each time can be the size configured by the electronic device system or the size indicated by the user (for example, the size after manual adjustment by the user). The size of the keyboard after each manual adjustment by the user can be used as the size of the keyboard that the user is more accustomed to using. The size of the keyboard after each manual adjustment by the user can be: after the electronic device displays the keyboard each time, the size of the keyboard finally displayed after adjusting the size of the keyboard according to the user's instruction. Among them, after the electronic device displays the keyboard each time, it can respond to the received user operation and adjust the size of the keyboard, so as to adjust the size of the keyboard to the size indicated by the user, and the adjusted size is the size of the keyboard after manual adjustment by the user. The set default size can be the default size configured by the electronic device system or the default size pre-configured by the user into the electronic device.

[0142] After obtaining multiple candidate sizes through statistics, the electronic device can determine the first target size according to the multiple candidate sizes in any of the following ways:

[0143] 1) Among the multiple candidate sizes, select the candidate size with the highest usage frequency of the electronic device in the historical time period, and use this candidate size as the first target size.

[0144] 2) Use the average size of the multiple candidate sizes as the first target size.

[0145] 3) Use the largest size among the multiple candidate sizes as the first target size.

[0146] 4) Use the smallest size among the multiple candidate sizes as the first target size.

[0147] In the above method, the size of the keyboard displayed by the electronic device in the historical time period can reflect to a certain extent the size of the keyboard that the user is accustomed to using. By counting the size of the keyboard displayed by the electronic device in the historical time period and determining the first target size based on the counted size, it can make the size of the keyboard subsequently displayed by the electronic device more in line with the user's usage habits, thereby improving the comfort and efficiency of the user using the keyboard.

[0148] Method 2: Use the size of the keyboard displayed last time as the first target size.

[0149] Among them, "last time" can be understood as the most recent time. The moment when the keyboard was displayed last time (or most recently) is the moment when the keyboard was displayed closest to the current moment in the historical time period.

[0150] Optionally, the size of the keyboard displayed last time can be the size configured by the electronic device system, or can be the size after manual adjustment by the user, or can be the set default size, and no specific limitation is made in the embodiments of the present application.

[0151] Optionally, when the above first window belongs to the first application, the above previously displayed keyboard can be the keyboard invoked in the first application.

[0152] Through the above method, the first target size can be determined simply and quickly, so the processing efficiency is relatively high.

[0153] Method 3: Use the set default size as the first target size.

[0154] Among them, the set default size can be the size configured by the electronic device system or the size pre-configured by the user in the electronic device.

[0155] Optionally, in this method, the electronic device can set multiple default sizes through system configuration or user pre-configuration, and can select a default size from multiple default sizes and use it when invoking the keyboard. Optionally, different default sizes can correspond to different applications or different scenarios, etc. The electronic device can select the corresponding default size according to the corresponding application or scenario when invoking the keyboard.

[0156] The method for the electronic device to determine the first target position will be described in detail below.

[0157] Method 1: Determine the first target position according to multiple candidate positions statistically obtained within a historical time period.

[0158] In some embodiments of the present application, the multiple candidate positions may include at least one of the following: the position where the electronic device displays the keyboard each time within the historical time period; the position of the keyboard after the user manually adjusts it each time within the historical time period; the set default position.

[0159] After statistically obtaining multiple candidate positions, the electronic device can determine the first target position according to the multiple candidate positions in any of the following ways:

[0160] 1) Among the multiple candidate positions, select a candidate position with the highest usage frequency of the electronic device within the historical time period, and use this candidate position as the first target position.

[0161] 2) Randomly select a candidate position from the multiple candidate positions as the first target position.

[0162] Other specific implementation methods of this method are similar to Method 1 described in the above method for the electronic device to determine the display size of the keyboard, and will not be elaborated here.

[0163] Method 2: Use the position where the keyboard was last displayed as the first target position.

[0164] The specific implementation method of this method is similar to Method 2 described in the above method for the electronic device to determine the display size of the keyboard, and will not be elaborated here.

[0165] Method 3: Use the set default position as the first target position.

[0166] The specific implementation method of this method is similar to Method 3 described in the method for an electronic device to determine the display size of a keyboard above, and will not be elaborated here.

[0167] Method 4: Determine the first target position according to the position of the action point of the first operation on the display screen.

[0168] In some embodiments of the present application, different display areas can be divided on the display screen, and the electronic device can use the area where the position of the action point of the first operation on the display screen is located as the area for displaying the keyboard. That is, the first target position is the position (or area) that includes the action point of the first operation on the display screen. For example, the display screen can be evenly divided into left and right display areas. Among them, when the action point of the first operation on the display screen is in the left area, the electronic device can determine the first target position as the position in the left area; when the action point of the first operation on the display screen is in the right area, the electronic device can determine the first target position as the position in the right area. For another example, the display screen can be evenly divided into upper and lower display areas. Among them, when the action point of the first operation on the display screen is in the upper area, the electronic device can determine the first target position as the position in the upper area; when the action point of the first operation on the display screen is in the lower area, the electronic device can determine the first target position as the position in the lower area.

[0169] Optionally, after the electronic device determines the area for displaying the keyboard based on this method, it can combine any one of the methods for determining the display position of the keyboard described in the above Methods 1 to 3 to determine a more specific display position of the keyboard in this area. For example, the electronic device can select a candidate position from multiple candidate positions in this area as the specific display position of the keyboard, that is, the first target position. For another example, the electronic device can use the position where the keyboard was last displayed in this area as the specific display position of the keyboard. For yet another example, the electronic device can use the default position in this area as the specific display position of the keyboard, that is, the first target position.

[0170] Embodiment 4. In an example, based on the above Embodiment 1, in Figure 5 the first window shown is updated to Figure 6 the second window shown, when the electronic device receives an operation of the user clicking on the input box in the first window, it can determine the display size (i.e., the first target size) and the display position (i.e., the first target position) of the keyboard after invoking the keyboard respectively according to the above method. For example, as Figure 11As shown, the first target size determined by the electronic device may include: width w1 and height h1; the first target position determined by the electronic device may be Figure 11 the position where the keyboard in the dashed box shown in

[0171] S1002: The electronic device determines a second target size according to the first target size, where the second target size is used as the display size of the second window.

[0172] Optionally, the second target size may include at least one of the following types of size parameters: width, height, area, aspect ratio.

[0173] In some embodiments of the present application, after determining the first target size, the electronic device may aim to enable the keyboard that conforms to the first target size to be displayed within or visually presented within the second window, and determine the display size of the second window, that is, the second target size. Based on this, the electronic device may determine that the second target size needs to be greater than the first target size. Exemplarily, the electronic device may determine that the second target size needs to meet the following conditions: the width of the second window is greater than or equal to the width of the keyboard, and the height of the second window is greater than the height of the keyboard. For example, the first target size may be Figure 6 the size of the keyboard shown in Figure 6 the size of the second window shown in Figure 7 the size of the keyboard shown in Figure 7 the size of the second window shown in

[0174] Optionally, on the basis of the above method, the electronic device may further set the aspect ratio of the second window to a set aspect ratio, so as to ensure the aesthetics when the second window is displayed. For example, the electronic device may set the aspect ratio of the second window to be the same as the aspect ratio of the first window.

[0175] Optionally, before determining the second target size according to the first target size, the electronic device may first determine that the size of the first window is less than or equal to the first target size, or the difference between the size of the first window and the first target size is less than or equal to the corresponding set value. Exemplarily, the size of the first window being less than or equal to the first target size may include at least one of the following: the width of the first window is less than or equal to the width in the first target size, the height of the first window is less than or equal to the height in the first target size, the area of the first window is less than or equal to the area in the first target size, and the aspect ratio of the first window is less than the aspect ratio in the first target size. Exemplarily, the difference between the size of the first window and the first target size may include at least one of the following: the difference between the width of the first window and the width in the first target size, the difference between the height of the first window and the height in the first target size, and the difference between the area of the first window and the area in the first target size.

[0176] S1003: The electronic device determines the second target position according to the first target position, where the second target position is used as the display position of the second window.

[0177] In some embodiments of the present application, after determining the first target position, the electronic device may aim to make the keyboard displayed at the first target position be able to be included in the second window or visually included in the second window, and determine the display position of the second window, that is, the second target position. Based on this, the electronic device may determine that the second target position needs to meet the following conditions: the area where the keyboard is located can be included in the area where the second window is located, or in other words, the display area of the second window includes the display area of the keyboard. Optionally, on this basis, the electronic device may further set the second target position in such a way that there is a partial overlapping boundary between the second window and the keyboard, so as to improve the aesthetics of the overall display. The partial overlapping boundary may include part or all of the boundaries in any one of the up (or top), down (or bottom), left (left side), and right (right side) directions, and may also include partial boundaries in at least one other direction. Specifically, the boundary of the second window may partially overlap with the boundary of the first input interface. The partial overlap of the boundary of the second window with the boundary of the first input interface may include: the boundary of the second window in the first direction coincides with the boundary of the first input interface in the first direction; and / or, the boundary of the second window in the second direction partially coincides with the boundary of the first input interface in the second direction. Optionally, the first direction may be any one of up, down, left, and right. The second direction may be any one of up, down, left, and right that is different from the first direction, or the second direction may be each of any two directions that are different from the first direction among up, down, left, and right.

[0178] In one example, the electronic device may set the second target position to a position where the bottom edge (i.e., the lower boundary or the bottom boundary) of the second window coincides with the bottom edge of the keyboard. Optionally, the electronic device may also set the second target position to a position where the left boundary of the second window partially coincides with the left boundary of the keyboard, and the right boundary of the second window partially coincides with the right boundary of the keyboard. For example, the second target position may be the position of the second window shown in Figure 6 In another example, the electronic device may set the second target position to a position where the right boundary of the second window coincides with the right boundary of the keyboard. Optionally, the electronic device may also set the second target position to a position where the top edge (i.e., the upper boundary) of the second window partially coincides with the top boundary of the keyboard, and the bottom edge of the second window partially coincides with the bottom edge of the keyboard. For example, the second target position may be the position of the second window shown in Figure 7 the second window shown in

[0179] Embodiment 5: In one example, based on the above Embodiment 4, the second target size and the second target position determined by the electronic device may be the size and position of the dashed box shown in Figure 12 respectively. Among them, as shown in Figure 12 the second target size may include a width w2 and a height h2. The width w2 may be equal to the width w1 of the keyboard, and the height h2 may be greater than the width h1 of the keyboard. Optionally, the second target size may further include an aspect ratio, i.e., w2 / h2, and this aspect ratio may be the same as the aspect ratio of the first window.

[0180] S1004: The electronic device displays the second window according to the second target size and the second target position.

[0181] In some embodiments of the present application, the electronic device may draw a second window including the second content and the keyboard with the first target size according to the determined second target size, and display the drawn second window at the determined second target position, where the keyboard in the second window is located at the first target position.

[0182] In other embodiments of the present application, the electronic device may obtain the second window by adjusting the size and position of the first window, and then display the second content and the keyboard in the second window. Specifically, the electronic device may first determine the second target size and the second target position according to the above method, then adjust the size and position of the first window to the second target size and the second target position respectively, and update the content in the first window to the second content and the keyboard, so as to obtain the second window.

[0183] In some embodiments of the present application, based on the above method, the electronic device can display a corresponding switching animation effect (also referred to as a window switching animation effect) to show the process of switching from the first window to the second window. Among them, the switching animation effect can include at least one of the following: an animation effect in which the size of the first window gradually changes to the second target size, an animation effect in which the position of the first window gradually changes to the second target position, and an animation effect in which the content in the first window is updated to the content in the second window. After the switching animation effect ends, the electronic device can display the second window. In some embodiments of the present application, the second target size (i.e., the size of the second window) can also be denoted as the first size, and the second target position (i.e., the position of the second window) can also be denoted as the first position.

[0184] Optionally, the above-mentioned switching animation effect can also include an animation effect related to the keyboard. The animation effect related to the keyboard can include at least one of the following: an animation effect of displaying the keyboard, an animation effect in which the size of the keyboard gradually changes to the first target size, and an animation effect in which the position of the keyboard gradually changes to the first target position. In some embodiments of the present application, the first target size (i.e., the size of the keyboard) can also be denoted as the second size, and the first target position (i.e., the position of the keyboard) can also be denoted as the second position.

[0185] As an alternative implementation, the animation effect related to the keyboard can include an animation effect of displaying the keyboard included in the second window. Or, the animation effect related to the keyboard can include: an animation effect of displaying the original keyboard (which can also be referred to as the second input interface in the embodiments of the present application), and an animation effect for representing the process of the original keyboard changing to the first target size and / or moving to the first target position.

[0186] It should be noted that the execution order of different animation effects included in the switching animation effect can be arbitrary, and no specific limitation is made in the embodiments of the present application. In addition, different animation effects included in the switching animation effect can be executed crosswise or in a fused manner, and no specific limitation is made in the embodiments of the present application.

[0187] Optionally, the size of the original keyboard may be the same as the second target size, or the size of the original keyboard may be a set default size. Optionally, the position of the original keyboard may be the same as the first target position, or the position of the original keyboard may be a set default position. That is to say, in the dynamic effect of the display keyboard described above, the size and position of the original keyboard displayed by the electronic device may be arbitrary, and no specific limitation is made in the embodiments of the present application. For example, the electronic device may directly display the original keyboard according to the first target size and the first target position, so as to implement the dynamic effect of the display keyboard, and then the dynamic effect of the display keyboard may be integrated into a part of the dynamic effect of updating the content in the first window to the content in the second window. For another example, the electronic device may display the original keyboard at a set position on the display screen according to the first target size, so as to implement the dynamic effect of the display keyboard, and then continue to execute the dynamic effect that the position of the original keyboard gradually changes to the first target position.

[0188] Embodiment 6. In an example, based on the above Embodiment 5, the switching dynamic effect may be a process of gradually changing from Figure 5 the first window shown in Figure 6 to the second window shown in Figure 5 . Specifically, when the electronic device receives a first operation while displaying the interface shown in Figure 5 , the electronic device may gradually switch from displaying the interface shown in Figure 13a to displaying the interface shown in Figure 5 . Among them, the size of the first window originally shown in Figure 13a gradually expands (i.e., changes to the second target size) and becomes the size of the window 1300 shown in Figure 5 at a certain moment. At the same time, the position of the first window originally shown in Figure 13a gradually moves to the second target position and becomes the position where the window 1300 shown in Figure 13a is located at a certain moment. The content in the first window may change adaptively. During the process of continuing to execute the switching dynamic effect, Figure 13a the size of the window 1300 shown in Figure 13b continues to expand (i.e., changes to the second target size), and at the same time, the window 1300 continues to move to the second target position. At a certain moment Figure 13a the window 1300 shown in Figure 13b may change to the window 1301 shown in Figure 13a . Among them, the size of the window 1300 originally shown in Figure 13b expands to the size of the window 1301 shown in Figure 13bThe size of the window 1301 shown in continues to expand (i.e., change to the second target size), and at the same time, the window 1301 continues to move to the second target position. When Figure 13b the size of the window 1301 shown in expands to the second target size and Figure 13b the position of the window 1301 shown in changes to the second target position, the interface displayed by the electronic device can be switched to Figure 6 the interface shown in , and at this time, the switching animation execution ends. It should be noted that Figure 13a and Figure 13b the dashed lines shown in are only used to represent the initial size and position of the first window (i.e., Figure 5 the size and position of the first window shown in ), and are not used as the content displayed on the display screen. In addition, Figure 13a the interface shown in and Figure 13b the interface shown in only exemplarily show the animation interfaces displayed at two certain moments during the switching animation display process, rather than all the animation interfaces, so they do not limit the display interfaces during the process of the electronic device displaying the switching animation.

[0189] Embodiment 7. In one example, in the scenario described in Embodiment 2 above, based on the above method, the switching animation can be a process of gradually changing from the Figure 5 first window shown in to the Figure 7 second window shown in . Specifically, when the electronic device receives a first operation while displaying the Figure 5 interface shown in , the electronic device can gradually switch from displaying the Figure 5 interface shown in to displaying the Figure 14a interface shown in . Among them, on the one hand, the position of the original Figure 5 first window shown in gradually moves to the second target position and becomes the position of the Figure 14a window 1400 shown in at a certain moment. On the other hand, the electronic device gradually displays a keyboard of the first target size and displays a Figure 14a partial keyboard interface shown in at a certain moment. During the continued execution of the switching animation, Figure 14a the window 1400 shown in continues to move to the second target position, and at the same time, the keyboard moves to the first target position. At a certain moment Figure 14a the window 1400 shown in can change to Figure 14b the window 1401 shown in . Among them, the position of the original Figure 14a window 1400 shown in becomes the position of the Figure 14b window 1401 shown in , and the original Figure 14a partial keyboard shown in becomes the Figure 14b keyboard shown in . During the continued execution of the switching animation, Figure 14bThe window 1401 shown in Figure 14b continues to move towards the second target position, and the keyboard shown in Figure 14b continues to move towards the first target position. When the position change of the window 1401 shown in Figure 14b reaches the second target position and the position change of the keyboard shown in Figure 7 reaches the first target position, the interface displayed on the electronic device can be switched to the interface shown in Figure 14a and Figure 14b At this time, the execution of the switching animation ends. It should be noted that the dotted lines shown in Figure 5 are only used to represent the initial size and position of the first window (i.e., the size and position of the first window shown in Figure 14a ), rather than the content displayed on the display screen. In addition, the interfaces shown in Figure 14b and the interfaces shown in

[0190] are only exemplary displays of the animation interfaces at two certain moments during the display process of the switching animation, rather than all the animation interfaces. Therefore, they do not limit the display interfaces during the process of the electronic device displaying the switching animation. It should be noted that the above process is only an example of the specific implementation process of step S402, and the execution order of each step can be adjusted accordingly according to actual needs. Other steps can also be added, or some steps can be reduced, etc. For example, step S1002 and step S1003 can be executed synchronously, etc.

[0191] In some embodiments of the present application, as shown in Figure 4 after step S402, the display method provided by the embodiments of the present application may further include the following step S403.

[0192] S403: The electronic device switches from displaying the second window to displaying the third window in response to the received second operation; the third window includes third content, and the third window occupies a partial display area of the display screen.

[0193] In some embodiments of the present application, the second operation may be used to indicate to stop displaying the keyboard.

[0194] In some embodiments of the present application, when the first window is a floating window, the third window may be displayed as a floating window; when the first window is a split-screen window, the third window may be displayed as a split-screen window. When the first window is one of the windows in the parallel vision, the third window may be one of the windows in the parallel vision.

[0195] In some embodiments of the present application, during the process of the electronic device switching from displaying the second window to displaying the third window, corresponding switching animation effects can be displayed. Optionally, the switching animation effects can include at least one of the following: an animation effect of closing the keyboard (i.e., stopping the display of the keyboard), an animation effect of the size of the second window gradually changing to the size of the third window, and an animation effect of the position of the second window gradually changing to the position of the third window. The specific implementation of the switching animation effects can be realized by referring to the reverse process of the switching animation effects described in the foregoing embodiments, and will not be elaborated in the embodiments of the present application.

[0196] In a possible way, the third window can be the first window, and the third content can be the first content. Based on this way, after the electronic device retracts the keyboard, it can switch back to the application window displayed before the keyboard is invoked.

[0197] In this way, the keyboard can include a keyboard retraction control, and the keyboard retraction control can be used to trigger the retraction of the keyboard (i.e., stop displaying the keyboard). Exemplarily, the second operation can be an operation in which the user clicks the keyboard retraction control.

[0198] Exemplarily, in the above-mentioned Embodiment 1 or Embodiment 2, Figure 6 or Figure 7 the keyboard in the shown interface can include a keyboard retraction control. When the user clicks the keyboard retraction control, the electronic device can respond to this operation and switch from displaying Figure 6 or Figure 7 the shown interface to displaying Figure 5 the shown interface. In this method, the third window is the Figure 5 first window shown in

[0199] In another possible way, the third window can be the first window after being scaled and / or displaced. Among them, scaling includes shrinking or enlarging, and displacement means position movement. Optionally, the ratio of shrinking or enlarging the first window can be a set value, and the displacement of the first window can be moving to a set position, etc., which are not specifically limited in the embodiments of the present application.

[0200] In this way, the keyboard can include a keyboard retraction control (which can also be called an end input control in the embodiments of the present application), and the keyboard retraction control can be used to trigger the retraction of the keyboard (i.e., stop displaying the keyboard). Exemplarily, the second operation can be an operation in which the user clicks the keyboard retraction control.

[0201] Exemplarily, in the above-mentioned Embodiment 1, Figure 6 the keyboard in the shown interface can include a keyboard retraction control. When the user clicks the keyboard retraction control, the electronic device can respond to this operation and switch from displaying Figure 6 the shown interface to displaying Figure 15 the shown interface. Among them,Figure 15 The third window in the interface shown is the enlarged first window. Figure 15 The size and position of the third window shown in Figure 6 The second window shown in FIG. 1 is the same size and position as that shown in FIG.

[0202] In another possible manner, the third window may be another window of the first application, and the third content is different from the first content. For example, the third window may be a window obtained after the user operates the second window. For another example, the third window may be a window corresponding to the third content obtained after the user operates the second content. Optionally, in this manner, the size of the third window and the first window may be the same or different. The display position of the third window and the first window may be the same or different.

[0203] In this manner, in one possible scenario, the second operation may include: an operation performed by a user on the second window or the second content. Optionally, the third content may include the updated second content. Optionally, the third window may also include a keyboard. In another possible scenario, the keyboard may include a keyboard retracting control, which may be used to trigger the retracting of the keyboard (i.e., stopping displaying the keyboard). The second operation may include: an operation performed by a user on the second window or the second content, and an operation of the user clicking on the keyboard retracting control. The window obtained after the user performs the operation on the second window or the second content includes a keyboard.

[0204] For example, in the above embodiment 1, Figure 6 The keyboard in the interface shown may include a keyboard retracting control. The window obtained after the user updates the second content by inputting an operation in the second window may include Figure 6 When the user clicks the keyboard retract control in the keyboard, the electronic device can respond to the operation and switch to display Figure 16 The interface shown. Figure 16 The third window in the interface shown can serve as an updated second window or an updated first window, and the third content in the third window can include: content obtained by updating the second content according to the user's input operation in the second window, and the third content includes part of the first content.

[0205] In the second possible solution provided by the embodiment of the present application, the keyboard described in the first possible solution provided by the above embodiment can be carried in a separate window. Based on this, step S402 described in the first possible solution provided by the above embodiment can be replaced by the following step A1.

[0206] Step A1: In response to the received first operation, the electronic device switches from displaying the first window to displaying the second window and the fourth window; wherein, the second window includes second content, and the second content includes some or all of the content in the first content, and the fourth window includes a keyboard.

[0207] Correspondingly, step S1004 described in the first possible solution provided in the foregoing embodiment may be replaced with the following step B1.

[0208] Step B1: The electronic device displays the second window according to the second target size and the second target position, and displays the fourth window according to the first target size and the first target position.

[0209] Correspondingly, step S403 described in the first possible solution provided in the foregoing embodiment may be replaced with the following step C1.

[0210] Step C1: In response to the received second operation, the electronic device switches from displaying the second window and the fourth window to displaying the third window; the third window includes third content, and the third window occupies a partial display area of the display screen.

[0211] In the above method, the size of the keyboard is the size of the fourth window, and the position of the keyboard is the position of the fourth window. That is to say, the size of the fourth window is the same as the size of the keyboard, and the position of the fourth window is the same as the position of the keyboard. Therefore, the size of the fourth window is the first target size, and the position of the fourth window is the first target position.

[0212] The difference between the above second possible solution and the first possible solution provided in the foregoing embodiment is that the keyboard and the application content are respectively displayed in independent windows. Other implementation methods (such as the determination of the first target size, the first target position, the second target size, and the second target position, and the display of the switching animation effect, etc.) can all be implemented with reference to the first possible solution provided in the foregoing embodiment, and will not be elaborated here.

[0213] In the third possible solution provided in the embodiments of the present application, the second content and the keyboard described in the first possible solution provided in the foregoing embodiment may be respectively displayed through two juxtaposed windows. Based on this, step S402 described in the first possible solution provided in the foregoing embodiment may be replaced with the following step A2.

[0214] Step A2: In response to the received first operation, the electronic device switches from displaying the first window to displaying the second window and the fourth window; wherein, the second window includes second content, and the second content includes some or all of the content in the first content, and the fourth window includes a keyboard; the display areas of the second window and the fourth window are different.

[0215] Correspondingly, the specific implementation of step S1002 in the first possible solution provided in the foregoing embodiment may be replaced with: after determining the first target size, the electronic device may determine the size of the second window, i.e., the second target size, with the goal of ensuring a small size difference between the second window and the display keyboard. Based on this, in one possible solution, the electronic device may determine that the second target size needs to satisfy: the difference value from the first target size is less than or equal to the corresponding set value. Exemplarily, the difference value between the second target size and the first target size may include at least one of the following: the difference between the width in the second target size and the width in the first target size, the difference between the height in the second target size and the height in the first target size, and the difference between the area in the second target size and the area in the first target size. Among them, the set values corresponding to the difference values between different types of size parameters may be different.

[0216] Correspondingly, the specific implementation of step S1003 in the first possible solution provided in the foregoing embodiment may be replaced with: after determining the first target position, the electronic device may determine the position of the second window, i.e., the second target position, with the goal of ensuring a close position distance between the second window and the display keyboard. Based on this, in one possible solution, the electronic device may determine that the second target position needs to satisfy: the distance between the adjacent boundaries of the second window and the fourth window is less than or equal to the set distance threshold. Among them, the positional relationship between the second target position and the first target position may be an up-and-down arrangement relationship, a left-and-right arrangement relationship, etc., which is not specifically limited in the embodiments of the present application.

[0217] Correspondingly, step S1004 in the first possible solution provided in the foregoing embodiment may be replaced with the following step B2.

[0218] Step B2: The electronic device displays the second window according to the second target size and the second target position, and displays the fourth window according to the first target size and the first target position; wherein, the first target position is different from the second target position.

[0219] Correspondingly, step S403 in the first possible solution provided in the foregoing embodiment may be replaced with the following step C2.

[0220] Step C2: In response to the received second operation, the electronic device switches from displaying the second window and the fourth window to displaying the third window; the third window includes third content, and the third window occupies a partial display area of the display screen.

[0221] In the above method, the size of the keyboard is the size of the fourth window, and the position of the keyboard is the position of the fourth window. That is to say, the size of the fourth window is the same as the size of the keyboard, and the position of the fourth window is the same as the position of the keyboard. Therefore, the size of the fourth window is the first target size, and the position of the fourth window is the first target position.

[0222] Except for the content that is different from the first possible solution provided in the foregoing embodiment, the specific implementation of the third possible solution above can be implemented with reference to the corresponding method described in the first possible solution provided in the foregoing embodiment, and will not be elaborated here.

[0223] Embodiment 8. In an example, taking the first window as Figure 5 the first window shown in, based on the third possible solution above, the electronic device can respond to the operation of the user clicking on the input box in the first window (i.e., the first operation), and switch from the display Figure 5 interface shown in to the display Figure 17 interface shown in. Among them, Figure 5 the first window shown in is updated to Figure 17 the second window and the fourth window shown in. In the Figure 17 interface shown in, the second window includes some content in the first window, and the fourth window includes a keyboard. Among them, the second window and the fourth window are arranged vertically, and the widths of the second window and the fourth window are the same.

[0224] Embodiment 9. In an example, as Figure 18 shown in, taking a window of a memo application as the first window displayed by the electronic device as an example, the memo interface in the first window is the first content. As Figure 18 shown in, the first window may include an input box. Based on the third possible solution above, the electronic device can respond to the operation of the user clicking on the input box (i.e., the first operation), and switch from the display Figure 18 interface shown in to the display Figure 19 interface shown in. Among them, Figure 18 the first window shown in is updated to Figure 19 the second window and the fourth window shown in. In the Figure 19 interface shown in, the second window includes the content in the first window, and the fourth window includes a keyboard. Among them, the second window and the fourth window are arranged vertically, and the sizes of the second window and the fourth window are different.

[0225] It should be noted that the implementation processes provided in the above embodiments are only examples of the applicable method processes of the embodiments of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can also be added, or some steps can be reduced. This will not be listed one by one in the embodiments of the present application.

[0226] Based on the above embodiments and the same technical concept, an embodiment of the present application further provides an electronic device, which is used to implement the display method provided by the embodiment of the present application. As Figure 20 shown in the figure, the electronic device 2000 may include: a memory 2001, one or more processors 2002, and one or more computer programs (not shown in the figure), and a display screen 2004. The above components may be coupled through one or more communication buses 2003.

[0227] Among them, one or more computer programs (codes) are stored in the memory 2001, and the one or more computer programs include computer instructions; the one or more processors 2002 call the computer instructions stored in the memory 2001, so that the electronic device 2000 executes the display method provided by the above embodiment of the present application.

[0228] In a specific implementation, the memory 2001 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 2001 may store an operating system (hereinafter referred to as the system), such as ANDROID, IOS, WINDOWS, or an embedded operating system such as LINUX. The memory 2001 may be used to store the implementation program of the embodiment of the present application. The memory 2001 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.

[0229] One or more processors 2002 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the solution of the present application.

[0230] The display screen 2004 is used to display relevant user interfaces such as application interfaces.

[0231] It should be noted that Figure 20 This is only one implementation manner of the electronic device 2000 provided by the embodiment of the present application. In actual applications, the electronic device 2000 may further include more or fewer components. Specifically, reference may be made to Figure 2 the specific structure and description shown in the figure, which are not limited here.

[0232] Based on the above embodiments and the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when running on a computer, causes the computer to execute the method provided in the above embodiments.

[0233] Based on the above embodiments and the same inventive concept, an embodiment of the present application further provides a computer program product, which includes a computer program or instruction that, when running on a computer, causes the computer to execute the method provided in the above embodiments.

[0234] In the method provided by the embodiments of the present application, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, a computer, a server, or a data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital video disc (DVD)), or a semiconductor medium (such as an SSD), etc.

[0235] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the 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 equivalent technologies, 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, Including: Displaying a first window on a display screen; wherein, the first window includes first content, and the first window occupies a partial display area on the display screen; In response to a received first operation, switching the first window to a second window; wherein, the first operation is used to indicate to display a first input interface; the second window includes: the first input interface, and partial or all of the content in the first content; the second window occupies a partial display area on the display screen.

2. The method according to claim 1, wherein The size of the second window is determined according to the size of the first input interface; and / or, the position of the second window is determined according to the position of the first input interface.

3. The method according to claim 1 or 2, characterized in that, The size of the first input interface is any one of the following: A set default size; The size of the input interface displayed on the electronic device last time; The average size of multiple candidate sizes; The maximum size among multiple candidate sizes; The minimum size among multiple candidate sizes; The size with the highest usage frequency among multiple candidate sizes; Wherein, the candidate sizes are the sizes of the input interfaces displayed by the electronic device within a set historical time period.

4. The method according to claim 3, wherein The size of the input interface belongs to the size configured by the electronic device system or the size indicated by a user operation received by the electronic device.

5. The method according to any one of claims 1 to 4, characterized in that, The position of the first input interface is any one of the following: A set default position; The position including the action point of the first operation on the display screen; The position of the input interface displayed on the electronic device last time; Any position among multiple candidate positions; The position with the highest usage frequency among multiple candidate positions; Wherein, the candidate positions are the positions of the input interfaces displayed by the electronic device within a set historical time period.

6. The method according to claim 5, wherein The position of the input interface belongs to the position configured by the electronic device system or the position indicated by a user operation received by the electronic device.

7. The method according to any one of claims 1 to 6, characterized in that, The size of the second window meets the following conditions: The width of the second window is greater than or equal to the width of the first input interface, and the height of the second window is greater than the height of the first input interface; or The width of the second window is greater than the width of the first input interface, and the height of the second window is greater than or equal to the height of the first input interface.

8. The method according to any one of claims 1 to 7, characterized in that The position of the second window meets the following conditions: The boundary of the second window partially coincides with the boundary of the first input interface.

9. The method according to claim 8, characterized in that, The boundary of the second window partially coincides with the boundary of the first input interface, specifically including: The boundary of the second window in the first direction coincides with the boundary of the first input interface in the first direction; and / or The boundary of the second window in the second direction partially coincides with the boundary of the first input interface in the second direction.

10. The method according to any one of claims 1 to 9, characterized in that, The size of the first window is less than or equal to a first set size, and the size of the second window is greater than the size of the first window; or The size of the first window is greater than or equal to a second set size, and the size of the second window is less than the size of the first window.

11. The method according to any one of claims 1 to 10, characterized in that, The switching of the first window to the second window includes: A display window switching animation effect, the window switching animation effect includes: an animation effect for representing the process of the first window changing to a first size and moving to a first position; wherein, the first size is the size of the second window, and the first position is the position of the second window; After the window switching animation effect ends, display the second window.

12. The method according to claim 11, wherein The window switching animation effect further includes: An animation effect for displaying the first input interface; or An animation effect for displaying a second input interface, and an animation effect for representing the process of the second input interface changing to a second size and / or moving to a second position; wherein, the second size is the size of the first input interface, and the second position is the position of the first input interface.

13. The method according to any one of claims 1 to 12, characterized in that, The first window includes an input control, the input control is used to control the display of the first input interface, and the first operation is an operation on the input control.

14. The method according to any one of claims 1 to 13, characterized in that, The method further includes: In response to a received second operation, switch the second window to the first window; or In response to a received third operation, switch the second window to a third window; wherein, the third window includes third content.

15. The method according to any one of claims 1 to 14, characterized in that, The first window is any one of a floating window, a split-screen window, or a parallel vision window.

16. An electronic device, characterized in that, The electronic device includes a display screen, a memory, and one or more processors; Wherein, the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device is caused to execute the method according to any one of claims 1 to 15.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 15.