CN110703961A - Cover layer display method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN110703961A
CN110703961A CN201910792558.0A CN201910792558A CN110703961A CN 110703961 A CN110703961 A CN 110703961A CN 201910792558 A CN201910792558 A CN 201910792558A CN 110703961 A CN110703961 A CN 110703961A
Authority
CN
China
Prior art keywords
transparency
layer
covering layer
preset
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910792558.0A
Other languages
Chinese (zh)
Inventor
张颂
宋贺
张勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910792558.0A priority Critical patent/CN110703961A/en
Publication of CN110703961A publication Critical patent/CN110703961A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

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.

Description

Cover layer display method and device, electronic equipment and storage medium
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.

Claims (10)

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.
CN201910792558.0A 2019-08-26 2019-08-26 Cover layer display method and device, electronic equipment and storage medium Pending CN110703961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910792558.0A CN110703961A (en) 2019-08-26 2019-08-26 Cover layer display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910792558.0A CN110703961A (en) 2019-08-26 2019-08-26 Cover layer display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110703961A true CN110703961A (en) 2020-01-17

Family

ID=69193745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910792558.0A Pending CN110703961A (en) 2019-08-26 2019-08-26 Cover layer display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110703961A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162666A (en) * 2020-09-24 2021-01-01 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN112346639A (en) * 2020-11-04 2021-02-09 北京小米移动软件有限公司 Method, device and equipment for displaying application interface and storage medium
CN112651882A (en) * 2021-01-15 2021-04-13 北京字节跳动网络技术有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN114500735A (en) * 2022-04-15 2022-05-13 北京车智赢科技有限公司 Display processing method, computing device and readable storage medium
CN114879896A (en) * 2022-07-08 2022-08-09 荣耀终端有限公司 Screen freezing processing method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120265709A1 (en) * 2009-03-07 2012-10-18 Bastgone, LLC Financial risk cover analysis, modeling control and monitoring system
US20150086112A1 (en) * 2013-09-24 2015-03-26 Konica Minolta Laboratory U.S.A., Inc. Color document image segmentation and binarization using automatic inpainting
CN107861857A (en) * 2017-11-09 2018-03-30 上海触乐信息科技有限公司 Screen virtual shade control method, device and terminal device in a kind of terminal device
CN109032739A (en) * 2018-07-20 2018-12-18 掌阅科技股份有限公司 A kind of interface display method, terminal and computer storage medium
CN109684021A (en) * 2018-12-28 2019-04-26 北京金山安全软件有限公司 Data processing method, device and storage medium
CN110012163A (en) * 2019-03-28 2019-07-12 北京金山安全软件有限公司 Suspended window setting method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120265709A1 (en) * 2009-03-07 2012-10-18 Bastgone, LLC Financial risk cover analysis, modeling control and monitoring system
US20150086112A1 (en) * 2013-09-24 2015-03-26 Konica Minolta Laboratory U.S.A., Inc. Color document image segmentation and binarization using automatic inpainting
CN107861857A (en) * 2017-11-09 2018-03-30 上海触乐信息科技有限公司 Screen virtual shade control method, device and terminal device in a kind of terminal device
CN109032739A (en) * 2018-07-20 2018-12-18 掌阅科技股份有限公司 A kind of interface display method, terminal and computer storage medium
CN109684021A (en) * 2018-12-28 2019-04-26 北京金山安全软件有限公司 Data processing method, device and storage medium
CN110012163A (en) * 2019-03-28 2019-07-12 北京金山安全软件有限公司 Suspended window setting method and device and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162666A (en) * 2020-09-24 2021-01-01 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN112346639A (en) * 2020-11-04 2021-02-09 北京小米移动软件有限公司 Method, device and equipment for displaying application interface and storage medium
CN112651882A (en) * 2021-01-15 2021-04-13 北京字节跳动网络技术有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN112651882B (en) * 2021-01-15 2023-11-07 抖音视界有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN114500735A (en) * 2022-04-15 2022-05-13 北京车智赢科技有限公司 Display processing method, computing device and readable storage medium
CN114879896A (en) * 2022-07-08 2022-08-09 荣耀终端有限公司 Screen freezing processing method, electronic equipment and storage medium
CN114879896B (en) * 2022-07-08 2023-05-12 荣耀终端有限公司 Frozen screen processing method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110703961A (en) Cover layer display method and device, electronic equipment and storage medium
CN108897881B (en) Interactive image display method, device, equipment and readable storage medium
US9285945B2 (en) Method and apparatus for displaying multi-task interface
US11818440B2 (en) Method for displaying message on smart television, and smart television
CN111857532B (en) Virtual keyboard display method and device and electronic equipment
CN107861857B (en) Screen virtual shade control method and device in terminal equipment and terminal equipment
CN105204734A (en) Brightness control method and system
US20080189661A1 (en) Video user interface
US20220014706A1 (en) Tv set and backlight control method, control device and readable storage medium of the tv set
CN110134237B (en) Interface control method and related equipment
CN112463237A (en) Screen burning prevention method, device, equipment and storage medium
WO2022073389A1 (en) Video picture display method and electronic device
CN103685963B (en) image display processing method and device
CN113938727A (en) Display device
CN109413471B (en) Method for switching channels and smart television
CN107197182B (en) Method and device for displaying screen menu on television and television
EP3925413B1 (en) Determining a light effect based on an average color after a detected transition in content
CN111176454B (en) Terminal screen locking method combined with camera and storage medium
CN108847191B (en) Backlight adjusting system, backlight adjusting method and device thereof, and intelligent interaction equipment
CN112948034B (en) Interface display method and device and electronic equipment
CN114785887A (en) Screen projection control method and device, electronic equipment and computer readable storage medium
KR101921420B1 (en) Apparatus and method for playing video contents
CN111711748B (en) Control method and device for screen refresh rate, electronic equipment and readable storage medium
CN114079766B (en) Under-screen camera shielding prompting method, storage medium and terminal equipment
CN108257221B (en) Tone adjusting method, tone adjusting apparatus, storage medium, and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination