Pop-up window customization method, device, equipment and storage medium

By modifying the display level and position of the Toast pop-up window, the problem that the Toast pop-up window cannot be customized in the Android system is solved, and customized display and non-overlay display are achieved at any position on the system interface.

CN115774554BActive Publication Date: 2025-09-23BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211441965.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2025-09-23
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

Before and after Android R, Toast pop-ups cannot be customized to appear at any location on the system interface. In addition, after Android R, they can only appear in a few fixed locations and cannot be placed at any location within a certain area.

Method used

By modifying the display level and display position of the pop-up window to make it higher than the level of other elements in the system interface, and adjusting the modification strategy according to the system version, it is ensured that the pop-up window is displayed anywhere on the system interface without being covered.

Benefits of technology

The custom display of Toast pop-up windows at any position on the system interface is realized, breaking through system limitations and ensuring that the display effect is not affected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115774554B_ABST
    Figure CN115774554B_ABST
Patent Text Reader

Abstract

The present application discloses a method for customizing a pop-up window, comprising: in response to a display level modification operation, determining the display level of the pop-up window to be a preset level; in response to a display position modification operation, modifying the display position of the pop-up window so that the pop-up window is displayed at any position in the preset level. By setting the display level and display position of the pop-up window, the present application prevents the pop-up window from being covered by any other window in the system, and removes the operating system's restrictions on the location of the pop-up window, thereby enabling the pop-up window to appear normally at any position on the system interface without being affected, thereby achieving the customization of the location of the pop-up window on the system interface and ensuring the display effect, and allowing the definition of the pop-up window to break through the restrictions during normal use of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer operating systems, and in particular to a pop-up window customization method, a pop-up window customization device, a computer device, and a computer-readable storage medium. Background Art

[0002] There are many types of pop-ups in the Android system, with toasts being a relatively important one. Regarding the placement of toasts on smart device screens, there were different solutions before and after Android R. However, neither solution allowed customizing toasts to appear anywhere on the system interface. Furthermore, on Android R and later, toast pop-ups can only appear in a few fixed locations, and can't even be placed anywhere within a specific area of ​​the system interface, as was the case before Android R. Summary of the Invention

[0003] The present application provides a pop-up window customization method, a pop-up window customization device, a computer device, and a computer-readable storage medium.

[0004] The pop-up window customization method of this application includes:

[0005] In response to a display level modification operation, determining the display level of the pop-up window as a preset level;

[0006] In response to the display position modification operation, the display position of the pop-up window is modified so that the pop-up window is displayed at any position of the preset layer.

[0007] In this way, this application sets the display level and display position of the pop-up window so that the pop-up window will not be covered by any other window in the system, and removes the operating system's restrictions on the location of the pop-up window, so that the pop-up window can appear normally at any location on the system interface without being affected, thereby realizing the customization of the location of the pop-up window on the system interface and ensuring the display effect, so that the definition of the pop-up window breaks through the limitations of normal system use.

[0008] In some embodiments, in response to the display level modification operation, determining the display level of the pop-up window as a preset level includes:

[0009] Get the display level setting function;

[0010] In response to the display level modification operation, the display level setting function is modified so that the display level of the pop-up window is the display level of the preset level, which is higher than the display level of any other elements in the system interface.

[0011] In this way, the present application can modify the display level of the pop-up window by modifying the underlying function of the operating system, so that the display level of the pop-up window is higher than the display level of any other elements in the system interface, thereby achieving the effect that the pop-up window is not covered by other interface elements.

[0012] In some embodiments, modifying the display position of the pop-up window in response to the display position modification operation includes:

[0013] Get system version information;

[0014] According to the system version information, a modification strategy corresponding to the system version information is executed.

[0015] In this way, the present application can adaptably adjust the pop-up window position modification strategy according to the system version to achieve universal adjustment for different versions of systems.

[0016] In some embodiments, executing a modification strategy corresponding to the system version information according to the system version information includes:

[0017] When the system version is lower than the preset version:

[0018] Get the display position setting function and pop-up window property setting function;

[0019] In response to a first display position modification operation, modifying the display position setting function so that the pop-up window can be displayed at any position of the preset layer;

[0020] In response to the second display position modification operation, the pop-up window property setting function is modified so that the pop-up window is not covered by the system window.

[0021] In this way, the present application can achieve the non-overlapping of pop-up windows and arbitrary layout positions through the system architecture under the system version when the system version is lower than the preset version.

[0022] In some embodiments, executing a modification strategy corresponding to the system version information according to the system version information includes:

[0023] When the system version is not lower than the preset version:

[0024] Get the pop-up window property setting function;

[0025] In response to the third display position modification operation, the pop-up window property setting function is modified so that the pop-up window can be displayed at any position of the preset layer and the pop-up window is not covered by the system window.

[0026] In this way, when the system version is higher than the preset version, the present application can realize the non-overlapping of pop-up windows and the arbitrary layout position through the system architecture under the system version.

[0027] In some embodiments, in response to the third display position modification operation, modifying the pop-up window property setting function includes:

[0028] Adding items and parameters to the pop-up window property setting function to determine the display position of the pop-up window to be any position on the system interface;

[0029] Add a flag to the pop-up window property setting function to prevent the pop-up window from being covered by the system window.

[0030] Thus, the present application specifically provides a method for realizing the non-overlapping and arbitrary layout position of pop-up windows in a system higher than a preset version.

[0031] In some embodiments, in response to the display position modification operation, the display position of the pop-up window is determined to be any position on the system interface, and then further includes:

[0032] In response to the style modification operation, the style attributes of the pop-up window are modified.

[0033] In this way, this application can also modify the appearance style of the pop-up window.

[0034] In some embodiments, in response to the style setting operation, modifying the style attributes of the pop-up window includes:

[0035] Obtain the display layout file and system property configuration file of the pop-up window;

[0036] In response to the first style setting operation, modifying the style attributes of the pop-up window in the display layout file;

[0037] In response to the second style setting operation, the font properties of the pop-up window in the system property configuration file are modified.

[0038] Thus, this application provides a specific method for modifying the pop-up window style.

[0039] The pop-up window customization device of this application includes:

[0040] A level modification module, configured to determine the display level of the pop-up window as a preset level in response to a display level modification operation;

[0041] The position modification module is used to determine the display position of the pop-up window to be any position of the preset layer in response to the display position modification operation.

[0042] The computer device of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the above method is implemented.

[0043] The computer-readable storage medium of the present application stores a computer program, and when the computer program is executed by one or more processors, the above method is implemented.

[0044] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0046] Figure 1 This is a flowchart of the pop-up window customization method provided by this application;

[0047] Figure 2 This is a flowchart of the pop-up window customization method provided by this application;

[0048] Figure 3 This is a schematic diagram of the application scenario effect of the pop-up window customization method provided by this application;

[0049] Figure 4 This is a schematic diagram of the application scenario effect of the pop-up window customization method provided by this application;

[0050] Figure 5 This is a schematic diagram of the application scenario effect of the pop-up window customization method provided by this application;

[0051] Figure 6 This is a module diagram of the pop-up window customization device provided by this application. DETAILED DESCRIPTION

[0052] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0054] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.

[0055] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0057] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0058] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.

[0059] The examples and implementations in this application are based on the Android system architecture, and the pop-up window is an example of a toast pop-up window in the Android system. However, the scope of protection of this application is not limited to the above application background. Technicians can change the system architecture and pop-up window type according to actual needs, and this application does not limit it.

[0060] like Figure 1 As shown, this application provides a pop-up window customization method, including:

[0061] 01: In response to the display level modification operation, the display level of the pop-up window is determined to be the preset level;

[0062] 02: In response to the display position modification operation, the display position of the pop-up window is modified so that the pop-up window is displayed at any position of the preset layer.

[0063] like Figure 6 As shown, the present application also provides a pop-up window customization device 10. The pop-up window customization method of the present application can be implemented by the pop-up window customization device 10 of the present application. Specifically, the pop-up window customization device 10 includes a level modification module 11 and a position modification module 12. Among them, the level modification module 11 is used to determine the display level of the pop-up window to a preset level in response to a display level modification operation, and the position modification module 12 is used to determine the display position of the pop-up window to any position of the preset level in response to a display position modification operation.

[0064] The present application also provides a computer device, which includes a memory and a processor. The pop-up window customization method of the present application can be implemented by the computer device of the present application. Specifically, a computer program is stored in the memory, and the processor is used to determine the display level of the pop-up window to a preset level in response to a display level modification operation, and to determine the display position of the pop-up window to any position in the preset level in response to a display position modification operation.

[0065] Specifically, for the pop-up window on the system interface, in order to realize the display at any position, two important problems need to be solved, one is that it is not blocked, and the other is that the display position is not restricted. In order to solve these two problems, this application is proposed. In some examples, the Toast pop-up window in the Android framework cannot appear in the area where the navigation bar and status bar are located, and the level of the display layer where it is located is 8, while the highest display level among the elements in the current Android system is 33. Therefore, in order to realize the display of the Toast pop-up window at any position on the system interface, it is necessary to modify the area where the Toast pop-up window can appear and the display level so that the Toast pop-up window can appear in all areas on the interface, and the display level is not less than 33.

[0066] In summary, this application sets the display level and display position of the pop-up window so that the pop-up window will not be covered by any other window in the system, and removes the operating system's restrictions on the location of the pop-up window, so that the pop-up window can appear normally at any position on the system interface without being affected.

[0067] In some embodiments, step 01 includes:

[0068] 011: Get the display level setting function;

[0069] 012: In response to the display level modification operation, modify the display level setting function so that the display level of the pop-up window is the display level of the preset layer.

[0070] In some embodiments, the level modification module 11 is used to obtain a display level setting function, and to modify the display level setting function in response to a display level modification operation so that the display level of the pop-up window is the display level of a preset layer.

[0071] In some embodiments, the processor is configured to obtain a display level setting function, and to modify the display level setting function in response to a display level modification operation so that the display level of the pop-up window is a display level of a preset layer.

[0072] Specifically, in some examples, the display level setting function (also known as getWindowLayerFromTypeLw) is obtained under the system window management policy class (also known as WindowManagerPolicy) inside the Android system. This function returns the corresponding level according to different types of windows. The data type of the level is an integer. Generally, the larger the number, the higher the display level. When we need to modify the display level of the Toast pop-up window, we can change the level content from 8 to 34 under the TYPE_TOAST type in the display level setting function. Since the highest display level among the elements in the current Android system is 33, we only need to change the number to an integer greater than 33. That is, the level of the preset layer used to make the pop-up window higher than any other element in the system interface only needs to be greater than 33. The specific setting value can be adjusted in time according to needs and the development and update of system content.

[0073] In this way, the present application can modify the display level of the pop-up window by modifying the underlying function of the operating system, so that the display level of the pop-up window is higher than the display level of any other elements in the system interface, thereby achieving the effect that the pop-up window is not covered by other interface elements.

[0074] In some embodiments, step 02 includes:

[0075] 021: Get system version information;

[0076] 022: According to the system version information, execute the modification strategy corresponding to the system version information.

[0077] In some embodiments, the location modification module 12 is configured to obtain system version information, and to execute a modification strategy corresponding to the system version information according to the system version information.

[0078] In some embodiments, the processor is configured to obtain system version information, and to execute a modification policy corresponding to the system version information based on the system version information.

[0079] Specifically, in some examples, the Android system has been updated to Android R, which includes significant changes to pop-up settings. This means that some customization methods previously available in Android R are no longer usable. Therefore, to adapt to different Android system versions, this application provides two different modification strategies, separated by Android R: one modification strategy is used for versions prior to Android R, and another modification strategy is used for versions Android R and later.

[0080] In this way, the present application can adaptably adjust the pop-up window position modification strategy according to the system version to achieve universal adjustment for different versions of systems.

[0081] In certain embodiments, as Figure 2 As shown, step 022 includes:

[0082] 0221: Determine whether the current system version is lower than the preset version. If so, proceed to step 0222;

[0083] 0222: Get the display position setting function and pop-up window property setting function;

[0084] 0223: In response to the first display position modification operation, modify the display position setting function so that the pop-up window can be displayed at any position of the preset layer;

[0085] 0224: In response to the second display position modification operation, modify the pop-up window property setting function so that the pop-up window is not covered by the system window.

[0086] In some embodiments, the position modification module 12 is used to determine whether the current system version is lower than the preset version, and to obtain the display position setting function and the pop-up window property setting function, and to modify the display position setting function in response to the first display position modification operation so that the pop-up window can be displayed at any position of the preset layer, and to modify the pop-up window property setting function in response to the second display position modification operation so that the pop-up window can cover the first system window.

[0087] Specifically, in some examples, prior to Android R, the system provided an internal interface for modifying the pop-up window position, but the scope of modification was still limited to the entire interface. Therefore, in such cases, the following approach can be used: obtain the display position setting function (LayoutWindowLw) from the device window manager class (PhoneWindowManager). This function is primarily used to calculate the layout position of each window on the interface when the Android system refreshes the screen. Since toast pop-ups prior to Android R were set to not appear in the status bar or navigation bar areas, the following modification can be made: modify the displayable area corresponding to the status bar in the display position setting function and change the window type determination for that area from only supporting status bar windows to supporting status bar windows or windows with a window type of TYPE_TOAST (i.e., toast pop-ups). Similarly, for the navigation bar, modify the window types supported in the displayable area corresponding to the status bar in the display position setting function and change the window type determination for that area from only supporting navigation bar windows to supporting navigation bar windows or windows with a window type of TYPE_TOAST. This will allow toast pop-ups to appear in the status bar or navigation bar. Although the display level of the pop-up window has been adjusted to the highest level in the system interface, there are still some special situations in the Android system that cause the status bar and navigation bar to block the Toast pop-up window. Therefore, the pop-up window properties need to be modified to avoid the above situation. In some examples, the pop-up window property setting function (that is, the CreateLayoutParams function) is obtained from the Toast pop-up window appearance class (that is, ToastPresenter) class in the system, and the two variable flags FLAG_LAYOUT_IN_SCREEN and FLAG_LAYOUT_INSET_DECOR are added to the window parameter variable in the function. The variable flag FLAG_LAYOUT_IN_SCREEN means placing the window in the entire screen, ignoring any constraints from the parent window, and avoiding the parent window from affecting the current Toast pop-up window, so that the Toast pop-up window can be displayed independently without being displayed with other pop-ups or being subject to other pop-ups; the variable flag FLAG_LAYOUT_INSET_ In general, it can only be used with the variable flag FLAG_LAYOUT_IN_SCREEN to ensure that the content of the pop-up window is not covered by decorations in the interface (such as the status bar or navigation bar).

[0088] In this way, the present application can achieve the non-overlapping of pop-up windows and arbitrary layout positions through the system architecture under the system version when the system version is lower than the preset version.

[0089] In certain embodiments, as Figure 2 As shown, step 022 includes:

[0090] 0221: Determine whether the current system version is lower than the preset version. If not, go to step 0225;

[0091] 0225: Get the pop-up window property setting function;

[0092] 0226: In response to the third display position modification operation, modify the pop-up window property setting function so that the pop-up window can be displayed at any position of the preset layer and the pop-up window is not covered by the system window.

[0093] In some embodiments, the position modification module 12 is configured to obtain a pop-up window property setting function, and to modify the pop-up window property setting function in response to the third display position modification operation.

[0094] In some embodiments, the processor is configured to obtain a pop-up window property setting function, and to modify the pop-up window property setting function in response to the third display position modification operation.

[0095] Specifically, in some examples, in Android R and later versions, the interface previously provided by the system to modify the position of the pop-up window no longer exists, and the system's own settings do not allow the Toast pop-up window to be relocated under normal use. Specifically, the LayoutWindowLw function in the above implementation is deprecated by the new version of the Android framework. Therefore, in response to this situation, combined with the system architecture of the Android R version itself, the pop-up window attribute setting function (i.e., CreateLayoutParams function) is obtained from the Toast pop-up window appearance class (i.e., ToastPresenter) in the system and the relevant parameters or code are directly modified to achieve the display of the Toast pop-up window in any position.

[0096] In this way, when the system version is higher than the preset version, the present application can realize the non-overlapping of pop-up windows and the arbitrary layout position through the system architecture under the system version.

[0097] In some embodiments, step 0226 includes:

[0098] 02261: Add items and parameters to the pop-up window property setting function to set the pop-up window display position to any position in the system interface;

[0099] 02262: Add a flag to the popup property setting function so that the popup window is not covered by the system window.

[0100] In some embodiments, the position modification module 12 is used to add items and parameters to the pop-up window property setting function to determine the display position of the pop-up window to be any position on the system interface, and to add a flag to the pop-up window property setting function to prevent the pop-up window from being covered by the system window.

[0101] In some embodiments, the processor is configured to add a flag to the popup window property setting function so that the popup window is not covered by the system window.

[0102] Specifically, in some examples, after obtaining the display position setting function (LayoutWindowLw) from the device window management class (PhoneWiondowManager), the following two lines of code are added to the function:

[0103] params.setFitInsetsTypes(1);

[0104] params.setFitInsetsSides(0);

[0105] The first line of code indicates that the toast type is a valid type in the adjusted window type, that is, the toast type pop-up window is added to the window type to be adjusted. The second line of code indicates that the toast display position is borderless, that is, the regional boundary of the toast pop-up display position is removed. In this way, the toast pop-up window has no boundaries and can be displayed anywhere on the system interface. Similarly, in order to avoid some special situations in the Android system that can cause the status bar and navigation bar to block the toast pop-up window, it is also necessary to modify the pop-up window properties to achieve the purpose of avoiding the above situation. In some examples, the pop-up window property setting function (i.e., CreateLayoutParams function) is obtained from the Toast pop-up window appearance class (i.e., ToastPresenter) class in the system, and two variable flags, FLAG_LAYOUT_IN_SCREEN and FLAG_LAYOUT_INSET_DECOR, are added to the window parameter variable in the function. The variable flag FLAG_LAYOUT_IN_SCREEN means placing the window in the entire screen, ignoring any constraints from the parent window, and avoiding the parent window from affecting the current Toast pop-up window, so that the Toast pop-up window can be displayed independently without being displayed with other pop-ups or being subject to other pop-ups; the variable flag FLAG_LAYOUT_INSET_ In general, it can only be used with the variable flag FLAG_LAYOUT_IN_SCREEN to ensure that the content of the pop-up window is not covered by decorations in the interface (such as the status bar or navigation bar).

[0106] Thus, the present application specifically provides a method for realizing the non-overlapping and arbitrary layout position of pop-up windows in a system higher than a preset version.

[0107] In some examples, such as Figure 3 、 Figure 4 、 Figure 5 As shown, after modifying the relevant parameters and function codes, the location of the Toast pop-up is no longer limited to the default location of the operating system. Generally, as described in some examples above, the default permitted display range of the Toast pop-up in the Android system does not include the area where the status bar and navigation bar are located. After modifying the underlying framework code of the Android system in some examples above, the Toast pop-up can be displayed in different locations in the interface as needed, including areas that would not originally appear. In some examples, such as Figure 3 The status bar shown or Figure 4 The Toast pop-up window in the navigation bar shown can be fully covered and displayed, and it can also achieve full or half coverage of the status bar or navigation bar to display Toast and other effects, such as Figure 5 The situation of half-covered status bar is shown.

[0108] In some embodiments, step 02 further includes:

[0109] 03: In response to the style modification operation, modify the style attributes of the pop-up window.

[0110] In some embodiments, the processor is further configured to modify the style attributes of the pop-up window in response to a style modification operation.

[0111] Specifically, style attributes generally refer to the appearance style, font style, texture image, and other attributes of the Toast pop-up window that tend to be appearance or artistic. In the process of customizing the Toast pop-up window, it also has the value of improving the user experience. Therefore, the style attributes of the Toast pop-up window can also be adjusted within the framework of the Android system.

[0112] In this way, this application can also modify the appearance style of the pop-up window.

[0113] In some embodiments, step 03 includes:

[0114] 031: Get the pop-up window display layout file and system property configuration file;

[0115] 032: In response to the first style setting operation, modify the style attributes of the pop-up window in the display layout file;

[0116] 033: In response to the second style setting operation, modify the font properties of the pop-up window in the system property configuration file.

[0117] In some embodiments, the processor is used to obtain a display layout file and a system property configuration file of a pop-up window, and to modify the style properties of the pop-up window in the display layout file in response to a first style setting operation, and to modify the font properties of the pop-up window in the system property configuration file in response to a second style setting operation.

[0118] Specifically, regarding the style attribute, this is one of the most important interactive contents when users interact with the system, which can effectively improve the user experience. Therefore, it is very important to adjust the style of the Toast pop-up window. In some examples, you can obtain the display layout file (i.e., transient_notification.xml file) and directly modify the background texture, width, and height of the Toast pop-up type window in the file. In addition, you can obtain the file related to the Toast pop-up font (i.e., TextApperance.Text) in the system property configuration file and directly modify the font in the Toast pop-up window.

[0119] Thus, this application provides a specific method for modifying the pop-up window style.

[0120] The present application also provides a computer-readable storage medium storing a computer program, which implements the above method when the computer program is executed by one or more processors.

[0121] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. For purposes of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The processors involved in the various embodiments provided herein may be general-purpose processors, central processing units (CPUs), graphics processors (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like, without limitation thereto.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A pop-up window customization method, characterized in that: The method comprises: In response to a display level modification operation, determining the display level of the pop-up window as a preset level; In response to a display position modification operation, modifying the display position of the pop-up window so that the pop-up window is displayed at any position of the preset layer; The step of determining the display level of the pop-up window as a preset level in response to the display level modification operation includes: Get the display level setting function; In response to the display level modification operation, modify the display level setting function so that the display level of the pop-up window is a display level of a preset layer, and the display level of the preset layer is higher than the display level of any other elements in the system interface; The modifying the display position of the pop-up window in response to the display position modification operation includes: Get system version information; According to the system version information, executing a modification strategy corresponding to the system version information; The executing, according to the system version information, a modification strategy corresponding to the system version information includes: When the system version is lower than the default version Android R: Get the display position setting function and pop-up window property setting function; In response to a first display position modification operation, modifying the display position setting function so that the pop-up window can be displayed at any position of the preset layer; In response to a second display position modification operation, modifying the pop-up window property setting function so that the pop-up window is not covered by the system window; The executing, according to the system version information, a modification strategy corresponding to the system version information includes: When the system version is not lower than the default version Android R: Get the pop-up window property setting function; In response to a third display position modification operation, modifying the pop-up window property setting function so that the pop-up window can be displayed at any position of the preset layer and the pop-up window is not covered by the system window; The modifying of the pop-up window property setting function in response to the third display position modification operation includes: Adding items and parameters to the pop-up window property setting function to determine the display position of the pop-up window to be any position on the system interface; Add a flag to the pop-up window property setting function to prevent the pop-up window from being covered by the system window.

2. The method according to claim 1, characterized in that In response to the display position modification operation, the display position range of the pop-up window is determined to be any position of the system interface, and then further includes In response to the style modification operation, the style attributes of the pop-up window are modified.

3. The method according to claim 2, characterized in that The modifying of the style attributes of the pop-up window in response to the style setting operation includes: Obtain the display layout file and system property configuration file of the pop-up window; In response to the first style setting operation, modifying the style attributes of the pop-up window in the display layout file; In response to the second style setting operation, the font properties of the pop-up window in the system property configuration file are modified.

4. A pop-up window customization device, characterized in that: For implementing the method according to any one of claims 1 to 3, the device comprises: A level modification module, configured to determine the display level of the pop-up window as a preset level in response to a display level modification operation; The position modification module is used to determine the display position of the pop-up window to be any position of the preset layer in response to the display position modification operation.

5. A computer device, characterized in that: The computer device includes a memory and a processor; the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Android system Toast information control method and system

    CN106569798A

  • Popup layer display method and device

    CN106776723A