Display method and device, electronic equipment and storage medium

By responding to the triggering operation of preset controls in the in-app split-screen display mode and displaying the pop-up window in the center, the problem of pop-ups only appearing above one window is solved, improving the overall display effect and user experience of the display interface.

CN121704938APending Publication Date: 2026-03-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In the in-app split-screen display mode, the pop-up only appears on top of one window, resulting in a poor overall display effect and a poor user experience.

Method used

After the first and second windows of the target application are displayed in a split-screen manner in the display interface, the target pop-up is displayed in the center in response to the trigger operation of the preset control. The creation parameters are obtained through inter-process communication and the pop-up is created in the system process to ensure that the pop-up is displayed in the center of the display interface.

Benefits of technology

It improves the overall display effect of the interface and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121704938A_ABST
    Figure CN121704938A_ABST
Patent Text Reader

Abstract

The invention relates to a display method and device, electronic equipment and a storage medium. The method comprises the steps that a first window and a second window of a target application program are displayed in a display interface in a split-screen mode; in response to a triggering operation on a first preset control, a target popup window is displayed in the middle of the display interface, and the first preset control is a control used for triggering the target popup window in the first window or the second window. According to the method, the target popup window is centrally displayed in the display interface, so that the overall display effect of the display interface is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of display technology, and in particular to a display method, apparatus, electronic device and storage medium. Background Technology

[0002] With the development of electronic devices, in order to meet user needs, many third-party applications and some system applications have adapted to in-app split-screen display mode, which means that two windows of the same application are displayed in the display interface. However, in the in-app split-screen display mode, the pop-up window is only displayed above the area of ​​one of the windows, resulting in a poor overall display effect and a poor user experience. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a display method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of the present disclosure, a display method is provided, the method comprising:

[0005] The target application's first and second windows are displayed in a split-screen mode on the display interface.

[0006] In response to a triggering operation of a first preset control, a target pop-up window is displayed in the center of the display interface. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

[0007] In some embodiments, displaying the first window and the second window of the target application in the display interface includes:

[0008] The first window is displayed in the display interface;

[0009] In response to a triggering operation of a second preset control, the first window and the second window are displayed in a split-screen manner on the display interface, wherein the second preset control is a control in the first window used to trigger the second window.

[0010] In some embodiments, the method further includes:

[0011] Obtain the first creation parameter, which indicates the size and display area of ​​the target pop-up window to be created;

[0012] Based on the first creation parameters, the target pop-up window is created.

[0013] In some embodiments, obtaining the first creation parameter includes:

[0014] The first creation parameter is obtained through the application process of the target application;

[0015] The step of creating the target pop-up window based on the first creation parameters includes:

[0016] The first creation parameters are sent to the system process via inter-process communication.

[0017] The system process creates the target pop-up window based on the first creation parameters.

[0018] In some embodiments, the method further includes:

[0019] Obtain the display format identifier corresponding to the second window, the display format identifier being used to indicate whether the second window is displayed in full screen in the display interface;

[0020] The method of centering the target pop-up window in the display interface includes:

[0021] When the display format identifier indicates that the second window is not displayed in full screen in the display interface, the target pop-up window is displayed in the center of the display interface.

[0022] In some embodiments, displaying the target pop-up window in the center of the display interface includes:

[0023] When the target pop-up is a dialog box, it is displayed in the center of the display interface.

[0024] In some embodiments, the method further includes:

[0025] In response to a triggering operation of a third preset control, an input method window is displayed in the center of a preset area of ​​the display interface. The third preset control is a control in the target pop-up window used to trigger the input method window. The preset area is the bottom area of ​​the display interface, and the side length of the bottom of the preset area is the same as the side length of the bottom of the display interface.

[0026] In some embodiments, the method further includes:

[0027] The input method window is mounted on the input method container.

[0028] In some embodiments, before displaying the first and second windows of the target application in a split-screen manner on the display interface, the method further includes:

[0029] Mount the first window to be displayed onto the first activity;

[0030] Mount the second window to be displayed onto the second activity;

[0031] The second activity is initiated based on the first activity, and the first activity and the second activity are located on the same task container corresponding to the target application.

[0032] In some embodiments, before centering the target pop-up window in the display interface, the method further includes:

[0033] The target pop-up is attached to the task container.

[0034] In some embodiments, before mounting the second window to be displayed onto the second activity, the method further includes:

[0035] Obtain the second creation parameter, which indicates the size and display area of ​​the subtask container to be created;

[0036] Based on the second creation parameters, a target subtask container is created, which is a subtask container used to manage the second activity.

[0037] In some embodiments, obtaining the second creation parameter includes:

[0038] The second creation parameters are obtained through the application process of the target application;

[0039] The step of creating the target subtask container based on the second creation parameters includes:

[0040] The second creation parameter is sent to the system process via inter-process communication.

[0041] The target subtask container is created through the system process based on the second creation parameters.

[0042] In some embodiments, the method further includes:

[0043] Identify at least one window mounted on the task container corresponding to the target application;

[0044] When the at least one window includes the target pop-up, the display animation corresponding to the target pop-up is set as the first display animation, and the display animations corresponding to other windows in the at least one window besides the target pop-up are set as the second display animations, wherein the first display animation is different from the second display animation.

[0045] In some embodiments, the method further includes:

[0046] When the window containing the first preset control is canceled, the target pop-up window is also canceled.

[0047] According to a second aspect of the present disclosure, a display device is provided, the device comprising:

[0048] The first display module is configured to display the first and second windows of the target application in a split-screen manner within the display interface;

[0049] The second display module is configured to display a target pop-up window centered in the display interface in response to a trigger operation of a first preset control. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

[0050] In some embodiments, the first display module is configured to:

[0051] The first window is displayed in the display interface;

[0052] In response to a triggering operation of a second preset control, the first window and the second window are displayed in a split-screen manner on the display interface, wherein the second preset control is a control in the first window used to trigger the second window.

[0053] In some embodiments, the apparatus further includes:

[0054] The first parameter acquisition module is configured to acquire the first creation parameter, which is used to indicate the size and display area of ​​the target pop-up window to be created.

[0055] The pop-up creation module is configured to create the target pop-up based on the first creation parameters.

[0056] In some embodiments, the first parameter acquisition module is configured to:

[0057] The first creation parameter is obtained through the application process of the target application;

[0058] The pop-up window creation module is configured as follows:

[0059] The first creation parameters are sent to the system process via inter-process communication.

[0060] The system process creates the target pop-up window based on the first creation parameters.

[0061] In some embodiments, the apparatus further includes:

[0062] The identifier acquisition module is configured as the display format identifier corresponding to the second window, and the display format identifier is used to indicate whether the second window is displayed in full screen in the display interface;

[0063] The second display module is configured to display the target pop-up window centered in the display interface when the display format identifier indicates that the second window is not displayed in full screen in the display interface.

[0064] In some embodiments, the second display module is configured to:

[0065] When the target pop-up is a dialog box, it is displayed in the center of the display interface.

[0066] In some embodiments, the apparatus further includes:

[0067] The third display module is configured to display the input method window in the center of the preset area of ​​the display interface in response to the triggering operation of the third preset control. The third preset control is the control in the target pop-up window used to trigger the input method window. The preset area is the bottom area of ​​the display interface, and the side length of the bottom of the preset area is the same as the side length of the bottom of the display interface.

[0068] In some embodiments, the apparatus further includes:

[0069] The first mounting module is configured to mount the input method window onto the input method container.

[0070] In some embodiments, the apparatus further includes:

[0071] The second mounting module is configured to mount the first window to be displayed onto the first activity, and to mount the second window to be displayed onto the second activity;

[0072] The second activity is initiated based on the first activity, and the first activity and the second activity are located on the same task container corresponding to the target application.

[0073] In some embodiments, the apparatus further includes:

[0074] The third mounting module is configured to mount the target pop-up onto the task container.

[0075] In some embodiments, the apparatus further includes:

[0076] The second parameter acquisition module is configured to acquire a second creation parameter, which is used to indicate the size and display area of ​​the subtask container to be created.

[0077] The subtask container creation module is configured to create a target subtask container based on the second creation parameters, the target subtask container being a subtask container used to manage the second activity.

[0078] In some embodiments, the second parameter acquisition module is configured to:

[0079] The second creation parameters are obtained through the application process of the target application;

[0080] The subtask container creation module is configured as follows:

[0081] The second creation parameter is sent to the system process via inter-process communication.

[0082] The target subtask container is created through the system process based on the second creation parameters.

[0083] In some embodiments, the apparatus further includes:

[0084] The window determination module is configured to determine at least one window mounted on the task container corresponding to the target application.

[0085] The display animation setting module is configured to, when the at least one window includes the target pop-up, set the display animation corresponding to the target pop-up to a first display animation, and set the display animations corresponding to other windows in the at least one window other than the target pop-up to a second display animation, wherein the first display animation is different from the second display animation.

[0086] In some embodiments, the apparatus further includes:

[0087] The cancel display module is configured to cancel the display of the target pop-up when the window containing the first preset control is canceled.

[0088] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0089] processor;

[0090] Memory used to store processor-executable instructions;

[0091] The processor is configured to perform the display method as described in the first aspect of the embodiments of this disclosure.

[0092] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the display method as described in the first aspect of the present disclosure.

[0093] The method described above, as disclosed in this invention, has the following beneficial effects:

[0094] The method provided in this embodiment of the present disclosure displays a first window and a second window of a target application in a split-screen display interface; in response to a trigger operation of a first preset control, the target pop-up is displayed in the center of the display interface, rather than displayed above the area where the first window or the second window is located. The centering of the target pop-up in the display interface improves the overall display effect of the display interface, thereby improving the user experience.

[0095] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0096] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0097] Figure 1 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0098] Figure 2 This is a flowchart illustrating a display method according to an exemplary embodiment.

[0099] Figure 3 This is a flowchart illustrating a display method according to an exemplary embodiment.

[0100] Figure 4 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0101] Figure 5 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0102] Figure 6 This is a flowchart illustrating the creation process of a target TaskFragment according to an exemplary embodiment.

[0103] Figure 7 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0104] Figure 8 This is a flowchart illustrating the display process of a target pop-up window according to an exemplary embodiment.

[0105] Figure 9 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0106] Figure 10 This is a schematic diagram illustrating a display interface according to an exemplary embodiment.

[0107] Figure 11 This is a flowchart illustrating the display process of an input method window according to an exemplary embodiment.

[0108] Figure 12 This is a flowchart illustrating a display animation setup process according to an exemplary embodiment.

[0109] Figure 13 This is a block diagram illustrating a display device according to an exemplary embodiment.

[0110] Figure 14 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0111] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0112] In related technologies, in in-app split-screen display mode, two windows of the same application are displayed in a split-screen manner on the display interface. However, pop-ups displayed in in-app split-screen display mode are only shown above the area where one of the windows is located. For example, see [link to relevant documentation]. Figure 1 The diagram shown illustrates the display interface. If a pop-up window is triggered in window 2, it will appear above the area containing window 2. Figure 1 The pop-up window in window 2 is displayed in the center area. Figure 1 In window b, the pop-up appears at the bottom of window 2. Regardless of the display method, the pop-up will not appear in the area where window 1 is located on the left. From the overall display effect, there will be a large amount of white space on the left side, resulting in a poor overall display effect and a poor user experience.

[0113] The method provided in this embodiment of the present disclosure displays a first window and a second window of a target application in a split-screen display interface; in response to a trigger operation of a first preset control, the target pop-up is displayed in the center of the display interface, rather than displayed above the area where the first window or the second window is located. The centering of the target pop-up in the display interface improves the overall display effect of the display interface, thereby improving the user experience.

[0114] The method provided in this disclosure is executed by an electronic device, which can be a mobile phone, foldable screen device, tablet computer, laptop computer, wearable device, vehicle terminal, smart home device, or other device with display function.

[0115] Figure 2 This is a flowchart illustrating a display method according to an exemplary embodiment, performed by an electronic device. See also... Figure 2 The method includes the following steps:

[0116] Step S201: Display the first and second windows of the target application in a split-screen manner on the display interface.

[0117] The target application is any application currently running on the electronic device. For example, the target application could be a video playback application, a shopping application, a system settings application, an instant messaging application, etc. The display interface refers to the interface that currently displays the relevant content of the target application. This display interface can be displayed in full screen or not in full screen on the screen of the electronic device.

[0118] The first window and the second window are two different windows of the target application. Optionally, the second window is a window displayed based on the first window. That is, the first window needs to be displayed first, and then the second window is displayed by operating on the first window. For example, when the target application is a system settings application, the first window can be the home page, and the second window can be a window for setting a certain function triggered by a certain control in the home page.

[0119] The display interface is divided into a first window and a second window, comprising: dividing the display interface into a first area and a second area, displaying the first window in the first area and the second window in the second area. The first area and the second area can be the left and right sides of the display interface, respectively, or the first area and the second area can be the top and bottom of the display interface, respectively. The first area and the second area can have the same or different sizes.

[0120] Step S202: In response to the triggering operation of the first preset control, the target pop-up window is displayed in the center of the display interface. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

[0121] The first preset control is a control in the first or second window used to trigger the target pop-up. The triggering operation can be a click operation, a long press operation, a swipe operation, etc. The target pop-up is a pop-up that interacts with the user. For example, if the first preset control is a password input control in the second window, then the target pop-up can accept password input. Or, if the first preset control is a delete control in the second window, then the target pop-up can provide the user with a confirm delete option and a cancel delete option.

[0122] Centering the target pop-up in the display interface means that the center point of the target pop-up is located on the central axis of the display interface. Optionally, the target pop-up can be located in the center area of ​​the display interface, that is, the center point of the target pop-up is the same as the center point of the display interface; or, the target pop-up can be located in the middle of the bottom area of ​​the display interface, that is, the center point of the target pop-up is located on the central axis of the display interface, and the bottom edge of the target pop-up is adjacent to the bottom edge of the display interface; or, the target pop-up can also be located in the middle of the top area of ​​the display interface, that is, the center point of the target pop-up is located on the central axis of the display interface, and the top edge of the target pop-up is adjacent to the top edge of the display interface. In other words, it is only necessary to ensure that the center point of the target pop-up is located on the central axis of the display interface.

[0123] The method provided in this embodiment of the present disclosure displays a first window and a second window of a target application in a split-screen display interface; in response to a trigger operation of a first preset control, the target pop-up is displayed in the center of the display interface, rather than displayed above the area where the first window or the second window is located. The centering of the target pop-up in the display interface improves the overall display effect of the display interface, thereby improving the user experience.

[0124] Figure 3 This is a flowchart illustrating a display method according to an exemplary embodiment, performed by an electronic device. See also... Figure 3 The method includes the following steps:

[0125] Step S301: Display the first window in the display interface.

[0126] The first window can be displayed in full screen or not in full screen in the display interface, and this embodiment does not limit this.

[0127] In some embodiments, a first window is displayed in the display interface in response to an operation to open the target application; or, the first window is displayed in response to a trigger operation in the parent window of the first window used to trigger the control of the first window. This disclosure does not limit which control triggers the display of the first window.

[0128] In step S302, in response to the triggering operation of the second preset control, the first window and the second window are displayed in a split screen on the display interface.

[0129] The second preset control is a control in the first window used to trigger the second window. For example, if the first window is the homepage of the system settings application, the second preset control can be the battery settings control in the first window. In response to the triggering operation of the battery settings control, the homepage and the battery settings window (the second window) are displayed in a split screen on the display interface.

[0130] See one example. Figure 4The diagram shown is a schematic of the display interface. Figure 4 'a' represents the case where the first window is displayed in the interface. Figure 4 b represents the split-screen display of the first and second windows in the display interface. Figure 4 b shows that the first window and the second window are displayed in the left and right areas of the display interface, respectively.

[0131] In some embodiments, before displaying the first window and the second window in a split-screen manner in the display interface, the first window to be displayed is mounted on a first activity, and the second window to be displayed is mounted on a second activity. The second activity is launched based on the first activity, and the first and second activities reside on the same task container corresponding to the target application.

[0132] Optionally, the task container includes a first sub-task container (TaskFragment) and a second sub-task container, with the first activity residing in the first sub-task container and the second activity residing in the second sub-task container. See one example. Figure 5 The diagram shown illustrates the display interface. The Task includes TaskFragment1 and TaskFragment2, with Activity1 located on TaskFragment1 and Activity2 located on TaskFragment2.

[0133] In some embodiments, before mounting the second window to be displayed onto the second activity, a target subtask container (i.e., the second subtask container) for managing the second activity needs to be created, i.e., a second creation parameter needs to be obtained. Based on the second creation parameter, the target subtask container is created, which is the subtask container used to manage the second activity. The second creation parameter indicates the size and display area of ​​the subtask container to be created; for example, the second creation parameter includes the length, width, and position coordinates of the subtask container in the display interface.

[0134] Optionally, the second creation parameters are obtained through the target application's application process; the second creation parameters are sent to the system process via inter-process communication; and the target subtask container is created by the system process based on the second creation parameters. The inter-process communication method can be binder communication or other communication methods.

[0135] Optionally, when creating the target subtask container, the display format identifier corresponding to the second window is obtained. This identifier indicates whether the second window is displayed in full-screen mode. For example, `mIsExpand` can be used as a marker; if `mIsExpand` is true, it means the second window is displayed in full-screen mode; if `mIsExpand` is false, it means the second window is not displayed in full-screen mode. Subsequently, when it is necessary to display the second window or a pop-up window based on the second window, this display format identifier can be used to determine whether the second window or a pop-up window based on the second window is displayed in full-screen mode.

[0136] See one example. Figure 6 The flowchart shown illustrates the creation process of the target TaskFragment, which includes the following steps:

[0137] Step S3021: In response to the trigger operation of the second preset control, the Jetpack library corresponding to the application process is called.

[0138] Step S3022: Based on the preset split-screen rules, create a second creation parameter (TaskFragmentCreationRarams) and save the second creation parameter in the Jetpack library.

[0139] Among them, the preset split-screen rules are pre-configured rules used to indicate the display method when two windows of the same application are displayed in the same display interface.

[0140] Step S3023: Send the second creation parameters to the system process via binder communication.

[0141] Step S3024: Create the target TaskFragment through the system process based on the second creation parameters.

[0142] In step S303, in response to the triggering operation of the first preset control, the target pop-up window is displayed in the center of the display interface.

[0143] Among them, displaying the target pop-up window in the center of the display interface means that the center point of the target pop-up window is located on the central axis of the display interface.

[0144] See one example. Figure 7 The diagram shown illustrates the display interface. When the first preset control is a control within the second window, clicking the first preset control centers the target pop-up window within the display interface. Figure 1 Compared to the way pop-up windows are displayed, Figure 7 Centering the target pop-up improves the overall display effect of the interface. Among other things, Figure 7'a' displays the target pop-up window in the center of the display interface. Figure 7 Option 'b' displays the target pop-up window centered at the bottom of the display interface. Of course, the target pop-up window can also be centered in other areas of the display interface, as long as the center point of the target pop-up window is located on the central axis of the display interface.

[0145] Before displaying the target pop-up, it is necessary to create the target pop-up first. In some embodiments, a first creation parameter is obtained; based on the first creation parameter, the target pop-up is created. The first creation parameter is used to indicate the size and display area of ​​the target pop-up to be created. For example, the first creation parameter includes the length, width, and position coordinates of the target pop-up in the display interface.

[0146] Optionally, the first creation parameters are obtained through the application process of the target application; the first creation parameters are sent to the system process through inter-process communication; and the target pop-up is created through the system process based on the first creation parameters.

[0147] In some embodiments, when the current window's display mode is in-application split-screen mode, the target window is displayed in the center of the display interface. Here, the split-screen display of the first window and the second window in the display interface is what constitutes the in-application split-screen display mode; of course, it can also be called in-application split-screen display mode or other names. In in-application split-screen display mode, the sizes of the windows displayed in the split-screen display interface vary. If the target pop-up is only displayed above the window that triggered it, its position in the display interface will be inconsistent, making it inconvenient for user operation. Therefore, when the current window's display mode is in-application split-screen mode, displaying the target window in the center of the display interface facilitates user operation and improves the user experience.

[0148] In some embodiments, when the display format indicator indicates that the second window is not displayed in full screen, the target pop-up is displayed in the center of the display interface. Similar to the in-application split-screen display mode described above, if the second window is not displayed in full screen, and the target pop-up is only displayed above the second window, the position of the target pop-up in the display interface will vary, making it inconvenient for users to operate. Therefore, when the display format indicator indicates that the second window is not displayed in full screen, displaying the target pop-up in the center of the display interface facilitates user operation and improves the user experience.

[0149] In some embodiments, when the target pop-up's window type is a dialog box, it is displayed in the center of the display interface. A dialog box type refers to a type of window that allows interaction with the user; for example, a dialog box window can provide options or allow the user to input content. Dialog box windows are interactive, and for the user, having the target window centered facilitates input or other operations. Therefore, displaying the target pop-up in the center of the display interface when it is a dialog box type improves the user experience.

[0150] In some embodiments, for the three preset conditions for centering the target pop-up in the display interface as described above: the current window's display mode is in-application split-screen display mode, the display format identifier indicates that the second window is not displayed in full screen in the display interface, and the target pop-up's window type is dialog box type, when all three preset conditions are met, the target pop-up is centered in the display interface; if at least one of the preset conditions is not met, the target pop-up is not centered in the display interface.

[0151] Step S303 uses the example of centering the target pop-up window in the display interface. In some embodiments, the target pop-up window may not be centered in the display interface. In one example, taking the first preset control as the control in the second window used to trigger the target pop-up window as an example, see [link to example]. Figure 8 The flowchart shown illustrates the display process of the target pop-up window, which includes the following steps:

[0152] In step S3031, in response to the triggering operation of the first preset control, the first creation parameters are obtained through the application process of the target application.

[0153] In step S3032, the first creation parameters are sent to the system process via binder communication.

[0154] Step S3033: Create the target pop-up window through the system process based on the first creation parameters.

[0155] Step S3034: Determine whether the current window's display mode is in-application split-screen display mode, whether mIsExpand is false, and whether the target pop-up's window type is a dialog box. If the current window's display mode is in-application split-screen display mode, mIsExpand is false, and the target pop-up's window type is a dialog box, then proceed to step S3035; if the current window's display mode is not in-application split-screen display mode, mIsExpand is not false, and / or the target pop-up's window type is not a dialog box, then proceed to step S3036.

[0156] Step S3035: Mount the target pop-up window onto the task container, and then display the target pop-up window in the center of the display interface.

[0157] Step S3036: Attach the target pop-up to the second Activity corresponding to the target TaskFragment, and then display the target pop-up in the center of the second window.

[0158] In step S304, in response to the triggering operation of the third preset control, the input method window is displayed in the center of the preset area of ​​the display interface.

[0159] The third preset control is the control in the target pop-up window used to trigger the input method window. The preset area is the area at the bottom of the display interface, and the side length of the bottom of the preset area is the same as the side length of the bottom of the display interface.

[0160] In this embodiment of the disclosure, in order to display the input method window in the center of the preset area of ​​the display interface, the input method window can be mounted on the input method container.

[0161] See one example. Figure 9 The diagram shown is a schematic of the display interface. Figure 9 'a' means mounting the input method window onto the Activity2 corresponding to the second window. In this case, the input method window is displayed above the second window, i.e., half-screen display. Figure 9 b) mounts the input method window onto the input method container, in which case the input method window is displayed centered at the bottom of the screen.

[0162] In some embodiments, see Figure 10 The diagram shown illustrates how, when the input method window is mounted on a second Activity, the input method window may appear large. Figure 10 As shown in diagram a, there may be instances where the virtual keyboard is not fully displayed. However, the method used in this embodiment, where the input method window is mounted on the input method container, is as follows: Figure 10 As shown in b, the virtual keyboard is displayed based on the preset area of ​​the display interface, and the virtual keyboard can be displayed normally, avoiding the problem of incomplete display of the virtual keyboard.

[0163] In some embodiments, when the current window is in the in-application split-screen display mode, the input method window is displayed in the center of a preset area of ​​the display interface.

[0164] In some embodiments, when the display format identifier indicates that the second window is not displayed in full screen in the display interface, the input method window is displayed in the center of a preset area of ​​the display interface.

[0165] In some embodiments, when the target pop-up window is a dialog box, the input method window is displayed in the center of a preset area of ​​the display interface.

[0166] In some embodiments, for the three preset conditions for centering the input method window in the preset area of ​​the display interface as described above: the current window's display mode is in-application split-screen display mode, the display format identifier indicates that the second window is not displayed in full screen in the display interface, and the target pop-up's window type is dialog box type, when all three preset conditions are met, the input method window is centered in the preset area of ​​the display interface; if at least one of the preset conditions is not met, the input method window is not centered in the preset area of ​​the display interface.

[0167] The implementation method for determining whether to center the input method window described above is similar to the implementation method for determining whether to center the target pop-up window described above, and will not be repeated here.

[0168] Step S304 takes displaying the input method window centered in a preset area of ​​the display interface as an example. In some embodiments, the input method window may not be displayed centered in the preset area of ​​the display interface. In one example, see... Figure 11 The flowchart shown illustrates the display process of the input method window, which includes the following steps:

[0169] Step S3041: In response to the trigger operation of the third preset control, an input method window is created.

[0170] Step S3042: Determine whether the current window's display mode is in-application split-screen display mode, whether mIsExpand is false, and whether the target pop-up's window type is a dialog box. If the current window's display mode is in-application split-screen display mode, mIsExpand is false, and the target pop-up's window type is a dialog box, then proceed to step S3043; if the current window's display mode is not in-application split-screen display mode, mIsExpand is not false, and / or the target pop-up's window type is not a dialog box, then proceed to step S3044.

[0171] Step S3043: Mount the input method window onto the input method container, and then display the input method window in the center of the bottom area of ​​the display interface.

[0172] Step S3044: Mount the input method window onto the second Activity corresponding to the target TaskFragment, and then display the input method window in the center of the bottom area of ​​the second window.

[0173] Additionally, it should be noted that step S304 is an optional step, and in some embodiments, step S304 may not be performed.

[0174] Step S305: When the window containing the first preset control is canceled, the target pop-up window is canceled.

[0175] In this embodiment, when the target pop-up is attached to the Activity corresponding to the window containing the first preset control, the visibility of both the target pop-up and the window containing the first preset control is handled during the Activity's lifecycle. However, when the target pop-up is attached to a Task container, its visibility changes with the visibility of the Task container when the Activity is not visible, which does not conform to display logic. Therefore, a condition can be added to isOnScreen: for target pop-ups in in-application split-screen display mode, the visibility of the target pop-up follows the visibility changes of the Activity corresponding to the window containing the first preset control, thereby ensuring that the target pop-up is canceled when the window containing the first preset control is canceled.

[0176] Additionally, it should be noted that step S305 is an optional step, and in some embodiments, step S305 may not be performed.

[0177] The method provided in this disclosure displays the target pop-up window in the center of the display interface, or it can display the input method window in the center of the display interface, instead of displaying the target pop-up window or input method window above the area where the first window or second window is located. Displaying the target pop-up window and input method window in the center of the display interface improves the overall display effect of the display interface, thereby improving the user experience.

[0178] Furthermore, it can ensure that the visibility of the target pop-up changes with the visibility of the window that triggered the target pop-up.

[0179] Additionally, in some embodiments, since the display animation of the window mounted on the Task container is the second display animation, while the target pop-up should execute the first display animation, and the first display animation is different from the second display animation, the following operations are required to ensure that the target pop-up's animation is still the first display animation when it is displayed when it is mounted on the Task container: determine at least one window mounted on the task container corresponding to the target application; when at least one window includes the target pop-up, set the display animation corresponding to the target pop-up to the first display animation, and set the display animations corresponding to the other windows in at least one window besides the target pop-up to the second display animation.

[0180] See one example. Figure 12 The flowchart shown illustrates the setup process for displaying the animation, which includes the following steps:

[0181] Step S1201: Determine at least one window (i.e., at least one window mounted on the Task container) that participates in the second display animation.

[0182] Step S1202: Determine whether the current window's display mode is in-application split-screen display mode, whether the current container is a Task container, and whether the target pop-up's window type is a dialog box type. If the current window's display mode is in-application split-screen display mode, the current container is a Task container, and the target pop-up's window type is a dialog box type, then proceed to step S1203. If the current window's display mode is not in-application split-screen display mode, the current container is not a Task container, and / or the target pop-up's window type is not a dialog box type, then proceed to step S1204.

[0183] Step S1203: Filter out the target pop-up windows that participate in the second display animation, and set the display animation of the target pop-up windows to the first display animation.

[0184] Step S1204: Determine that the display animation of at least one window is the second display animation.

[0185] In this embodiment of the disclosure, by determining whether at least one window participating in the second display animation corresponding to the Task container contains a target pop-up window mounted on the Task container, a corresponding display animation is set for at least one window participating in the second display animation corresponding to the Task container, thereby ensuring that even if the target pop-up window is mounted on the Task container, the display animation of the target pop-up window is still the first display animation.

[0186] Figure 13 This is a block diagram illustrating a display device according to an exemplary embodiment, configured in an electronic device. See also... Figure 13 The device includes:

[0187] The first display module 1301 is configured to display the first and second windows of the target application in a split-screen manner in the display interface;

[0188] The second display module 1302 is configured to display a target pop-up window centered in the display interface in response to a trigger operation of a first preset control. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

[0189] In some embodiments, the first display module 1301 is configured to:

[0190] Display the first window in the display interface;

[0191] In response to a trigger operation on the second preset control, the first window and the second window are displayed in a split-screen manner on the display interface. The second preset control is a control in the first window used to trigger the second window.

[0192] In some embodiments, the apparatus further includes:

[0193] The first parameter acquisition module is configured to acquire the first creation parameter, which is used to indicate the size and display area of ​​the target pop-up window to be created.

[0194] The pop-up creation module is configured to create a target pop-up based on the first creation parameter.

[0195] In some embodiments, the first parameter acquisition module is configured as follows:

[0196] Obtain the first creation parameters through the application process of the target application;

[0197] The pop-up creation module is configured as follows:

[0198] The first creation parameters are sent to the system process via inter-process communication.

[0199] The target pop-up window is created through the system process based on the first creation parameter.

[0200] In some embodiments, the apparatus further includes:

[0201] The identifier acquisition module is configured as the display format identifier corresponding to the second window. The display format identifier is used to indicate whether the second window is displayed in full screen in the display interface.

[0202] The second display module 1302 is configured to display the target pop-up window in the center of the display interface when the display format identifier indicates that the second window is not displayed in full screen in the display interface.

[0203] In some embodiments, the second display module 1302 is configured to:

[0204] When the target pop-up is a dialog box, display the target pop-up in the center of the display interface.

[0205] In some embodiments, the apparatus further includes:

[0206] The third display module is configured to display the input method window in the center of the preset area of ​​the display interface in response to the triggering operation of the third preset control. The third preset control is the control in the target pop-up window used to trigger the input method window. The preset area is the bottom area of ​​the display interface, and the side length of the bottom of the preset area is the same as the side length of the bottom of the display interface.

[0207] In some embodiments, the apparatus further includes:

[0208] The first mounting module is configured to mount the input method window onto the input method container.

[0209] In some embodiments, the apparatus further includes:

[0210] The second mounting module is configured to mount the first window to be displayed onto the first activity, and to mount the second window to be displayed onto the second activity;

[0211] The second activity is initiated based on the first activity, and the first and second activities are located on the same task container corresponding to the target application.

[0212] In some embodiments, the apparatus further includes:

[0213] The third mounting module is configured to mount the target pop-up onto the task container.

[0214] In some embodiments, the apparatus further includes:

[0215] The second parameter acquisition module is configured to acquire the second creation parameter, which is used to indicate the size and display area of ​​the subtask container to be created.

[0216] The subtask container creation module is configured to create a target subtask container based on a second creation parameter. The target subtask container is a subtask container used to manage the second activity.

[0217] In some embodiments, the second parameter acquisition module is configured as follows:

[0218] Obtain the second creation parameter through the application process of the target application;

[0219] The subtask container creation module is configured as follows:

[0220] The second creation parameter is sent to the system process via inter-process communication.

[0221] The system process creates the target subtask container based on the second creation parameter.

[0222] In some embodiments, the apparatus further includes:

[0223] The window determination module is configured to determine at least one window mounted on the task container corresponding to the target application.

[0224] The display animation settings module is configured to set the display animation corresponding to the target pop-up to the first display animation when at least one window includes the target pop-up, and set the display animation corresponding to the other windows in at least one window other than the target pop-up to the second display animation, wherein the first display animation and the second display animation are different.

[0225] In some embodiments, the apparatus further includes:

[0226] The cancel display module is configured to cancel the display of the target pop-up when the window containing the first preset control is canceled.

[0227] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0228] This disclosure also provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the display method described in the above embodiments.

[0229] Figure 14 This is a block diagram of an electronic device 1400 according to an exemplary embodiment.

[0230] Reference Figure 14 The electronic device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power supply component 1406, a multimedia component 1408, an audio component 1410, an input / output (I / O) interface 1412, a sensor component 1414, and a communication component 1416.

[0231] Processing component 1402 typically controls the overall operation of electronic device 1400, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1402 may include one or more modules to facilitate interaction between processing component 1402 and other components. For example, processing component 1402 may include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402.

[0232] Memory 1404 is configured to store various types of data to support the operation of electronic device 1400. Examples of this data include instructions for any application or method operating on electronic device 1400, contact data, phonebook data, messages, pictures, videos, etc. Memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0233] Power supply component 1406 provides power to various components of electronic device 1400. Power supply component 1406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1400.

[0234] Multimedia component 1408 includes a screen that provides an output interface between the electronic device 1400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1408 includes a front-facing camera and / or a rear-facing camera. When the electronic device 1400 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0235] Audio component 1410 is configured to output and / or input audio signals. For example, audio component 1410 includes a microphone (MIC) configured to receive external audio signals when electronic device 1400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1404 or transmitted via communication component 1416. In some embodiments, audio component 1410 also includes a speaker for outputting audio signals.

[0236] I / O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0237] Sensor assembly 1414 includes one or more sensors for providing state assessments of various aspects of electronic device 1400. For example, sensor assembly 1414 may detect the on / off state of electronic device 1400, the relative positioning of components such as the display and keypad of electronic device 1400, changes in position of electronic device 1400 or a component of electronic device 1400, the presence or absence of user contact with electronic device 1400, orientation or acceleration / deceleration of electronic device 1400, and temperature changes of electronic device 1400. Sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0238] Communication component 1416 is configured to facilitate wired or wireless communication between electronic device 1400 and other devices. Electronic device 1400 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0239] In an exemplary embodiment, the electronic device 1400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0240] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1404 including instructions, which can be executed by a processor 1420 of an electronic device 1400 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0241] This disclosure also provides a non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the display method described in the above embodiments.

[0242] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0243] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A display method, characterized in that, The method includes: The target application's first and second windows are displayed in a split-screen mode on the display interface. In response to a triggering operation of a first preset control, a target pop-up window is displayed in the center of the display interface. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

2. The display method according to claim 1, characterized in that, The step of displaying the first and second windows of the target application in the display interface includes: The first window is displayed in the display interface; In response to a triggering operation of a second preset control, the first window and the second window are displayed in a split-screen manner on the display interface, wherein the second preset control is a control in the first window used to trigger the second window.

3. The display method according to claim 1, characterized in that, The method further includes: Obtain the first creation parameter, which indicates the size and display area of ​​the target pop-up window to be created; Based on the first creation parameters, the target pop-up window is created.

4. The display method according to claim 3, characterized in that, The process of obtaining the first creation parameter includes: The first creation parameter is obtained through the application process of the target application; The step of creating the target pop-up window based on the first creation parameters includes: The first creation parameters are sent to the system process via inter-process communication. The system process creates the target pop-up window based on the first creation parameters.

5. The display method according to claim 1, characterized in that, The method further includes: Obtain the display format identifier corresponding to the second window, the display format identifier being used to indicate whether the second window is displayed in full screen in the display interface; The method of centering the target pop-up window in the display interface includes: When the display format identifier indicates that the second window is not displayed in full screen in the display interface, the target pop-up window is displayed in the center of the display interface.

6. The display method according to claim 1, characterized in that, The method of centering the target pop-up window in the display interface includes: When the target pop-up is a dialog box, it is displayed in the center of the display interface.

7. The display method according to claim 1, characterized in that, The method further includes: In response to a triggering operation of a third preset control, an input method window is displayed in the center of a preset area of ​​the display interface. The third preset control is a control in the target pop-up window used to trigger the input method window. The preset area is the bottom area of ​​the display interface, and the side length of the bottom of the preset area is the same as the side length of the bottom of the display interface.

8. The display method according to claim 7, characterized in that, The method further includes: The input method window is mounted on the input method container.

9. The display method according to claim 1, characterized in that, Before splitting the first and second windows of the target application in the display interface, the method further includes: Mount the first window to be displayed onto the first activity; Mount the second window to be displayed onto the second activity; The second activity is initiated based on the first activity, and the first activity and the second activity are located on the same task container corresponding to the target application.

10. The display method according to claim 9, characterized in that, Before centering the target pop-up window in the display interface, the method further includes: The target pop-up is attached to the task container.

11. The display method according to claim 9, characterized in that, Before mounting the second window to be displayed onto the second activity, the method further includes: Obtain the second creation parameter, which indicates the size and display area of ​​the subtask container to be created; Based on the second creation parameters, a target subtask container is created, which is a subtask container used to manage the second activity.

12. The display method according to claim 11, characterized in that, The process of obtaining the second creation parameter includes: The second creation parameters are obtained through the application process of the target application; The step of creating the target subtask container based on the second creation parameters includes: The second creation parameter is sent to the system process via inter-process communication. The target subtask container is created through the system process based on the second creation parameters.

13. The display method according to claim 1, characterized in that, The method further includes: Identify at least one window mounted on the task container corresponding to the target application; When the at least one window includes the target pop-up, the display animation corresponding to the target pop-up is set as the first display animation, and the display animations corresponding to other windows in the at least one window besides the target pop-up are set as the second display animations, wherein the first display animation is different from the second display animation.

14. The display method according to claim 1, characterized in that, The method further includes: When the window containing the first preset control is canceled, the target pop-up window is also canceled.

15. A display device, characterized in that, The device includes: The first display module is configured to display the first and second windows of the target application in a split-screen manner within the display interface; The second display module is configured to display a target pop-up window centered in the display interface in response to a trigger operation of a first preset control. The first preset control is a control in the first window or the second window used to trigger the target pop-up window.

16. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the display method as described in any one of claims 1-14.

17. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the display method as described in any one of claims 1-14.