Cover layer display method and device, electronic equipment and storage medium

文档序号:1543581 发布日期:2020-01-17 浏览:6次 中文

阅读说明:本技术 蒙层显示方法、装置、电子设备和存储介质 (Cover layer display method and device, electronic equipment and storage medium ) 是由 张颂 宋贺 张勇 于 2019-08-26 设计创作,主要内容包括:本公开关于一种蒙层显示方法,包括:在所述应用程序的窗口上显示蒙层;监听所述应用程序的窗口上是否显示所述终端的系统模态控件;若显示所述系统模态控件,则暂时移除所述蒙层,直至所述系统模态控件停止显示,恢复显示所述蒙层。根据本公开的实施例,在显示蒙层时,若终端显示模态控件,可以暂停显示蒙层,直至终端停止显示模态控件,据此,可以避免模态控件与蒙层冲突,进而避免模态控件中的按键失效,确保用户能够顺利地对模态控件中的按键进行操作。并且在终端停止显示模态控件,可以自动恢复显示蒙层,确保用户的眼睛不被强光照射。(The present disclosure relates to a mask display method, including: displaying a mask layer on a window of the application; monitoring whether a system mode control of the terminal is displayed on a window of the application program; and if the system modal control is displayed, temporarily removing the covering layer until the system modal control stops displaying, and resuming to display the covering layer. According to the embodiment of the disclosure, when the masking layer is displayed, if the terminal displays the modal control, the masking layer can be paused to be displayed until the terminal stops displaying the modal control, so that the modal control and the masking layer can be prevented from colliding, the failure of the keys in the modal control is avoided, and the user can be ensured to smoothly operate the keys in the modal control. And the modal control is stopped to be displayed at the terminal, the display covering layer can be automatically recovered, and the eyes of the user are ensured not to be irradiated by strong light.)

1. A cover layer display method is characterized by being suitable for an application program, wherein the application program runs on a terminal, and the method comprises the following steps:

displaying a mask layer on a window of the application;

monitoring whether a system mode control of the terminal is displayed on a window of the application program;

and if the system modal control is displayed, temporarily removing the covering layer until the system modal control stops displaying, and resuming to display the covering layer.

2. The method of claim 1, wherein the cover partially covers a status bar of the terminal.

3. The method of claim 2, wherein an area of the status bar not covered by the mask layer is smaller than a predetermined area, wherein the predetermined area is a minimum area for human eyes to distinguish the brightness of the area not covered by the mask layer from the brightness of the mask layer.

4. The method of any of claims 1-3, wherein the displaying a covering over the window of the application comprises:

and displaying a masking layer on the window of the application program according to the received masking layer display instruction, and continuously presetting time according to a preset change speed to reduce the transparency of the masking layer.

5. The method of claim 4, wherein the removing the mask layer comprises:

and according to the preset change speed, continuously presetting time, improving the transparency of the covering layer until the transparency of the covering layer is improved to a first preset transparency, and removing the covering layer.

6. The method of claim 4, further comprising:

in the process of reducing the transparency of the covering layer, if a covering layer closing instruction is received, determining the current first transparency of the covering layer, determining first remaining time according to the first transparency, first preset transparency and the preset change speed, according to the preset change speed, continuing the first remaining time, improving the transparency of the covering layer until the transparency of the covering layer is improved to the first preset transparency, and removing the covering layer;

in the process of improving the transparency of the covering layer, if a covering layer display instruction is received, determining a current second transparency of the covering layer, determining a second remaining time according to the second transparency, a second preset transparency and the preset change speed, and reducing the transparency of the covering layer according to the preset change speed and the second remaining time, wherein after the second remaining time is continued, the transparency of the covering layer is the second preset transparency.

7. A cover layer display device adapted to an application program installed in a terminal, the device comprising:

a masking layer display module configured to perform displaying a masking layer on a window of the application program;

the monitoring module is configured to monitor whether a system modal control of the terminal is displayed on a window of the application program;

and the display control module is configured to temporarily remove the covering layer under the condition that the system modal control is displayed until the system modal control stops displaying, and resume displaying the covering layer.

8. The apparatus of claim 7, wherein the cover partially covers a status bar of the terminal.

9. An electronic device, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the overlay display method of any of claims 1 to 6.

10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the overlay display method of any of claims 1-6.

Technical Field

The present disclosure relates to the field of software technologies, and in particular, to a mask display method, a mask display apparatus, an electronic device, and a storage medium.

Background

Since the background of an application program in a terminal device such as a mobile phone is generally white and has high brightness, in order to avoid damage to the eyes of a user, in the related art, a mask layer (shadow window) is added on a window of the application program. The masking layer is a window with relatively low transparency, and the brightness of a picture in an application program watched by a user can be reduced by setting the masking layer.

For example, as shown in fig. 1, no mask layer is set on the window of the application program, and the brightness of the screen is high, as shown in fig. 2, by setting a mask layer on the window of the application program, the brightness of the screen in the application program viewed by the user is reduced relative to fig. 1.

Because the masking layer is generally the uppermost window in the current interface of the system, when the system calls and displays the modal control, the displayed modal control conflicts with the masking layer, so that the key in the modal control fails.

For example, as shown in fig. 3, the modal control is a control related to an image, where buttons such as "shoot or record", "photo gallery", "browse" and the like are disabled due to a conflict between the modal control and the masking layer, and it is necessary for a user to turn off the masking layer first to use the button in the modal control, which causes inconvenience to the user.

Disclosure of Invention

The disclosure provides a cover layer display method, a cover layer display device, an electronic device and a storage medium, which are used for at least solving the technical problem that modal controls and cover layers in the related art conflict and fail. The technical scheme of the disclosure is as follows:

according to a first aspect of the embodiments of the present disclosure, a method for displaying a overlay is provided, which is applied to an application installed in a terminal, the method including:

displaying a mask layer on a window of the application;

monitoring whether a system mode control of the terminal is displayed on a window of the application program;

and if the system modal control is displayed, temporarily removing the covering layer until the system modal control stops displaying, and resuming to display the covering layer.

Optionally, the cover partially covers the status bar of the terminal.

Optionally, an area of a region of the status bar not covered by the cover layer is smaller than a preset area, where the preset area is a minimum area where human eyes can distinguish brightness of the region not covered by the cover layer from brightness of the cover layer.

Optionally, the displaying a cover layer on the window of the application program includes:

and displaying a masking layer on the window of the application program according to the received masking layer display instruction, and continuously presetting time according to a preset change speed to reduce the transparency of the masking layer.

Optionally, the removing the cover layer comprises:

and according to the preset change speed, continuously presetting time, improving the transparency of the covering layer until the transparency of the covering layer is improved to a first preset transparency, and removing the covering layer.

Optionally, the method further comprises:

in the process of reducing the transparency of the covering layer, if a covering layer closing instruction is received, determining the current first transparency of the covering layer, determining first remaining time according to the first transparency, first preset transparency and the preset change speed, according to the preset change speed, continuing the first remaining time, improving the transparency of the covering layer until the transparency of the covering layer is improved to the first preset transparency, and removing the covering layer;

in the process of improving the transparency of the covering layer, if a covering layer display instruction is received, determining a current second transparency of the covering layer, determining a second remaining time according to the second transparency, a second preset transparency and the preset change speed, and reducing the transparency of the covering layer according to the preset change speed and the second remaining time, wherein after the second remaining time is continued, the transparency of the covering layer is the second preset transparency.

According to a second aspect of the embodiments of the present disclosure, there is provided a cover layer display device, adapted to an application program, the application program being installed in a terminal, the device including:

a masking layer display module configured to perform displaying a masking layer on a window of the application program;

the monitoring module is configured to monitor whether a system modal control of the terminal is displayed on a window of the application program;

and the display control module is configured to temporarily remove the covering layer under the condition that the system modal control is displayed until the system modal control stops displaying, and resume displaying the covering layer.

Optionally, the cover partially covers the status bar of the terminal.

Optionally, an area of a region of the status bar not covered by the cover layer is smaller than a preset area, where the preset area is a minimum area where human eyes can distinguish brightness of the region not covered by the cover layer from brightness of the cover layer.

Optionally, the masking layer display module is configured to execute displaying a masking layer on a window of the application program according to the received masking layer display instruction, and decrease the transparency of the masking layer for a preset duration according to a preset change speed.

Optionally, the display control module is configured to perform, according to the preset change speed, for a preset time duration, increasing the transparency of the cover layer until the transparency of the cover layer is increased to a first preset transparency, and removing the cover layer.

Optionally, the overlay display module is configured to perform:

in the process of reducing the transparency of the covering layer, if a covering layer closing instruction is received, determining the current first transparency of the covering layer, determining first remaining time according to the first transparency, first preset transparency and the preset change speed, according to the preset change speed, continuing the first remaining time, improving the transparency of the covering layer until the transparency of the covering layer is improved to the first preset transparency, and removing the covering layer; and

in the process of improving the transparency of the covering layer, if a covering layer display instruction is received, determining a current second transparency of the covering layer, determining a second remaining time according to the second transparency, a second preset transparency and the preset change speed, and reducing the transparency of the covering layer according to the preset change speed and the second remaining time, wherein after the second remaining time is continued, the transparency of the covering layer is the second preset transparency.

According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the overlay display method according to any of the above embodiments.

According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, in which instructions are executed by a processor of an electronic device, so that the electronic device can execute the overlay display method according to any one of the embodiments.

According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product configured to execute the overlay display method of any of the above embodiments.

The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:

according to the embodiment of the disclosure, when the masking layer is displayed, if the terminal displays the modal control, the masking layer can be paused to be displayed until the terminal stops displaying the modal control, so that the modal control and the masking layer can be prevented from colliding, the failure of the keys in the modal control is avoided, and the user can be ensured to smoothly operate the keys in the modal control. And the modal control is stopped to be displayed at the terminal, the display covering layer can be automatically recovered, and the eyes of the user are ensured not to be irradiated by strong light.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.

Fig. 1 and 2 are schematic diagrams showing comparison of display effects of a related art in which a film layer is not provided and a mask layer is provided.

FIG. 3 is a diagram illustrating a Mongolian and modal control conflict in the related art.

Fig. 4 is a schematic flow chart diagram illustrating a masking layer display method in accordance with an embodiment of the present disclosure.

Fig. 5 is a schematic flow chart diagram illustrating another overlay display method in accordance with an embodiment of the present disclosure.

Fig. 6 is a schematic flow chart diagram illustrating yet another skin display method in accordance with an embodiment of the present disclosure.

Fig. 7 is a schematic flow chart diagram illustrating yet another skin display method in accordance with an embodiment of the present disclosure.

Fig. 8 is a hardware configuration diagram illustrating an apparatus in which a cover display device according to an embodiment of the present disclosure is located.

Fig. 9 is a schematic block diagram illustrating a cover display device according to an embodiment of the present disclosure.

Detailed Description

In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

Fig. 4 is a schematic flow chart diagram illustrating a masking layer display method in accordance with an embodiment of the present disclosure.

The masking layer display method shown in this embodiment may be applied to an application program, where the application program is installed in a terminal, and the terminal includes, but is not limited to, an electronic device such as a mobile phone, a tablet computer, and a wearable device.

As shown in fig. 4, the overlay display method may include the steps of:

in step S1, displaying a mask on a window of the application;

in one embodiment, the masking layer may be a window with low transparency, for example, a part of pixels in the window are transparent, and a part of pixels are black.

The display of covering the layer can be triggered by application, for example can be provided with and predetermine the button in application, and the user can trigger covering the layer and show the instruction through clicking this button, and then shows covering, can trigger covering the layer and close the instruction when clicking this button once more, and then close covering.

In step S2, monitoring whether a system mode control of the terminal is displayed on a window of the application;

in one embodiment, the application may display the events of the system modal controls at hook, so that when the terminal displays the system modal controls and stops displaying the system modal controls, a notification may be sent to the application so that the application determines whether the terminal displays the system modal controls.

In step S3, if the system modal control is displayed, the cover layer is temporarily removed until the system modal control stops displaying, and the display of the cover layer is resumed.

According to the embodiment of the disclosure, when the masking layer is displayed, if the terminal displays the system modal control, the masking layer can be temporarily removed until the system modal control stops displaying, and the masking layer can be resumed to be displayed. Therefore, the conflict between the system modal control and the masking layer can be avoided, the failure of the keys in the system modal control is further avoided, and the user can be ensured to smoothly operate the keys in the system modal control. And after the terminal stops displaying the system modal control, the display covering layer can be automatically recovered, and the eyes of the user are ensured not to be irradiated by strong light.

In one embodiment, the level (level) of the mask layer may be set in the application program as:

UIWindowLevelAlert+n;

n is an integer greater than or equal to 1, and may be, for example, 1000, and accordingly, the level of the cover layer may be ensured to be at the uppermost layer, so as to cover the system popup window, the status bar, and all other windows created by the application program itself of the terminal, ensure that the cover layer can play a role of reducing the brightness of all windows in the terminal, and ensure that the eyes of the user are not subjected to strong light.

In one embodiment, the user interactionenabled attribute of the mask layer may be set to NO in the application program, so that it may be ensured that the mask layer only plays a role of a visual effect and does not respond to any touch event, and further it may be ensured that the touch event may be transmitted to a window below the mask layer, for example, a window of the application program, to ensure a user to operate smoothly.

Optionally, the cover partially covers the status bar of the terminal.

At present, various application programs can be installed in a terminal, when an application window is displayed in a full screen, a status bar (status bar) of the terminal can be covered, and in different application programs, the display effect of the status bar can be adjusted, and when a system of the terminal completely covers a window at the top layer of the status bar, the display right of the status bar is given to the window, so that the window can adjust the display effect of the status bar as required.

However, when the cover layer is displayed on the window of the application program, the cover layer is the window located at the uppermost layer, and the cover layer in the related art completely covers the status bar of the terminal, the system of the terminal gives the display right of the status bar to the cover layer, but the cover layer itself is not the application program, and has no adjustment capability for the display effect of the status bar, which may cause the status bar not to be adjusted according to the needs of the application program below the cover layer.

According to the embodiment of the disclosure, it may be configured that the cover partially covers the status bar of the terminal, that is, the cover does not completely cover the status bar of the terminal, and then the terminal detects that the cover located at the uppermost layer does not completely cover the status bar, and may detect that the next window of the status bar is completely covered. And the window of the application program triggering the covering layer is positioned below the covering layer, and the window of the application program completely covers the status bar, the system of the terminal can give the display right of the status bar to the application program, so that the status bar can be adjusted according to the requirements of the application program below the covering layer, and the status bar has the display effect suitable for the application program.

Optionally, an area of a region of the status bar not covered by the cover layer is smaller than a preset area, where the preset area is a minimum area where human eyes can distinguish brightness of the region not covered by the cover layer from brightness of the cover layer.

In an embodiment, the area of the status bar not covered by the mask layer may be set to be smaller, for example, smaller than a preset area, and the preset area is a minimum area where human eyes can distinguish the brightness of the area not covered by the mask layer from the brightness of the mask layer, so that setting the area of the status bar not covered by the mask layer to be smaller than the preset area may ensure that human eyes may not recognize the brightness difference between the area not covered by the mask layer and the mask layer, that is, the mask layer still completely covers the status bar in the visual effect, but the terminal itself may recognize that the status bar is not completely covered by the mask layer.

Therefore, on the one hand, the display right of the status bar can be guaranteed to be given to the application program triggering the covering layer by the system of the terminal, so that the status bar can be adjusted according to the requirements of the application program below the covering layer, the status bar has the display effect suitable for the application program, on the other hand, the visual effect can be guaranteed, the covering layer still completely covers the status bar, and the good watching effect of a user is guaranteed.

In one embodiment, the frame of the mask layer structure may be set to CGRectMake (0,0.1, [ UIScreenmainScreen ]. bound.size.width, [ UIScreenmainScreen ]. bound.size.height-0.1), that is, the mask layer is 0.1 point (one point may correspond to one pixel or a plurality of pixels) away from the top frame of the terminal screen (the general status bar is displayed on the top of the terminal).

Fig. 5 is a schematic flow chart diagram illustrating another overlay display method in accordance with an embodiment of the present disclosure.

As shown in fig. 5, the displaying a cover layer on a window of the application program includes:

in step S11, a mask layer is displayed on the window of the application program according to the received mask layer display instruction, and the transparency of the mask layer is reduced for a preset duration according to a preset change speed.

In one embodiment, a user may trigger a mask display command by clicking a preset button in an application, where the initially displayed mask has a high transparency, such as a transparency of 100%, and then may decrease the transparency of the mask at a preset rate of change, and for a preset duration, such as a 2.5% transparency decrease rate every 0.1 second, for 2 seconds, the user may see that the screen gradually darkens for a duration of 2 seconds, and after 2 seconds, the transparency of the screen becomes 50%, without suddenly darkening. Therefore, the method is favorable for reducing the abrupt feeling of the change of the screen brightness so as to improve the watching effect of a user.

Fig. 6 is a schematic flow chart diagram illustrating yet another skin display method in accordance with an embodiment of the present disclosure. As shown in fig. 6, the removing the mask layer includes:

in step S31, the transparency of the cover layer is increased for a preset time according to the preset changing speed until the transparency of the cover layer is increased to a first preset transparency, and the cover layer is removed.

In one embodiment, the removing of the covering layer may be performed by increasing the transparency of the covering layer at a preset changing speed for a preset time period, and then removing the covering layer until the transparency of the covering layer is increased to a first preset transparency. Accordingly, the transparency of the mask layer can be gradually increased at a preset change speed without instantaneously removing the mask layer.

For example, if the covering layer has a current transparency of 50% and a first predetermined transparency of 100% and the predetermined change rate is a 2.5% reduction in transparency every 0.1 second, then the change from a transparency of 50% to a first predetermined transparency of 100% requires a first remaining time of 2 seconds. That is, starting from the transparency of 50%, lasting for 2 seconds, the transparency of the mask layer is increased by decreasing the transparency by 2.5% every 0.1 second until the transparency is increased to 100%, and the mask layer is removed, in the process, the transparency of the mask layer is gradually increased according to the preset change speed, and when the first preset transparency is reached, the mask layer is removed, and the abrupt removal of the mask layer at the current transparency, for example, at the transparency of 50%, is not facilitated, so that the abrupt feeling of the change of the screen brightness is reduced, and the watching effect of the user is improved.

Fig. 7 is a schematic flow chart diagram illustrating yet another skin display method in accordance with an embodiment of the present disclosure.

As shown in fig. 7, the method further comprises:

in step S4, in the process of reducing the transparency of the cover layer, if a cover layer closing instruction is received, determining a current first transparency of the cover layer, determining a first remaining time according to the first transparency, a first preset transparency and the preset change speed, according to the preset change speed, and continuing the first remaining time, increasing the transparency of the cover layer until the transparency of the cover layer is increased to the first preset transparency, and removing the cover layer;

in step S5, in the process of increasing the transparency of the cover layer, if a cover layer display instruction is received, determining a current second transparency of the cover layer, determining a second remaining time according to the second transparency, a second preset transparency and the preset change speed, and decreasing the transparency of the cover layer according to the preset change speed and continuing for the second remaining time, where after the second remaining time is continued, the transparency of the cover layer is the second preset transparency.

In one embodiment, since the preset duration may be long, the user may click the preset button multiple times, thereby triggering the mask closing command and the mask displaying command.

In the process of reducing the transparency of the masking layer, if a masking layer closing instruction is received, determining a current first transparency of the masking layer, determining a first remaining time according to the first transparency, the first preset transparency and a preset change speed, continuing the first remaining time according to the preset change speed, increasing the transparency of the masking layer until the transparency of the masking layer is increased to the first preset transparency, and removing the masking layer.

For example, the first transparency is 30%, the first preset transparency is 80%, and the preset change rate is 2.5% transparency reduction per 0.1 second, then the change from the first transparency of 30% to the first preset transparency of 80% requires a first remaining time of 2 seconds. That is, starting from the transparency of 30%, lasting for 2 seconds, the transparency of the mask layer is increased by decreasing the transparency by 2.5% every 0.1 second until the transparency is increased to 80%, and the mask layer is removed, in the process, the transparency of the mask layer is gradually increased according to the preset change speed, and when the first preset transparency is reached, the mask layer is removed, and the abrupt removal of the mask layer at the first transparency, for example, at the transparency of 30%, is not facilitated, so that the abrupt feeling of the change of the screen brightness is reduced, and the watching effect of the user is improved.

And in the process of improving the transparency of the masking layer, if a masking layer display instruction is received, determining a current second transparency of the masking layer, determining a second remaining time according to the second transparency, a second preset transparency and a preset change speed, and continuing the second remaining time according to the preset change speed to reduce the transparency of the masking layer, wherein after the second remaining time is continued, the transparency of the masking layer is the second preset transparency.

For example, the second transparency is 80%, the second preset transparency is 30%, and the preset change speed is 2.5% transparency reduction every 0.1 second, then the change from the second transparency of 80% to the second preset transparency of 30% requires the first remaining time to be 2 seconds. That is, starting from the transparency of 80%, lasting for 2 seconds, reducing the transparency of the masking layer by 2.5% every 0.1 second until the transparency is reduced to 30%, in the process, the transparency of the masking layer is gradually improved according to the preset change speed, and when the second preset transparency is reached, the transparency of the masking layer is stopped being adjusted, and the second transparency cannot be suddenly changed into the second preset transparency directly, so that the abrupt feeling of the change of the screen brightness is reduced, and the watching effect of a user is improved.

For example, the preset variation speed v is a 2.5% reduction in transparency per 0.1 second;

the current first transparency is currentOpacity1 ═ window.

Then the first remaining time t1 ═ currentavailability 1/v;

accordingly, the second transparency is currentoption 2, then the second remaining time t2 ═ currentoption 2/v;

in view of the above, can guarantee that the user when clicking to predetermine the button trigger covering layer and close the instruction and covering layer demonstration instruction many times, the transparency on covering layer all can change according to predetermineeing the change speed, and then guarantees that the luminance of screen can not break suddenly, is favorable to improving user's viewing effect.

The embodiment of the cover layer display device shown in the embodiment of the disclosure can be applied to equipment such as a terminal. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. From a hardware level, as shown in fig. 8, a hardware structure diagram of a device in which a mask display apparatus is located according to an embodiment of the present disclosure is shown, except for the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 8, the device in which the apparatus is located in the embodiment may generally include other hardware, such as a forwarding chip responsible for processing a packet, and the like; the device may also be a distributed device in terms of hardware structure, and may include multiple interface cards to facilitate expansion of message processing at the hardware level.

The present disclosure also proposes embodiments of a mask display device corresponding to the embodiments of the aforementioned mask display method.

Fig. 9 is a schematic block diagram illustrating a cover display device according to an embodiment of the present disclosure.

The cover layer display device shown in the embodiment may be applied to an application program, and the application program is installed in a terminal, where the terminal includes, but is not limited to, an electronic device such as a mobile phone, a tablet computer, and a wearable device.

As shown in fig. 9, the cover display device may include:

a masking layer display module 1 configured to perform displaying a masking layer on a window of the application program;

the monitoring module 2 is configured to monitor whether a system modal control of the terminal is displayed on a window of the application program;

and the display control module 3 is configured to temporarily remove the masking layer under the condition that the system modal control is displayed until the system modal control stops displaying, and resume displaying the masking layer.

Optionally, the cover partially covers the status bar of the terminal.

Optionally, an area of a region of the status bar not covered by the cover layer is smaller than a preset area, where the preset area is a minimum area where human eyes can distinguish brightness of the region not covered by the cover layer from brightness of the cover layer.

Optionally, the masking layer display module is configured to execute displaying a masking layer on a window of the application program according to the received masking layer display instruction, and decrease the transparency of the masking layer for a preset duration according to a preset change speed.

Optionally, the display control module is configured to perform, according to the preset change speed, for a preset time duration, increasing the transparency of the cover layer until the transparency of the cover layer is increased to a first preset transparency, and removing the cover layer.

Optionally, the overlay display module is configured to perform:

in the process of reducing the transparency of the covering layer, if a covering layer closing instruction is received, determining the current first transparency of the covering layer, determining first remaining time according to the first transparency, first preset transparency and the preset change speed, according to the preset change speed, continuing the first remaining time, improving the transparency of the covering layer until the transparency of the covering layer is improved to the first preset transparency, and removing the covering layer; and

in the process of improving the transparency of the covering layer, if a covering layer display instruction is received, determining a current second transparency of the covering layer, determining a second remaining time according to the second transparency, a second preset transparency and the preset change speed, and reducing the transparency of the covering layer according to the preset change speed and the second remaining time, wherein after the second remaining time is continued, the transparency of the covering layer is the second preset transparency.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

An embodiment of the present disclosure also provides an electronic device, including:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the overlay display method of any of the above embodiments.

Embodiments of the present disclosure also provide a storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the overlay display method according to any of the above embodiments.

Embodiments of the present disclosure also provide a computer program product configured to execute the cover layer display method according to any of the above embodiments.

Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

Embodiments of the present disclosure also provide a computer program product configured to execute the cover layer display method according to any of the above embodiments.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The method and apparatus provided by the embodiments of the present disclosure are described in detail above, and the principles and embodiments of the present disclosure are explained herein by applying specific examples, and the above description of the embodiments is only used to help understanding the method and core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种创建快捷方式的方法及终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类