Interface display method and device, terminal and storage medium
By registering the target activities of transparent themes in the application list file of the application, unified management of small windows inside and outside the end is achieved, solving the problems of single and difficult development of small windows in the existing technology, and improving the display efficiency and development efficiency of small windows.
Patent Information
- Application Number
- CN202311595710.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
The existing application window function supports a relatively single window mode, and the floating window permissions need to be applied for during the implementation of the window, which makes it difficult to develop the application.
By registering the target activity for transparent topics in the application manifest file of the target application, the target activity is displayed on the upper layer of other activities and keeping the background transparent, thereby creating a target window containing the currently displayed content in the in-end window mode and the out-end window mode and displaying it on the upper layer of the second interface.
Supports multiple small window modes, which reduces the difficulty of application development, improves the display efficiency of small windows, and avoids the problem of repeatedly developing and maintaining similar functions in different small window modes.
Smart Images

Figure CN120045094A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technologies, specifically to the field of computer technologies, and particularly to an interface display method, apparatus, terminal, and storage medium. Background Art
[0002] With the development of computer technologies, the application small window function has been proposed. The so-called application small window function is a practical multitasking method that allows users to run and view multiple applications simultaneously on the same display screen. Currently, the application small window function usually only supports off-screen small windows (a window used to display an application after the application is switched to the background), and the existing off-screen small windows are implemented by applying for floating window permissions and then adding a floating window at the lower right corner of the display screen based on these floating window permissions. It can be seen that the small window modes supported by the existing application small window function are relatively single, and in the process of implementing small windows, it is necessary to apply for floating window permissions, which will increase the development difficulty of applications. Summary of the Invention
[0003] Embodiments of this application provide an interface display method, apparatus, terminal, and storage medium, which can support multiple small window modes, reduce the development difficulty of applications, and improve the display efficiency of small windows.
[0004] On the one hand, embodiments of this application provide an interface display method, and the method includes:
[0005] Display a first interface in a target application, where a target activity with a transparent theme is registered in the application manifest file corresponding to the target application, and the transparent theme enables the target activity to be displayed above other activities and keep the background transparent; where an activity is an interface;
[0006] Respond to an interface switching operation for the first interface, switch from the first interface to a second interface, and determine the target small window mode currently triggered; where after switching to the second interface, if the target application remains in the foreground, the target small window mode is the in-screen small window mode, and if the target application enters the background, the target small window mode is the off-screen small window mode;
[0007] In the target small window mode, create a target window containing the current display content of the first interface using the target activity, and display the target window above the second interface.
[0008] On the other hand, embodiments of this application provide an interface display apparatus, and the apparatus includes:
[0009] A display unit for displaying a first interface within a target application, where a target activity with a transparent theme is registered in the application manifest file corresponding to the target application, and the transparent theme enables the target activity to be displayed on top of other activities and keep the background transparent; where an activity is an interface.
[0010] A processing unit for responding to an interface switching operation for the first interface, switching from the first interface to a second interface, and determining the currently triggered target small window mode; where after switching to the second interface, if the target application remains in the foreground, the target small window mode is the in-terminal small window mode, and if the target application enters the background, the target small window mode is the out-of-terminal small window mode.
[0011] The processing unit is further configured to, in the target small window mode, create a target window containing the currently displayed content of the first interface by using the target activity.
[0012] The display unit is further configured to display the target window on top of the second interface.
[0013] On the other hand, an embodiment of the present application provides a terminal, the terminal includes an input interface and an output interface, and the terminal further includes:
[0014] A processor and a computer storage medium;
[0015] Wherein, the processor is adapted to implement one or more instructions, the computer storage medium stores one or more instructions, and the one or more instructions are adapted to be loaded and executed by the processor to perform the above-mentioned interface display method.
[0016] On the other hand, an embodiment of the present application provides a computer storage medium, the computer storage medium stores one or more instructions, and the one or more instructions are adapted to be loaded and executed by a processor to perform the above-mentioned interface display method.
[0017] On the other hand, an embodiment of the present application provides a computer program product, the computer program product includes one or more instructions; when the one or more instructions in the computer program product are executed by a processor, the above-mentioned interface display method is implemented.
[0018] In the embodiments of the present application, a target activity with a transparent theme can be pre-registered in the application manifest file corresponding to the target application, so that the target activity can be displayed above other activities and maintain a transparent background. As a result, after switching from the first interface in the target application to the second interface, in the in-terminal small window mode or the out-of-terminal small window mode, the target activity can be used to create a target window containing the current display content of the first interface, and the target window can be displayed above the second interface. It can be seen that the embodiments of the present application can support multiple small window modes, and in the process of implementing small windows, no additional system permissions need to be applied, which can effectively reduce the development difficulty of the application and simplify the usage process of the application, improving the display efficiency of small windows. Moreover, by using a single activity to implement in-terminal and out-of-terminal small windows, not only can it ensure that the same set of code and the same style are used for different small window modes, thus ensuring the unified maintenance of in-terminal and out-of-terminal small windows; it can also avoid the problem of repeated development and maintenance of similar functions in different small window modes, which can reduce the workload of application developers and improve the development efficiency of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0020] Figure 1a is a schematic diagram of an in-terminal small window and an out-of-terminal small window provided by an embodiment of the present application;
[0021] Figure 1b is a logical schematic diagram of an interface display solution jointly executed by a terminal and a server provided by an embodiment of the present application;
[0022] Figure 1c is a schematic diagram of displaying a target window above a second interface provided by an embodiment of the present application;
[0023] Figure 2 is a flowchart of an interface display method provided by an embodiment of the present application;
[0024] Figure 3 is a flowchart of setting the picture-in-picture mode provided by an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of moving a basic window out of the display screen provided by an embodiment of the present application;
[0026] Figure 5 is a flowchart of implementing an in-terminal small window provided by an embodiment of the present application;
[0027] Figure 6 It is a schematic structural diagram of an interface display device provided by an embodiment of the present application;
[0028] Figure 7 It is a schematic structural diagram of a terminal provided by an embodiment of the present application. Specific embodiments
[0029] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.
[0030] For the target application program, an embodiment of the present application proposes an interface display solution; this solution can not only support various small window modes such as in-terminal small window mode and out-of-terminal small window mode, but also reduce the development difficulty of the target application program and improve the display efficiency of the small window. Among them, the target application program mentioned here can be any type of application program (APP) running based on the target operating system, such as social application programs, game application programs, information browsing application programs, content sharing application programs, audio and video application programs, shopping application programs, live broadcast application programs, or payment application programs, etc. The target operating system mentioned here refers to: an operating system with multitasking capabilities and supporting the small window function of application programs; for example, the target operating system can be the Android system (Android system), the IOS system (mobile operating system), etc. For the convenience of description, the Android system will be taken as an example for subsequent description.
[0031] Among them, the in-terminal small window mode refers to the mode for displaying the in-terminal small window, and the out-of-terminal small window mode refers to the mode for displaying the out-of-terminal small window. The so-called in-terminal means that the application program is running in the foreground (when any interface in the application program is displayed, the way to run the application program), that is, the user is inside the application program (the user is using the application program); the so-called out-of-terminal means that the application program is running in the background (when any interface in the application program is not displayed, the way to run the application program), that is, the user is outside the application program. Based on this, the in-terminal small window refers to: when the application program is running in the foreground, a small window used to display the display content in a certain interface in the application program; the out-of-terminal small window refers to: when the application program is running in the background, a small window used to display the display content in a certain interface in the application program. Further, the so-called small window is a window displayed on the display screen and with a size smaller than the screen size, which can be used to display the content displayed on the interface in the application program in a reduced size; in other words, the interface in the application program can be automatically reduced to a certain position on the display screen (such as the lower right corner) in some scenarios, and the interface in the reduced state can be considered as the small window of the application program. Exemplarily, taking a game application program as an example, the in-terminal small window and the out-of-terminal small window can be respectively referred to Figure 1aas shown in the left and right figures therein.
[0032] Specifically, the general principle of the interface display solution proposed in the embodiments of the present application is as follows: register a target activity with a transparent theme in the application manifest file corresponding to the target application in advance, so that the target activity can be displayed on top of other activities and keep the background transparent based on this transparent theme; the so-called activity refers to the activity in the target operating system, that is, the interface, that is, an activity is an interface. In practical applications, during the process of the target application running in the foreground, the first interface in the target application can be displayed. If an interface switching operation for the first interface is detected, then it can be switched from the first interface to the second interface according to this interface switching operation and the target small window mode is triggered; among them, after switching to the second interface, if the target application remains running in the foreground, the triggered target small window mode is the in-terminal small window mode, and if the target application enters the background running, the triggered target small window mode is the out-terminal small window mode. Then, in the triggered target small window mode, a target window containing the current display content of the first interface can be created using the target activity, and the target window can be displayed on top of the second interface.
[0033] In specific implementation, the above interface display solution can be executed by the terminal where the target application is located; or, it can also be jointly executed by the terminal where the target application is located and the server, and this is not limited. For example, in the case where the terminal and the server jointly execute this interface display solution, see Figure 1b as shown: the terminal can be responsible for registering the target activity with the transparent theme, and for displaying the first interface in the target application, and according to the interface switching operation for the first interface, switching from the first interface to the second interface and triggering the target small window mode, and sending the indication information of the target small window mode and the current display content of the first interface to the server, and the server creates a target window containing the current display content of the first interface using the target activity in the target small window mode according to the received information, and sends the target window to the terminal, so that the terminal displays the target window on top of the second interface, as Figure 1c shown.
[0034] Among them, the aforementioned terminal can be a smart phone, a computer (such as a tablet computer, a notebook computer, a desktop computer, etc.), a smart wearable device (such as a smart watch, smart glasses), a smart voice interaction device, a smart home appliance (such as a smart TV), a vehicle-mounted terminal or an aircraft, etc. In addition, the aforementioned server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, etc. Further, the terminal and the server can be located inside or outside the blockchain network, and there is no limitation on this; furthermore, the terminal and the server can also upload any data stored internally to the blockchain network for storage to prevent the data stored internally from being tampered with and improve data security.
[0035] Based on the above, the interface display solution proposed in the embodiment of this application can make full use of the characteristics of the target operating system (such as the Android system). By combining the in-terminal small window and the out-terminal small window, a smart small window function is provided. This smart small window function can automatically switch between the in-terminal small window and the out-terminal small window according to the user's interface switching operation and the running state (operation mode) of the target application. When the user performs an interface switching operation within the same application, the in-terminal small window can be used to display the display content of the corresponding interface to provide a smooth user experience; when the user performs an interface switching operation between different applications, it can be automatically switched to the out-terminal small window, and the out-terminal small window is used to display the display content of the corresponding interface to ensure that the out-terminal small window is always visible. Such an interface display method not only gives full play to the multitasking processing ability of the target operating system, but also supports multiple small window modes, avoiding the limitations of a single small window mode; and in the process of implementing the small window, there is no need to apply for any additional system permissions, which can effectively reduce the development difficulty of the application and simplify the use process of the application, improving the display efficiency of the small window. In addition, in the case of providing multiple small window modes, by using a single activity to implement the in-terminal and out-terminal small windows, not only can it ensure that the same set of code and the same style are used for different small window modes, thus ensuring the unified maintenance of the in-terminal and out-terminal small windows and providing a more consistent and smooth user experience for users, which helps to improve the overall quality of the application; it can also avoid the problem of repeated development and maintenance of similar functions in different small window modes, which can reduce the workload of application developers and improve the development efficiency of the application.
[0036] Furthermore, to further optimize the user experience of the target activity, the interface display solution proposed in the embodiments of this application can also implement the following functions: (a) Automatically switch between the in-app small window mode and the out-of-app small window mode. Intelligently switch between the in-app small window mode and the out-of-app small window mode according to the user's operations and the status of the target application. (b) Provide personalized setting options that allow users to adjust parameters such as the size, position, and transparency of the small window according to their own needs and habits; this can further improve the user experience and make the small window function more in line with the actual needs of users. (c) Add gesture support to the small window. For example, adjust the position of the small window by swiping gestures or zoom in and out of the small window by pinching gestures. This will enable users to operate and adjust the small window more conveniently and improve the usage efficiency. (d) Consider implementing real-time update and synchronization of the small window content. When the user switches between the in-app small window and the out-of-app small window, ensure that the content of the small window always remains up-to-date, which can avoid the problem of inconsistent content when the user switches modes and improve the usage experience. (e) Optimize the performance and resource consumption of the small window. During the development process, pay attention to the resource consumption of the small window function by the system, and try to reduce the consumption of memory, CPU (Central Processing Unit), and battery. This helps to ensure that the small window function can run smoothly on various terminal devices and will not have a negative impact on other applications and device performance of the user.
[0037] Moreover, during the development and testing process, the following points can be noted to ensure the stability and compatibility of the small window function: (a) Conduct sufficient tests on different target operating system versions and terminal devices to ensure that the small window function can work properly in various environments, especially pay attention to the compatibility issues that may arise after the target operating system is upgraded, and perform adaptation and repair in a timely manner. (b) Follow the best practices for developing the target operating system, such as using recommended programming models, avoiding memory leaks, and handling issues such as screen rotation. This will help improve the stability and performance of the small window function. (c) Pay attention to user feedback and promptly repair any possible problems and defects. The usage scenarios and needs of users may be very diverse. By collecting and analyzing user feedback, problems that may be encountered during actual use can be discovered and solved.
[0038] In summary, the interface display solution for in - app small windows and out - of - app small windows achieved through a single activity proposed in the embodiments of this application makes full use of the characteristics of the target operating system, simplifies the development process, reduces the maintenance cost, and ensures the consistency of code and styles. At the same time, considering various factors such as user experience, performance, and compatibility, it provides a comprehensive and practical guidance for developers. Moreover, it also considers how to optimize performance and resource occupancy during the implementation process to ensure that the small window function can run smoothly on various devices, which helps to improve user satisfaction and increase the competitiveness of the application. Thus, it can be seen that the interface display solution proposed in the embodiments of this application has high practical value.
[0039] It is worth emphasizing that in the embodiments of this application, when related data such as user information (e.g., any operation performed by the user) is involved, when any method embodiment proposed in the embodiments of this application is applied to a specific product or technology, these related data are collected with the user's permission or consent, and the collection, use, and processing of the related data comply with the relevant laws, regulations, and standards of the relevant region.
[0040] Based on the above - mentioned related description of the interface display solution, the embodiments of this application propose an interface display method; in the embodiments of this application, the terminal where the target application is located is mainly used as an example to illustrate the execution of this interface display method. Please refer to Figure 2 As shown, this interface display method may include the following steps S201 - S204:
[0041] S201, display the first interface in the target application.
[0042] In a specific implementation, the terminal may run the target application in the foreground running mode based on the target operating system, and during the process of the target application running in the foreground, the first interface in the target application may be displayed; the first interface may be any interface in the target application. For example, the first interface may be the main interface of the target application (i.e., the interface that is default - displayed after starting the target application), or it may be an interface displayed according to the user's actual operation, and there is no limitation thereto.
[0043] The target application corresponds to an application manifest file, which can be understood as an interface manager (or activity manager), and can be used to manage each interface within the target application. In a specific implementation, a target activity can be created for the target application to implement the floating window interface and interaction; and in the application manifest file corresponding to the target application, the theme of the target activity is registered as a transparent theme, so that the target activity with the transparent theme is registered in the application manifest file corresponding to the target application. Here, the target activity is the activity used to implement the window, and the transparent theme can make the target activity display on top of other activities and keep the background transparent to achieve the floating window effect. This can facilitate the subsequent unified creation of in-terminal floating windows or out-terminal floating windows based on this target activity, so as to enable the target application to support multiple floating window modes such as in-terminal floating window mode and out-terminal floating window mode at the same time.
[0044] Furthermore, in order to ensure the same style is used between the out-terminal floating window and the in-terminal floating window, an interface floating window can also be designed and implemented in the target activity according to the characteristics and requirements of the target operating system. The designed interface floating window can be simple and easy to use, and at the same time include necessary control buttons (i.e., the control buttons that need to be included in the window implemented by the target activity), such as a close button and a full-screen button. The close button is used to destroy the corresponding window, and the full-screen button is used to reset the dimensions such as the width and height of the corresponding window to restore it to full-screen display. That is to say, the terminal can design the window according to the characteristics of the target operating system in the target activity to obtain window design information, and this window design information can be used to indicate: the control buttons that need to be included in the window implemented by the target activity. Then, in the application manifest file, the target activity and the window design information can be associated, so that when creating a target window using the target activity subsequently, the created target window can include the corresponding control buttons based on this window design information.
[0045] Optionally, during the window design process, the layouts and controls provided by the characteristics of the target operating system can be considered to achieve flexible layouts and high performance. And, in order to achieve a better user experience, the window display transition animation and the window hiding transition animation can also be considered to be set in the window design information, so that after creating the target window subsequently, the target window can be displayed based on this window display transition animation, and when the target window needs to be hidden, the target window can be hidden based on the window hiding transition animation, so as to make the display and hiding process of the window smoother and more natural.
[0046] Further, the target application runs based on a target operating system that can provide a Picture-in-Picture (PiP) mode. The so-called PiP mode refers to a mode in which at least two screens can be displayed on the same display screen. Based on this, in order to implement the off-screen small window function, in the application manifest file corresponding to the target application, the PiP mode of the target operating system can also be set for the target activity (such as Figure 3 shown) to indicate that the target activity supports the PiP mode of the target operating system, so that based on this PiP mode, the target activity can be allowed to be displayed in the form of a small window on the interface of other applications, so that the off-screen small window function can be implemented without applying for any additional system permissions.
[0047] S202: Respond to the interface switching operation for the first interface, switch from the first interface to the second interface, and determine the currently triggered target small window mode.
[0048] Among them, the interface switching operation can be an operation to switch the interface within the target application. In this case, the second interface switched to according to this interface switching operation is an interface different from the first interface within the target application. Or, the interface switching operation can also be an operation to switch the interface between the target application and other applications (such as third-party applications or terminal system programs). In this case, the second interface switched to according to this interface switching operation is an interface outside the target application, such as it can be an interface within other applications or the terminal desktop interface, etc.
[0049] Further, if the second interface is an interface within the target application other than the first interface, after switching from the first interface to the second interface, the target application remains in the foreground. In this case, the currently triggered target small window mode is the in-screen small window mode. If the second interface is an interface outside the target application, after switching from the first interface to the second interface, the target application enters the background. Then, in this case, the currently triggered target small window mode is the off-screen small window mode.
[0050] S203: In the target small window mode, use the target activity to create a target window containing the current display content of the first interface. The current display content of the first interface refers to the content displayed within the first interface when switching from the first interface to the second interface.
[0051] In a specific implementation, if the target small window mode is the off-screen small window mode, as described above, the off-screen small window function can be implemented based on the picture-in-picture mode provided by the target operating system. Based on this, when executing step S203, the terminal can, in the off-screen small window mode, search for the picture-in-picture mode set for the target activity in the application manifest file; then, based on the found picture-in-picture mode, create a target window containing the currently displayed content in the first interface using the target activity. In this case, the created target window is the off-screen small window. It can be understood that since the picture-in-picture mode is provided by the target operating system, the specific implementation logic for creating the target window using the target activity based on the picture-in-picture mode can be determined by the target operating system, and this application embodiment does not limit it. Exemplarily, a feasible implementation logic can be: filling the currently displayed content in the first interface into the target activity to obtain the filled target activity, and then performing a small window conversion on the filled target activity based on the found picture-in-picture mode to obtain the target window.
[0052] In another specific implementation, if the target small window mode is the in-screen small window mode, since the key to implementing the in-screen small window function lies in appropriately setting and adjusting the window of the target activity, when executing step S203, the terminal can, in the in-screen small window mode, first obtain the basic window corresponding to the target activity, and this basic window is a window that does not contain any displayed content. Specifically, the obtaining of this basic window can be achieved through the window manager method; and this basic window can be synchronously created when creating the target activity, can also be created when registering the target activity in the application manifest file corresponding to the target application program, or can also be created in real time when executing step S203, and this is not limited. After obtaining the basic window, the terminal can display the currently displayed content of the first interface on the basic window and add control buttons to the basic window according to the window design information associated with the target activity to obtain the target window.
[0053] It should be noted that the above-mentioned "display on the screen" can be understood as rendering and displaying; that is, displaying the currently displayed content on the basic window can be understood as: rendering and displaying the currently displayed content in the basic window. In the specific implementation process, the terminal can, based on the drawing method of the view tree, display all or part of the content (such as key content) in the currently displayed content on the basic window. Additionally, if the window design information associated with the target activity is not recorded in the application manifest file corresponding to the target application program, the terminal can skip the step of adding control buttons to the basic window; in this case, after displaying the currently displayed content of the first interface on the basic window, the target window can be obtained.
[0054] Further, before the current display content of the first interface is projected onto the basic window, the attributes of the basic window can be set to non-touchable, so as to avoid any events being consumed by the small window of this interface on the basic window, and ensure that the user can interact with other activities in the target application normally in the in-terminal small window mode. After the current display content is projected, the attributes of the basic window can be reset so that the reset attributes are touchable attributes, so that after the target window is obtained based on the basic window subsequently, the attributes of the target window are touchable attributes, so that the user can implement corresponding functions by touching the corresponding control buttons in the target window. Among them, as can be seen from the foregoing, the terminal can project the current display content based on the drawing method of the view tree; based on this, the terminal can determine whether the current display content is projected by monitoring the drawing state of the view tree, and the drawing state of the view tree can be monitored by using the global layout monitor of the view tree observer.
[0055] In addition, if the basic window is within the display screen, after the basic window is obtained, the basic window can be moved out of the display screen so that the basic window is invisible in the in-terminal small window mode; and after the basic window is moved out of the display screen, the step of projecting the current display content of the first interface onto the basic window is triggered to be executed, and after the current display content is projected, the basic window is moved back to the display screen. In this way, the projection process of the current display content can be hidden, and the problem of abnormal display on the display screen caused by performing the projection operation within the display screen can be avoided.
[0056] Among them, the method of moving the basic window out of the display screen can be: determining the root layout view of the basic window and the screen width of the display screen, and the screen width is parallel to the target coordinate axis in the preset coordinate system, so as to translate the root layout view of the basic window along the direction indicated by the target coordinate axis by a distance equal to the screen width to move the basic window out of the display screen. Among them, ① the root layout view refers to the outermost layout view among at least one layer of layout views involved in the basic window; or in other words, the root layout view is the basic view used to implement the basic window, and each element in the basic window needs to be drawn based on this basic view. ② The preset coordinate system refers to the coordinate system established based on a preset point (such as the lower left corner) in the display screen, and the target coordinate axis can be the X axis (horizontal axis) in this preset coordinate system. Exemplarily, the schematic diagram of moving the basic window out of the display screen in this way can be seen in Figure 4 shown. Optionally, the method of moving the basic window out of the display screen can also be: determining the root layout view of the basic window and the screen height of the display screen, and the screen height is parallel to another coordinate axis (Y axis (vertical axis)) in the preset coordinate system, so as to translate the root layout view of the basic window along the direction indicated by the other coordinate axis by a distance equal to the screen height to move the basic window out of the display screen.
[0057] In addition, the terminal can also reset the window size (i.e., window width and window height) of the basic window according to the screen size (i.e., screen width and screen height) of the display screen and a preset ratio, so that the ratio between the reset window size and the screen size is the preset ratio. This can achieve the adaptive size of the in-terminal small window (i.e., the target window) obtained based on this basic window, adapting to terminal devices with different screen sizes. Moreover, the terminal can also set the display position of the basic window in the display screen to a specified position in the display screen (such as the lower right corner), so as to set the display position of the target window to the specified position in the display screen, facilitating the user to quickly find and operate the corresponding window.
[0058] Based on the above, the embodiments of this application support a series of operations on the basic window, such as attribute setting, moving (such as translating the root layout view to make the basic window invisible), content uploading, window size adjustment, control button addition (such as adding a close button and a full screen button). It should be noted that the embodiments of this application do not limit the execution order of these operations. For example, as shown in Figure 5 it is possible to perform the following operations in sequence: (a) Set the attribute of the basic window to non-touchable; (b) Translate the root layout view of the basic window by the distance of the screen width on the x-axis, so that the basic window is default invisible in the in-terminal small window mode, avoiding interfering with the user's interaction with other activities; (c) Upload the current display content to the basic window; (d) After all views (i.e., the current display content) are uploaded, reset the attribute of the basic window and the position of the root layout view, so that the reset attribute is a touchable attribute, and the reset position makes the basic window located within the display screen; (e) Reset the window size (i.e., width and height) of the basic window to be proportional to the width and height of the screen; (f) In the in-terminal small window mode, add a close button and a full screen button to make their functions consistent with the system picture-in-picture mode.
[0059] S204, display the target window on the upper layer of the second interface.
[0060] In specific implementation, the target window can be directly displayed on the upper layer of the second interface. Or, if the window design information in the application manifest file includes a window display transition animation, the terminal can first play this window display transition animation on the upper layer of the second interface, and then display the target window on the upper layer of the second interface after the animation ends, so as to achieve the transition display effect of the target window. It should be emphasized that the terminal can update the display content in the target window in real time according to the content update situation of the first interface, so that the content displayed in the target window is updated synchronously with the content update of the first interface.
[0061] Optionally, after the terminal displays the target window, it can also support the user to adjust the form of the target window according to their own needs and habits. Correspondingly, the terminal can respond to the form adjustment operation for the target window and adjust the display form of the target window according to the form adjustment operation. The display form can include at least one of the following: display position, window size, and transparency. In one implementation, the terminal can provide personalized setting options in the target window, enabling the user to adjust the display form of the target window by operating the personalized setting options. Specifically, the user can perform a trigger operation on the personalized setting options, causing the terminal to output a personalized setting interface, which may include at least one of the following options: multiple display position options, multiple window size options, and multiple transparency options. Correspondingly, the user can select at least one option in the personalized setting interface, and the terminal can use the option selection operation performed by the user as the form adjustment operation, thereby adjusting the display form of the target window according to the options selected by the user. In another implementation, the terminal can add gesture support in the target window, enabling the user to adjust the display form of the target window by inputting different gesture operations. Specifically, the user can input at least one gesture operation in the target window, and different gesture operations are used to adjust different display forms of the target window. For example, the display position of the target window can be adjusted by a swipe gesture operation, and the window size of the target window can be scaled by a pinch gesture operation, etc. Correspondingly, the terminal can use each gesture operation input by the user as the form adjustment operation, thereby adjusting the display form of the target window according to each gesture operation.
[0062] Optionally, after the terminal displays the target window, it can also support the user to perform a mode switching operation on the target small window mode to switch the target small window mode to another small window mode. Correspondingly, the terminal can respond to the mode switching operation for the target small window mode, switch from the target small window mode to another small window mode, and determine the target content displayed in the target window when the mode switching operation is detected. Among them, another small window mode refers to: among the in-terminal small window mode and the out-terminal small window mode, the small window mode other than the target small window mode. That is to say, if the target small window mode is the in-terminal small window mode, then another small window mode is the out-terminal small window mode; if the target small window mode is the out-terminal small window mode, then another small window mode is the in-terminal small window mode. Then, in another small window mode, a new window (i.e., the newly created window) containing the target content can be created using the target activity, and the new window can be used to replace the display of the target window (i.e., close the target window and display the new window).
[0063] It is understandable that the switching of the small window mode is usually caused by the interface switching between different application programs. Therefore, the above-mentioned mode switching operation can be an operation of switching from the second interface to the third interface. When the second interface is an interface within the target application program, the third interface refers to an interface outside the target application program. When the second interface is an interface outside the target application program, the third interface refers to an interface within the target application that is different from the first interface. Based on this, after detecting the mode switching operation, in addition to performing the switching operation of the small window mode, the terminal can also switch from the second interface to the third interface, so as to display a new window in the third interface subsequently.
[0064] In the embodiment of the present application, the target activity with a transparent theme can be registered in advance in the application manifest file corresponding to the target application program, so that the target activity can be displayed on the upper layer of other activities and keep the background transparent. Thus, after switching from the first interface within the target application program to the second interface, the target window containing the current display content of the first interface can be created by using the target activity in the in-terminal small window mode or the out-terminal small window mode, and the target window can be displayed on the upper layer of the second interface. It can be seen that the embodiment of the present application can support multiple small window modes and make full use of the characteristics of the target operating system (such as the picture-in-picture mode and the target activity with a transparent theme). In the process of implementing the small window, no additional system permissions need to be applied, which can effectively reduce the development difficulty of the application program and simplify the development and use process of the application program, reduce the concerns about user privacy, and improve the display efficiency of the small window. Moreover, by using a single activity to implement the in-terminal and out-terminal small windows, not only can it ensure that the same set of code and the same style are used for different small window modes, thus ensuring the unified maintenance of the in-terminal and out-terminal small windows, and making the target windows created in different small window modes have a consistent appearance and function, which will provide a more consistent and smooth experience for users and help improve the overall quality of the target application program; but also it can avoid the problem of repeated development and maintenance of similar functions in different small window modes, which can reduce the workload of application developers and improve the development efficiency of the application program.
[0065] Based on the description of the above embodiment of the interface display method, the embodiment of the present application also discloses an interface display device; the interface display device can be a computer program (including one or more instructions) running in a terminal, and the interface display device can execute each step in the above method process. Please refer to Figure 6 and the interface display device can run the following units:
[0066] A display unit 601, configured to display a first interface within a target application program, where a target activity with a transparent theme is registered in the application manifest file corresponding to the target application program, and the transparent theme enables the target activity to be displayed on the upper layer of other activities and keep the background transparent; where an activity is an interface.
[0067] A processing unit 602, configured to respond to an interface switching operation for the first interface, switch from the first interface to a second interface, and determine a currently triggered target small window mode; wherein, after switching to the second interface, if the target application remains running in the foreground, the target small window mode is an in-terminal small window mode, and if the target application enters the background, the target small window mode is an out-of-terminal small window mode;
[0068] The processing unit 602 is further configured to, in the target small window mode, create a target window including the current display content of the first interface by using the target activity;
[0069] The display unit 601 is further configured to display the target window on the upper layer of the second interface.
[0070] In one implementation, the processing unit 602 may further be configured to:
[0071] Create a target activity for the target application, where the target activity is an activity for implementing a window;
[0072] In the application manifest file corresponding to the target application, register the theme of the target activity as a transparent theme.
[0073] In another implementation, the target application runs based on a target operating system; correspondingly, the processing unit 602 may further be configured to:
[0074] In the target activity, perform window design according to the characteristics of the target operating system to obtain window design information; the window design information is used to indicate control buttons to be included in the window implemented by using the target activity;
[0075] In the application manifest file, associate the target activity with the window design information, so that when creating a target window by using the target activity, the created target window includes corresponding control buttons based on the window design information.
[0076] In another implementation, the target application runs based on a target operating system; correspondingly, the processing unit 602 may further be configured to:
[0077] In the application manifest file, set the picture-in-picture mode of the target operating system for the target activity;
[0078] Wherein, the picture-in-picture mode is used to allow the target activity to be displayed in a small window form on the interface of other applications.
[0079] In another implementation, the target small window mode is an out-of-terminal small window mode; correspondingly, when the processing unit 602 is used to create a target window including the current display content of the first interface in the target small window mode, it may specifically be used for:
[0080] In the out-of-terminal small window mode, in the application manifest file, search for the picture-in-picture mode set for the target activity;
[0081] Based on the found picture-in-picture mode, use the target activity to create a target window including the current display content in the first interface.
[0082] In another implementation, the target small window mode is an in-terminal small window mode; correspondingly, when the processing unit 602 is used to create a target window including the current display content of the first interface in the target small window mode, it may specifically be used for:
[0083] In the in-terminal small window mode, obtain the base window corresponding to the target activity, where the base window is a window that does not contain any display content;
[0084] Present the current display content of the first interface on the base window, and add control buttons to the base window according to the window design information associated with the target activity to obtain a target window.
[0085] In another implementation, the base window is located within the display screen; correspondingly, after obtaining the base window, the processing unit 602 may also be used for:
[0086] Move the base window out of the display screen so that the base window is in an invisible state in the in-terminal small window mode;
[0087] After the base window is moved out of the display screen, trigger the execution of the step of presenting the current display content of the first interface on the base window;
[0088] After the current display content is presented, move the base window back to the display screen.
[0089] In another implementation, when the processing unit 602 is used to move the base window out of the display screen, it may specifically be used for:
[0090] Determine the root layout view of the base window and the screen width of the display screen; where the screen width is parallel to the target coordinate axis in the preset coordinate system;
[0091] Translate the root layout view of the base window along the direction indicated by the target coordinate axis by a distance equal to the screen width, so as to move the base window out of the display screen.
[0092] In another implementation, before the current display content of the first interface is displayed on the base window, the processing unit 602 can also be used to:
[0093] Set the property of the base window to a non-touchable property;
[0094] After the current display content is displayed on the screen, reset the property of the base window, and the reset property is a touchable property.
[0095] In another implementation, the processing unit 602 can also be used to:
[0096] Reset the window size of the base window according to the screen size of the display screen and a preset ratio; wherein, the ratio between the reset window size and the screen size is the preset ratio;
[0097] And set the display position of the base window in the display screen to a specified position in the display screen.
[0098] In another implementation, after the target window is displayed, the processing unit 602 can also be used to:
[0099] In response to a form adjustment operation for the target window, adjust the display form of the target window according to the form adjustment operation;
[0100] Wherein, the display form includes at least one of the following: display position, window size, and transparency.
[0101] In another implementation, the content displayed in the target window is updated synchronously with the update of the content of the first interface; correspondingly, after the target window is displayed, the processing unit 602 can also be used to:
[0102] In response to a mode switching operation for the target small window mode, switch from the target small window mode to other small window modes, and determine the target content displayed in the target window when the mode switching operation is detected; wherein, the other small window modes refer to: among the in-terminal small window mode and the out-terminal small window mode, the small window modes other than the target small window mode;
[0103] In the other small window modes, create a new window containing the target content using the target activity, and replace the display of the target window with the new window.
[0104] According to another embodiment of the present application,Figure 6 Each unit in the interface display device shown can be separately or entirely combined into one or several other units to form, or a certain one (or some) of the units can be further split into multiple smaller units with more specific functions to form. This can achieve the same operations without affecting the realization of the technical effects of the embodiments of this application. The above units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of this application, based on the interface display device, other units may also be included. In practical applications, these functions can also be assisted by other units and can be realized through the cooperation of multiple units.
[0105] According to another embodiment of this application, it is possible to construct the interface display device as shown in Figure 6 by running a computer program (including one or more instructions) that can execute the respective steps involved in the corresponding method shown above on a general computing device such as a computer that includes processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM), and to implement the interface display method of the embodiments of this application. The computer program can be recorded on, for example, a computer-readable storage medium, loaded into the above computing device through the computer-readable storage medium, and run therein.
[0106] It is worth noting that in the embodiments of this application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other relevant parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can include a part of the overall module or unit with the function of that module or unit.
[0107] In the embodiments of the present application, a target activity with a transparent theme can be pre-registered in the application manifest file corresponding to the target application, so that the target activity can be displayed on top of other activities and maintain a transparent background. As a result, after switching from the first interface in the target application to the second interface, a target window containing the current display content of the first interface can be created using the target activity in the in-terminal small window mode or the out-of-terminal small window mode, and the target window can be displayed on top of the second interface. It can be seen that the embodiments of the present application can support multiple small window modes, and during the implementation of the small window, no additional system permissions need to be applied, which can effectively reduce the development difficulty of the application and simplify the usage process of the application, improving the display efficiency of the small window. Moreover, by using a single activity to implement in-terminal and out-of-terminal small windows, not only can it ensure that the same set of code and the same style are used for different small window modes, thus ensuring the unified maintenance of in-terminal and out-of-terminal small windows; it can also avoid the problem of repeated development and maintenance of similar functions in different small window modes, which can reduce the workload of application developers and improve the development efficiency of the application.
[0108] Based on the descriptions of the above method embodiments and apparatus embodiments, the embodiments of the present application further provide a terminal. Please refer to Figure 7 , the terminal at least includes a processor 701, an input interface 702, an output interface 703, and a computer storage medium 704. Among them, the processor 701, the input interface 702, the output interface 703, and the computer storage medium 704 in the terminal can be connected through a bus or other means. The computer storage medium 704 can be stored in the memory of the terminal. The computer storage medium 704 is used to store a computer program, and the computer program includes one or more instructions. The processor 701 is used to execute one or more instructions stored in the computer storage medium 704 of the computer program. The processor 701 (or CPU (Central Processing Unit, central processor)) is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0109] In one embodiment, the processor 701 described in the embodiments of the present application can be used to perform a series of interface display processes, specifically including: displaying a first interface within a target application, where a target activity with a transparent theme is registered in the application manifest file corresponding to the target application, and the transparent theme enables the target activity to be displayed on top of other activities and keep the background transparent; where an activity is an interface; responding to an interface switching operation for the first interface, switching from the first interface to a second interface, and determining the currently triggered target small window mode; where, after switching to the second interface, if the target application remains in the foreground, the target small window mode is an in-terminal small window mode, and if the target application enters the background, the target small window mode is an out-of-terminal small window mode; in the target small window mode, creating a target window containing the currently displayed content of the first interface using the target activity; and displaying the target window on top of the second interface, and so on.
[0110] The embodiments of the present application also provide a computer storage medium (Memory), which is a memory device in the terminal for storing computer programs and data. It can be understood that the computer storage medium here can include both the built-in storage medium in the terminal and, of course, the extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores the operating system of the terminal. And, a computer program is also stored in this storage space, and the computer program includes one or more instructions suitable for being loaded and executed by the processor 701, and these instructions can be one or more program codes. It should be noted that the computer storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory; optionally, it can also be at least one computer storage medium located far from the aforementioned processor.
[0111] In one embodiment, one or more instructions stored in the computer storage medium can be loaded and executed by the processor to implement the corresponding steps in the above-described interface display method embodiments; specifically, one or more instructions in the computer storage medium can be loaded and executed by the processor to perform the following steps:
[0112] Display a first interface within a target application, where a target activity with a transparent theme is registered in the application manifest file corresponding to the target application, and the transparent theme enables the target activity to be displayed on top of other activities and keep the background transparent; where an activity is an interface;
[0113] In response to an interface switching operation for the first interface, switch from the first interface to the second interface and determine the currently triggered target small window mode; wherein, after switching to the second interface, if the target application remains in the foreground, the target small window mode is the in-terminal small window mode, and if the target application enters the background, the target small window mode is the out-terminal small window mode;
[0114] In the target small window mode, use the target activity to create a target window that includes the current display content of the first interface;
[0115] Display the target window on top of the second interface.
[0116] In one implementation, the one or more instructions can be loaded and specifically executed by a processor:
[0117] Create a target activity for the target application, where the target activity is an activity for implementing a window;
[0118] In the application manifest file corresponding to the target application, register the theme of the target activity as a transparent theme.
[0119] In another implementation, the target application runs based on a target operating system; correspondingly, the one or more instructions can be loaded and specifically executed by a processor:
[0120] In the target activity, perform window design according to the characteristics of the target operating system to obtain window design information; the window design information is used to indicate the control buttons that need to be included in the window implemented using the target activity;
[0121] In the application manifest file, associate the target activity with the window design information so that when creating a target window using the target activity, the created target window includes the corresponding control buttons based on the window design information.
[0122] In another implementation, the target application runs based on a target operating system; correspondingly, the one or more instructions can be loaded and specifically executed by a processor:
[0123] In the application manifest file, set the picture-in-picture mode of the target operating system for the target activity;
[0124] Wherein, the picture-in-picture mode is used to allow the target activity to be displayed in a small window on the interface of other applications.
[0125] In another implementation, the target small window mode is the out-of-terminal small window mode; correspondingly, when creating a target window that includes the current display content of the first interface in the target small window mode, the one or more instructions can be loaded and specifically executed by a processor:
[0126] In the out-of-terminal small window mode, in the application manifest file, search for the picture-in-picture mode set for the target activity;
[0127] Based on the found picture-in-picture mode, use the target activity to create a target window that includes the current display content in the first interface.
[0128] In another implementation, the target small window mode is the in-terminal small window mode; correspondingly, when creating a target window that includes the current display content of the first interface in the target small window mode, the one or more instructions can be loaded and specifically executed by a processor:
[0129] In the in-terminal small window mode, obtain the basic window corresponding to the target activity, where the basic window is a window that does not contain any display content;
[0130] Display the current display content of the first interface on the basic window, and add control buttons to the basic window according to the window design information associated with the target activity to obtain a target window.
[0131] In another implementation, the basic window is located within the display screen; correspondingly, after obtaining the basic window, the one or more instructions can be loaded and specifically executed by a processor:
[0132] Move the basic window out of the display screen so that the basic window is in an invisible state in the in-terminal small window mode;
[0133] After the basic window is moved out of the display screen, trigger the execution of the step of displaying the current display content of the first interface on the basic window;
[0134] After the current display content is displayed, move the basic window back to the display screen.
[0135] In another implementation, when moving the basic window out of the display screen, the one or more instructions can be loaded and specifically executed by a processor:
[0136] Determine the root layout view of the basic window and the screen width of the display screen; where the screen width is parallel to the target coordinate axis in the preset coordinate system;
[0137] Translate the root layout view of the base window along the direction indicated by the target coordinate axis by a distance equal to the screen width, so as to move the base window out of the display screen.
[0138] In another implementation, before the current display content of the first interface is loaded onto the base window, the one or more instructions can be loaded and specifically executed by the processor:
[0139] Set the property of the base window to non-touchable;
[0140] After the current display content is loaded, reset the property of the base window, and the reset property is touchable.
[0141] In another implementation, the one or more instructions can be loaded and specifically executed by the processor:
[0142] According to the screen size of the display screen and a preset ratio, reset the window size of the base window; wherein, the ratio between the reset window size and the screen size is the preset ratio;
[0143] And set the display position of the base window in the display screen to a specified position in the display screen.
[0144] In another implementation, after the target window is displayed, the one or more instructions can be loaded and specifically executed by the processor:
[0145] In response to a morphological adjustment operation on the target window, adjust the display morphology of the target window according to the morphological adjustment operation;
[0146] Wherein, the display morphology includes at least one of the following: display position, window size, and transparency.
[0147] In another implementation, the content displayed in the target window is updated synchronously with the update of the content of the first interface; correspondingly, after the target window is displayed, the one or more instructions can be loaded and specifically executed by the processor:
[0148] In response to a mode switching operation for the target small window mode, switch from the target small window mode to another small window mode, and determine the target content displayed in the target window when the mode switching operation is detected; wherein, the other small window mode refers to: among the in-terminal small window mode and the out-terminal small window mode, the small window mode other than the target small window mode;
[0149] In the other small window mode, create a new window containing the target content using the target activity, and replace the display of the target window with the new window.
[0150] In the embodiments of the present application, the target activity with a transparent theme can be pre-registered in the application manifest file corresponding to the target application, so that the target activity can be displayed above other activities and keep the background transparent. As a result, after switching from the first interface in the target application to the second interface, in the in-terminal small window mode or the out-of-terminal small window mode, the target activity can be used to create a target window containing the current display content of the first interface, and the target window can be displayed above the second interface. It can be seen that the embodiments of the present application can support multiple small window modes, and in the process of implementing small windows, no additional system permissions need to be applied, which can effectively reduce the development difficulty of the application and simplify the use process of the application, and improve the display efficiency of small windows. Moreover, by using a single activity to implement in-terminal and out-of-terminal small windows, not only can it ensure that the same set of code and the same style are used for different small window modes, thus ensuring the unified maintenance of in-terminal and out-of-terminal small windows; it can also avoid the problem of repeated development and maintenance of similar functions in different small window modes, which can reduce the workload of application developers and improve the development efficiency of the application.
[0151] It should be noted that according to one aspect of the present application, a computer program product or a computer program is further provided. The computer program product or the computer program includes one or more instructions, and the one or more instructions are stored in a computer storage medium. The processor of the computer device reads the one or more instructions from the computer storage medium, and the processor executes the one or more instructions, so that the computer device executes the methods provided in various alternative manners in the above method embodiments. It should be understood that the above-disclosed is only the preferred embodiment of the present application, and of course, the scope of the rights of the present application cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.
Claims
1. An interface display method, It is characterized in that include: Displaying a first interface in a target application, wherein a target activity with a transparent theme is registered in an application manifest file corresponding to the target application, wherein the transparent theme enables the target activity to be displayed on top of other activities and keep the background transparent; wherein one activity is one interface; In response to an interface switching operation on the first interface, switch from the first interface to the second interface, and determine the currently triggered target small window mode; wherein, after switching to the second interface, if the target application remains in the foreground, the target small window mode is the in-end small window mode, and if the target application enters the background, the target small window mode is the out-end small window mode; In the target small window mode, the target activity is used to create a target window containing the currently displayed content of the first interface, and the target window is displayed on an upper layer of the second interface.
2. The method according to claim 1, It is characterized in that The method further comprises: Creating a target activity for the target application, wherein the target activity is an activity for realizing a window; In an application manifest file corresponding to the target application program, the theme of the target activity is registered as a transparent theme.
3. The method according to claim 2, It is characterized in that The target application is run based on the target operating system; the method further includes: In the target activity, a window is designed according to the characteristics of the target operating system to obtain window design information; the window design information is used to indicate: control buttons to be included in the window implemented using the target activity; In the application manifest file, the target activity is associated with the window design information, so that when the target activity is used to create a target window, the created target window includes corresponding control buttons based on the window design information.
4. The method according to claim 2, It is characterized in that The target application is run based on the target operating system; the method further includes: In the application manifest file, setting a picture-in-picture mode of the target operating system for the target activity; The picture-in-picture mode is used to allow the target activity to be displayed in the form of a small window on the interface of other applications.
5. The method according to any one of claims 1 to 4, It is characterized in that The target small window mode is an external small window mode; in the target small window mode, using the target activity to create a target window containing the current display content of the first interface includes: In the external small window mode, searching the application manifest file for a picture-in-picture mode set for the target activity; Based on the found picture-in-picture mode, the target activity is used to create a target window containing the currently displayed content in the first interface.
6. The method according to any one of claims 1 to 4, It is characterized in that The target small window mode is an intra-terminal small window mode; in the target small window mode, using the target activity to create a target window containing the currently displayed content of the first interface includes: In the small window mode within the terminal, obtaining a basic window corresponding to the target activity, wherein the basic window is a window that does not contain any display content; The currently displayed content of the first interface is displayed on the basic window, and a control button is added to the basic window according to the window design information associated with the target activity to obtain a target window.
7. The method according to claim 6, It is characterized in that The basic window is located in the display screen. After acquiring the basic window, the method further includes: Move the basic window out of the display screen so that the basic window is in an invisible state in the small window mode in the terminal; After the basic window is moved out of the display screen, triggering the step of bringing the currently displayed content of the first interface onto the basic window; After the current display content is displayed on the screen, the basic window is moved back to the display screen.
8. The method according to claim 7, It is characterized in that The step of moving the basic window out of the display screen comprises: Determine the root layout view of the basic window and the screen width of the display screen; wherein the screen width is parallel to the target coordinate axis in the preset coordinate system; The root layout view of the basic window is translated along the direction indicated by the target coordinate axis by a distance of the screen width to move the basic window out of the display screen.
9. The method according to claim 7, It is characterized in that Before the currently displayed content of the first interface is displayed on the basic window, the method further includes: Setting the attribute of the basic window to be an untouchable attribute; After the currently displayed content is displayed on the screen, the attributes of the basic window are reset, and the reset attributes are touchable attributes.
10. The method according to claim 6, It is characterized in that The method further comprises: Resetting the window size of the basic window according to the screen size of the display screen and a preset ratio; wherein the ratio between the reset window size and the screen size is the preset ratio; And, setting the display position of the basic window in the display screen to a designated position in the display screen.
11. The method according to claim 1, It is characterized in that After displaying the target window, the method further includes: In response to a form adjustment operation on the target window, adjusting a display form of the target window according to the form adjustment operation; The display mode includes at least one of the following: display position, window size and transparency.
12. The method of claim 1, It is characterized in that The content displayed in the target window is updated synchronously with the content of the first interface; after displaying the target window, the method further includes: In response to a mode switching operation for the target small window mode, switching from the target small window mode to other small window modes, and determining the target content displayed in the target window when the mode switching operation is detected; wherein the other small window modes refer to: small window modes other than the target small window mode among the small window mode within the terminal and the small window mode outside the terminal; In the other small window mode, the target activity is used to create a new window containing the target content, and the new window is used to replace the target window.
13. An interface display device, It is characterized in that include: A display unit, configured to display a first interface in a target application, wherein a target activity with a transparent theme is registered in an application manifest file corresponding to the target application, wherein the transparent theme enables the target activity to be displayed on top of other activities and keep the background transparent; wherein one activity is one interface; a processing unit, configured to respond to an interface switching operation on the first interface, switch from the first interface to the second interface, and determine a currently triggered target small window mode; wherein, after switching to the second interface, if the target application remains in the foreground, the target small window mode is an in-end small window mode, and if the target application enters the background, the target small window mode is an out-end small window mode; The processing unit is further configured to, in the target small window mode, use the target activity to create a target window containing the currently displayed content of the first interface; The display unit is further configured to display the target window on an upper layer of the second interface.
14. A terminal comprising an input interface and an output interface, It is characterized in that Also includes: processor and computer storage media; The processor is suitable for implementing one or more instructions, the computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by the processor and executing the interface display method as described in any one of claims 1-12.
15. A computer storage medium, It is characterized in that The computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the interface display method according to any one of claims 1-12.
16. A computer program product, It is characterized in that The computer program product includes one or more instructions; when one or more instructions in the computer program are executed by a processor, the interface display method according to any one of claims 1 to 12 is implemented.