Interface processing method and device and electronic equipment
By processing multiple layers on the user interface of the electronic device, the distinction between layers is increased, which solves the problem of low distinction caused by the close color of the folder window and the desktop, and improves the display effect.
Patent Information
- Application Number
- CN202410820957.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-03
AI Technical Summary
In electronic devices, the closeness of the display colors between the folder window and the desktop results in low differentiation, which in turn affects the display effect.
Increase differentiation between layers by displaying multiple layers on the user interface and overlaying and processing layers responsively based on user input, such as by adjusting color and transparency.
The display effect of electronic devices is improved, allowing users to more clearly distinguish newly displayed content, and improving the distinction and aesthetics of interface processing.
Smart Images

Figure CN118585100A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an interface processing method, device and electronic equipment. Background Art
[0002] Currently, when an electronic device displays an interface, the user can input so that the electronic device directly displays a window or a control on the current interface. The window can be a folder window, a notification bar window, etc., and the control can be a keyboard control, a toolbar control, etc.
[0003] For example, when the electronic device displays a desktop, the user can click a folder icon on the desktop, so that the electronic device overlays and displays a folder window corresponding to the folder icon on the desktop.
[0004] However, when the display colors of the folder window and the desktop are similar, the distinction between the folder window and the desktop is not high, which leads to poor display effect of the electronic device. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an interface processing method, device and electronic device, which can improve the display effect of the electronic device.
[0006] In a first aspect, an embodiment of the present application provides an interface processing method, the method comprising: displaying a first interface image, the first interface image comprising N layers; receiving a first input from a user, the first input being used to call the first layer; in response to the first input, calling the first layer, and superimposing the first layer on the first interface image to obtain a superimposed image, and processing a second layer in the superimposed image to obtain a second interface image, the second layer being at least one lower-level layer in the superimposed image that is lower than the level of the first layer, and N is a positive integer.
[0007] In a second aspect, an embodiment of the present application provides an interface processing device, which includes: a display module, a receiving module, and a processing module. The display module is used to display a first interface image, and the first interface image includes N layers. The receiving module is used to receive a first input from a user, and the first input is used to call the first layer. The processing module is used to call the first layer in response to the first input received by the receiving module, and superimpose the first layer on the first interface image to obtain a superimposed image, and process the second layer in the superimposed image to obtain a second interface image, where the second layer is at least one lower-level layer in the superimposed image than the first layer, and N is a positive integer.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program / program product, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the method described in the first aspect.
[0012] In an embodiment of the present application, a first interface image is displayed, and the first interface image includes N layers; a first input from a user is received, and the first input is used to call the first layer; in response to the first input, the first layer is called, and the first layer is superimposed on the first interface image to obtain a superimposed image, and the second layer in the superimposed image is processed to obtain a second interface image, and the second layer is at least one low-level layer in the superimposed image that is lower than the level of the first layer, and N is a positive integer. In this solution, since the low-level layers other than the currently newly called first layer can be processed, the distinction between the first layer and the low-level layers can be increased, so that the user can better distinguish the newly displayed content, thereby improving the display effect of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is one of the flow charts of an interface processing method provided in an embodiment of the present application;
[0014] Figure 2 This is an example diagram of the hierarchical division of a control provided in an embodiment of the present application;
[0015] FIG3(A) is a schematic diagram of an example of an interface displaying a first interface image provided by an embodiment of the present application;
[0016] FIG3(B) is a schematic diagram of an example of superimposing a first layer on a first interface image provided by an embodiment of the present application;
[0017] FIG3(C) is an example diagram of an overlapping area between layers provided in an embodiment of the present application;
[0018] Figure 4 This is one of the flow charts of an interface processing method provided in an embodiment of the present application;
[0019] Figure 5 is a structural schematic diagram of an interface processing device provided in an embodiment of the present application;
[0020] Figure 6 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;
[0021] Figure 7 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0025] The interface processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0026] The interface processing method in the embodiment of the present application can be applied to the scenario of displaying new content (for example, windows, controls, pages, etc.) on the user interface.
[0027] In the interface processing method, device and electronic device provided in the embodiments of the present application, since lower-level layers other than the currently newly retrieved first layer can be processed, the distinction between the first layer and the lower-level layers can be increased, so that the user can better distinguish the newly displayed content, thereby improving the display effect of the electronic device.
[0028] The execution subject of the interface processing method provided in the embodiment of the present application may be an interface processing device, which may be an electronic device, or a functional module or entity in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.
[0029] The present application embodiment provides an interface processing method. Figure 1 FIG. 1 is a flow chart of an interface processing method provided by an embodiment of the present application, which can be applied to electronic devices. Figure 1 As shown, the interface processing method provided in the embodiment of the present application may include the following steps 201 to 203.
[0030] Step 201: The electronic device displays a first interface image.
[0031] In the embodiment of the present application, the first interface image includes N layers.
[0032] In the embodiment of the present application, N is a positive integer.
[0033] In some embodiments of the present application, the above-mentioned first interface image can be understood as a user interface image currently displayed by the electronic device.
[0034] In some embodiments of the present application, any layer in the above N layers may be any of the following: a layer containing controls, a layer containing windows, a desktop layer, a negative one screen layer, etc. The embodiments of the present application do not limit this.
[0035] Exemplarily, the control may be any of the following: a list, a title bar, a navigation bar, a toolbar, a keyboard, a menu, etc. This embodiment of the present application does not limit this.
[0036] Exemplarily, the window may be any of the following: desktop, negative one screen, control center, notification center, volume bar, etc. This embodiment of the present application does not limit this.
[0037] For example, the first interface image may be an image including a desktop layer and a layer including an application icon control.
[0038] In some embodiments of the present application, the electronic device may divide windows and controls into hierarchies, and the hierarchical division may be divided into: a hierarchy of windows between applications and a hierarchy of controls within an application.
[0039] Exemplarily, the window level is defined according to the application window type. For example, the desktop can be used as the basis for upward division, the desktop is the L0 layer, the application library or the negative one screen is the L1 layer, the application interface or global search is the L2 layer, the control center or notification center is the L3 layer, and the global floating layer (for example: volume bar, floating notification) is the L4 layer.
[0040] Exemplarily, the hierarchy of controls is defined according to the control elements in the interface. For example, the interface background can be used as the basis for upward division, with the interface background as the L0 layer, the content body (for example, list information, etc.) as the L1 layer, the global controls (for example, title bar, navigation bar, toolbar) as the L2 layer, the input method keyboard as the L3 layer, and the floating layer as the L4 layer (for example, toast, panel, pop-up box, menu, etc.).
[0041] For example, Figure 2 As shown in the figure, it is an example diagram of the hierarchical division of controls. Figure 2 It contains 4 layers, namely: interface background layer, list information layer, navigation bar layer, toast layer.
[0042] In some embodiments of the present application, each level corresponds to a layer, and the objects contained in each layer are objects of the same level.
[0043] For example: when the electronic device currently displays the desktop and application icons are displayed on the desktop, it can be divided into two levels, namely the desktop layer and the application icon layer. Then the interface image currently displayed by the electronic device can be understood as containing two layers, one layer containing the desktop and the other layer containing the application icons.
[0044] In some embodiments of the present application, the divided levels are not fixed, but can change dynamically with the superposition situation. For example, when an L0 level window is superimposed on other windows, it will become an L1 level window. Similarly, when there is no other window under the L1 level window, it will become an L0 level window.
[0045] Step 202: The electronic device receives a first input from a user.
[0046] In an embodiment of the present application, the first input is used to retrieve the first layer.
[0047] In some embodiments of the present application, the first input includes but is not limited to: a touch input by a user through a touch device such as a finger or a stylus, or a voice command input by a user, or a specific gesture input by a user, or a click input, or other feasible input. The specific input can be determined according to actual use requirements, and the embodiments of the present application do not limit this.
[0048] In some embodiments of the present application, the above-mentioned specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
[0049] In some embodiments of the present application, the click input may be a single click input, a double click input, or any number of click inputs, and may also be a long press input or a short press input.
[0050] In some embodiments of the present application, the first input may be an input to a control, an input to an icon, or an input to a blank display area, which is not limited in the embodiments of the present application.
[0051] In some embodiments of the present application, the first layer includes objects corresponding to the first input.
[0052] For example, when the first input is an input to a folder icon, the first layer retrieved by the electronic device includes a folder window corresponding to the folder icon.
[0053] Step 203: In response to the first input, the electronic device retrieves the first layer, superimposes the first layer on the first interface image to obtain a superimposed image, and processes the second layer in the superimposed image to obtain a second interface image.
[0054] In the embodiment of the present application, the second layer is at least one lower-level layer in the superimposed image than the first layer.
[0055] It can be understood that the electronic device can superimpose the newly retrieved first layer on the N layers to obtain a superimposed image.
[0056] In some embodiments of the present application, a lower-level layer than the first layer can be understood as: a layer located below the first layer.
[0057] It can be understood that the first layer is located above the second layer.
[0058] In some embodiments of the present application, the second layer may be a layer adjacent to the first layer, or a layer having an overlapping area with the first layer, or the bottom layer among the N layers.
[0059] In some embodiments of the present application, the electronic device may blur the second layer, and adjust the size, color, etc. of the image corresponding to the object in the second layer to distinguish and display the first layer.
[0060] It should be noted that for a detailed description of processing the second image, reference may be made to the description of step 203a in the following embodiment, which will not be described in detail here.
[0061] In some embodiments of the present application, when the electronic device receives input from the user and cancels superimposing the first layer from the second interface image, the electronic device can cancel processing of the second layer.
[0062] In the interface processing method provided in the embodiment of the present application, since the lower-level layers except the currently newly called first layer can be processed, the distinction between the first layer and the lower-level layers can be increased, so that the user can better distinguish the newly displayed content, thereby improving the display effect of the electronic device.
[0063] In some embodiments of the present application, "the electronic device processes the second layer in the superimposed image" in the above step 203 can be specifically implemented through the following step 203a.
[0064] Step 203a: The electronic device performs a first processing operation on the first area in the second layer, or performs a second processing operation on the second layer.
[0065] In the embodiment of the present application, the first area at least includes a direct overlapping area between the first layer and the second layer, and an area in the second layer except the overlapping area.
[0066] In some embodiments of the present application, the direct overlapping area between the first layer and the second layer can be understood as: an area without objects in other layers in between.
[0067] For example, as shown in FIG3(A), when the electronic device displays the first interface image 11, the first interface image 11 includes three layers, one layer includes the desktop, one layer includes application icons, and another layer includes the desktop atomic component 12. If the user wants to view the folders in the desktop, the user can click the folder icon 13 to allow the electronic device to call the first layer. As shown in FIG3(B), the electronic device superimposes the first layer on the first interface image 11, and the first layer includes a folder window 14 corresponding to the folder icon 13. At this time, as shown in FIG3(C), the direct overlapping area between the first layer and the lower-level layer is area 15 and area 16, wherein area 15 is the direct overlapping area between the first layer and the layer including the desktop atomic component 12 in the layer including the desktop atomic component 12, and area 16 is the direct overlapping area between the first layer and the layer including the desktop in the layer including the desktop.
[0068] In an embodiment of the present application, the above-mentioned first processing operation includes at least one of the following: adjusting the size of the image corresponding to the first object in the first area, adjusting the color of the image corresponding to the second object in the first area, and blurring the first area and hiding the third object in the first area.
[0069] In some embodiments of the present application, the object in the first area may be at least one of the following: a control, a window.
[0070] In some embodiments of the present application, the electronic device may adjust the size of an image corresponding to an object in a layer adjacent to the first layer in a lower-level layer than the first layer.
[0071] In some embodiments of the present application, the electronic device may adjust the color of an image corresponding to an object in a layer adjacent to the first layer in a lower-level layer than the first layer.
[0072] It can be understood that after superimposing a new first layer on the first interface image, when the electronic device adjusts the size and color of the image corresponding to the object in the first area in the second layer, it can only adjust the size and color of the image corresponding to the object in the layer adjacent to the first layer.
[0073] In some embodiments of the present application, when the first area in the second layer includes the directly overlapping area between the first layer and the second layer, and the first area in the second layer includes the second object, if the color difference between the color of the image corresponding to the second object and the color of the image corresponding to the object included in the first layer is less than a predetermined threshold, the electronic device can perform color inversion processing on the second object, thereby ensuring the visibility of the object content included in the first layer.
[0074] For example, when the color of the image corresponding to the second object in the first area is white, if the color of the image corresponding to the object included in the first layer is also white, blurring the first area will make the object content of the object included in the first layer unclear. Therefore, the second object can be inverted to distinguish the second object from the object included in the first layer.
[0075] In some embodiments of the present application, when the color difference between the second object in the first area in the second layer and the color of the image corresponding to the object included in the first layer is less than a predetermined threshold, the electronic device can, after blurring the first area, algorithmically fuse the image content of the blurred image corresponding to the second object and the image content of the image corresponding to the object included in the first layer to increase the contrast between the blurred second object and the object included in the first layer.
[0076] In some embodiments of the present application, the first area in the second layer includes a first sub-area and a second sub-area. When the color difference between the image in the first sub-area and the image in the second sub-area is greater than a predetermined threshold, and the first sub-area is larger than the second sub-area, the electronic device can randomly break up the image content of the image in the second sub-area through a noise algorithm, distribute it to the first area, and then blur the first area, thereby ensuring the beauty of the blurred picture.
[0077] For example, when the image color of the image in the first sub-area is white and the image color of the image in the second sub-area is black, after blurring the first area, the blurred effect is also mostly white, with a small area showing a black mass, which results in an unsightly visual appearance. Therefore, the black content can be randomly broken up through a noise algorithm and distributed to the entire picture, and then the blurring effect is performed to ensure that the blurred picture is beautiful.
[0078] In some embodiments of the present application, the electronic device may adjust the blurriness of the image in the first area to perform blur processing on the first area.
[0079] In some embodiments of the present application, when the image content of the image in the first area changes, the second interface image will also change accordingly.
[0080] In some embodiments of the present application, the N layers included in the first interface image may include a blurred layer, that is, the first interface image is a blurred image. In other words, the electronic device can further blur the blurred layer, that is, blur superposition.
[0081] In some embodiments of the present application, when the above-mentioned first area includes a direct overlapping area between the first layer and the second layer, and the image size of the image in the overlapping area is a first size, the electronic device can obtain the image in the first area, then adjust the image size of the image in the first area to the second size, and blur the image in the resized first area, and then after the blurring, adjust the image size of the blurred image to the first size.
[0082] Exemplarily, the second size is smaller than the first size.
[0083] In this way, since the electronic device can blur the image in the first area after the size reduction, and then enlarge the size of the image in the first area after the blurring, the power consumption of the electronic device for blurring the image in the first area is saved.
[0084] In some embodiments of the present application, the above-mentioned hiding of the third object in the first area can be understood as: when the electronic device blurs the first area, it does not blur the third object in the first area, and the third object is not displayed in the blurred first area in the second layer.
[0085] In some embodiments of the present application, the N layers include a sixth layer and a seventh layer, and the sixth layer is at the next level of the seventh layer. After the electronic device calls the first layer and superimposes the first layer on the first interface image to obtain the superimposed image, when the electronic device blurs the overlapping area between the seventh layer and the first layer in the seventh layer, if the electronic device detects that the object in the seventh layer is a preset hidden object, the electronic device can create a first off-screen page and draw the object in the sixth layer on the first off-screen page, and then blur the overlapping area between the first layer and the first off-screen page to obtain the second interface image, thereby achieving the effect of hiding the object in the seventh layer.
[0086] In some embodiments of the present application, the N layers include a sixth layer and a seventh layer, and the sixth layer is at the next level of the seventh layer. Before obtaining the first interface image, the electronic device calls the seventh layer. When drawing the corresponding object in the seventh layer, if the electronic device detects that the object is a preset hidden object, the electronic device can create a second off-screen page in advance and draw the object in the sixth layer on the second off-screen page; then subsequently the electronic device calls the first layer and superimposes the first layer on the first interface image to obtain the superimposed image. When the electronic device blurs the overlapping area between the seventh layer and the first layer in the seventh layer, the electronic device can blur the overlapping area between the first layer and the second off-screen page created in advance, and does not blur the seventh layer, thereby obtaining the second interface image, thereby achieving the effect of hiding the object in the seventh layer.
[0087] In an embodiment of the present application, the second processing operation includes: adjusting the hierarchical order of the image of the second layer after superposition.
[0088] It can be understood that after the first layer is retrieved, the level order of the second layer decreases. For example, before the first layer is retrieved, the level order of the second layer is level 1, then after the first layer is retrieved, the level order of the second layer is level 2.
[0089] In some embodiments of the present application, the hierarchical order of layers can also be understood as: Z-axis position: After the first layer is retrieved, the Z-axis position of the second layer sinks.
[0090] For example: suppose that the electronic device displays a first interface image, which includes a desktop layer L0. When the electronic device receives input from the user, calls out layer L1 containing a message list, and overlays it on the desktop layer L0, the electronic device can perform the following operations: scale the size of the desktop, lower the hierarchical order of the desktop layer L0, dim the color of the desktop, and blur the overlapping area between layer L0 and layer L1 in layer L0; then when the electronic device receives input from the user, calls out layer L2 containing a folder window, and overlays it on layer L1, the electronic device can perform the following operations: scale the size of the message list, lower the hierarchical order of layer L1, dim the color of the message list, and blur the direct overlapping area between layer L1 and layer L0 and layer L2, wherein the desktop in layer L0 no longer needs to be resized, colored, or adjusted in hierarchical order.
[0091] In some embodiments of the present application, the effect of the control in the layer can be summarized as a material, and the thickness of the material is different according to different levels. Generally speaking, the higher the level of the layer, the thicker the material.
[0092] In this way, since the electronic device can process the first area in the N layers when the newly retrieved first layer is superimposed on the first interface image including N layers, the image content in the first layer can be better distinguished.
[0093] In some embodiments of the present application, the first area is an overlapping area; the "electronic device performs a first processing operation on the first area in the second layer" in the step 203a can be specifically implemented through the following step 203a1.
[0094] Step 203a1: The electronic device performs a first processing operation on a first area in the second layer, and adjusts the transparency of the first layer according to the first transparency.
[0095] It can be understood that when the electronic device performs the first processing operation on the direct overlapping area between the first layer and the second layer in the second layer, the electronic device can adjust the transparency of the first layer so that the user can view the processing results of the overlapping area in the second layer through the first layer.
[0096] In this way, since the transparency of the first layer can be adjusted according to the first transparency when the electronic device performs the first processing operation on the first area in the second layer, the user can see the processing result of performing the first processing operation on the first area in the second layer, thereby better distinguishing the image content in the first layer.
[0097] In some embodiments of the present application, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, after the above-mentioned step 203, the interface processing method provided in the embodiment of the present application also includes the following steps 301 and 302.
[0098] Step 301: The electronic device receives a second input from a user.
[0099] In an embodiment of the present application, the second input is used to retrieve the third layer.
[0100] In some embodiments of the present application, the second input includes but is not limited to: a touch input by a user through a touch device such as a finger or a stylus, or a voice command input by a user, or a specific gesture input by a user, or a click input, or other feasible input. The specific input can be determined according to actual use requirements, and the embodiments of the present application do not limit this.
[0101] Step 302: In response to the second input, the electronic device retrieves the third layer, superimposes the third layer on the second interface image to obtain a superimposed image, and blurs the second area in the fourth layer in the superimposed image to obtain a third interface image.
[0102] In an embodiment of the present application, the fourth layer is at least one lower-level layer than the third layer in the superimposed image.
[0103] In the embodiment of the present application, the second area at least includes a direct overlapping area between the third layer and the fourth layer, and an area in the fourth layer except the overlapping area.
[0104] It can be understood that after obtaining the second interface image, if the user triggers the electronic device to call a new third layer, the electronic device can superimpose the newly called third layer on the second interface image to obtain a superimposed image, and then continue to blur the second area in the low-level layer of the third layer in the superimposed image to obtain the third interface image.
[0105] In this way, since the electronic device can apply blur processing on the blurred layer, that is, blur overlay, the flexibility of the electronic device display is improved.
[0106] It should be noted that, for the detailed steps for the second area, reference may be made to the description of the first area in the above embodiment, which will not be repeated here.
[0107] In some embodiments of the present application, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, after the above-mentioned step 203, the interface processing method provided in an embodiment of the present application also includes the following steps 401 and 402.
[0108] Step 401: The electronic device receives a third input from a user.
[0109] In an embodiment of the present application, the third input is used to retrieve the fifth layer.
[0110] In some embodiments of the present application, the second input includes but is not limited to: a touch input by a user through a touch device such as a finger or a stylus, or a voice command input by a user, or a specific gesture input by a user, or a click input, or other feasible input. The specific input can be determined according to actual use requirements, and the embodiments of the present application do not limit this.
[0111] Step 402: The electronic device responds to the third input, calls up the fifth layer, and superimposes the fifth layer on the second interface image to obtain a superimposed image, blurs the third area in the second layer in the superimposed image, and hides the fourth object in the first layer to obtain a fourth interface image.
[0112] In an embodiment of the present application, the third area at least includes an overlapping area between the fifth layer and the second layer, and an area in the second layer except the overlapping area.
[0113] It can be understood that after obtaining the second interface image, if the user triggers the electronic device to call up a new fifth layer, the electronic device can superimpose the newly called fifth layer on the second interface image to obtain a superimposed image, and then the electronic device can skip the first layer below the fifth layer in the superimposed image, blur the second layer below the first layer, and obtain the third interface image.
[0114] It can be understood that since the electronic device does not blur the first layer, the electronic device can hide the fourth object in the first layer, so that the electronic device presents an effect of blurring the second layer.
[0115] In this way, after the electronic device calls the first layer and overlays the called first layer on the first interface image to obtain the superimposed image; and after the electronic device calls the fifth layer and overlays the called fifth layer on the second interface image to obtain the superimposed image, the second layer in the superimposed image is blurred, thereby improving the flexibility and diversity of the electronic device display.
[0116] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, after the above step 203, the interface processing method provided in the embodiment of the present application further includes the following steps 501 and 502.
[0117] Step 501: The electronic device receives a fourth input from a user to a first control in a second interface image.
[0118] In some embodiments of the present application, the above-mentioned first control may be a control in any layer in the second interface image.
[0119] In some embodiments of the present application, the above-mentioned first control may be a control that has been processed by the first processing operation, or may be a control that has not been processed by the first processing operation, and the embodiments of the present application are not limited to this.
[0120] Exemplarily, the first processing operation may include at least one of the following: adjusting the size of the image corresponding to the first control, adjusting the color of the image corresponding to the first control, and blurring the first control.
[0121] In some embodiments of the present application, the fourth input is used to move the first control.
[0122] In some embodiments of the present application, the fourth input includes but is not limited to: a touch input by a user through a touch device such as a finger or a stylus, or a voice command input by a user, or a specific gesture input by a user, or a click input, or other feasible input. The specific input can be determined according to actual use requirements, and the embodiments of the present application do not limit this.
[0123] Step 502: In response to the fourth input, the electronic device processes the first control according to the processing parameters corresponding to the second control during the process of moving the first control, and obtains and displays the processed first control when the distance between the first control and the second control reaches a preset distance threshold.
[0124] In an embodiment of the present application, the second control is a control that has been processed by the first processing operation, and the processing parameters are processing parameters used when performing the first processing operation on the second control.
[0125] In some embodiments of the present application, when the distance between a first control and a second control reaches a preset distance threshold, the electronic device can obtain processing parameters corresponding to the second control, and then as the distance between the first control and the second control gradually decreases, the electronic device can gradually use the processing parameters corresponding to the second control to process the first control, so that the display effect of the first control gradually transitions to the display effect of the second control.
[0126] In this way, when the distance between the first control and the second control reaches the preset distance threshold, the electronic device can use the processing parameters corresponding to the second control to process the first control, so that the display effects of the first control and the second control are the same, thereby ensuring that the display effects of adjacent controls are consistent, thereby improving the flexibility of the electronic device in displaying content.
[0127] In some embodiments of the present application, the first layer includes a third control and a fourth control; the "electronic device processes the second layer in the superimposed image to obtain a second interface image" in the above step 203 can be specifically implemented through the following step 203b.
[0128] Step 203b: The electronic device processes the first overlapping area and the second overlapping area to obtain a second interface image.
[0129] In an embodiment of the present application, the above-mentioned first overlapping area is an area in the second interface image that overlaps with the third control in at least one lower-level layer than the first layer, and the second overlapping area is an area in the second interface image that overlaps with the fourth control in at least one lower-level layer than the first layer.
[0130] It can be understood that the electronic device may first obtain the first overlapping area and the second overlapping area, and then after obtaining the first overlapping area and the second overlapping area, process the first overlapping area and the second overlapping area together to obtain the second interface image.
[0131] In some embodiments of the present application, the third control and the fourth control may be controls in the same group, and the electronic device executes a corresponding process for the controls in the same group.
[0132] In this way, since there is no need to process the first overlapping area and the second overlapping area separately, the number of processing times is reduced, thereby reducing the consumption of central processing unit (CPU) and graphics processing unit (GPU) resources of the electronic device, thereby optimizing the performance and power consumption of the electronic device.
[0133] In some embodiments of the present application, the first layer includes a sixth layer and a seventh layer, the sixth layer includes a fifth control, and the seventh layer includes a sixth control; in the above step 203, "the electronic device processes the second layer in the superimposed image to obtain a second interface image" can be specifically implemented through the following step 203c.
[0134] Step 203c: The electronic device processes the third overlapping area and the fourth overlapping area to obtain a second interface image.
[0135] In an embodiment of the present application, the above-mentioned third overlapping area is an area overlapping with the fifth control in at least one lower-level layer in the second interface image that is lower than the sixth layer, and the fourth overlapping area is an area overlapping with the sixth control in at least one lower-level layer in the second interface image that is lower than the seventh layer.
[0136] In some embodiments of the present application, when there is no overlapping area between the fifth control in the sixth layer and the sixth control in the seventh layer, the electronic device can first obtain the third overlapping area and the fourth overlapping area, and then after obtaining the third overlapping area and the fourth overlapping area, process the third overlapping area and the fourth overlapping area together to obtain a second interface image.
[0137] In some embodiments of the present application, the fifth control and the sixth control may be controls in the same group, and the electronic device executes a corresponding process for the controls in the same group.
[0138] In this way, since there is no need to process the third overlapping area and the fourth overlapping area separately, the number of processing times is reduced, thereby reducing the consumption of CPU and GPU resources of the electronic device, thereby optimizing the performance and power consumption of the electronic device.
[0139] In some embodiments of the present application, after obtaining the second interface image, the electronic device can, during the process of refreshing the user interface, call up the first layer once every M frames, and superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image. The remaining frames do not need to execute the above process, and can directly reuse the processing results of the previous frame, that is, directly display the second interface image.
[0140] Exemplarily, M is a positive integer greater than 1.
[0141] For example: in the i-th frame, the i+M-th frame, the i+2M-th frame, ..., the first layer is retrieved once, and the first layer is superimposed on the first interface image to obtain the superimposed image, and the second layer in the superimposed image is processed to obtain the second interface image; then in the i+1-th frame, the i+2-th frame, ..., the i+M-1-th frame, the processing result of the i-th frame is multiplexed, that is, the second interface image obtained by the i-th frame is directly displayed; in the i+M+1-th frame, the i+M+2-th frame, ..., the i+2M-1-th frame, the processing result of the i+M frame is multiplexed, that is, the second interface image obtained by the i+M frame is directly displayed.
[0142] In some embodiments of the present application, during a user interface refresh, the electronic device may communicate with SurfaceFlinger to obtain an image corresponding to an object in a low-level layer of the first layer.
[0143] In some embodiments of the present application, after obtaining the second interface image, the electronic device can first detect the image content of the image corresponding to the object in the second layer of the current frame during the refresh of each frame of the user interface. When the image content of the current frame has not changed compared with the image content of the previous frame, the current frame reuses the processing results of the previous frame.
[0144] In some embodiments of the present application, after obtaining the second interface image, the electronic device may, during a user interface refresh, retrieve the first layer once every M frames, and superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image. Before performing the above operation in every M frames, the electronic device may first detect the image content of the image corresponding to the object in the current second layer. When the image content in the current frame has not changed compared to the image content in the Mth frame before the current frame, the current frame does not need to perform the above process, and the processing result of the previous frame of the current frame is reused.
[0145] In this way, since the electronic device does not need to call the first layer once for each frame, superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, the consumption of CPU and GPU resources of the electronic device is reduced, thereby optimizing the performance and power consumption of the electronic device.
[0146] It can be understood that through the above method, the beauty of the content presented by the electronic device and the visibility of the interface are guaranteed, and the performance and power consumption of the electronic device are optimized. Users can also feel the hierarchical concept of interface elements from the UI performance and motion effects.
[0147] It should be noted that the interface processing method provided in the embodiment of the present application can be executed by an interface processing device. In the embodiment of the present application, the interface processing device executing the interface processing method is taken as an example to illustrate the interface processing device provided in the embodiment of the present application.
[0148] Figure 5 FIG. 1 shows a possible structural diagram of an interface processing device involved in an embodiment of the present application. Figure 5 As shown, the interface processing device 70 may include: a display module 71 , a receiving module 72 and a processing module 73 .
[0149] The display module 71 is used to display a first interface image, and the first interface image includes N layers.
[0150] The receiving module 72 is used to receive a first input from a user, where the first input is used to retrieve a first layer.
[0151] The processing module 73 is used to respond to the first input received by the receiving module 72, call the first layer, and superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, where the second layer is at least one lower-level layer in the superimposed image than the first layer, and N is a positive integer.
[0152] The embodiment of the present application provides an interface processing device. Since it can process lower-level layers except the currently newly retrieved first layer, it can increase the distinction between the first layer and the lower-level layers, so that the user can better distinguish the newly displayed content, thereby improving the display effect of the interface processing device.
[0153] In one possible implementation, the processing module 73 is specifically used to perform a first processing operation on the first area in the second layer, or to perform a second processing operation on the second layer; the first processing operation includes at least one of the following: adjusting the size of the image corresponding to the first object in the first area, adjusting the color of the image corresponding to the second object in the first area, and blurring the first area and hiding the third object in the first area; the second processing operation includes: adjusting the hierarchical order of the image of the second layer after superposition; wherein the first area includes at least the direct overlapping area between the first layer and the second layer, and the area in the second layer other than the overlapping area.
[0154] In a possible implementation, the processing module 73 is specifically configured to perform a first processing operation on a first area in the second layer, and adjust the transparency of the first layer according to the first transparency.
[0155] In one possible implementation, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, the receiving module 72 is further used to call the first layer in response to the first input in the processing module 73, and superimpose the first layer on the first interface image to obtain the superimposed image, and after processing the second layer in the superimposed image to obtain the second interface image, receive the user's second input, and the second input is used to call the third layer.
[0156] The processing module 73 is also used to respond to the second input received by the receiving module 72, call the third layer, and superimpose the third layer on the second interface image to obtain the superimposed image, and blur the second area in the fourth layer in the superimposed image to obtain the third interface image, the fourth layer is at least one low-level layer in the superimposed image that is lower than the level of the third layer; wherein the second area includes at least the direct overlapping area between the third layer and the fourth layer, and the area of the fourth layer other than the overlapping area.
[0157] In one possible implementation, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, the receiving module 72 is further used to call the first layer in response to the first input in the processing module 73, and superimpose the first layer on the first interface image to obtain the superimposed image, and after processing the second layer in the superimposed image to obtain the second interface image, receive a third input from the user, and the third input is used to call the fifth layer.
[0158] The processing module 73 is also used to respond to the third input received by the receiving module 72, call the fifth layer, and superimpose the fifth layer on the second interface image to obtain the superimposed image, and blur the third area in the second layer in the superimposed image, and hide the fourth object in the first layer to obtain the fourth interface image; wherein the third area at least includes the overlapping area between the fifth layer and the second layer, and the area in the second layer except the overlapping area.
[0159] In a possible implementation, the receiving module 72 is further used to call the first layer in response to the first input in the processing module 73, and superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, and then receive the fourth input of the user to the first control in the second interface image. The processing module 73 is also used to respond to the fourth input received by the receiving module 72, and in the process of moving the first control, when the distance between the first control and the second control reaches a preset distance threshold, process the first control according to the processing parameters corresponding to the second control to obtain and display the processed first control; wherein the second control is a control processed by the first processing operation, and the processing parameters are the processing parameters used when performing the first processing operation on the second control.
[0160] In one possible implementation, the first layer includes a third control and a fourth control; the processing module 73 is specifically used to process the first overlapping area and the second overlapping area to obtain a second interface image; wherein the first overlapping area is an area overlapping with the third control in at least one lower-level layer in the second interface image that is lower than the level of the first layer, and the second overlapping area is an area overlapping with the fourth control in at least one lower-level layer in the second interface image that is lower than the level of the first layer.
[0161] In one possible implementation, the first layer includes a sixth layer and a seventh layer, the sixth layer includes a fifth control, and the seventh layer includes a sixth control; the processing module 73 is specifically used to process the third overlapping area and the fourth overlapping area to obtain a second interface image; wherein the third overlapping area is an area overlapping with the fifth control in at least one lower-level layer in the second interface image that is lower than the sixth layer, and the fourth overlapping area is an area overlapping with the sixth control in at least one lower-level layer in the second interface image that is lower than the seventh layer.
[0162] The interface processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR) / virtual reality (Virtual Reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0163] The interface processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0164] The interface processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0165] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0166] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0167] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0168] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0169] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0170] The display unit 106 is used to display a first interface image, and the first interface image includes N layers.
[0171] The user input unit 107 is used to receive a first input from a user, where the first input is used to call the first layer.
[0172] The processor 110 is used to respond to the first input received by the user input unit 107, call up the first layer, and superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, where the second layer is at least one lower-level layer in the superimposed image than the first layer, and N is a positive integer.
[0173] An embodiment of the present application provides an electronic device. Since low-level layers other than the currently newly retrieved first layer can be processed, the distinction between the first layer and the low-level layers can be increased, so that the user can better distinguish the newly displayed content, thereby improving the display effect of the electronic device.
[0174] In some embodiments of the present application, the processor 110 is specifically used to perform a first processing operation on a first area in a second layer, or to perform a second processing operation on the second layer; the first processing operation includes at least one of the following: adjusting the size of an image corresponding to a first object in the first area, adjusting the color of an image corresponding to a second object in the first area, and blurring the first area and hiding a third object in the first area; the second processing operation includes: adjusting the hierarchical order of an image of the second layer after superposition; wherein the first area includes at least a directly overlapping area between the first layer and the second layer, and an area in the second layer other than the overlapping area.
[0175] In some embodiments of the present application, the processor 110 is specifically configured to perform a first processing operation on a first area in the second layer, and adjust the transparency of the first layer according to the first transparency.
[0176] In some embodiments of the present application, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, the user input unit 107 is also used to, when the processor 110 responds to the first input, call up the first layer, superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, and then receive the user's second input, and the second input is used to call up the third layer.
[0177] The processor 110 is also used to respond to the second input received by the user input unit 107, call up the third layer, and superimpose the third layer on the second interface image to obtain the superimposed image, and blur the second area in the fourth layer in the superimposed image to obtain the third interface image, where the fourth layer is at least one lower-level layer in the superimposed image than the third layer; wherein the second area includes at least the direct overlapping area between the third layer and the fourth layer, and the area in the fourth layer other than the overlapping area.
[0178] In some embodiments of the present application, when a first processing operation is performed on a first area in a second layer in a superimposed image, and the first processing operation includes blurring the first area, the user input unit 107 is also used to, when the processor 110 responds to the first input, call up the first layer, superimpose the first layer on the first interface image to obtain the superimposed image, and process the second layer in the superimposed image to obtain the second interface image, and then receive a third input from the user, and the third input is used to call up the fifth layer.
[0179] The processor 110 is also used to respond to the third input received by the user input unit 107, call up the fifth layer, and superimpose the fifth layer on the second interface image to obtain a superimposed image, and blur the third area in the second layer in the superimposed image, and hide the fourth object in the first layer to obtain a fourth interface image; wherein the third area includes at least the overlapping area between the fifth layer and the second layer, and the area in the second layer other than the overlapping area.
[0180] In some embodiments of the present application, the user input unit 107 is also used to, when the processor 110 responds to the first input, call up the first layer, and superimpose the first layer on the first interface image to obtain the superimposed image, and after processing the second layer in the superimposed image to obtain the second interface image, receive the fourth input of the user to the first control in the second interface image.
[0181] The processor 110 is also used to respond to the fourth input received by the user input unit 107. During the process of moving the first control, when the distance between the first control and the second control reaches a preset distance threshold, process the first control according to the processing parameters corresponding to the second control to obtain and display the processed first control; wherein the second control is a control processed by the first processing operation, and the processing parameters are the processing parameters used when performing the first processing operation on the second control.
[0182] In some embodiments of the present application, the first layer includes a third control and a fourth control; the processor 110 is specifically used to process the first overlapping area and the second overlapping area to obtain a second interface image; wherein the first overlapping area is an area overlapping with the third control in at least one lower-level layer in the second interface image that is lower than the level of the first layer, and the second overlapping area is an area overlapping with the fourth control in at least one lower-level layer in the second interface image that is lower than the level of the first layer.
[0183] In some embodiments of the present application, the first layer includes a sixth layer and a seventh layer, the sixth layer includes a fifth control, and the seventh layer includes a sixth control; the processor 110 is specifically used to process the third overlapping area and the fourth overlapping area to obtain a second interface image; wherein the third overlapping area is an area in the second interface image that overlaps with the fifth control in at least one lower-level layer than the sixth layer, and the fourth overlapping area is an area in the second interface image that overlaps with the sixth control in at least one lower-level layer than the seventh layer.
[0184] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0185] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.
[0186] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0187] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0188] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0189] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0190] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0191] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0193] An embodiment of the present application provides a computer program / program product, which is stored in a storage medium. The program / program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0194] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0196] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An interface processing method, characterized in that: The method comprises: Display a first interface image, wherein the first interface image includes N layers; receiving a first input from a user, wherein the first input is used to call a first layer; In response to the first input, the first layer is called up, and the first layer is superimposed on the first interface image to obtain a superimposed image, and the second layer in the superimposed image is processed to obtain a second interface image, wherein the second layer is at least one low-level layer in the superimposed image that is lower than the level of the first layer, and N is a positive integer.
2. The method according to claim 1, characterized in that: The processing of the second layer in the superimposed image includes: performing a first processing operation on a first area in the second layer, or performing a second processing operation on the second layer; The first processing operation includes at least one of the following: adjusting the size of the image corresponding to the first object in the first area, adjusting the color of the image corresponding to the second object in the first area, and blurring the first area to hide the third object in the first area; the second processing operation includes: adjusting the hierarchical order of the second layer in the image after the superposition; The first area at least includes a direct overlapping area between the first layer and the second layer, and an area in the second layer except the overlapping area.
3. The method according to claim 2, characterized in that The first area is the overlapping area; and performing a first processing operation on the first area in the second layer includes: A first processing operation is performed on a first area in the second layer, and the transparency of the first layer is adjusted according to a first transparency.
4. The method according to claim 2, characterized in that: In the case where a first processing operation is performed on a first area in a second layer in the superimposed image, and the first processing operation includes blurring the first area, in response to the first input, the first layer is retrieved, and the first layer is superimposed on the first interface image to obtain a superimposed image, and the second layer in the superimposed image is processed to obtain a second interface image, the method further includes: receiving a second input from a user, where the second input is used to call a third layer; In response to the second input, the third layer is retrieved, and the third layer is superimposed on the second interface image to obtain a superimposed image, and a second area in a fourth layer in the superimposed image is blurred to obtain a third interface image, wherein the fourth layer is at least one lower-level layer in the superimposed image than the third layer; The second area at least includes a direct overlapping area between the third layer and the fourth layer, and an area in the fourth layer except the overlapping area.
5. The method according to claim 2, characterized in that: In the case where a first processing operation is performed on a first area in a second layer in the superimposed image, and the first processing operation includes blurring the first area, in response to the first input, the first layer is retrieved, and the first layer is superimposed on the first interface image to obtain a superimposed image, and the second layer in the superimposed image is processed to obtain a second interface image, the method further includes: receiving a third input from a user, wherein the third input is used to call a fifth layer; In response to the third input, the fifth layer is retrieved, and the fifth layer is superimposed on the second interface image to obtain a superimposed image, and a third area in the second layer in the superimposed image is blurred, and a fourth object in the first layer is hidden to obtain a fourth interface image; The third area at least includes an overlapping area between the fifth layer and the second layer, and an area in the second layer except the overlapping area.
6. The method according to claim 1, characterized in that After the first layer is retrieved in response to the first input, the first layer is superimposed on the first interface image to obtain a superimposed image, and the second layer in the superimposed image is processed to obtain a second interface image, the method further includes: receiving a fourth input from a user to the first control in the second interface image; In response to the fourth input, in the process of moving the first control, when the distance between the first control and the second control reaches a preset distance threshold, the first control is processed according to the processing parameters corresponding to the second control to obtain and display the processed first control; The second control is a control processed by the first processing operation, and the processing parameter is a processing parameter used when the first processing operation is performed on the second control.
7. The method according to claim 1, characterized in that The first layer includes a third control and a fourth control; The processing of the second layer in the superimposed image to obtain a second interface image includes: Processing the first overlapping area and the second overlapping area to obtain the second interface image; Among them, the first overlapping area is an area in the second interface image that overlaps with the third control in at least one lower-level layer than the first layer, and the second overlapping area is an area in the second interface image that overlaps with the fourth control in at least one lower-level layer than the first layer.
8. The method according to claim 1, characterized in that The first layer includes a sixth layer and a seventh layer, the sixth layer includes a fifth control, and the seventh layer includes a sixth control; The processing of the second layer in the superimposed image to obtain a second interface image includes: Processing the third overlapping area and the fourth overlapping area to obtain the second interface image; Among them, the third overlapping area is an area in the second interface image that overlaps with the fifth control in at least one lower-level layer than the sixth layer, and the fourth overlapping area is an area in the second interface image that overlaps with the sixth control in at least one lower-level layer than the seventh layer.
9. An interface processing device, characterized in that: The device comprises: a display module, a receiving module and a processing module; The display module is used to display a first interface image, wherein the first interface image includes N layers; The receiving module is used to receive a first input from a user, where the first input is used to call the first layer; The processing module is used to call the first layer in response to the first input received by the receiving module, and superimpose the first layer on the first interface image to obtain a superimposed image, and process the second layer in the superimposed image to obtain a second interface image, where the second layer is at least one lower-level layer in the superimposed image than the first layer, and N is a positive integer.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the interface processing method according to any one of claims 1 to 8 are implemented.
