Display device and display method
By reusing top-level pop-up windows in the Android system or directly creating target pop-up windows and setting entry animations, the coherence problem caused by the opposite animation direction when page changes is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202510066089.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-27
AI Technical Summary
In Android system, when page changes, due to exit animations and entry animations with opposite directions, the page changes are poorly coherent, which affects the user experience.
By reusing the top pop-up window in the monitor to display the content of the target pop-up window, avoiding creating new pop-up windows and animation playback during switching. If there is no top-level pop-up window, directly create the target pop-up window and set its entry animation.
It effectively avoids exit animations and entry animations with opposite directions in continuous display, improves the consistency of page changes, reduces page flickering, and improves user experience.
Smart Images

Figure CN120045263A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of display devices, and in particular, to a display device and a display method. Background Art
[0002] A pop-up window refers to a floating window that appears on a display when a user interacts with an application, and is used to transmit information, provide status feedback, or guide user operations.
[0003] In the current Android system, when a pop-up window is already displayed and a new pop-up window needs to be opened, the page will first display the exit animation of the original pop-up window, and then display the entry animation of the new pop-up window. The consecutive display of animations in opposite directions results in poor coherence of page changes, affecting the user experience. Summary of the Invention
[0004] This application provides a display device and a display method to improve the coherence of page changes on a display.
[0005] In a first aspect, some embodiments of this application provide a display device, including: a display and a controller connected to the display. Among them, the display is configured to display a user interface; the controller is configured to:
[0006] Obtain a pop-up window display request for requesting to display a target pop-up window;
[0007] In the case of the existence of a top-level pop-up window, reuse the top-level pop-up window to obtain the target pop-up window, so as to display the pop-up window content corresponding to the target pop-up window on the display, where the top-level pop-up window is the pop-up window currently displayed on the display;
[0008] In the case of the non-existence of the top-level pop-up window, create the target pop-up window, and set the entry animation of the target pop-up window, so as to display the pop-up window content corresponding to the target pop-up window on the display.
[0009] Since the top - layer pop - up window is the pop - up window currently being displayed on the display, that is, the created pop - up window, therefore, after receiving the pop - up window display request, if there is a top - layer pop - up window, directly reuse this top - layer pop - up window to display the pop - up window content corresponding to the target pop - up window. There is no need to destroy the top - layer pop - up window and create the target pop - up window, that is, there is no need to switch between the currently displayed pop - up window and the newly created pop - up window, and there is no need to continuously display the exit animation of the top - layer pop - up window and the entry animation of the target pop - up window. If there is no top - layer pop - up window, directly create the target pop - up window and set the entry animation of the target pop - up window, so that the pop - up window content corresponding to the created target pop - up window can be directly displayed on the display, that is, before displaying the target pop - up window, there is no need to display the exit animation. Through the above processing, it effectively avoids continuously displaying exit animations and entry animations in opposite directions, improves the coherence of page changes on the display, and at the same time avoids the problem of page flickering caused by the display of exit animations and entry animations in opposite directions, improving the display effect and user experience of the display device.
[0010] In a second aspect, some embodiments of the present application further provide a display method, which is applied to the display device provided in the first aspect. The method includes:
[0011] Obtain a pop - up window display request for requesting to display a target pop - up window;
[0012] In the case where there is a top - layer pop - up window, reuse the top - layer pop - up window to obtain the target pop - up window, so as to display the pop - up window content corresponding to the target pop - up window on the display, where the top - layer pop - up window is the currently displayed pop - up window on the display;
[0013] In the case where there is no such top - layer pop - up window, create the target pop - up window, and set the entry animation of the target pop - up window, so as to display the pop - up window content corresponding to the target pop - up window on the display.
[0014] In a third aspect, a display device is provided, including units for executing the display method in the second aspect.
[0015] In a fourth aspect, a computer - readable storage medium is provided. The computer - readable storage medium stores a computer program, and when the computer program is run by a display control device, the display control device is caused to execute the display method in the second aspect.
[0016] In a fifth aspect, a computer program product is provided. The computer program product includes: a computer program, and when the computer program is run by a display device, the display device is caused to execute the display method in the second aspect.
[0017] It can be understood that the beneficial effects of the above second aspect to the fifth aspect can refer to the relevant descriptions in the first aspect above, and will not be elaborated here. Description of the Drawings
[0018] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 Schematic diagram of the operation scenario between the display device and the control device provided by some embodiments of the present application;
[0020] Figure 2 Schematic diagram of the hardware configuration of the display device provided by some embodiments of the present application;
[0021] Figure 3 Schematic diagram of the hardware configuration of the control device provided by some embodiments of the present application;
[0022] Figure 4 Schematic diagram of the software configuration of the display device provided by some embodiments of the present application;
[0023] Figure 5 Schematic diagram before and after the switching of a pop-up window provided by some embodiments of the present application;
[0024] Figure 6 Block diagram of the structure of a display device provided by some embodiments of the present application;
[0025] Figure 7 Flow chart of a display method provided by some embodiments of the present application;
[0026] Figure 8 Timing interaction diagram of another display method provided by some embodiments of the present application;
[0027] Figure 9 Size comparison diagram of a target pop-up window and a top-level pop-up window provided by some embodiments of the present application;
[0028] Figure 10 Timing interaction diagram of another display method provided by some embodiments of the present application;
[0029] Figure 11 Timing interaction diagram of another display method provided by some embodiments of the present application;
[0030] Figure 12 Timing interaction diagram of another display method provided by some embodiments of the present application;
[0031] Figure 13 Schematic diagram of the structure of a pop-up window stack and a content stack provided by some embodiments of the present application;
[0032] Figure 14 A comparison diagram of elements between a top - layer pop - up window and a target pop - up window provided by some embodiments of the present application;
[0033] Figure 15 A schematic diagram of an adjusted top - layer pop - up window provided by some embodiments of the present application;
[0034] Figure 16 A schematic structural diagram of a display device provided by some embodiments of the present application. Detailed implementation manners
[0035] The embodiments will be described in detail below, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following embodiments do not represent all implementation manners consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application detailed in the claims.
[0036] It should be noted that the brief description of the terms in the present application is only for facilitating the understanding of the following described implementation manners, rather than intending to limit the implementation manners of the present application. Unless otherwise specified, these terms should be understood in their ordinary and common meanings.
[0037] The terms "first", "second", "third", etc. in the specification, claims and the above - mentioned drawings of the present application are used to distinguish similar or like objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that such terms can be interchanged under appropriate circumstances.
[0038] The terms "comprising" and "having" and any variations thereof are intended to cover but not be exclusive of inclusion. For example, a product or device comprising a series of components does not necessarily have to be limited to all the clearly listed components, but may include other components not clearly listed or inherent to these products or devices.
[0039] The term "module" refers to any known or later - developed hardware, software, firmware, artificial intelligence, fuzzy logic, or a combination of hardware or / and software code that can perform functions related to the element.
[0040] In the embodiments of the present application, the display device 200 generally refers to a device with the capabilities of screen display and data processing. For example, the display device 200 includes but is not limited to smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0041] Figure 1Schematic diagram of the operation scenario between the display device and the control device provided by some embodiments of the present application. As Figure 1 shown, the user can operate the display device 200 through touch operations, the mobile terminal 300, and the control device 100. For example, the control device 100 can be a remote control, a stylus, a handle, etc.
[0042] The mobile terminal 300 can be used as a control device to perform human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device to establish a communication connection with the display device 200 for data interaction. In some embodiments, the mobile terminal 300 and the display device 200 can install software applications and achieve connection communication through network communication protocols to achieve the purpose of one-to-one control operations and data communication. It is also possible to transmit the audio and video content displayed on the mobile terminal 300 to the display device 200 to achieve the synchronous display function.
[0043] As Figure 1 also shown, the display device 200 also communicates with the server 400 through various communication methods. The display device 200 is allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0044] The display device 200 can provide a broadcast receiving television function, and can also additionally provide an intelligent network television function with computer support functions, including but not limited to, network television, smart television, Internet Protocol Television (IPTV), etc.
[0045] Figure 2 Hardware configuration block diagram of the display device 200 provided by some embodiments of the present application Figure 1 shown in.
[0046] In some embodiments, the display device 200 may include at least one of a tuner demodulator 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0047] In some embodiments, the detector 230 is used to collect signals from the external environment or interact with the outside. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of environmental light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures. Or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0048] In some embodiments, the display 260 includes a display function component for presenting a screen and a driving component for driving image display. The display 260 is configured to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, components of a menu manipulation interface, and a user manipulation UI interface, etc.
[0049] In some embodiments, the display 260 can be a liquid crystal display (LCD), an organic light-emitting diode display (OLED), a plasma display panel (PDP), a vacuum fluorescent display (VFD), a field emission display (FED), a projection display, or the like. It can also be a projection device or a projection screen.
[0050] In some embodiments, the communication device 220 is a component for communicating with an external device or a server 400 according to various communication protocol types. The display device 200 can be provided with a plurality of communication devices 220 according to different supported communication methods. For example, when the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.
[0051] The communication device 220 can enable the display device 200 to communicate with an external device or a server 400 in a wireless or wired connection manner. Among them, the wired connection can connect the display device 200 with an external device through components such as a data cable and an interface. The wireless connection can connect the display device 200 with an external device through a wireless signal or a wireless network. The display device 200 can directly establish a connection relationship with an external device or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.
[0052] In some embodiments, the controller 250 can include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and first to n interfaces for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0053] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0054] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).
[0055] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.
[0056] In some embodiments, the user input interface 280 may be used to receive instructions from a user.
[0057] Figure 3 Some embodiments of the present application provide Figure 1 The hardware configuration diagram of the control device in the figure. Figure 3 As shown, the control device 100 may include: a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.
[0058] The control device 100 is configured to control the display device 200 , and can receive user input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200 .
[0059] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.
[0060] In some embodiments, Figure 1 As shown, the mobile terminal 300 or other intelligent electronic devices can play a similar function as the control device 100 after installing the application for controlling the display device 200 .
[0061] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.
[0062] Under the control of the controller 110, the communication interface 130 enables the communication of control signals and data signals with the display device 200. The communication interface 130 may include at least one of other near-field communication modules such as a WiFi chip 131, a Bluetooth module 132, an NFC module 133, etc.
[0063] The user input / output interface 140, where the input interface includes at least one of a microphone 141, a touchpad 142, a sensor 143, a button 144, and other input interfaces.
[0064] In some embodiments, the control device 100 includes at least one of the communication interface 130 and the input / output interface 140. The communication interface 130 configured in the control device 100, such as modules like WiFi, Bluetooth, NFC, etc., can encode the user input instructions through the WiFi protocol, or the Bluetooth protocol, or the NFC protocol and send them to the display device 200.
[0065] The memory 190 is used to store various operating programs, data, and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.
[0066] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller.
[0067] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling the hardware resources and software resources in the display device 200. The operating system can (control the display device) provide a user interface, allowing the user to interact with the display device 200 and support the running of various application programs.
[0068] It should be noted that the operating system may be a native operating system based on a specific operating platform or a third-party operating system deeply customized based on a specific operating platform. In the embodiments of the present application, the specific operating platform may be a mobile platform, and the operating system may be a mobile operating system based on the mobile platform, such as the Android system, the iOS system, the HarmonyOS, or a third-party operating system customized and developed based on the Android system, etc.
[0069] The operating system can be divided into different modules or levels according to the functions implemented. For example, as Figure 4As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.
[0070] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be system setting programs or clock programs that come with the operating system, etc.; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0071] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0072] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0073] In some embodiments, the activity manager is used to manage the life cycle of each application and the general navigation back function, such as controlling the exit, opening, back, etc. of the application.
[0074] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction libraries included in the system runtime layer, such as C / C++ instruction libraries or Android runtime libraries, to implement the functions that the framework layer is intended to achieve.
[0075] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. For example, as Figure 4 shown, hardware drivers can be configured in the kernel layer. The drivers included in the kernel layer can be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power driver, etc.
[0076] It should be noted that the above examples are only simple divisions of the functions of the operating system, and do not limit the specific form of the operating system of the display device 200 in the embodiments of the present application. Depending on factors such as the functions of the display device and the type of the operating system, the number of levels included in the operating system and the specific level types can be in other forms.
[0077] In mobile operating systems such as the Android system, each pop-up window is an independent entity with its own complete life cycle and has independent entry and exit animations. When an application needs to continuously display two pop-up windows, it is necessary to first display the exit animation of the previous pop-up window and then display the entry animation of the next pop-up window. Continuously playing animations in opposite directions usually causes the display page to change discontinuously, affecting the user's interaction experience.
[0078] Taking Figure 5 the security and permissions application as an example, assume that the application receives the user's input operation through a touch operation, confirms that the password needs to be modified, and the type of the new password is a pattern password. At this time, a pop-up window A as shown in (a) of Figure 5 is first displayed on the display to instruct the user to enter the old password for verification through pop-up window A; after receiving the old password entered by the user in pop-up window A through a touch operation and verifying it, a pop-up window B as shown in (b) of Figure 5 is displayed on the display to instruct the user to enter the new password through pop-up window B. When pop-up window B needs to be displayed, the display will first show the exit animation of pop-up window A and then show the entry animation of pop-up window B. Usually, a black semi-transparent background is usually provided around the pop-up windows of the Android system. During the process of pop-up window A exiting to pop-up window B entering, the pop-up window background disappears and then reappears in a short time, usually causing the screen to flash.
[0079] In order to improve the coherence of page changes in a display and reduce the probability of screen flickering, an embodiment of the present application provides a display device and a display method. After obtaining a pop-up display request for requesting the display of a target pop-up window, if there is a pop-up window currently displayed on the display, that is, when there is a top-level pop-up window, the top-level pop-up window can be reused, so that the corresponding pop-up window content of the target pop-up window is displayed on the display through the current top-level pop-up window, without creating a new pop-up window and switching between the newly created pop-up window and the currently displayed pop-up window. If there is no top-level pop-up window currently, directly create the target pop-up window and set the entry animation of the target pop-up window. At this time, there is also no need to switch between the newly created target pop-up window and the currently displayed pop-up window. Through the above processing, the situation of continuously playing exit animations and entry animations in opposite directions is effectively avoided, thereby effectively improving the coherence of page changes and avoiding the problem of screen flickering caused by the playback of animations in opposite directions.
[0080] To facilitate a further understanding of the technical solutions in some embodiments of the present application, the technical solutions of the display device and the display method, as well as how the technical solutions solve the above technical problems, will be described in detail below in conjunction with some specific embodiments and drawings. The embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments.
[0081] Figure 6 Shows a Figure 1 block diagram of the structure of the display device provided in some embodiments of the present application. For ease of illustration, only the parts related to the embodiments of the present application are shown.
[0082] Referring to Figure 6 , the display device includes a display 610 and a controller 620 connected to the display 610. Among them,
[0083] The display 610 is configured to display a user interface.
[0084] The controller 620 is configured to: obtain a pop-up display request for requesting the display of a target pop-up window; in the case of the existence of a top-level pop-up window, reuse the top-level pop-up window to obtain the target pop-up window, so as to display the corresponding pop-up window content of the target pop-up window on the display, and the top-level pop-up window is the pop-up window currently displayed on the display; in the case of the non-existence of the top-level pop-up window, create the target pop-up window, and set the entry animation of the target pop-up window, so as to display the corresponding pop-up window content of the target pop-up window on the display.
[0085] Figure 7 Shows a schematic flowchart of a display method provided in some embodiments of the present application, which is described in detail as follows:
[0086] S701. Obtain a pop-up window display request for requesting to display a target pop-up window.
[0087] A pop-up window, also known as a dialog box, refers to a window that pops up during the process of a user using an application (also called an app), and is used to convey information, provide status feedback, or guide user operations.
[0088] The above pop-up window display request refers to a request for requesting to display a new pop-up window (i.e., the target pop-up window) on a display. It should be understood that the pop-up window display request is usually actively triggered by a user's operation. For example, the user can trigger the pop-up window display request of an application (also called an app) through an input device such as a keyboard or a stylus, or can also trigger the pop-up window display request of the app through means such as touch, gesture, or sound.
[0089] In some other embodiments, the pop-up window display request can also be passively triggered. For example, it is passively triggered by the internal logic of a displayed pop-up window of the app, an asynchronous task of the app, or an app event, etc.
[0090] S702. In the case where there is a top-level pop-up window, reuse the above top-level pop-up window to obtain the target pop-up window, and display the pop-up window content corresponding to the target pop-up window on the display. The above top-level pop-up window is the pop-up window currently displayed on the display.
[0091] The above top-level pop-up window refers to the pop-up window currently displayed on the display. It should be noted that when there are multiple pop-up windows currently on the display, the top-level pop-up window usually refers to the pop-up window currently displayed on the top layer of the screen on the display.
[0092] It should be understood that the pop-up window content refers to the information with practical significance displayed in the pop-up window.
[0093] If there is no pop-up window being displayed on the display when the pop-up window display request is obtained, and at this time, there is no pop-up window that needs to exit first, then a new pop-up window can be directly created as the target pop-up window, and the pop-up window interface and pop-up window content of the target pop-up window are displayed on the display.
[0094] If there is a pop-up window being displayed on the display when the pop-up window display request is obtained, during the process of switching the pop-up window to display the target pop-up window, it is usually necessary to continuously play the exit animation and the entry animation. Therefore, in order to avoid continuously playing the exit animation of the top-level pop-up window to be destroyed and the entry animation of the newly created target pop-up window, in the embodiments of the present application, if there is a top-level pop-up window, the top-level pop-up window is directly reused to display the pop-up window content of the target pop-up window, rather than creating a new pop-up window as the target pop-up window. At this time, the obtained target pop-up window is the top-level pop-up window used to display the pop-up window content corresponding to the target pop-up window.
[0095] It should be understood that when reusing the top-level pop-up window, it is possible to only modify the pop-up content displayed in the top-level pop-up window to the pop-up content corresponding to the target pop-up window, or it is also possible to modify both the pop-up parameters and the pop-up content of the top-level pop-up window at the same time, so as to display the pop-up interface and pop-up content corresponding to the target pop-up window on the display through this top-level pop-up window. The specific reuse method can be set according to the actual application scenario.
[0096] Among them, the pop-up parameters of the pop-up window include but are not limited to parameters such as the position, size, background, color, and transparency of the pop-up window.
[0097] It should be understood that when the top-level pop-up window has been reused, that is, when it is necessary to close the target pop-up window and no longer display its pop-up content, it is possible to destroy the reused top-level pop-up window, or it is also possible to make it display the pop-up content corresponding to the top-level pop-up window. Specifically, it can be determined according to the actual business needs.
[0098] S703. In the case where the above-mentioned top-level pop-up window does not exist, create the above-mentioned target pop-up window, and set the entry animation of the above-mentioned target pop-up window, so as to display the pop-up content corresponding to the above-mentioned target pop-up window on the above-mentioned display.
[0099] If there is no pop-up window being displayed on the display when a pop-up window display request is obtained, and at this time, there is no pop-up window that needs to exit first, then a new pop-up window can be directly created as the target pop-up window, and the entry animation of the target pop-up window can be set, so as to display the target pop-up window on the display through the entry animation, that is, to display the pop-up content corresponding to the target pop-up window on the display.
[0100] It should be understood that the entry animation of the target pop-up window can be an animation such as fade-in or sliding, and can be specifically set according to the actual application requirements.
[0101] It should be noted that the order of creating the target pop-up window and setting the entry animation of the target pop-up window can be set according to the actual application requirements, that is, in the embodiments of the present application, there is no specific requirement for the order of creating the target pop-up window and setting the entry animation of the target pop-up window.
[0102] For example, it is possible to first set the entry animation of the target pop-up window (assumed to be called the target entry animation), and then create the target pop-up window. When the target pop-up window is displayed, apply the target entry animation to the target pop-up window, and introduce the target pop-up window on the display through the entry animation, so as to display the pop-up content corresponding to the target pop-up window on the display.
[0103] In the embodiments of the present application, since the top - layer pop - up window is the currently displayed pop - up window in the display, that is, the already created pop - up window. Therefore, after receiving a pop - up window display request, if there is a top - layer pop - up window, directly reuse this top - layer pop - up window to display the pop - up window content corresponding to the target pop - up window, without destroying the top - layer pop - up window and creating the target pop - up window. That is, there is no need to switch between the currently displayed pop - up window and the newly created pop - up window, and there is no need to continuously display the exit animation of the top - layer pop - up window and the entry animation of the target pop - up window. If there is no top - layer pop - up window, directly create the target pop - up window and set the entry animation of the target pop - up window to introduce the target pop - up window in the display and display the pop - up window content corresponding to the target pop - up window. At this time, there is also no need to display the exit animation of the top - layer pop - up window. Through the above processing, it effectively avoids continuously displaying exit animations and entry animations in opposite directions, thereby improving the coherence of page changes in the display, and can better avoid the problem of page flickering caused by the playback of animations in opposite directions, effectively improving the visual presentation effect of the display device and being beneficial to improving the user experience.
[0104] In some embodiments, when the above - mentioned controller executes the operation of reusing the above - mentioned top - layer pop - up window to obtain the target pop - up window in the case of the existence of the top - layer pop - up window, and when displaying the pop - up window content corresponding to the target pop - up window on the above - mentioned display, it is configured as follows:
[0105] In the case where the above - mentioned top - layer pop - up window exists and the first application is the same as the second application, display the pop - up window content corresponding to the target pop - up window in the above - mentioned top - layer pop - up window, where the first application is the application corresponding to the above - mentioned top - layer pop - up window, and the second application is the application corresponding to the above - mentioned pop - up window display request.
[0106] In the case where the above - mentioned top - layer pop - up window exists and the first application is different from the second application, create the target pop - up window by reusing the pop - up window parameters of the above - mentioned top - layer pop - up window, and set the entry animation of the above - mentioned target pop - up window to display the pop - up window content corresponding to the above - mentioned target pop - up window on the above - mentioned display.
[0107] It should be understood that the second application corresponding to the pop - up window display request is usually also the currently focused application.
[0108] Considering that there is usually process isolation between different applications, in order to reduce communication costs and management complexity, if it is determined that there is a top-level pop-up window, but the application to which the top-level pop-up window belongs (called the first application) is not the same application as the application that initiates the pop-up window display request (called the second application), that is, the top-level pop-up window and the target pop-up window belong to pop-ups of different applications, the controller can reuse the pop-up window parameters of the top-level pop-up window to create the target pop-up window and set the entry animation of the target pop-up window. At this time, it is necessary to switch the top-level pop-up window and the target pop-up window, that is, it is necessary to display the exit animation of the top-level pop-up window and the entry animation of the target pop-up window to display the pop-up window content corresponding to the target pop-up window on the display. Since the controller directly reuses the pop-up window parameters of the top-level pop-up window to create the target pop-up window, there is no need for cross-process communication between the first application and the second application and no arbitrary modification of the top-level pop-up window according to the target pop-up window. Therefore, it can better reduce communication costs and management complexity.
[0109] Among them, when the pop-up window parameters of the top-level pop-up window are reused to create the target pop-up window, the pop-up window parameters of the target pop-up window can be determined according to the pop-up window parameters of the top-level pop-up window, and then the target pop-up window is created according to the pop-up window parameters of the target pop-up window and the pop-up window content corresponding to the target pop-up window, and the entry animation of the target pop-up window is set to lead out the target pop-up window in the display through the entry animation. It should be understood that the display range of the target pop-up window displayed in the display can cover the display range of the top-level pop-up window. Since the pop-up window parameters of the pop-up window can reflect the appearance of the pop-up window, that is, reflect the visual presentation effect of the pop-up window, therefore, through the above processing, the similarity between the newly created target pop-up window and the top-level pop-up window in visual presentation can be well improved, and the display range of the target pop-up window can cover the display range of the top-level pop-up window. In the process of switching between the target pop-up window and the top-level pop-up window, the exit animation and the entry animation are played in the same position area, and the exiting top-level pop-up window and the entering target pop-up window have similar appearances, which can well improve the coherence of page changes during the switching process.
[0110] Optionally, the target pop-up window's entry animation may be an animation of the same type as the top-level pop-up window's exit animation, i.e., setting the target pop-up window's entry animation to an animation of the same type as the top-level pop-up window's exit animation is beneficial for improving the continuity of page changes during the switching process.
[0111] If there is a top-level pop-up window, and the application to which the top-level pop-up window belongs is the same application as the application corresponding to the pop-up window display request, that is, the first application is the same as the second application, then the controller can directly display the pop-up window content corresponding to the target pop-up window through the top-level pop-up window, that is, the controller can directly modify the pop-up window content displayed by the top-level pop-up window to the pop-up window content corresponding to the target pop-up window without cross-process communication, and display the pop-up window content corresponding to the target pop-up window in the top-level pop-up window.
[0112] It should be understood that when determining the pop-up window parameters of the target pop-up window based on the pop-up window parameters of the top-level pop-up window, if the original size of the target pop-up window (i.e., the size in the original pop-up window parameters of the target pop-up window) is less than or equal to the size of the top-level pop-up window, the pop-up window parameters of the top-level pop-up window can be directly used as the pop-up window parameters of the target pop-up window. At this time, the target pop-up window created according to the pop-up window parameters of the top-level pop-up window has the same appearance as the top-level pop-up window, can cover the top-level pop-up window, and can better display the pop-up window content corresponding to the target pop-up window.
[0113] Alternatively, if the original size of the target pop-up window is greater than the size of the top-level pop-up window, the new pop-up window parameters of the target pop-up window can be determined based on the original size of the target pop-up window and the pop-up window parameters of the top-level pop-up window, so that the created target pop-up window can cover the top-level pop-up window and have an almost identical appearance to the top-level pop-up window, that is, to maximize the visual similarity between the target pop-up window and the top-level pop-up window while correctly displaying the content corresponding to the target pop-up window.
[0114] For example, assume that the original size of the target pop-up window is 100px * 100px, and the size of the top-level pop-up window is 120px * 80px. As Figure 8 shown, at this time, the original length of the target pop-up window, 100px, is less than the length of the top-level pop-up window, 120px, but the original width of the target pop-up window is greater than the width of the top-level pop-up window, 80px. When determining the pop-up window parameters of the target pop-up window based on the pop-up window parameters of the top-level pop-up window, the final length of the target pop-up window can be determined according to the width of the top-level pop-up window, and the final width of the target pop-up window can be determined according to the original width of the target pop-up window. That is, the finally determined size of the target pop-up window (i.e., the new size of the target pop-up window) is 120px * 100px. After creating the target pop-up window based on this size, the target pop-up window displayed on the monitor completely covers the original top-level pop-up window.
[0115] In the embodiments of the present application, when the first application corresponding to the top-level pop-up window is the same as the second application corresponding to the pop-up window display request, the pop-up window content corresponding to the target pop-up window is directly displayed in the top-level pop-up window without switching the pop-up window, which can effectively avoid problems such as inconsistent page changes and page flickering caused by pop-up window switching; when the first application and the second application are different applications, the pop-up window parameters of the top-level pop-up window are reused to avoid cross-process communication between different applications, and at the same time, the visual similarity between the newly created target pop-up window and the top-level pop-up window can be better improved, thereby improving the coherence and visual presentation effect of the switching between the top-level pop-up window and the target pop-up window and ensuring the user experience.
[0116] In some embodiments, each application in the above display device is correspondingly configured with an application pop-up window manager for managing the pop-up window service of the corresponding application. That is, in the display device, the pop-up window service of an application is usually managed by the application pop-up window manager corresponding to the application. It should be understood that the application pop-up window manager can be integrated into its corresponding application or integrated into the controller. That is, the controller can be configured with the application pop-up window managers corresponding to each application.
[0117] It should be understood that the pop-up window service usually refers to a pop-up window component for popping up a floating window (i.e., the above-mentioned pop-up window) on the current interface, and the application pop-up window manager is used to manage services such as the creation and display of the pop-up window of the application.
[0118] The above controller is further configured to:
[0119] When the target application pop-up window manager obtains the above pop-up window display request, based on the target application pop-up window manager, it is determined whether the second application currently has a pop-up window. The target application pop-up window manager is the pop-up window service manager corresponding to the second application.
[0120] When the second application currently has a pop-up window, it is determined that there is the above top-level pop-up window, and the first application is the same as the second application.
[0121] It should be understood that after the application obtains focus (i.e., during the process of the user interacting with the application), when a pop-up window display request is triggered, the application (i.e., the second application) usually first sends the pop-up window display request to its corresponding application pop-up window manager (i.e., the above target application pop-up window manager), and the application pop-up window manager performs corresponding processing to display the pop-up window content corresponding to the target pop-up window.
[0122] Since the second application is the application that currently has focus, if the second application currently has a pop-up window, the existing pop-up window is usually displayed on the top layer of the display. Therefore, when the target application pop-up window manager obtains the pop-up window display request, it can first determine whether the second application currently has a pop-up window through the target application pop-up window manager. If the target application pop-up window manager determines that the second application currently has a pop-up window, it can be considered that there is a top-level pop-up window currently, and the application to which the top-level pop-up window belongs is also the second application. That is, the application corresponding to the top-level pop-up window (also called the first application) is the same as the second application.
[0123] It should be understood that the target application pop-up window manager can send the judgment result indicating whether the second application currently has a pop-up window to the controller, so that the controller can make subsequent judgments in a timely manner according to the judgment result.
[0124] It should be noted that in the embodiments of the present application, the pop-up window service for an application is managed by its corresponding application pop-up window manager. After determining that there is a top-level pop-up window and the first application is the same as the second application, when it is necessary to display the pop-up window content corresponding to the target pop-up window in the top-level pop-up window, since the top-level pop-up window is the pop-up window corresponding to the second application and is usually managed by the target application pop-up window manager, therefore, the content corresponding to the target pop-up window can be displayed in the top-level pop-up window based on the target application pop-up window manager, that is, the pop-up window content displayed in the top-level pop-up window is modified to the pop-up window content corresponding to the target pop-up window through the target application pop-up window manager, so that the pop-up window content corresponding to the target pop-up window can be displayed in the top-level pop-up window.
[0125] In some embodiments, when the target application pop-up window manager determines that there is a top-level pop-up window for the second application, it can directly determine that there is a top-level pop-up window and the first application is the same as the second application, and display the pop-up window content corresponding to the target pop-up window in the top-level pop-up window. Through the above processing, unnecessary interactions are reduced, which is beneficial to improving the efficiency of displaying the pop-up window content corresponding to the target pop-up window.
[0126] In some embodiments, the target application pop-up window manager can store the information of the currently existing pop-up windows of the second application through a stack (assumed to be called the pop-up window stack). When creating a pop-up window corresponding to the second application, the target application pop-up window manager can encapsulate the data related to the newly created pop-up window (such as the pop-up window parameters and pop-up window content of the pop-up window), and then store the encapsulated pop-up window data in the pop-up window stack, and remove the pop-up window data corresponding to the destroyed pop-up window from the pop-up window stack when destroying the pop-up window.
[0127] Since the stack is a data structure with first-in-last-out, if the top of the pop-up window stack is empty, it indicates that there is no pop-up window data stored in the stack. Therefore, when the target application pop-up window manager determines whether there is a pop-up window for the second application, it can directly judge whether there is a pop-up window according to whether the top of the pop-up window stack is empty. If the top of the pop-up window stack is not empty, it indicates that there is currently a pop-up window for the second application, and the pop-up window corresponding to the top of the pop-up window stack is usually the top-level pop-up window.
[0128] In the embodiments of the present application, when the target application pop-up window manager receives a pop-up window display request, it judges whether there is currently a pop-up window for the second application based on the target application pop-up window manager. Since the target application pop-up window manager is used to manage the pop-up window service of the second application, and the second application is the application corresponding to the pop-up window display request and is usually also the application that currently has the focus, that is, the pop-up windows existing for the second application usually include the pop-up window displayed at the top layer of the display screen. Therefore, according to the judgment result, it can quickly and accurately judge whether there is currently a top-level pop-up window and whether the application corresponding to the existing top-level pop-up window is the same as the second application.
[0129] In some embodiments, the above-mentioned controller is further configured with a system pop-up window manager for managing the pop-up window information of each application in the above-mentioned display device. In other embodiments, the system pop-up window manager may manage the information of the pop-up windows being displayed when each application in the display device loses focus.
[0130] The above-mentioned controller is further configured to:
[0131] In the case where there is currently no pop-up window for the above-mentioned second application, query based on the above-mentioned system pop-up window manager whether there is currently the above-mentioned top-level pop-up window.
[0132] In the case where it is determined that there is the above-mentioned top-level pop-up window, determine that there is the above-mentioned top-level pop-up window, and the above-mentioned first application is different from the above-mentioned second application.
[0133] Since the application pop-up window manager usually only manages the pop-up window services of its corresponding application and does not know whether there are currently pop-up windows for other applications, therefore, in the case where it is determined based on the target application pop-up window manager that there is currently no pop-up window for the second application, the system pop-up window manager can be used to query whether there are currently pop-up windows for other applications, so as to determine whether there is currently a top-level pop-up window.
[0134] In some embodiments, since there is no pop-up window for the second application that currently has focus, and there is a top-level pop-up window in the display, this top-level pop-up window is usually a pop-up window being displayed when a historical application (the historical application refers to the application that had focus before the second application obtained focus, that is, the previous application that lost focus) lost focus. Therefore, when the system pop-up window manager queries whether there is currently a top-level pop-up window, it can query whether there is currently a pop-up window for this historical application, so as to quickly and accurately determine whether there is currently a top-level pop-up window.
[0135] It should be understood that if the pop-up window application manager determines that there is a top-level pop-up window, at this time, the determined top-level pop-up window is a pop-up window of other applications, that is, the first application corresponding to the top-level pop-up window is different from the second pop-up window corresponding to the pop-up window display request.
[0136] Figure 9 Shows the timing interaction diagram for reusing the top-level pop-up window provided by some embodiments. Refer to Figure 9 , after the target application pop-up window manager obtains the pop-up window display request, it will first determine whether there is currently a pop-up window for the second application. If it is determined that there is currently no pop-up window for the second application, a pop-up window query request can be sent to the controller, indicating through the pop-up window query request that there is currently no pop-up window for the second application, so that the controller can determine whether there is currently a top-level pop-up window based on the system pop-up window manager.
[0137] After the controller obtains the pop-up window query request, it can query whether there is a top-level pop-up window currently through the system pop-up window manager. If the system pop-up window manager queries that there is a top-level pop-up window, the pop-up window content corresponding to the target pop-up window can be displayed by creating the target pop-up window by reusing the pop-up window parameters of the top-level pop-up window.
[0138] It should be noted that in the embodiments of the present application, an application pop-up window manager corresponding to the application is configured to manage the pop-up window service of the application, and the target pop-up window is the pop-up window corresponding to the second application, which should be managed by the target application pop-up window manager. Therefore, when the pop-up window content corresponding to the target pop-up window is displayed by creating the target pop-up window by reusing the pop-up window parameters of the top-level pop-up window, generally, the target application pop-up window manager is used to reuse the pop-up window parameters of the top-level pop-up window to create the target pop-up window.
[0139] Refer to Figure 9 , after determining that there is a top-level pop-up window and the first application is different from the second application, the system pop-up window manager can send the pop-up window parameters of the top-level pop-up window to the target application pop-up window manager, so that the target application pop-up window manager can create the target pop-up window according to the pop-up window parameters of the top-level pop-up window and set the entry animation of the target pop-up window, so as to be able to display the pop-up window content corresponding to the target pop-up window on the display.
[0140] The system pop-up window manager can judge whether there is a top-level pop-up window according to whether the information of the top-level pop-up window is stored; or, when receiving the pop-up window query request, the system pop-up window manager can also query whether the application that lost focus last was displaying a pop-up window when it lost focus, that is, query whether there is a top-level pop-up window on the display when the focus switches from the previous application to the current application. The system pop-up window manager can also judge whether there is a top-level pop-up window in other ways, which can be specifically set according to actual needs and will not be specifically limited here.
[0141] In the embodiments of the present application, if it is determined that there is no pop-up window for the second application currently, the system pop-up window manager is used to query whether there is a pop-up window for an application other than the second application currently, so as to query whether there is a top-level pop-up window currently. Since the system pop-up window manager manages the pop-up window information of each application, based on the system pop-up window manager to query whether there is a top-level pop-up window currently, it is not necessary for the target application pop-up window manager corresponding to the second application to perform cross-process communication with the application pop-up window managers of other applications, and it is not necessary for the system pop-up window manager to communicate with the application pop-up window managers of each application in real time, which is beneficial to reducing the development cost and cross-process communication cost.
[0142] In some embodiments, the above-mentioned controller is further configured to: when it is determined that the above-mentioned second application loses focus and it is determined based on the above-mentioned system pop-up window manager that there is a pop-up window to be displayed, trigger the above-mentioned target application pop-up window manager to perform a pop-up window adjustment operation, where the above-mentioned pop-up window to be displayed includes the top-level pop-up window with the reused pop-up window parameters, or the above-mentioned pop-up window to be displayed includes the pop-up window that was being displayed when the application that currently gains focus last lost focus.
[0143] The above-mentioned pop-up window adjustment operation includes: adjusting the pop-up window currently displayed by the above-mentioned second application according to the pop-up window parameters of the above-mentioned pop-up window to be displayed, and hiding or destroying the adjusted pop-up window, so that after the display range of the adjusted pop-up window covers the display range of the above-mentioned pop-up window to be displayed, the above-mentioned pop-up window to be displayed is displayed.
[0144] It should be understood that the top-level pop-up window with the reused pop-up window parameters in the embodiments of the present application is the pop-up window being displayed by other applications. After the second application loses focus, it is usually necessary to restore the display of the pop-up window with the reused pop-up window parameters. Therefore, if there is a top-level pop-up window with the reused pop-up window parameters, when the second application loses focus, the top-level pop-up window with the reused pop-up window parameters can be determined as the pop-up window to be displayed.
[0145] Or, if it is possible to determine the application that currently gains focus when the second application loses focus, if the application that currently gains focus was displaying a pop-up window when it last lost focus, when switching from the second application to the application that currently gains focus, it is usually necessary to display the pop-up window that was being displayed when the application that currently gains focus last lost focus. At this time, if there is a top-level pop-up window with the reused pop-up window parameters, the top-level pop-up window with the reused pop-up window parameters can be ignored, and the pop-up window that was being displayed when the application that currently gains focus last lost focus can be directly determined as the pop-up window to be displayed.
[0146] Optionally, when the controller determines whether there is a pop-up window to be displayed, it can first query whether there is an application that currently gains focus. If there is an application that currently gains focus, it queries through the system pop-up window manager whether the application that currently gains focus was displaying a pop-up window when it last lost focus, so as to determine whether there is a pop-up window to be displayed; if there is no application that currently gains focus, it can query through the system pop-up window manager whether there is a top-level pop-up window with the reused pop-up window parameters to determine whether there is a pop-up window to be displayed.
[0147] When the second application just gains focus, the display may be showing pop-up windows of other applications. After the second application loses focus, it is usually necessary to resume displaying the pop-up windows that were shown before the second application gained focus. Therefore, to ensure the user experience, when the second application loses focus, the controller can determine whether there is a pop-up window to be displayed through the system pop-up window manager. If it is determined through the system pop-up window manager that there is a pop-up window to be displayed, the pop-up window currently displayed by the second application (assumed to be the currently displayed pop-up window) can be adjusted according to the pop-up window parameters of the pop-up window to be displayed, and then the adjusted pop-up window (i.e., the adjusted currently displayed pop-up window) can be hidden or destroyed according to actual needs. Through the above processing, the display range of the adjusted pop-up window covers the display range of the pop-up window to be displayed and then disappears, and then the pop-up window to be displayed is displayed in the same display range. That is, the currently displayed pop-up window of the second application and the pop-up window to be displayed are switched within the same display range to display the pop-up window to be displayed, which is beneficial to improving the coherence of page changes during the switching process.
[0148] Among them, since the pop-up window service of the application in the embodiment of the present application is managed by its corresponding application pop-up window manager, the controller can adjust the currently displayed pop-up window by triggering the pop-up window adjustment operation of the target application pop-up window manager. The pop-up window currently displayed by the second application is usually created and managed by the target application pop-up window manager. Directly performing the pop-up window adjustment operation through the target application pop-up window manager can more quickly and simply adjust the currently displayed pop-up window, improve the flexibility of pop-up window adjustment, and reduce the implementation complexity. Moreover, there is no need for the controller to interact with the target application pop-up window manager to adjust the currently displayed pop-up window, which can better reduce the coupling and management complexity between the controller and the target application pop-up window manager.
[0149] It should be understood that in some other embodiments, the above pop-up window adjustment operation can also be performed by the controller.
[0150] It should be understood that when the controller determines that there is a pop-up window to be displayed, it can send the pop-up window parameters of the pop-up window to be displayed to the target application pop-up window manager, so that the target application pop-up window manager can better perform the pop-up window adjustment operation according to the pop-up window parameters of the pop-up window to be displayed. Through the above processing, the switching between the current top-level pop-up window and the pop-up window to be displayed is performed, so that the adjusted top-level pop-up window and the pop-up window to be displayed have a similar visual presentation during the switching process, which is beneficial to improving the coherence of page changes during the switching process and improving the visual presentation effect.
[0151] It should be understood that when the controller or the target application pop-up window manager adjusts the currently displayed pop-up window according to the pop-up window parameters of the pop-up window to be displayed, the display range of the adjusted currently displayed pop-up window can be made larger than the display range of the pop-up window to be displayed and cover the display range of the pop-up window to be displayed, or the adjusted currently displayed pop-up window can have the same display range as the pop-up window to be displayed, so that the display range of the adjusted currently displayed pop-up window exactly covers the coverage range of the pop-up window to be displayed. The specific adjustment method can be set according to the actual application scenario.
[0152] As an example, the pop-up window parameters of the pop-up window to be displayed can be directly used as the new pop-up window parameters of the currently displayed pop-up window, and then the currently displayed pop-up window can be adjusted according to the new pop-up window parameters of the currently displayed pop-up window, so that the currently displayed pop-up window is adjusted to a pop-up window with a visual presentation almost the same as that of the pop-up window to be displayed. Then, the adjusted pop-up window is hidden or destroyed, and the pop-up window to be displayed is displayed, which can better improve the switching coherence between the currently displayed pop-up window and the pop-up window to be displayed and is beneficial to improving the visual presentation effect.
[0153] It should be understood that after the adjustment of the currently displayed pop-up window is completed and the adjusted pop-up window is obtained, the adjusted pop-up window can be destroyed or hidden according to actual requirements. For example, when the second application loses focus and the user has completed the interaction with the currently displayed pop-up window, and the target application pop-up window manager or the controller receives a close notification for the currently displayed pop-up window, after the adjustment of the currently displayed pop-up window is completed and the adjusted pop-up window is obtained, the adjusted pop-up window can be destroyed; when the second application loses focus and no close notification for the currently displayed pop-up window is received, and the second application has not ended its operation (that is, the second application only loses focus and is still running in the background), the adjusted pop-up window can be hidden.
[0154] In some other embodiments, when the controller triggers the pop-up window adjustment operation of the target application pop-up window manager and the target application pop-up window manager adjusts the currently displayed pop-up window, the controller can send the pop-up window parameters and the pop-up window content of the pop-up window to be displayed to the target application pop-up window manager together, so that when the target application pop-up window manager adjusts the currently displayed pop-up window, the currently displayed pop-up window is adjusted to a pop-up window with the same visual presentation effect as the pop-up window to be displayed according to the pop-up window parameters and the pop-up window content of the pop-up window to be displayed. Then, the adjusted pop-up window is hidden or destroyed, and the pop-up window to be displayed is switched and displayed. Through the above processing, the coherence during the switching between the currently displayed pop-up window and the pop-up window to be displayed is further improved, thereby improving the visual presentation effect and the user experience.
[0155] Figure 10 shows the timing interaction diagram of the display method in some embodiments. Refer to Figure 10, assume that application A is the first application to run in the display device. At this time, application A is the application that has obtained focus. When the pop-up window display request A1 of application A (used to request the display of pop-up window A1) is triggered, the application pop-up window manager a of application A obtains this pop-up window display request A1; since this pop-up window display request A1 is the first pop-up window display request of application A, that is, there is usually no pop-up window in application A currently. Therefore, after determining that there is no pop-up window in application A currently, the application pop-up window manager a can send a pop-up window query request to the controller. After receiving this pop-up window query request, the controller can determine whether there is a top-level pop-up window currently based on the system pop-up window manager.
[0156] Since application A is the first application to run and there is no previously running application, the pop-up window information managed by the system pop-up window manager is empty, that is, there is no top-level pop-up window. At this time, the target pop-up window can be directly created and the entry animation of the target pop-up window can be set to display the pop-up window content corresponding to the target pop-up window on the display. Among them, for the convenience of managing the pop-up window services of each application, the pop-up window of the application can be created by the application pop-up window manager corresponding to the application. That is, the application pop-up window manager a creates pop-up window A1 according to the pop-up window display request A1. Refer to Figure 10 , the controller or the system pop-up window manager can notify the application pop-up window manager a to send a notification message indicating that there is no top-level pop-up window. The application pop-up window manager a determines that there is no top-level pop-up window according to the notification message returned by the system pop-up window manager, and then can directly create pop-up window A1 and manage pop-up window A1.
[0157] During the process when application A has focus, the second pop-up window display request A2 of application A (used to request the display of pop-up window A2) is triggered. After the application pop-up window manager a obtains this pop-up window display request A2, it can determine that there is a pop-up window in the second application currently according to the information it manages, that is, it determines that there is a top-level pop-up window, and this top-level pop-up window is pop-up window A1, and the application corresponding to this top-level pop-up window is the same as the application corresponding to the pop-up window display request A2. Then, the pop-up window content corresponding to pop-up window A2 can be directly displayed in this top-level pop-up window (at this time it is pop-up window A1). After the user completes the interaction with pop-up window A2, pop-up window A1 no longer needs to display the pop-up window content corresponding to pop-up window A2. At this time, the application pop-up window manager a can restore the content displayed by pop-up window A1 to the pop-up window content corresponding to pop-up window A1.
[0158] Suppose that Application A loses focus during the display of Pop-up Window A1. At this time, the Application Pop-up Window Manager a can send a notification request to the controller so that the controller can determine that Application A has lost focus and promptly determine whether there is a top-level pop-up window. Since Application A does not reuse the top-level pop-up windows of other applications and there is no running application before Application A (i.e., there is no previous application that lost focus), the system pop-up window information stored in the System Pop-up Window Manager is empty. Based on the System Pop-up Window Manager, the controller can determine that there is no pop-up window to be displayed. At this time, there is no need to trigger the pop-up window adjustment operation of the Target Application Manager. The controller can send a notification message indicating that there is no pop-up window to be displayed to the Application Pop-up Window Manager a. After determining that there is no pop-up window to be displayed, the Application Pop-up Window Manager a can determine whether to destroy the currently displayed pop-up window (i.e., Pop-up Window A1) according to actual needs.
[0159] Optionally, if the Application Pop-up Window Manager a does not destroy Pop-up Window A1, there is a top-level pop-up window on the display at this time (which is Pop-up Window A1 at this time). The Application Pop-up Window Manager a can send the pop-up window parameters of Pop-up Window A1 to the System Pop-up Window Manager so that the System Pop-up Window Manager can record Pop-up Window A1 that is being displayed when Application A loses focus.
[0160] Suppose that Application B gains focus and triggers a pop-up window display request B1 (for requesting the display of Pop-up Window B1). The Application Pop-up Window Manager b corresponding to Application B determines that there is no pop-up window for Application B currently and sends a pop-up window query request to the controller. After receiving the pop-up window query request, the controller can query and determine that there is a top-level pop-up window based on the System Pop-up Window Manager and send a pop-up window notification containing the pop-up window parameters of the top-level pop-up window (i.e., Pop-up Window A1) to the Application Pop-up Window Manager b. The Pop-up Window Controller b can determine the pop-up window parameters of Pop-up Window B1 according to the pop-up window parameters in the pop-up window notification, create Pop-up Window B1 according to the determined pop-up window parameters of Pop-up Window B1 and the pop-up window content, and set the entry animation of Pop-up Window B1.
[0161] Suppose that when Application B loses focus, Pop-up Window B4 is being displayed. At this time, the Application Pop-up Window Manager b can send a request to the controller so that the controller can determine that Application B has lost focus and promptly determine whether there is a pop-up window to be displayed based on the System Pop-up Window Manager. Since the top-level pop-up window on the display was Pop-up Window A1 before Application B gained focus and Application B reused the pop-up window parameters of Pop-up Window A1 of Application A, when Application B loses focus, it is usually necessary to restore the top-level pop-up window on the display to Pop-up Window A1, that is, the controller queries and determines based on the System Pop-up Window Manager that the pop-up window to be displayed is Pop-up Window A1 and sends the pop-up window parameters of Pop-up Window A1 to the Application Pop-up Window Manager b so that the Application Pop-up Window Manager b can adjust the currently displayed Pop-up Window B4 according to the pop-up window parameters of Pop-up Window A1, that is, make the adjusted Pop-up Window B4 be displayed at the position corresponding to Pop-up Window A1 and then hide or destroy the adjusted Pop-up Window B4, and then the controller displays Pop-up Window A1 on the display.
[0162] Suppose that the application pop-up window manager b hides the adjusted pop-up window B4 without destroying it (i.e., the user has not completed the interaction with the pop-up window 4 of application B and the pop-up window B4 will be displayed later). Then, the application pop-up window manager b sends the pop-up window parameters of the pop-up window B4 (here, the original pop-up window parameters of the pop-up window B4) to the system pop-up window manager. The system pop-up window manager will record that the pop-up window B4 is being displayed when application B loses focus, and record the pop-up window parameters of the pop-up window B4. It should be understood that at this time, the system pop-up window manager records the following information: the pop-up window A1 is being displayed when application A loses focus, the pop-up window B4 is being displayed when application B loses focus, and the top-level pop-up window at this time is the pop-up window A1.
[0163] In some embodiments, when the controller or the target application manager performs a pop-up window adjustment operation, that is, when adjusting the currently displayed pop-up window according to the pop-up window parameters of the pop-up window to be displayed, it may adjust the exit animation of the currently displayed pop-up window according to the pop-up window parameters of the pop-up window to be displayed. That is, the display range of the currently displayed pop-up window is adjusted to cover the display range of the pop-up window to be displayed, and the adjustment process of disappearing or destroying after the adjustment is used as the exit animation of the currently displayed pop-up window, and the actual display range of the currently displayed pop-up window remains unchanged.
[0164] It should be understood that the application pop-up window manager corresponding to the application can also synchronize the information of the currently displayed pop-up window to the system pop-up window manager every time a pop-up window is displayed, so that the system pop-up window manager can better manage the pop-up window information of each application.
[0165] Figure 11 Shows a timing interaction diagram of a display method provided in some other embodiments. Refer to Figure 11 , suppose that application A and application B are applications running in the background. Application A is displaying the pop-up window A3 when it loses focus, application B is displaying the pop-up window B5 when it loses focus, application C is the currently focused application, and assume that when application C gains focus, the pop-up window B5 is the top-level pop-up window. The application pop-up window manager c of application C reuses the pop-up window parameters of the pop-up window B5 to create the pop-up window C1 and set the entry animation of the pop-up window C1. At this time, the system pop-up window manager records the following information: the pop-up window A3 is being displayed when application A loses focus, the pop-up window B5 is being displayed when application B loses focus, the top-level pop-up window when application C gains focus is B5, and application C reuses the pop-up window parameters of application B5.
[0166] Assume that Application C loses focus when Pop-up Window C2 is displayed. At this time, the top-level pop-up window on the display is Pop-up Window C2. Generally speaking, when Application C loses focus, the top-level pop-up window needs to be restored to Pop-up Window B5 whose pop-up window parameters are reused by Application Pop-up Window Manager c, that is, usually the displayed Pop-up Window C2 on the display is switched to Pop-up Window B5. However, if Application A gains focus at this time, the display needs to restore the top-level pop-up window to the pop-up window that was being displayed when Application A lost focus (i.e., Pop-up Window A3). At this time, the controller determines that the pop-up window to be displayed based on the system pop-up window manager is Pop-up Window A3, and in response to the acquisition request of Application Pop-up Window Manager c, sends the pop-up window parameters of Pop-up Window A3 to this Application Pop-up Window Manager c, so that Application Pop-up Window Manager c can perform pop-up window adjustment operations, that is, hide Pop-up Window C2 after adjusting Pop-up Window C2 according to the pop-up window parameters of Pop-up Window A3, and send the original pop-up window parameters of Pop-up Window C2 to the system pop-up window manager, so that the system pop-up window manager records that the pop-up window being displayed when Application C loses focus is Pop-up Window C2. It should be understood that during the process from Application C losing focus to Application A gaining focus, a pop-up window switch occurs, and the top-level pop-up window switches from the adjusted Pop-up Window C2 to Pop-up Window A3. Moreover, the adjusted Pop-up Window C2 and Pop-up Window A3 have the same visual presentation. Therefore, when switching from Application C to Application A, the process of the pop-up window displayed on the display switching from the adjusted Pop-up Window C2 to Pop-up Window A3 has good coherence and visual presentation effects, ensuring a good interaction experience for users.
[0167] In some embodiments, when the above-mentioned controller executes the operation of reusing the above-mentioned top-level pop-up window to obtain a target pop-up window in the case of the existence of a top-level pop-up window, it is configured to:
[0168] In the case where the above-mentioned top-level pop-up window exists and the above-mentioned pop-up window display request includes a reuse instruction, reuse the above-mentioned top-level pop-up window to obtain the above-mentioned target pop-up window, and the above-mentioned reuse instruction is used to instruct the above-mentioned controller to be able to reuse the above-mentioned top-level pop-up window to display the pop-up window content corresponding to the above-mentioned target pop-up window.
[0169] In some scenarios, due to product requirements or interaction logic requirements, an application may require that some pop-up windows must create a new pop-up window as the target pop-up window for display and cannot reuse existing pop-up windows. Therefore, to ensure that product requirements and interaction logic requirements are met, when an application triggers a window display request according to a user operation, it will first judge whether the target pop-up window to be displayed triggered by the user operation can be displayed by reusing an existing pop-up window according to the corresponding business processing logic or interaction logic requirements. If it can, the application will add a reuse instruction to the pop-up window display request, and through this reuse instruction, instruct the controller to be able to reuse the top-level pop-up window to display the pop-up window content corresponding to the target pop-up window.
[0170] After obtaining a pop-up window display request, the controller may first determine whether the pop-up window display request includes a reuse instruction. If it is determined that the pop-up window display request includes the reuse instruction, then in the case of the existence of a top-level pop-up window, the top-level pop-up window may be reused to obtain a target pop-up window.
[0171] If it is determined that the pop-up window display instruction does not include the reuse instruction, it indicates that the top-level pop-up window cannot be directly used to display the pop-up window content corresponding to the target pop-up window, and it is necessary to create a target pop-up window and set an entry animation for the target pop-up window.
[0172] In some embodiments, when creating a target pop-up window, if there is a top-level pop-up window, the target pop-up window may be created according to the pop-up window parameters of the top-level pop-up window, so that the newly created target pop-up window has the same parameters as the top-level pop-up window, such as position, size, background, or transparency, etc., to improve the coherence of page changes during the pop-up window switching process by enhancing the visual similarity between the newly created target pop-up window and the original top-level pop-up window, and to improve the user experience as much as possible.
[0173] In the embodiments of the present application, in the case where the target pop-up window content can be displayed through the top-level pop-up window, the top-level pop-up window is reused to display the content corresponding to the target pop-up window, so as to ensure that the product requirements or interaction logic requirements of the application can be met while displaying the pop-up window, and to avoid situations such as product function limitations or pop-up window interaction errors, and to ensure the user experience.
[0174] In some embodiments, the above-mentioned reuse instruction includes a reuse type, and the above-mentioned controller is further configured to:
[0175] In the case where the reuse type to which the above-mentioned reuse instruction belongs is reuse and a close notification for the above-mentioned target pop-up window is received, restore the above-mentioned top-level pop-up window to display the pop-up window content corresponding to the above-mentioned top-level pop-up window on the above-mentioned display.
[0176] In the case where the reuse type to which the above-mentioned reuse instruction belongs is replacement and the above-mentioned close notification is received, destroy the above-mentioned top-level pop-up window.
[0177] The close notification for the target pop-up window is used to indicate that the target pop-up window can be closed. It should be understood that the close notification may be actively triggered by a user operation or passively triggered (for example, the display duration of the target pop-up window reaches a set duration threshold, such as 60 seconds), and can be specifically set according to actual business requirements. It should be understood that when the application detects the triggering of the close notification, it may send the close notification to the controller so that the controller can timely perform corresponding processing on the reused top-level pop-up window.
[0178] Affected by product requirements or interaction logic, the target pop-up window to be displayed is usually triggered by the user through a certain interaction behavior (such as clicking a button or selecting an option, etc.) in the top-level pop-up window. After the user completes the corresponding interaction in the newly displayed target pop-up window, it may be necessary to redisplay the top-level pop-up window or not display it. Therefore, in the embodiments of the present application, when triggering a pop-up window display request and determining a reusable top-level pop-up window, the reuse type of the top-level pop-up window will also be determined, so as to determine the reuse type to which the reuse instruction belongs. This reuse type is used to indicate how to process the reused top-level pop-up window after the reuse of the top-level pop-up window ends.
[0179] Among them, the reuse type can include restoration and replacement. When the controller receives a close notification for the target pop-up window, it will perform corresponding processing on the reused top-level pop-up window according to the reuse type in the reuse instruction.
[0180] When the reuse type to which the reuse instruction belongs is reuse, it is necessary to restore the reused top-level pop-up window, that is, restore the reused top-level pop-up window to its original state to display the pop-up window content corresponding to the top-level pop-up window on the display.
[0181] When the reuse type to which the reuse instruction belongs is replacement, it indicates that there is no need to display the pop-up window content corresponding to the top-level pop-up window again. At this time, the reused top-level pop-up window can be directly destroyed.
[0182] It should be noted that in some embodiments, when the user completes the corresponding interaction in the target pop-up window (i.e., the reused top-level pop-up window), due to user operations being triggered or requirements of product requirements or interaction logic, it may be necessary to display a new target pop-up window, that is, trigger a new pop-up window display request. At this time, if it is determined that the new target pop-up window can be displayed using the reusable top-level pop-up window, the reuse type of the new target pop-up window can be determined by combining the reuse type of the current target pop-up window (i.e., the target pop-up window to be closed), so as to determine the reuse type to which the new reuse instruction belongs.
[0183] It should be understood that if the reuse type of the current target pop-up window is replacement, that is, there is no need to redisplay the pop-up window content corresponding to the reused top-level pop-up window, nor to display the pop-up window content corresponding to the current target pop-up window to be closed again, then when the application determines the reuse type of the new target pop-up window, the reuse type of the new target pop-up window is replacement.
[0184] If the reuse type of the current target pop-up window is reuse, that is, it is necessary to redisplay the pop-up window content corresponding to the reused top-level pop-up window, then the reuse type of the new target pop-up window can be group reuse. When the reuse type is group reuse and a close notification for the new target pop-up window is received, the top-level pop-up window will be reused to display the pop-up window content corresponding to the top-level pop-up window.
[0185] For example, assume that the top - level pop - up window is Pop - up Window A1, and the controller receives a pop - up window display request 1 for Pop - up Window A2. If the reuse type to which the reuse instruction in the pop - up window display request 1 belongs is reuse, then the pop - up window content 2 corresponding to Pop - up Window A2 can be reused to display in Pop - up Window A1.
[0186] Assume that a close notice for Pop - up Window A2 is received. At the same time, a pop - up window display request 2 is received, and the pop - up window display request 2 requests to display Pop - up Window A3. The reuse type to which the reuse instruction in this pop - up window display request belongs is group reuse. At this time, the pop - up window content 3 corresponding to Pop - up Window A2 is reused to display in Pop - up Window A1. When the controller receives a close notice for Pop - up Window A3, it will restore the reused Pop - up Window A1, so that Pop - up Window A1 redisplay its own pop - up window content 1.
[0187] In some embodiments, each pop - up window's corresponding pop - up window content can be stored through a stack (assumed to be called the content stack). When a target pop - up window needs to reuse the top - level pop - up window to display the pop - up window content corresponding to the target pop - up window, corresponding pop - out or push - in operations can be performed on the target stack (this target stack refers to the stack corresponding to the top - level pop - up window, which stores the pop - up window content that the top - level pop - up window should display) according to the reuse type corresponding to the target pop - up window.
[0188] For example, as Figure 12 shown, assume that the first display request is triggered: Pop - up Window Display Request 1 (for requesting to display Pop - up Window 1), and this pop - up window display request 1 does not contain a reuse instruction. After the controller obtains this pop - up window display request 1, it can directly create Pop - up Window 1 according to this pop - up window display request 1. Correspondingly, it can record the currently existing pop - up windows through the pop - up window stack, including Pop - up Window 1, that is, Pop - up Window 1 is pushed onto the pop - up window stack. At the same time, a content stack 1 corresponding to this Pop - up Window 1 is generated, and the pop - up window content 1 is pushed onto the content stack (the pop - up window content 1 is the pop - up window content corresponding to Pop - up Window 1).
[0189] Assume that during the display of Pop - up Window 1, a pop - up window display request 2 (for requesting to display Pop - up Window 2) is triggered, and the reuse type to which the reuse instruction in the pop - up window display request 2 belongs is reuse. Then, Pop - up Window 1 is reused to display the pop - up window content 2 corresponding to Pop - up Window 2, and the pop - up window content 2 is pushed onto the content stack; during the process of reusing Pop - up Window 1 to display the pop - up window content 2 corresponding to Pop - up Window 2, a pop - up window display request 3 (for displaying Pop - up Window 3) is triggered, and the reuse type to which the reuse instruction in the pop - up window display request 3 belongs is reuse. At this time, Pop - up Window 1 is reused to display the pop - up window content 3 corresponding to Pop - up Window 3. Then, as Figure 13 shown, in content stack 1 from top to bottom are: pop - up window content 3, pop - up window content 2, and pop - up window content 1. It should be understood that at the same time, Pop - up Window 1 can only display the pop - up window content at the top of the content stack.
[0190] As Figure 12As shown, during the process of displaying the pop-up window content 3 in the reuse pop-up window 1, a pop-up window display request 4 (for requesting to display the pop-up window 4) is triggered. If the reuse instruction is not included in the pop-up window content request 4, a new pop-up window needs to be created to display the pop-up window content 4 corresponding to the pop-up window 4. Correspondingly, the currently existing pop-up windows recorded in the pop-up window stack include the pop-up window 4, that is, the pop-up window 4 is pushed onto the pop-up window stack. At the same time, a content stack 2 corresponding to the pop-up window 4 is generated, and the pop-up window content 4 is pushed onto the content stack 2.
[0191] When receiving the close notification for the pop-up window 4, the controller can destroy the pop-up window 4. At the same time, the pop-up window 4 in the pop-up window stack and the pop-up window content 4 in the content stack 2 are popped off the stack.
[0192] In the embodiments of the present application, when the user has completed the interaction with the target pop-up window, corresponding restoration or consumption processing is performed on the reused top-level pop-up window according to the reuse type of the target pop-up window, so as to avoid situations such as product function limitation or interaction error while satisfying the pop-up window display request, and ensure the user experience.
[0193] In some embodiments, when the above-mentioned controller executes the reuse of the above-mentioned top-level pop-up window, it is configured to:
[0194] Obtain the pop-up window information of the above-mentioned top-level pop-up window, and the pop-up window information at least includes the pop-up window content corresponding to the pop-up window.
[0195] Adjust the above-mentioned top-level pop-up window according to the difference between the pop-up window information of the above-mentioned top-level pop-up window and the pop-up window information of the above-mentioned target pop-up window, so as to display the pop-up window content corresponding to the above-mentioned target pop-up window on the above-mentioned display.
[0196] It should be understood that the pop-up window information of the top-level pop-up window can be obtained from its corresponding pop-up window display request, or can be dynamically obtained from the application or obtained through other means during the process of reusing the top-level pop-up window, and can be specifically set according to the actual application scenario.
[0197] To ensure the accurate display of the pop-up window content corresponding to the target pop-up window, during the process of reusing the top-level pop-up window, first obtain the pop-up window information of the top-level pop-up window. Since the pop-up window information at least includes the pop-up window content corresponding to the pop-up window, therefore, according to the obtained pop-up window information of the top-level pop-up window, the content to be displayed in the top-level pop-up window can be determined. Furthermore, according to the difference between the pop-up window information to be displayed in the top-level pop-up window (that is, the pop-up window information of the target pop-up window) and the current pop-up window information of the top-level pop-up window, the different parts in the top-level pop-up window are adjusted to ensure that the pop-up window content corresponding to the target pop-up window can be correctly displayed through the top-level pop-up window.
[0198] It should be understood that in the embodiments of the present application, the difference between the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window includes at least the difference in the pop-up window content. In some other embodiments, when the pop-up window information further includes information such as the shape or background color of the pop-up window, the information to be concerned can be determined according to the actual application scenario requirements. When determining the difference between the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window, in addition to the difference in the pop-up window content, the difference between the information to be concerned can also be determined, such as the difference in the shape, background color or element color of the pop-up window.
[0199] In some embodiments, the above-mentioned pop-up window information includes the size of the elements in the pop-up window and the content of the elements. When the above-mentioned controller performs the adjustment of the above-mentioned top-level pop-up window according to the difference between the pop-up window information of the above-mentioned top-level pop-up window and the pop-up window information of the above-mentioned target pop-up window, it is configured to:
[0200] Determine a first element and a second element according to the difference between the pop-up window information of the above-mentioned top-level pop-up window and the pop-up window information of the above-mentioned target pop-up window. The first element includes the elements to be deleted or added in the above-mentioned top-level pop-up window, and the second element includes the elements whose sizes need to be modified in the above-mentioned top-level pop-up window.
[0201] Adjust the first element and the second element based on the pop-up window information of the above-mentioned target pop-up window. Among them, the adjustment of the first element includes adding a transparency animation to the first element and modifying the content of the first element, and adding a scaling animation to the second element and modifying the content of the second element.
[0202] The above-mentioned elements are also called views or view elements, which refer to the basic components that make up the pop-up window. It should be understood that the elements of the pop-up window include but are not limited to elements such as text views, buttons, image views, input boxes or check boxes. Each element is organized in the pop-up window to form the pop-up window interface that the user sees and interacts with the user.
[0203] It should be understood that the pop-up window content corresponding to the pop-up window is composed of the content of each element of the pop-up window.
[0204] Since the elements included in different pop-up windows may be different, and the sizes and contents of the same type of elements included may also be different, therefore, in order to quickly and accurately implement the reuse of the top-level pop-up window, the difference between the elements included in the top-level pop-up window and the elements included in the target pop-up window can be determined first according to the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window, so as to determine the elements to be deleted or added in the top-level pop-up window to obtain the first element. At the same time, the elements with different sizes among the same elements included in the top-level pop-up window and the target pop-up window are determined to obtain the second element.
[0205] After determining the first element and the second element, the pop-up window information of the target pop-up window can be combined to make corresponding adjustments to the first element and the second element.
[0206] Among them, when adjusting the first element and the second element, corresponding animations can be added according to the change types of the first element and the second element, and the animations achieve transitional effects by gradually changing the attributes of the elements (such as size, position, or transparency, etc.), making the adjustment of the elements in the pop-up window smooth and conducive to improving the visual presentation effect.
[0207] Among them, for the first element that needs to be deleted or added, a transparency animation can be added to it. Through the transparency animation, the first element that needs to be deleted gradually becomes invisible from visible in the top-level pop-up window, and the first element that needs to be added gradually becomes visible from invisible in the top-level pop-up window, so that the pop-up window interface of the top-level pop-up window can be adjusted to the pop-up window interface corresponding to the target pop-up window on the basis of smooth changes.
[0208] For the second element whose size needs to be adjusted, a scaling animation can be added to it to achieve the adjustment of the size of the second element through the scaling animation.
[0209] At the same time, during the process of adjusting the first element and the second element, the content of the corresponding first element and the second element will be modified according to the content of each element in the pop-up window information of the target pop-up window to ensure that the top-level pop-up window finally presents the pop-up window interface and pop-up window content corresponding to the target pop-up window.
[0210] The implementation method of adjusting the first element and the second element based on the pop-up window information of the target pop-up window can be set according to the actual application scenario, and no specific restrictions are made here.
[0211] For example, after determining the first element and the second element, the layout file of the top-level pop-up window can be obtained. Since the layout file of the pop-up window specifies the style and content of the pop-up window, etc., when the pop-up window is displayed, the pop-up window service will draw the interface and content of the pop-up window according to the layout file and display it on the display. Therefore, the layout file of the top-level pop-up window that has been displayed on the display is modified according to the first element and the second element. After modifying the layout file of the top-level pop-up window, the top-level pop-up window can automatically present these changes, thereby realizing the display of the pop-up window interface and pop-up window content of the target pop-up window through the top-level pop-up window.
[0212] Refer to Figure 14 , Figure 14 shows the elements included in the top-level pop-up window and the target pop-up window. Among them, the top-level pop-up window includes the following elements: title, text input box, and button, while the target pop-up window includes the following elements: title, text view, loading animation, and button.
[0213] Among them, the size of the title in the top - level pop - up window is the same as that in the target pop - up window, which can be used as the third element; the text input box in the top - level pop - up window is an element not present in the target pop - up window, and this text input box needs to be deleted. At the same time, the text view and the loading animation in the target pop - up window are elements not present in the top - level pop - up window, and a text view and a loading animation need to be added to the top - level pop - up window. Then, the determined first elements include: the text input box, the text view, and the loading animation; the sizes of the buttons in the top - level pop - up window and the target pop - up window are different, and the size of the button in the top - level pop - up window needs to be adjusted to the size of the button in the target pop - up window. Then, the determined second element includes: the button.
[0214] After determining the first element and the second element, modify the first element, the second element and their corresponding contents in combination with the pop - up window information of the target pop - up window to obtain the top - level pop - up window as shown in Figure 15 The top - level pop - up window displays the pop - up window interface and the pop - up window content of the target pop - up window.
[0215] It should be noted that, in some embodiments, the above - mentioned display method can be applied to the window display scenario, that is, the pop - up window display request can also be a display request for the target window of the application. At this time, in the case of the existence of the top - level window, the top - level window can be reused to obtain the target window, so as to display the window content corresponding to the target window on the display. Each specific implementation detail can be set according to the actual application scenario requirements and will not be elaborated here one by one.
[0216] Corresponding to the display method described in the above - mentioned embodiments, Figure 16 The structural block diagram of the display device provided by the embodiment of the present application is shown. For the sake of convenience of description, only the parts related to the embodiment of the present application are shown.
[0217] Referring to Figure 16 , the device includes: an acquisition module 1610 and a reuse module 1620. Among them,
[0218] The acquisition module 1610 is used to acquire a pop - up window display request for requesting the display of the target pop - up window.
[0219] The reuse module 1620 is used to reuse the above - mentioned top - level pop - up window in the case of the existence of the top - level pop - up window to display the pop - up window content corresponding to the above - mentioned target pop - up window on the display, and the above - mentioned top - level pop - up window is the pop - up window currently displayed on the above - mentioned display.
[0220] The creation module 1630 is used to create the above - mentioned target pop - up window in the case of the non - existence of the above - mentioned top - level pop - up window, and set the entry animation of the above - mentioned target pop - up window to display the pop - up window content corresponding to the above - mentioned target pop - up window on the above - mentioned display.
[0221] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiments of the present application, for their specific functions and the technical effects brought about, reference can be specifically made to the method embodiment section, and details will not be repeated here.
[0222] The embodiments of the present application further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a controller, the steps in the above-mentioned method embodiments can be implemented.
[0223] The embodiments of the present application provide a computer program product. When the computer program product runs on a display device, it enables the controller to execute the steps in the display methods described in the above-mentioned embodiments.
[0224] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-mentioned method embodiments of the present application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0225] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0226] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0227] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0228] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0229] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A display device, characterized in that: include: a display configured to display a user interface; A controller connected to the display is configured to: Obtain a pop-up window display request for requesting to display a target pop-up window; In the case where a top-level pop-up window exists, the top-level pop-up window is reused to obtain a target pop-up window, so as to display the pop-up window content corresponding to the target pop-up window on the display, wherein the top-level pop-up window is the pop-up window currently displayed on the display; In the case where the top-level pop-up window does not exist, the target pop-up window is created, and an entry animation of the target pop-up window is set to display the pop-up window content corresponding to the target pop-up window on the display.
2. The display device according to claim 1, characterized in that The controller executes the step of reusing the top-level pop-up window to obtain the target pop-up window when there is a top-level pop-up window, so as to be configured as follows when the display displays the pop-up window content corresponding to the target pop-up window: If the top-level pop-up window exists and the first application is the same as the second application, the pop-up window content corresponding to the target pop-up window is displayed in the top-level pop-up window, the first application is the application corresponding to the top-level pop-up window, and the second application is the application corresponding to the pop-up window display request; When the top-level pop-up window exists and the first application is different from the second application, the pop-up window parameters of the top-level pop-up window are reused to create the target pop-up window, and the entry animation of the target pop-up window is set to display the pop-up window content corresponding to the target pop-up window on the display.
3. The display device according to claim 2, characterized in that Each application in the display device is correspondingly configured with an application pop-up window manager for managing the pop-up window service of the corresponding application; the controller is further configured to: In the case where the target application pop-up window manager obtains the pop-up window display request, determining whether the second application currently has a pop-up window based on the target application pop-up window manager, the target application pop-up window manager being the pop-up window service manager corresponding to the second application; In a case where a pop-up window currently exists in the second application, it is determined that the top-level pop-up window exists and the first application is the same as the second application.
4. The display device according to claim 3, characterized in that The controller is further configured with a system pop-up window manager for managing pop-up window information of each application in the display device, and the controller is further configured to: In the case that no pop-up window currently exists in the second application, querying whether the top-level pop-up window currently exists based on the system pop-up window manager; When it is determined that the top-level pop-up window exists, it is determined that the top-level pop-up window exists and the first application is different from the second application.
5. The display device according to claim 4, characterized in that The controller is also configured to: When it is determined that the second application has lost focus, and based on the system pop-up window manager determining that there is a pop-up window to be displayed, the target application pop-up window manager is triggered to perform a pop-up window adjustment operation, wherein the pop-up window to be displayed includes the top-level pop-up window whose pop-up window parameters are reused, or the pop-up window to be displayed includes a pop-up window that was being displayed when the currently focused application lost focus last time, and the pop-up window adjustment operation includes: According to the pop-up window parameters of the pop-up window to be displayed, the pop-up window currently displayed by the second application is adjusted, and the adjusted pop-up window is hidden or destroyed, so that the display range of the adjusted pop-up window covers the display range of the pop-up window to be displayed, and then the pop-up window to be displayed is displayed.
6. The display device according to claim 1, characterized in that When the controller executes the step of reusing the top-level pop-up window to obtain the target pop-up window when there is a top-level pop-up window, the controller is configured as follows: When the top-level pop-up window exists and the pop-up window display request includes a reuse instruction, the top-level pop-up window is reused to obtain the target pop-up window, and the reuse instruction is used to instruct the controller to reuse the top-level pop-up window to display the pop-up window content corresponding to the target pop-up window.
7. The display device according to claim 6, characterized in that The multiplexing instruction includes a multiplexing type, and the controller is further configured to: When the multiplexing type to which the multiplexing instruction belongs is multiplexing and a close notification for the target pop-up window is received, restoring the top-level pop-up window to display the pop-up window content corresponding to the top-level pop-up window on the display; When the reuse type to which the reuse instruction belongs is replacement and the close notification is received, the top-level pop-up window is destroyed.
8. The display device according to any one of claims 1, 6 or 7, characterized in that: When the controller executes the multiplexing of the top-level pop-up window to obtain the target pop-up window, the controller is configured as follows: Obtaining pop-up window information of the top-level pop-up window, wherein the pop-up window information at least includes pop-up window content corresponding to the pop-up window; The top-level pop-up window is adjusted according to the difference between the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window, so as to display the pop-up window content corresponding to the target pop-up window on the display.
9. The display device according to claim 8, characterized in that The pop-up window information includes the size of the element in the pop-up window and the content of the element. When the controller performs the step of adjusting the top-level pop-up window according to the difference between the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window, the controller is configured as follows: Determining a first element and a second element according to a difference between the pop-up window information of the top-level pop-up window and the pop-up window information of the target pop-up window, wherein the first element includes elements to be deleted and / or added in the top-level pop-up window, and the second element includes elements to be resized in the top-level pop-up window; The first element and the second element are adjusted, wherein the adjustment of the first element includes adding a transparency animation to the first element and modifying the content of the first element, and adding a scaling animation to the second element and modifying the content of the second element.
10. A display method for a display device, characterized in that: include: Obtain a pop-up window display request for requesting to display a target pop-up window; In the case where a top-level pop-up window exists, the top-level pop-up window is reused to obtain a target pop-up window, so as to display the pop-up window content corresponding to the target pop-up window on the display, wherein the top-level pop-up window is the pop-up window currently displayed on the display; In the case where the top-level pop-up window does not exist, the target pop-up window is created, and an entry animation of the target pop-up window is set to display the pop-up window content corresponding to the target pop-up window on the display.
Citation Information
Cited By
Program running method and device, terminal equipment and computer readable storage medium
CN121579087A