Interface display method and device, electronic equipment and storage medium

By adjusting the display size of floating windows, the problem of excessive proportion of floating windows in electronic devices is solved, and the efficiency and experience of user operations are improved.

CN118885243AInactive Publication Date: 2024-11-01REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410911333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When increasing the number of floating windows in electronic devices, the proportion of floating windows is too large, which affects the normal operation of users.

Method used

When displaying the first interface, in response to the trigger operation of adding a floating window, the display size of the floating window is adjusted, so that the display size of the first floating window in the second interface becomes smaller and the display size of the second floating window becomes larger. This reduces the proportion of floating windows in the display interface.

Benefits of technology

It effectively avoids the proportion of floating windows and improves the user's operation efficiency and user experience in the display interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885243A_ABST
    Figure CN118885243A_ABST
Patent Text Reader

Abstract

The invention discloses an interface display method and device, electronic equipment and a storage medium, and the interface display method comprises the steps that a first interface is displayed, and the first interface comprises a first floating window of a first display size; and in response to a trigger operation for newly adding the floating windows, displaying a second interface, the second interface including the first floating window of a second display size and a second floating window of a third display size, the second display size being smaller than the first display size, and the third display size being larger than the second display size. According to the method, the overlarge proportion of the floating windows in the display interface can be avoided when the number of the floating windows displayed by the electronic equipment is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to an interface display method, device, electronic device and storage medium. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablets, etc.) have become one of the commonly used electronic products in people's lives. At present, the application programs in electronic devices are becoming more and more abundant. In order to facilitate users to perform operations such as multitasking, task switching, resource retrieval, etc., floating window functions are provided for users to use. However, when electronic devices increase the number of floating windows displayed, the increase in floating windows may cause the floating windows to occupy too large a proportion of the display interface, thereby affecting the normal operation of users in the display interface. Summary of the invention

[0003] The present application proposes an interface display method, device, electronic device and storage medium, which can avoid the floating windows occupying too large a proportion of the display interface when increasing the number of floating windows displayed on the electronic device.

[0004] In a first aspect, an embodiment of the present application provides an interface display method, the method comprising: displaying a first interface, the first interface including a first floating window of a first display size; in response to a trigger operation for adding a new floating window, displaying a second interface, the second interface including the first floating window of a second display size and a second floating window of a third display size, the second display size being smaller than the first display size, and the third display size being larger than the second display size.

[0005] In a second aspect, an embodiment of the present application provides an interface display device, comprising: a first interface display module and a second interface display module, wherein the first interface display module is used to display a first interface, the first interface including a first floating window of a first display size; the second interface display module is used to display a second interface in response to a trigger operation for adding a new floating window, the second interface including the first floating window of a second display size and a second floating window of a third display size, the second display size being smaller than the first display size, and the third display size being larger than the second display size.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the interface display method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the interface display method provided in the first aspect above.

[0008] The solution provided by the present application is to display a first interface, including a first floating window of a first display size in the first interface, and display a second interface in response to a trigger operation for adding a floating window, wherein the second interface includes a first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size. Thus, when the number of floating windows displayed on the electronic device is increased, the display size of the originally displayed first floating window can be reduced, thereby reducing the proportion of floating windows in the display interface after the floating windows are added, thereby avoiding excessive proportion of floating windows in the display interface and avoiding affecting the normal operation of the user in the display interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic flow chart of an interface display method according to an embodiment of the present application is shown.

[0011] Figure 2 A flow chart of an interface display method according to another embodiment of the present application is shown.

[0012] Figure 3 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0013] Figure 4 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0014] Figure 5 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0015] Figure 6 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0016] Figure 7 A flow chart of an interface display method according to yet another embodiment of the present application is shown.

[0017] Figure 8 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0018] Fig. 9 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0019] Fig.10 A flow chart of an interface display method according to another embodiment of the present application is shown.

[0020] Fig.11 A schematic flow chart of an interface display method according to yet another embodiment of the present application is shown.

[0021] Fig.12 A flow chart of an interface display method according to yet another embodiment of the present application is shown.

[0022] Fig.13 A block diagram of an interface display device according to an embodiment of the present application is shown.

[0023] Fig.14 It is a block diagram of an electronic device according to an embodiment of the present application for executing the interface display method according to an embodiment of the present application.

[0024] Fig.15 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the interface display method according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0026] With the advancement of science and technology and the continuous improvement of the configuration of electronic devices, more and more applications are installed in electronic devices. When using applications, users often need to switch between applications, especially when performing multitasking, task switching, resource retrieval and other operations, the operations required by users are relatively cumbersome. For example, when a user needs to use multiple applications at the same time, it is necessary to switch back and forth between the applications running in the foreground; for another example, when a user is using an application and needs to retrieve resources, multiple steps are required to complete the resource retrieval. Therefore, in order to improve the efficiency of users when using electronic devices, more and more electronic devices support the floating window function, which displays the application interface of the application in the floating window, allowing users to perform in-application operations through the floating window.

[0027] Moreover, when operations need to be performed back and forth between multiple applications, the electronic device can display multiple floating windows to respectively show the application interfaces of different applications, thereby facilitating users to operate different applications and realizing the multitasking, task switching, resource retrieval and other operations required by users.

[0028] In the related art, when an electronic device originally displays a floating window, if a new floating window needs to be added, when the electronic device increases the number of new floating windows displayed, the floating windows may occupy too large a proportion of the floating windows in the display interface after the added floating windows are added, thereby affecting the user's viewing of the content in the display interface, operation of the floating windows, operation of other content in the interface, etc. In particular, when the electronic device displays a large-sized floating window, if the newly added floating window is also a large-sized floating window, this will most likely cause the floating windows to occupy too large a proportion of the interface.

[0029] In response to the above problems, the inventors have proposed an interface display method, device, electronic device, and storage medium provided in the embodiments of the present application, which can reduce the display size of the originally displayed floating windows when increasing the number of floating windows displayed on the electronic device, thereby reducing the proportion of floating windows in the display interface after the floating windows are added, thereby avoiding excessive proportion of floating windows in the display interface and affecting the normal operation of the user in the display interface. The specific interface display method is described in detail in the subsequent embodiments.

[0030] The interface display method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0031] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an interface display method provided by an embodiment of the present application. In a specific embodiment, the interface display method is applied to Fig.13 The interface display device 700 and the electronic device 100 ( Fig.14 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, an e-book, etc., which is not limited here. Figure 1 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0032] Step S110: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0033] Among them, the floating window is also called a floating window. The floating window is a window that is displayed floatingly on the screen of an electronic device. The floating window is used to display the application interface of the running application. The application interface displayed in the floating window is a reduced application interface, which may include all interface elements in the application interface; or, the floating window displays the core interface elements in the application interface, which are pre-set by the application. For example, for navigation applications, the electronic device can proportionally reduce the navigation interface in the full-screen display state, so that the reduced navigation interface is displayed in the floating window; for playback applications, the electronic device can extract the playback time and playback controls in the playback interface and use them as core interface elements, so that the playback time and playback controls are only displayed in the floating window.

[0034] The floating window displayed by the electronic device may have a first display state and a second display state. In the first display state of the floating window, the floating window is in a reduced display state, its display size is less than the target size threshold, and the application interface displayed in the floating window is in an inoperable state, that is, even if the electronic device detects a related touch operation on the application interface in the floating window, the electronic device will not respond to it; in the second display state of the floating window, the floating window is in an enlarged display state, its display size is greater than or equal to the target size threshold, and the application interface displayed in the floating window is in an operable state, that is, the floating window at this time responds to the in-application operation of the displayed application interface, for example, when the reading interface of a reading application is displayed in the floating window, the electronic device can respond to the sliding operation on the application interface in the floating window to control the text content in the reading interface to update, and for another example, when the playback interface of an audio playback application is displayed in the floating window, the electronic device can respond to the operation of the playback control control in the application interface in the floating window to control the audio playback. In addition, when the floating window is in the second display state, when the electronic device detects an adjustment operation for the display size of the floating window, in response to the adjustment operation, the display size of the floating window is adjusted to meet the user's use requirements for the floating window. The above target size threshold can be determined based on the screen size. For example, the target size threshold can be the product of the screen size and the set ratio. The set ratio can be 30%, 35%, 40%, etc.

[0035] Optionally, the application corresponding to the floating window may be running in the foreground, so that the application interface displayed in the floating window may be the real-time application interface of the application. Foreground running refers to the state in which the electronic device displays the application interface of the application on the screen. When the application is running in the foreground, the user can see the application interface of the application on the screen; the background running, which is opposite to the foreground running, refers to the state in which the electronic device does not display the application interface of the application on the screen, and the user cannot interact with the application interface of the application, but the application will still occupy the system resources of the electronic device when it is running in the background.

[0036] In an embodiment of the present application, the electronic device may display a first interface including a first floating window, and the application corresponding to the first floating window in the first interface may not be limited. For example, the first floating window may correspond to a chat application, a memo, an audio playback application, etc. Correspondingly, the first floating window may include an application interface of the application corresponding to the first floating window. In addition, the display size of the first floating window in the first interface displayed by the electronic device may be the first display size.

[0037] In some embodiments, when the first floating window is in the second display state, that is, the first display size of the first floating window is greater than or equal to the target size threshold, at this time, the number of first floating windows of the first display size in the first interface can be 1; when the first floating window is in the first display state, that is, the first display size of the first floating window is less than the target size threshold, at this time, the number of first floating windows of the first display size in the first interface can be 1 or more.

[0038] In some embodiments, the electronic device can detect an operation in the first interface, and when a move operation on the first floating window is detected, the electronic device can respond to the move operation and control the first floating window to move along the track of the move operation. That is, after the electronic device displays the floating window, the position of the floating window in the display interface can be adjusted according to the user's operation, so as to meet the user's usage habits.

[0039] In some embodiments, the above first floating window can be displayed on the upper layer of the system main interface of the electronic device, on the upper layer of the full-screen application interface, or on the upper layer of the split-screen application interface. That is to say, the first interface can be the system main interface, or it can be the application interface of an application running in the foreground of the electronic device, or it can be a split-screen application interface, but the first floating window is displayed in these interfaces and is in the upper layer.

[0040] Step S120: In response to a trigger operation for adding a new floating window, a second interface is displayed, wherein the second interface includes the first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size.

[0041] In an embodiment of the present application, after displaying the above first interface, the electronic device can, in the case of detecting a trigger operation for adding a new floating window, display a second interface in response to the trigger operation, and the displayed second interface includes the above first floating window and the newly added second floating window, thereby realizing that after the electronic device originally displays the first floating window, a new second floating window is added and displayed. In the second interface displayed by the electronic device after adding the above second floating window, the display size of the first floating window changes from the original first display size to the second display size, the display size of the second floating window is the third display size, and the second display size is smaller than the first display size, that is, when adding a floating window, the display size of the first floating window previously displayed by the electronic device becomes smaller, and the display size of the newly added second floating window is larger than the display size of the first floating window after the change, thereby avoiding that the floating window occupies too large a proportion of the display interface and meeting the user's demand for the newly added floating window.

[0042] In some embodiments, the above trigger operation may be an operation for triggering a floating window in a newly added second display state, that is, an operation for triggering a newly added floating window whose display size is greater than or equal to a target size threshold. In this case, the above second display size may be less than the target size threshold, and the above third display size may be greater than or equal to the target size threshold. That is, after the second floating window in the second display state is added, the first floating window is in the first display state. Exemplarily, the floating window in the second display state may be used as a "standard floating window", and the floating window in the first display state may be used as a "mini floating window". In the interface after the "standard floating window" (i.e., the second floating window) is added, the originally displayed floating window (i.e., the first floating window) is a "mini floating window".

[0043] In some embodiments, since there are multiple floating windows in the second interface, after reducing the display size of the first floating window, the multiple floating windows may still occupy a large proportion in the second interface, so the electronic device can control the above second display size and the third display size, so that the proportion of the first floating window and the second floating window in the displayed second interface is less than the target proportion, wherein the target proportion can be 30%, 40%, 50%, etc. In this way, it can be better to avoid that the proportion of the first floating window and the second floating window in the second interface is not too large, thereby better avoiding the user from viewing or operating the content in the display interface.

[0044] In a possible implementation, when the electronic device displays the above first interface, if the first interface includes multiple floating windows, the electronic device may also control the display size of the floating windows in the first interface so that the proportion of all floating windows in the first interface in the display interface is less than the above target ratio.

[0045] In some embodiments, the trigger operation may be an operation in the first interface. When the electronic device detects a floating window opening operation for the target application in the first interface, it may determine that the trigger operation for adding a floating window is detected, and display the second interface, and the second floating window in the displayed second interface corresponds to the target application.

[0046] In a possible implementation, the electronic device may display the sidebar in the first interface in response to a call operation for the sidebar in the first interface; and display the above second interface in response to a floating window opening operation for a target application in the sidebar. The target application may be an application that is already running on the electronic device or an application that is not currently running on the electronic device. In the case where the target application is an application that is not currently running on the electronic device, the electronic device may run the target application in the foreground and display the above second interface.

[0047] In one possible implementation, when the electronic device detects a calling operation for a multitasking interface in the first interface, in response to the calling operation, the electronic device may display a multitasking interface, the multitasking interface including applications that are being run by the electronic device; when the electronic device detects a floating window opening operation for a target application that is being run by the electronic device in the multitasking interface, the electronic device may display the above second interface.

[0048] Of course, in the embodiment of the present application, the specific operation method for triggering the addition of a new floating window may not be limited. For example, the electronic device may also recognize the input voice and, when the recognized input voice includes an instruction for opening a floating window of the target application, determine that the above triggering operation for adding a new floating window is detected and display the second interface.

[0049] The interface display method provided in the embodiment of the present application can reduce the display size of the originally displayed first floating window when adding a floating window displayed on an electronic device, and the display size of the newly added second floating window in the displayed interface is larger than the display size of the changed first floating window, thereby reducing the proportion of the floating window in the display interface after the floating window is added, thereby avoiding the floating window from occupying too large a proportion in the display interface, avoiding affecting the user's normal operation in the display interface, and satisfying the user's demand for the newly added floating window.

[0050] See also Figure 2 , Figure 2 A flow chart of an interface display method provided by another embodiment of the present application is shown. The interface display method is applied to the above electronic device. Figure 2 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0051] Step S210: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0052] In the embodiment of the present application, step S210 can refer to the contents of other embodiments and will not be repeated here.

[0053] Step S220: In response to a triggering operation for adding a new floating window, a comparison result between the first display size and a target size threshold is obtained.

[0054] Among them, the target size threshold can be a size threshold used to distinguish between the first display state and the second display state of the floating window mentioned in the aforementioned embodiment; when the display size of the floating window is smaller than the target size threshold, the floating window is in the first display state, at this time, the floating window is in a reduced display state, and the application interface displayed in the floating window is in an inoperable state; when the display size of the floating window is greater than or equal to the target size threshold, the floating window is in the second display state, at this time, the floating window is in a reduced display state relative to the first display state, and the application interface displayed in the floating window is in an operable state.

[0055] In an embodiment of the present application, the above trigger operation may be an operation for triggering a floating window with a second display state, that is, an operation for triggering a floating window with a display size greater than or equal to a target size threshold. After detecting the above trigger operation, the electronic device may respond to the trigger operation by comparing the first display size of the above first floating window in the first interface with the target size threshold to obtain a comparison result, so as to determine the display size of the floating window in the interface after the floating window is added according to the comparison result.

[0056] Step S230: If the comparison result indicates that the first display size is greater than or equal to the target size threshold, displaying the second interface.

[0057] The second interface includes the first floating window of a second display size and the second floating window of a third display size, the second display size is smaller than the target size threshold, and the third display size is greater than or equal to the target size threshold.

[0058] In an embodiment of the present application, after the electronic device obtains the comparison result between the above first display size and the target size threshold, based on the comparison result, if the comparison result indicates that the above first display size is greater than or equal to the target size threshold, it means that the above first floating window is in the second display state in the above first interface. In this case, the electronic device can display the above second interface, and the second display size of the first floating window in the second interface is smaller than the above target size threshold, and the third display size of the newly added second floating window in the second interface is greater than or equal to the target size threshold.

[0059] That is to say, when the first floating window is originally in the second display state and a second floating window in the second display state needs to be added, if multiple floating windows in the second display state are displayed at the same time, since the display size of the floating windows in the second display state is greater than or equal to the target size threshold, the displayed multiple floating windows will occupy too large a proportion of the display interface. Therefore, the first floating window that was originally in the second display state can be adjusted to the second floating window in the first display state, that is, the second display size of the first floating window in the displayed second interface is smaller than the above target size threshold, and the display size of the above second floating window in the second interface is greater than or equal to the target size threshold, so that the second floating window is in a larger display size, so that the user can operate the interface in the second floating window.

[0060] Exemplarily, the floating window in the second display state can be used as a "standard floating window", and the floating window in the first display state can be used as a "mini floating window". When a new "standard floating window" is needed, the originally displayed "standard floating window" can be switched to a "mini floating window", thereby avoiding the problem of the floating window occupying too large a proportion of the display interface when multiple "standard floating windows" are displayed at the same time.

[0061] In some embodiments, the electronic device stores a first default size when the floating window is in the first display state and a second default size when the floating window is in the second display state, wherein the first default size is smaller than the above target size threshold, and the second default size is greater than or equal to the above target size threshold. When displaying the above second interface, the electronic device may use the first default size as the above second display size, the second default size as the above third display size, and then display the above second interface based on the second display size and the third display size.

[0062] In a possible implementation, the first display size of the first floating window in the above first interface may be the same as the above second default size, or may be different from the second default size, but the first display size is greater than or equal to the above target size threshold. When the first display size of the first floating window is the same as the second default size, the third display size of the second floating window in the second interface displayed by the electronic device is the same as the first display size of the first floating window in the first interface. It can be understood that when the display size of the first floating window is greater than or equal to the target size threshold (i.e., in the second display state), the electronic device can adjust the display size of the first floating window within a size range greater than or equal to the above target size threshold based on the detected adjustment operation of the display size of the first floating window. Therefore, when the electronic device displays the first interface, the display size of the first floating window therein may be the above second default size, or may not be the above second default size.

[0063] Step S240: If the comparison result indicates that the first display size is smaller than the target size threshold, displaying a third interface.

[0064] The third interface includes the first floating window of the first display size and the second floating window of the third display size, and the third display size is greater than or equal to the target size threshold.

[0065] In an embodiment of the present application, after the electronic device obtains the comparison result between the above first display size and the target size threshold, based on the comparison result, if the comparison result indicates that the above first display size is smaller than the target size threshold, it means that the above first floating window is in the first display state in the above first interface. In this case, the electronic device can display the above third interface, and the display size of the first floating window in the third interface can be the above first display size, and the display size of the second floating window can be the above third display size.

[0066] That is to say, when the first floating window is originally in the first display state and a second floating window in the second display state needs to be added, if the floating window in the first display state and the floating window in the second display state are displayed at the same time, the multiple floating windows displayed will not occupy too large a proportion of the display interface. Therefore, the display state of the first floating window can be kept unchanged, and the second floating window in the second display state can be directly added to the display interface. Therefore, the electronic device can display a third interface including the first floating window of the above first display size and the second floating window of the above third display size.

[0067] The following is an explanation of the interface display method provided in the embodiment of the present application by taking examples.

[0068] Please also see Figure 3 and Figure 4 The first interface A1 displayed by the electronic device includes a first floating window A2 of a first display size, and the first display size is greater than or equal to a target size threshold; after the electronic device detects a trigger operation for adding a second floating window, it can display a second interface A3, and the display size of the first floating window A2 in the second interface A3 is changed to a second display size smaller than the target size threshold, and a second floating window A4 of a third display size is displayed, and the third display size is greater than or equal to the target size threshold.

[0069] Please also see Figure 5 and Figure 6The first interface A1 displayed by the electronic device includes a first floating window A2 of a first display size, and the first display size is smaller than the target size threshold; after the electronic device detects a trigger operation for adding a second floating window, it can display a third interface A5, and the display size of the first floating window A2 in the third interface A5 remains unchanged, still being the above first display size, and a second floating window A4 of a third display size is displayed, and the third display size is greater than or equal to the target size threshold.

[0070] The interface display method provided in the embodiment of the present application can determine whether to adjust the display size of the originally displayed floating window according to the size relationship between the display size of the originally displayed floating window and the target size threshold when increasing the number of floating windows displayed on the electronic device. When the display size of the originally displayed first floating window is greater than or equal to the target size threshold, the display size of the originally displayed first floating window is controlled to be smaller than the target size threshold, thereby reducing the proportion of floating windows in the display interface after the floating windows are added, thereby avoiding excessive proportion of floating windows in the display interface and affecting the normal operation of the user in the display interface, and the display size of the newly added floating window in the displayed interface is greater than or equal to the target size threshold, thereby meeting the user's use requirements for the newly added floating window; in addition, when the display size of the originally displayed floating window is smaller than the target size threshold, the display size of the originally displayed first floating window is kept unchanged, and a floating window with a display size greater than the target size threshold is added, thereby better meeting the user's use requirements for the newly added floating window.

[0071] See also Figure 7 , Figure 7 A flow chart of an interface display method provided by another embodiment of the present application is shown. The interface display method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0072] Step S310: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0073] Step S320: In response to a triggering operation for adding a floating window, a comparison result between the first display size and a target size threshold is obtained.

[0074] Step S330: If the comparison result indicates that the first display size is greater than or equal to the target size threshold, displaying the second interface.

[0075] The second interface includes the first floating window of a second display size and a second floating window of a third display size, the second display size is smaller than the target size threshold, and the third display size is greater than or equal to the target size threshold.

[0076] In the embodiment of the present application, steps S310 to S330 may refer to the contents of the aforementioned embodiment and will not be described in detail here.

[0077] Step S340: If the comparison result indicates that the first display size is smaller than the target size threshold, determine the total number of the first floating windows.

[0078] In an embodiment of the present application, when it is determined that the comparison result between the first display size and the target size threshold indicates that the first display size is smaller than the target size threshold, when displaying the third interface in the previous embodiment, it is considered that although the first display size of the first floating window previously displayed by the electronic device is smaller than the target size threshold, that is, it is in the first display state mentioned in the aforementioned embodiment, there may be multiple first floating windows in the first display state in the first interface displayed by the electronic device. At this time, adding a floating window with a display size greater than or equal to the target size threshold to the display interface may also cause the floating window to occupy too large a proportion of the display interface. Therefore, the electronic device can also determine the total number of first floating windows so as to determine the display size of the floating window in the interface after the newly added floating window is added based on the total number.

[0079] Step S350: If the total number is less than the target number threshold, the third interface is displayed.

[0080] The third interface includes the first floating window of the first display size and the second floating window of the third display size, and the third display size is greater than or equal to the target size threshold.

[0081] In the embodiment of the present application, after obtaining the total number of first floating windows in the first interface, the electronic device can compare the total number with the target number threshold; according to the comparison result, if it is determined that the total number is less than the target number threshold, it means that the first floating window accounts for a small proportion of the first display interface, so the electronic device can display a third interface including the first floating window of the first display size and the second floating window of the third display size, that is, the second floating window of the third display size is added while keeping the display size of the original first floating window unchanged. Among them, the target number threshold can be 2, 3, etc.

[0082] Step S360: If the total number is greater than or equal to the target quantity threshold, the fourth interface is displayed.

[0083] The fourth interface includes the first floating window of the first display size and the second floating window of a fourth display size, the fourth display size is smaller than the third display size, and the fourth display size is greater than or equal to the target size threshold.

[0084] In the embodiment of the present application, after the electronic device compares the above total number with the target number threshold, according to the comparison result, if it is determined that the total number is greater than or equal to the target number threshold, the fourth interface can be displayed when a new floating window is added, and the display size of the first floating window in the fourth interface is the first display size, and the display size of the second floating window is the fourth display size, and the fourth display size is smaller than the above third display size, and the fourth display size is greater than or equal to the target size threshold. In other words, in the displayed fourth interface, the display size of the newly added second floating window is smaller than the third display size of the second floating window displayed in the above steps S330 and S350, and the display size of the newly added second floating window is greater than or equal to the target size threshold, so that the increase ratio of the floating window in the display interface when the above second floating window is added can be reduced, thereby avoiding the floating window from occupying too large a proportion in the display interface.

[0085] For example, the target quantity threshold above may be 2. Please also refer to Figure 8 and Fig. 9 The first interface A1 displayed by the electronic device includes two first floating windows A2 of a first display size, and the first display size is smaller than the target size threshold; after the electronic device detects a trigger operation for adding a second floating window, it can display a fourth interface A6, and the display size of the first floating window A2 in the fourth interface A6 remains unchanged, still being the above first display size, and a second floating window A4 of a fourth display size is displayed, and the fourth display size is smaller than the above third display size, and the third display size is greater than or equal to the above target size threshold.

[0086] The interface display method provided by the embodiment of the present application can determine whether to adjust the display size of the originally displayed first floating window according to the size relationship between the display size of the originally displayed first floating window and the target size threshold when increasing the number of floating windows displayed on the electronic device. When the display size of the originally displayed first floating window is greater than or equal to the target size threshold, the display size of the originally displayed first floating window is controlled to be smaller than the target size threshold, thereby reducing the proportion of the floating window in the display interface after the floating window is added, thereby avoiding that the floating window accounts for too large a proportion in the display interface, avoiding affecting the normal operation of the user in the display interface, and the display size of the newly added floating window in the displayed interface is reduced. The size of the first floating window originally displayed is greater than or equal to the target size threshold, thereby meeting the user's demand for the use of the newly added floating window; in addition, when the display size of the first floating window originally displayed is smaller than the target size threshold, if the number of first floating windows originally displayed is less than the target number threshold, the display size of the first floating window originally displayed is maintained unchanged, and a second floating window with a display size greater than the target size threshold is added; if the number of first floating windows originally displayed is greater than or equal to the target number threshold, a floating window with a smaller display size than the newly added floating window displayed in other cases is displayed, and the display size of the first floating window originally displayed is maintained unchanged, thereby better meeting the user's demand for the use of the newly added floating window.

[0087] See also Fig.10 , Fig.10 A flow chart of an interface display method provided by another embodiment of the present application is shown. The interface display method is applied to the above electronic device. Fig.10 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0088] Step S410: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0089] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0090] Step S420: In response to a triggering operation for adding a new floating window, determining a target application corresponding to the second floating window.

[0091] In an embodiment of the present application, after detecting the above trigger operation, the electronic device can respond to the trigger operation and determine the target application corresponding to the floating window (i.e., the second floating window) to be added, so as to determine the display size of the floating window in the interface after the new floating window is added according to the target application.

[0092] It is understandable that when an electronic device adds a floating window, it usually does so based on a trigger operation input by the user for the corresponding application in the display interface. Therefore, the above target application can be determined based on the above trigger operation. For example, if the electronic device detects a floating window opening operation for a first application in the displayed sidebar, the first application can be determined as the above target application; for another example, if the electronic device detects a floating window opening operation for a second application in the multitasking interface, the second application can be determined as the above target application.

[0093] Step S430: If the target application is any application in the target list, a second interface is displayed, wherein the second interface includes the first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size.

[0094] In some usage scenarios, when a user needs to add a new floating window, the user may want the newly added floating window to be displayed in a relatively small display size in the interface. For example, when a user is using the floating window corresponding to a document editing application to edit a document, if the user wants to refer to the text content in the application interface corresponding to the target application at this time, then the user usually needs to add a new floating window corresponding to the target application, and the user hopes that the newly added floating window corresponding to the target application will be displayed in a relatively small display size in the interface; for another example, when a user views and operates the floating window corresponding to a navigation application in scenarios such as cycling and running, the user needs to observe his or her physiological parameters (such as heart rate, etc.) in real time. At this time, the user needs to add a new floating window corresponding to the target application for monitoring the physiological parameters, and the user also usually hopes that the newly added floating window corresponding to the target application will be displayed in a relatively small display size in the interface. Therefore, when the electronic device adds a new floating window to display, it can determine whether the above target application is any application in the target list; if the target application is an application in the target list, it means that the target application is an application that the user needs to display a floating window with a relatively large display size, so the above second display interface can be displayed, that is, in the display interface after adding the second floating window, the second display size of the first floating window is smaller than the above first display size, and the display size of the second floating window is larger than the second display size of the first floating window. This not only meets the user's desire to add a second floating window with a relatively larger display size, but also can avoid the floating window occupying too large a proportion of the display interface when adding a floating window.

[0095] In some implementations, the target list may be determined in advance by the electronic device according to an operation input by the user. For example, the electronic device may display a setting interface for the target list, which may include options corresponding to all applications installed in the electronic device; the electronic device adds the application corresponding to the selected target option to the target list according to the detected selection operation of the target option.

[0096] In some embodiments, the electronic device can obtain historical usage data of each installed application, which historical usage data includes the number of operations detected when the application is running in the foreground and the running time in the foreground; based on the ratio of the above number of operations to the running time, the operating frequency of each application when running in the foreground can be determined; after obtaining the operating frequency corresponding to each application, the operating frequency corresponding to each application can be compared with the target frequency threshold; based on the comparison result, the application whose operating frequency is greater than the target frequency threshold can be determined as the application in the above target list.

[0097] In some embodiments, after displaying the above second interface, the electronic device may further detect an operation in the second interface. When a switching operation for the first floating window is detected, such as a click operation for the first floating window, the sixth interface may be displayed in response to the switching operation, and the sixth interface includes a first floating window of a third display size and a second floating window of a second display size. In this way, the switching of the display size between the first floating window and the second floating window in the second interface may be achieved to meet the user's demand for the use of the floating window. For example, when the third display size is greater than or equal to the target size threshold in the aforementioned embodiment, and the second display size is less than the target size threshold in the aforementioned embodiment, the floating window with a display size greater than or equal to the target size may be used as a "standard floating window", and the floating window with a display size less than the target size may be used as a "mini floating window", thereby achieving the switching of the display state when the electronic device displays both the "standard floating window" and the "mini floating window".

[0098] Step S440: If the target application is not an application in the target list, displaying a fifth interface, wherein the second interface includes the first floating window of the third display size and the second floating window of the second display size.

[0099] In an embodiment of the present application, when the electronic device adds a floating window to display, after determining whether the above target application is any application in the target list, if it is determined that the target application is not any application in the target list, it means that the target application is not an application that the user needs to display a floating window with a relatively large display size, that is, the user needs to display an application that the floating window is with a relatively small display size. Therefore, the electronic device can display the fifth interface. In the fifth interface after adding a second floating window, the display size of the first floating window is the above third display size, and the display size of the second floating window is the above second display size. This not only satisfies the user's desire to add a second floating window with a relatively small display size, but also keeps the display size of the first floating window unchanged. It can also avoid the floating window occupying too large a proportion of the display interface when adding a floating window.

[0100] In an alternative implementation, after detecting the above trigger operation, the electronic device can respond to the trigger operation to obtain the first usage priority of the application corresponding to the first floating window and the second usage priority of the application corresponding to the second floating window; if the first usage priority is lower than the second usage priority, the electronic device can display the above second interface; if the first usage priority is higher than or equal to the second usage priority, the electronic device can display the above fifth interface. The above usage priority is used to characterize the probability of the user operating the application interface in the floating window when the floating window corresponding to the application is displayed, and the higher the usage priority, the higher the probability of the operation.

[0101] Optionally, the electronic device can obtain historical usage data of each installed application, which historical usage data includes the number of operations detected when the application is running in the foreground and the running time in the foreground; then, obtain the ratio of the above number of operations to the running time as the above operation probability corresponding to each application; after obtaining the above operation probability corresponding to each application, the above usage priority corresponding to each application can be determined based on the above operation probability corresponding to each application.

[0102] The interface display method provided in the embodiment of the present application can reduce the proportion of the floating window in the display interface after the floating window is added, thereby avoiding the floating window from occupying too large a proportion in the display interface, avoiding affecting the normal operation of the user in the display interface, and meeting the user's usage needs for the newly added floating window; in addition, according to whether the application corresponding to the floating window to be added is in the target list, the display size corresponding to the floating window in the display interface after the floating window is added is determined, so that the displayed floating window can better meet the user's usage needs.

[0103] See also Fig.11 , Fig.11 A flow chart of an interface display method provided by another embodiment of the present application is shown. The interface display method is applied to the above electronic device. Fig.11 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0104] Step S510: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0105] In the embodiment of the present application, step S510 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0106] Step S520: In response to a trigger operation for adding a new floating window, a second interface is displayed based on the first display position of the first floating window in the first interface, the second interface including the first floating window of a second display size and a second floating window of a third display size, the second display size is smaller than the first display size, the third display size is larger than the second display size, and the distance between the second display position of the first floating window in the second interface and the first display position is smaller than a target distance threshold.

[0107] In an embodiment of the present application, when the electronic device displays the above second interface in response to a trigger operation, considering that the display size of the first floating window becomes smaller, the user may visually perceive a significant change in the display position of the first floating window. Therefore, the electronic device may display the above second interface based on the first display position of the first floating window in the first interface. In the displayed second interface, the distance between the display position of the first floating window and the original display position of the first floating window is less than the target distance threshold. For example, the target distance threshold may be less than 15 pixels (px), 25px, etc., thereby reducing the position change of the first floating window perceived by the user and improving the display effect of the floating window.

[0108] In some embodiments, the electronic device can reduce the display size of the first floating window to the second display size based on the first display position while keeping the position of one of the corners of the first floating window unchanged, and obtain a new display position of the first floating window; then based on the new display position of the first floating window, the electronic device can display the second interface at the third display size corresponding to the second floating window. In the displayed second interface, the first floating window of the second display size is located at the new display position, and the second floating window of the third display size does not overlap with the first floating window. In this way, not only can the position change of the first floating window felt by the user be reduced, but also the occlusion between the floating windows can be avoided.

[0109] The interface display method provided in the embodiment of the present application can reduce the proportion of the floating window in the display interface after the floating window is added, thereby avoiding the floating window from occupying too large a proportion in the display interface, avoiding affecting the normal operation of the user in the display interface, and meeting the user's demand for the use of the newly added floating window; in addition, by displaying the display interface after the floating window is added based on the display position of the originally displayed floating window in the interface, the distance between the display position of the originally displayed floating window and the original display position of the floating window is less than the target distance threshold, thereby reducing the position change of the first floating window felt by the user and improving the display effect of the floating window.

[0110] See also Fig.12 , Fig.12A flow chart of an interface display method provided by yet another embodiment of the present application is shown. The interface display method is applied to the above electronic device. Fig.12 The process shown is described in detail, and the interface display method may specifically include the following steps:

[0111] Step S610: displaying a first interface, wherein the first interface includes a first floating window of a first display size.

[0112] In the embodiment of the present application, step S610 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0113] Step S620: In response to a triggering operation for adding a new floating window, display positions of the first floating window and the second floating window are determined based on the second display size and the third display size.

[0114] In an embodiment of the present application, when the electronic device displays the above-mentioned second interface in response to a trigger operation, considering that when the electronic device adds a floating window, the additionally displayed floating window may obstruct the originally displayed floating window, the electronic device may determine the display positions of the first floating window and the second floating window based on the second display size and the third display size to avoid obstruction between the second floating window and the first floating window in the subsequently displayed second interface.

[0115] In some embodiments, the electronic device can determine, based on the above second display size and third display size, a position in the display interface where a first floating window of the second display size and a second floating window of the third display size do not overlap with each other, thereby obtaining the display positions of the first floating window and the second floating window.

[0116] Step S630: Based on the display position, the second display size and the third display size, display a second interface, wherein the second interface includes the first floating window of the second display size and the second floating window of the third display size, the second display size is smaller than the first display size, the third display size is larger than the second display size, and the first floating window and the second floating window in the second interface do not overlap with each other.

[0117] In an embodiment of the present application, after the display positions of the first floating window and the second floating window are determined, the second interface can be displayed based on the above display positions, the second display size and the third display size. In the displayed second interface, not only can the display size of the displayed first floating window be the above second display size and the display size of the displayed second floating window be the above third display size, but the first floating window and the second floating window can also not overlap with each other, thereby avoiding occlusion between the newly added floating window and the originally displayed floating window.

[0118] The interface display method provided in the embodiment of the present application can reduce the proportion of the floating window in the display interface after the floating window is added, thereby avoiding the floating window from occupying too large a proportion in the display interface, avoiding affecting the normal operation of the user in the display interface, and meeting the user's demand for the use of the newly added floating window; in addition, when displaying the display interface after the floating window is added, the respective positions are determined based on the display size of the floating window to be displayed, so that the floating windows in the finally displayed interface do not overlap with each other, thereby avoiding occlusion between the floating windows and improving the display effect of the floating window.

[0119] See also Fig.13 , which shows a structural block diagram of an interface display device 700 provided in an embodiment of the present application. The interface display device 700 applies the above-mentioned electronic device, and the interface display device 700 includes: a first interface display module 710 and a second interface display module 720. Among them, the first interface display module 710 is used to display a first interface, and the first interface includes a first floating window of a first display size; the second interface display module 720 is used to respond to a trigger operation for adding a floating window, and display a second interface, and the second interface includes the first floating window of a second display size and a second floating window of a third display size, the second display size is smaller than the first display size, and the third display size is larger than the second display size.

[0120] In some embodiments, the second interface display module 720 can be specifically used to: in response to the trigger operation, obtain a comparison result between the first display size and the target size threshold; if the comparison result indicates that the first display size is greater than or equal to the target size threshold, then display the second interface, the second display size is smaller than the target size threshold, and the third display size is greater than or equal to the target size threshold.

[0121] In a possible implementation, the interface display device 700 may further include a third interface display module. The third interface display module is used to, after obtaining the comparison result between the first display size and the target size in response to the trigger operation, if the comparison result indicates that the first display size is smaller than the target size threshold, display a third interface, the third interface including the first floating window of the first display size and the second floating window of the third display size, and the third display size is greater than or equal to the target size threshold.

[0122] Optionally, the third interface display module can be specifically used to: if the comparison result indicates that the first display size is smaller than the target size threshold, determine the total number of the first floating windows; if the total number is smaller than the target number threshold, display the third interface.

[0123] Optionally, the interface display device 700 may further include a fourth interface display module. The fourth interface display module is used for, after determining the total number of the first floating windows if the comparison result indicates that the first display size is smaller than the target size threshold, if the total number is greater than or equal to the target number threshold, displaying a fourth interface, the fourth interface including the first floating window of the first display size and the second floating window of a fourth display size, the fourth display size being smaller than the third display size, and the fourth display size being greater than or equal to the target size threshold.

[0124] In some implementations, the second interface display module 720 may be specifically configured to: determine a target application corresponding to the second floating window in response to the trigger operation; and display the second interface if the target application is any application in the target list.

[0125] In a possible implementation, the interface display device 700 may further include a fifth interface display module. The fifth interface display module is used to: after determining the target application corresponding to the second floating window in response to the trigger operation, if the target application is not an application in the target list, display a fifth interface, wherein the second interface includes the first floating window of the first display size and the second floating window of the second display size.

[0126] In some embodiments, the second interface display module 720 can be specifically used to: in response to the trigger operation, display the second interface based on the first display position of the first floating window in the first interface, and the distance between the second display position of the first floating window in the second interface and the first display position is less than the target distance threshold.

[0127] In some embodiments, the second interface display module 720 can be specifically used to: determine the display positions of the first floating window and the second floating window based on the second display size and the third display size in response to a trigger operation in the first interface; and display the second interface based on the display position, the second display size, and the third display size, wherein the first floating window and the second floating window in the second interface do not overlap with each other.

[0128] In some embodiments, a proportion of the first floating window and the second floating window in the second interface is less than a target proportion.

[0129] In some embodiments, the interface display device 700 may further include a sixth interface display module. The sixth interface display module is used to display a sixth interface in response to a switching operation on the first floating window after displaying the second interface in response to the triggering operation for adding a floating window, wherein the sixth interface includes the first floating window of the third display size and the second floating window of the second display size.

[0130] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0131] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0132] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0133] In summary, the solution provided by the present application displays a first interface, including a first floating window of a first display size, and displays a second interface in response to a trigger operation for adding a floating window, wherein the second interface includes a first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size. Thus, when the number of floating windows displayed on the electronic device is increased, the display size of the originally displayed first floating window can be reduced, thereby reducing the proportion of floating windows in the display interface after the floating windows are added, thereby avoiding excessive proportion of floating windows in the display interface and affecting the normal operation of the user in the display interface.

[0134] Please refer to Fig.14 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, a smart watch, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display screen 130, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0135] The processor 110 uses various interfaces and lines to connect various parts within the entire electronic device 100, and performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.

[0136] The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.

[0137] The display screen 130 is a display component for displaying images and is usually disposed on the front panel of the electronic device 100 .

[0138] Please refer to Fig.15 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0139] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An interface display method, characterized in that: The method comprises: Displaying a first interface, wherein the first interface includes a first floating window of a first display size; In response to a trigger operation for adding a new floating window, a second interface is displayed, wherein the second interface includes the first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size.

2. The method according to claim 1, characterized in that The displaying of the second interface in response to the triggering operation for adding a floating window includes: In response to the trigger operation, obtaining a comparison result between the first display size and a target size threshold; If the comparison result indicates that the first display size is greater than or equal to the target size threshold, the second interface is displayed, the second display size is less than the target size threshold, and the third display size is greater than or equal to the target size threshold.

3. The method according to claim 2, characterized in that After obtaining the comparison result between the first display size and the target size in response to the trigger operation, the method further includes: If the comparison result indicates that the first display size is smaller than the target size threshold, a third interface is displayed, wherein the third interface includes the first floating window of the first display size and the second floating window of the third display size, and the third display size is greater than or equal to the target size threshold.

4. The method according to claim 3, characterized in that If the comparison result indicates that the first display size is smaller than the target size threshold, displaying a third interface includes: If the comparison result indicates that the first display size is smaller than the target size threshold, determining the total number of the first floating windows; If the total number is less than the target quantity threshold, the third interface is displayed.

5. The method according to claim 4, characterized in that After determining the total number of the first floating windows if the comparison result indicates that the first display size is smaller than the target size threshold, the method further includes: If the total number is greater than or equal to the target quantity threshold, a fourth interface is displayed, wherein the fourth interface includes the first floating window of the first display size and the second floating window of the fourth display size, the fourth display size is smaller than the third display size, and the fourth display size is greater than or equal to the target size threshold.

6. The method according to claim 1, characterized in that The displaying of the second interface in response to the triggering operation for adding a floating window includes: In response to the triggering operation, determining a target application corresponding to the second floating window; If the target application is any application in the target list, the second interface is displayed.

7. The method according to claim 6, characterized in that After determining the target application corresponding to the second floating window in response to the triggering operation, the method further includes: If the target application is not an application in the target list, a fifth interface is displayed, wherein the fifth interface includes the first floating window of the first display size and the second floating window of the second display size.

8. The method according to any one of claims 1 to 7, characterized in that: The displaying of the second interface in response to the triggering operation for adding a floating window includes: In response to the trigger operation, the second interface is displayed based on the first display position of the first floating window in the first interface, and the distance between the second display position of the first floating window in the second interface and the first display position is less than a target distance threshold.

9. The method according to any one of claims 1 to 7, characterized in that: The displaying of the second interface in response to the triggering operation for adding a floating window includes: In response to the trigger operation, determining display positions of the first floating window and the second floating window based on the second display size and the third display size; Based on the display position, the second display size, and the third display size, the second interface is displayed, wherein the first floating window and the second floating window in the second interface do not overlap each other.

10. The method according to any one of claims 1 to 7, characterized in that: The proportion of the first floating window and the second floating window in the second interface is less than the target proportion.

11. The method according to any one of claims 1 to 7, characterized in that: After displaying the second interface in response to the triggering operation for adding a floating window, the method further includes: In response to a switching operation on the first floating window, a sixth interface is displayed, wherein the sixth interface includes the first floating window of the third display size and the second floating window of the second display size.

12. An interface display device, characterized in that: The device comprises: a first interface display module and a second interface display module, wherein: The first interface display module is used to display a first interface, wherein the first interface includes a first floating window of a first display size; The second interface display module is used to display a second interface in response to a trigger operation for adding a new floating window, wherein the second interface includes the first floating window of a second display size and a second floating window of a third display size, wherein the second display size is smaller than the first display size, and the third display size is larger than the second display size.

13. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 11.