WO2021169885A1 - Display method and electronic device - Google Patents

Display method and electronic device Download PDF

Info

Publication number
WO2021169885A1
WO2021169885A1 PCT/CN2021/077168 CN2021077168W WO2021169885A1 WO 2021169885 A1 WO2021169885 A1 WO 2021169885A1 CN 2021077168 W CN2021077168 W CN 2021077168W WO 2021169885 A1 WO2021169885 A1 WO 2021169885A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
area
screen
dynamic
static
Prior art date
Application number
PCT/CN2021/077168
Other languages
French (fr)
Chinese (zh)
Inventor
袁剑春
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021169885A1 publication Critical patent/WO2021169885A1/en

Links

Images

Classifications

    • 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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular, to a display method and an electronic device.
  • text, pictures, tables, etc. can be inserted in each layer, and different layers can be stacked up and down to form an interface, thereby achieving precise positioning of elements in the interface.
  • layers can be divided into two types: one is dynamic layers. Users can adjust the display position of dynamic layers in the display according to the use scene and usage habits. For example, electronic devices can display multiple window operation interfaces. , These window operation interfaces support the user’s mobile operation; the other is static layer. In the design stage, the R&D personnel select the control layer. The position parameter of the static layer is solidified, that is, the static layer is displayed in the display. Which position on the screen has been fixed.
  • the static layer and the display screen may not be compatible.
  • the subtitle layer and the edge area of the curved screen are not compatible, then some subtitles may be displayed incompletely, thereby reducing the picture quality of the interface.
  • the embodiments of the present invention provide a display method and an electronic device to solve the problem that the incompatibility between static layers and the display screen will reduce the picture quality.
  • an embodiment of the present invention provides a display method.
  • the method includes: when the first static layer displayed in the first area of the screen satisfies a preset condition, converting the first static layer into a first dynamic layer; and displaying the first static layer in the second area of the screen.
  • Dynamic layer wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static layer in the first area is received by the user. enter.
  • an embodiment of the present invention provides an electronic device.
  • the electronic device includes a display module and a processing module.
  • the processing module is used for converting the first static layer into the first dynamic layer when the first static layer displayed by the display module in the first area of the screen satisfies the preset condition; the display module is used for The second area of the screen displays the first dynamic layer; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the user’s information in the first area is received The first input of the first static layer.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor.
  • the computer program is executed by the processor to realize the first The steps of the display method provided by the aspect.
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program implements the steps of the display method provided in the first aspect when the computer program is executed by a processor.
  • the first static layer displayed in the first area of the screen meets the preset condition
  • the first static layer can be converted into the first dynamic layer; in the second area of the screen Display the first dynamic layer; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static image in the first area is received by the user The first input of the layer.
  • the first static layer of the layers displayed on the screen cannot be displayed normally in the first area
  • the first static layer can be automatically converted to the first dynamic layer, or it can respond to The user's input converts the first static layer into the first dynamic layer.
  • the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention
  • FIG. 2 is one of the schematic diagrams of a display method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of three layer composition methods provided by an embodiment of the present invention.
  • FIG. 4 is a second schematic diagram of a display method provided by an embodiment of the present invention.
  • FIG. 5 is the third schematic diagram of a display method provided by an embodiment of the present invention.
  • FIG. 6 is one of the schematic diagrams of a moving layer provided by an embodiment of the present invention.
  • FIG. 7 is the second schematic diagram of a moving layer provided by an embodiment of the present invention.
  • FIG. 8 is a fourth schematic diagram of a display method provided by an embodiment of the present invention.
  • FIG. 9 is one of structural schematic diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 10 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
  • first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
  • first area and the second area are used to distinguish different areas, rather than to describe the specific order of the areas.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • plural means two or more than two, for example, a plurality of elements means two or more elements, and so on.
  • the embodiments of the present invention provide a display method and an electronic device, which can convert the first static layer into the first dynamic layer when the first static layer displayed in the first area of the screen satisfies a preset condition;
  • the first dynamic layer is displayed in the second area of the screen; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and it is received that the user is in the first area
  • the first input of the first static layer if the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, then the first static layer can be automatically converted to the first dynamic layer, or it can respond to The user's input converts the first static layer into the first dynamic layer. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • FIG. 1 it is a schematic structural diagram of an Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop a software program that implements the display method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. 1, so that the display method It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the display method provided by the embodiment of the present invention by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
  • the execution subject of the display method provided in the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the display method, and the details can be determined according to actual usage requirements.
  • the embodiment is not limited.
  • a layer is composed of multiple pixels, and the screen picture of an electronic device is displayed by superimposing multiple layers.
  • the screen image generation process may specifically include a design phase, a layer drawing phase, and a rendering phase.
  • a design phase design phase
  • a layer drawing phase a rendering phase
  • control layer In the design stage, software engineers can solidify the specific position parameters of most controls by selecting the control layer. For example, where the layer is displayed on the screen, whether the layer supports the user's movement, etc., if the layer supports the user's movement, it is a dynamic layer; if the layer does not support the user's movement, it is a static layer. In practice, most layers are static layers, and these static layers are not movable.
  • the frame buffer In the layer drawing stage, all layers are first drawn on a final layer (frame buffer), and then the frame buffer is sent to the screen of the electronic device for display, for example, to a liquid crystal display (LCD) for display. Since frame buffer synthesis and sending to LCD display are generally asynchronous, it can be called offline synthesis.
  • the electronic device can first draw the dynamic layer 1, the static layer 2 and the static layer 3 on the frame buffer to generate the final layer, and then the electronic device can The layers are sent to the LCD for display.
  • the electronic device can perform rendering according to the specified position, so as to realize the screen display on the LCD.
  • the static layer in the screen picture is not movable, and the user can only move the dynamic layer.
  • the display position of static layers has been fixed, but in some scenes, static layers that cannot be moved may cause inconvenience to users.
  • a possible scenario is that sometimes the static layer and the display screen may not be compatible.
  • the subtitle layer is a static layer and the display screen is a curved screen
  • the subtitle layer and the edge area of the curved screen If it is not compatible, some subtitles may not be displayed completely, which reduces the picture quality of the interface.
  • the location of the static layer does not conform to the user's operating habits. For example, the user is accustomed to using the right hand to operate the screen, but the static layer may be located on the left side of the screen, which reduces the user's operating experience.
  • an embodiment of the present invention provides a display method.
  • This method allows the designer's drawings to be modified in the layer drawing stage.
  • a series of algorithm conversions can be used to modify the properties of the previous static layer to the dynamic layer property to meet the needs of moving after the dynamic layer is converted.
  • the following takes an electronic device as an example to illustrate the display method provided by the embodiment of the present invention.
  • an embodiment of the present invention provides a display method.
  • This method can be applied to electronic devices.
  • the method may include the following S101 and S102.
  • the electronic device converts the first static layer into a first dynamic layer.
  • the above-mentioned preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area of the screen, and the first input of the user to the first static layer in the first area of the screen is received.
  • the layer displayed on the screen of the electronic device may be generated through the design phase, the layer drawing phase, and the rendering phase.
  • the designer can set the display position and layer attributes of each layer in multiple layers in the design stage according to the design requirements, where the layer attribute refers to whether the layer is a static layer or a dynamic layer.
  • the user can trigger the electronic device to draw multiple layers of the completed design on the frame buffer through an input to generate the final layer, and then the electronic device can send the final layer to the screen for display .
  • the relevant description in the embodiment which will not be repeated here.
  • the first static layer is a layer of multiple layers displayed on the screen of the electronic device.
  • the foregoing multiple layers may include static layers and dynamic layers, or may only include dynamic layers.
  • the electronic device can first draw the dynamic layer 1, the static layer 2 and the static layer 3 on the frame buffer to generate the final layer, which includes multiple layers; then, the electronic device can generate the final layer Send it to the screen for display.
  • the electronic device may display at least one image on the screen, and each image is superimposed by at least one layer.
  • the first static layer may be at least one layer in a certain image in at least one image, or may be multiple layers in a plurality of images in at least one image. The following embodiments are all described with an example in which the first static layer may be at least one layer in a certain image in at least one image, which does not limit the embodiment of the present invention in any way.
  • the electronic device may detect whether the layers in the multiple layers meet the preset condition according to a preset cycle. In the case that the first static layer of the multiple layers meets the preset condition, the electronic device may convert the first static layer into the first dynamic layer. In the case where none of the static layers in the multiple layers meet the preset conditions, the static layers may not undergo any conversion.
  • the foregoing preset conditions may include any of the following:
  • Preset conditions 1 The first static layer cannot be displayed normally in the first area of the screen.
  • the electronic device can compare the image content of multiple layers that have been synthesized but not yet displayed and multiple layers displayed on the screen through a preset algorithm, so as to determine the layers that cannot be displayed normally among the multiple layers. .
  • the first static layer For example, the first static layer.
  • the screen of the electronic device is an irregular screen.
  • an irregular screen as a curved screen as an example, when some of the multiple layers are projected onto the curved part of the curved screen, some layers at the edge of the first image may not be compatible with the curved part, then The content in some layers will be incompletely displayed in the curved part, that is, only part of the content in some layers can be displayed, or the content in some layers will not be displayed at all, which reduces the picture quality.
  • the user can drag the dynamic layer to other areas of the screen to make the dynamic layer
  • the content in can be displayed normally; and if the layer at the edge of the first image is a static layer, such as the first static layer, then the first static layer needs to be converted to the first dynamic layer before the user can Move the converted first dynamic layer to other areas of the screen.
  • the screen of the electronic device is a regular screen, but the software that provides multiple layers is not fully compatible with the electronic device. This makes the incompatible layers appear when multiple layers are mapped to the screen. Incomplete display on the screen. If the incompletely displayed layer is a dynamic layer, the user can drag the dynamic layer to other areas of the screen so that the content in the dynamic layer can be displayed normally; and if the incompletely displayed layer is a static image Layer, such as the first static layer, then the first static layer needs to be converted to the first dynamic layer before the converted first dynamic layer can be moved to other areas of the screen.
  • a static image Layer such as the first static layer
  • the above-mentioned first static layer may refer to a certain static layer of multiple layers that cannot be displayed normally on the screen; or, the first static layer may refer to multiple layers. All the static layers in the three layers that cannot be displayed normally on the screen. At this time, the first static layer may include one static layer or multiple static layers.
  • the preset condition 2 The first input of the user on the first static layer in the first area of the screen is received.
  • the first static layer may or may not be displayed normally in the first area.
  • the electronic device can receive the user's first input to the static layer in any of the following possible scenarios:
  • One possible scenario is that when multiple layers are sent to the screen for display, the content in some layers of the multiple layers cannot be displayed normally on the screen due to various reasons.
  • the user can trigger the electronic device to convert the first static layer into the first dynamic layer by selecting and inputting the first static layer. Move the first dynamic layer.
  • the screen can display multiple layers normally, but the display position of some of the multiple layers may not meet the needs of the user or the user.
  • the user can trigger the electronic device to convert the first static layer into the first dynamic layer by selecting and inputting the first static layer, so that the The first dynamic layer is moved.
  • the above-mentioned first input may be used to select the first static layer in the first area.
  • the aforementioned first input to the first static layer may be any of the following:
  • the user can perform tap input on the screen, and the electronic device can use the area where the tap input is located as the first area. In this way, the electronic device can convert the first static layer in the first area into the first dynamic layer.
  • the first static layer is the static layer selected from the first area through the circle selection input in the first area.
  • the user may perform a sliding input on the screen, and the track of the sliding input may form a closed figure, and the area within the closed figure is the first area.
  • the electronic device may convert the first static layer in the first area into the first dynamic layer by a preset rule, and the preset rule may be the static layer at the top layer among the multiple layers in the first area.
  • the above-mentioned first static layer may refer to a certain static layer in the first area; or, the first static layer may refer to multiple static layers in the first area. Layers. You can refer to the relevant description in the following embodiments, which will not be repeated here.
  • the preset condition may further include: the first area includes at least two layers, that is, the first static layer is at least two The static layer in the layer.
  • the above-mentioned first dynamic layer has a movable attribute
  • the conversion of the first static layer into the first dynamic layer may specifically include: changing the attribute of the first static layer to change the attribute from the non-movable layer.
  • the attribute is changed to a movable attribute, thereby obtaining the first dynamic layer.
  • the interface to which the first static layer belongs may include at least one of the following:
  • Interfaces in third-party applications For example, the operation interface in the game application, the product interface in the shopping application, the chat interface in the social application, and the video playback interface in the video application, etc.
  • the interface in the web page For example, a search interface or other possible interfaces in a web page.
  • the screen in the embodiment of the present invention may be any of the following: an LCD display, a picture tube display (CRT), a light emitting diode (LED), and a 3D display.
  • LCD liquid crystal display
  • CTR picture tube display
  • LED light emitting diode
  • 3D display 3D display
  • it can also be any other possible screen, which is not limited in the embodiment of the present invention.
  • the electronic device provided in the embodiment of the present invention may include at least one screen.
  • the above multiple layers can be displayed on the first screen of at least one screen.
  • the multiple layers can be images displayed in full screen on the first screen, or multiple layers can be displayed on the first screen. Some of all the layers shown on.
  • Another way is that the layer is displayed on at least two screens of at least one screen.
  • the electronic device displays the first dynamic layer in the second area of the screen.
  • the above-mentioned second area may be any area on the screen that allows the normal display of the first dynamic layer.
  • the above-mentioned second area may include any one of the following: an area on the screen of the electronic device that allows the first dynamic layer to be displayed normally; and an area determined by the user's touch input on the first dynamic layer. Reference may be made to the specific description in the following embodiments, which will not be repeated here.
  • the above-mentioned first static layer may be a layer of multiple layers displayed on the screen of the electronic device.
  • the foregoing display of the first dynamic layer in the second area of the screen can be achieved in the following two possible ways:
  • the first step delete the first static layer from multiple layers, and add the first dynamic layer to multiple layers according to the position information of the second area to generate a new final Layer, that is, replace the first static layer in multiple layers with the first dynamic layer; the second step is to display the new final layer on the screen.
  • the first step is to delete the first static layer from multiple layers, and according to the position information and the second area of the layers other than the first static layer in the multiple layers
  • the position information of the multiple layers except the first static layer and the first dynamic layer corresponding to the second area are redrawn on one layer respectively to generate a new final layer
  • the second step is to display the new final layer on the screen.
  • the layer drawing stage it is possible to convert a static layer to a dynamic layer, so as to obtain a new final layer and display the new final layer.
  • the first dynamic layer is displayed in the second area of the screen.
  • the electronic device may first process the static layer 2 through a preset algorithm and convert it into the dynamic layer 4. After that, the electronic device can draw the dynamic layer 1, the dynamic layer 4, and the static layer 3 on the frame buffer to obtain the new final layer, and send the new final layer to the screen for display.
  • the electronic device can process static layer 2 through a preset algorithm and convert it to dynamic layer 4; and process static layer 3 through a preset algorithm to convert it to dynamic Layer 5. After that, the electronic device can draw the dynamic layer 1, the dynamic layer 4, and the dynamic layer 5 on the frame buffer to obtain the new final layer, and send the new final layer to the screen for display.
  • the embodiment of the present invention does not specifically limit the shape, size, and position of the first area and the second area on the screen of the electronic device, and can be determined according to usage requirements.
  • the embodiment of the present invention provides a display method.
  • the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the first static layer can be automatically converted to the first static layer.
  • the dynamic layer, or the first static layer can be converted into the first dynamic layer in response to the user's input.
  • the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
  • the user can trigger the electronic device to change the first static layer.
  • a static layer is converted to the first dynamic layer.
  • the first dynamic layer can be moved to other areas of the screen, thereby improving the user's operating experience.
  • the electronic device needs to first determine whether the first area displays a valid layer, and display the In the case of a valid layer, the first static layer is determined from the valid layers.
  • the above S101 may be implemented by the following S101A and S101B.
  • the electronic device receives a user's first input to the first area.
  • At least one layer can be displayed. It is understandable that when only one layer is displayed in an area, in order to ensure the normal display of the image, the one layer is not allowed to be moved, that is, the one layer is a static layer, and the static layer cannot be converted to Dynamic layers.
  • the electronic device may first detect whether the first area displays a valid layer, that is, whether the first area displays at least two layers. In the case where at least two layers are displayed in the first area, the electronic device may execute S101B below; in the case where one layer is displayed in the first area, the electronic device may execute S101C below.
  • the electronic device converts the topmost first static layer of the at least two layers into the first dynamic layer in the case where at least two layers are displayed in the first area .
  • the at least two layers are stacked on top of each other, and the layer located on the top layer is the TOP end layer.
  • the first area is sequentially superimposed with static layer 1, static layer 2, dynamic layer 3, and static layer 4 from bottom to top. Since the static layer 4 is located at the top of the four layers, the static layer 4 may be the layer that the user most wants to use or manipulate. In this way, the electronic device can convert the static layer 4 into a dynamic layer in response to the user's first input, that is, convert the first static layer located at the top of the at least two layers into the first dynamic layer.
  • the electronic device can automatically determine the area on the screen that allows the first dynamic layer to be displayed normally as the second Area and move the first dynamic layer to the second area, so that the electronic device can display the first dynamic layer in the second area.
  • the user can trigger the electronic device to move the first dynamic layer to the second area of the screen, so that the electronic device can display the first dynamic layer in the second area.
  • the electronic device may prompt the user that the first input to the first area is an invalid input.
  • the display method provided in the embodiment of the present invention may further include the following S101C.
  • the electronic device In response to the first input, displays prompt information when displaying a layer in the first area.
  • the above prompt information can be used to prompt the user to reselect the area.
  • the electronic device can display prompt information to remind the user to reselect the area.
  • the electronic device can confirm whether the selected area is valid by performing layer analysis on the first area. In the case where a valid layer is not displayed in the first area, the electronic device cannot perform layer conversion and displays a prompt message to remind the user to select the area on the screen again.
  • the electronic device can convert the first static layer into the first dynamic layer, so that the user can move the layer conveniently.
  • the electronic device may first determine the second area, and then move the first dynamic layer to the second area of the screen.
  • the display method provided by the embodiment of the present invention may further include the following S103, or include the following S104 and S105.
  • the electronic device determines the area on the screen that allows the normal display of the first dynamic layer to be the second area.
  • the above-mentioned area that allows the normal display of the first dynamic layer refers to an area where the content (for example, text, pictures, tables, etc.) in the first dynamic layer can be completely displayed.
  • the electronic device can detect the image content on the screen to determine the area where the first dynamic layer is allowed to be displayed normally, that is, the second area.
  • the area that allows the normal display of the first dynamic layer determined by the electronic device may include at least one area, and the second area may be an area in the at least one area.
  • the electronic device can convert the first static layer to the first dynamic layer, and detect the content on the screen, and it has been determined to allow The second area 02 where the first dynamic layer is normally displayed.
  • the coordinates of the four vertices of the second area 02 may be (x3, y3), (x3, y4), (x4, y3), and (x4, y4), respectively. Then, the electronic device can move the first dynamic image to the second area 02 and display the first dynamic layer in the second area 02.
  • the display method of the embodiment of the present invention when it detects that there is a layer that cannot be displayed normally on the screen, it automatically calculates the area that can be displayed normally, converts the abnormal static layer into a dynamic layer, and then moves the layer.
  • the dynamic layer is displayed in this area, which can realize the automatic adaptation and adjustment function of the screen display content, thereby improving the quality of the composite picture and providing users with a better viewing experience.
  • the electronic device receives the user's touch input on the first dynamic layer.
  • the first dynamic layer has a movement attribute.
  • One way is that the user can move the first dynamic layer to other areas of the screen, such as the second area, by dragging the first dynamic layer.
  • Another way is that the user can long press the first dynamic layer to make it in a movable state; after that, the user can click on a certain area on the screen, so that the electronic device can determine the certain area as the second area.
  • the electronic device determines the area where the end position of the touch input is located as the second area.
  • the above-mentioned second area may be one area or multiple areas on the screen.
  • the user's selection input of the first static layer in the first area of the screen is received as an example.
  • multiple layers are displayed on the screen of the electronic device, and the content in the first static layer is displayed in the central area of the screen, namely the first area 01, where the first area 01
  • the coordinates of the four vertices of can be (x5, y5), (x5, y6), (x6, y5) and (x6, y6) respectively. If the user thinks that the display position of the content in the first static layer does not meet the operating habits, the user can circle the first area 01 by sliding input on the screen to trigger the electronic device to convert the first static layer to the first Dynamic layers.
  • the user can drag the first dynamic layer to the second area 03 of the screen, and the coordinates of the four vertices of the second area 03 can be ( x7, y7), (x7, y8), (x8, y7) and (x8, y8); another way is, as shown in Figure 7 (c), the user can set the Drag the "Start with the card” control to a second area 031 of the screen, and drag the "Start Game” control in the first dynamic layer to another second area 032 of the screen, including a second area 031
  • the coordinates of the four vertices of can be respectively (x7, y10), (x7, y8), (x8, y10) and (x8, y8), and the coordinates of the four vertices of the other second area 032 can be respectively (x7, y7 ), (x7, y9), (x8, y7) and (x8, y9).
  • the display method of the embodiment of the present invention can allow the user to select any area on the display screen. After confirming that there are at least two superimposed layers in the area selected by the user, the static layer of the selected first layer can be extracted and transformed through an algorithm. At this time, the static layer becomes a dynamic layer, and the window is familiar. The user can move the operating window of the dynamic layer at will, which can improve the user experience; at the same time, the operating window and interface of the dynamic layer are also more personalized The user can adjust the display position of the layer according to the usage scene and usage habits.
  • the embodiment of the present invention provides a restoration reset entry for the converted dynamic layer, and restores the converted layer from the moved position to the original position.
  • the display method provided by the embodiment of the present invention may further include the following S106 and S107.
  • the electronic device receives a second input from the user.
  • the above-mentioned second input can be used to restore the converted layer from the moved position to the original position.
  • the above-mentioned second input may be an input to a target control, and the target control is used to confirm that the converted dynamic layer is restored from the position after the movement to the original position before the movement; or, the second input may be an input to the first A dynamic layer is dragged input from the second area of the screen to the first area; or, the second input may be a preset input, for example, it may be an input that slides a preset number of times in a preset direction.
  • the second input may also be other possible inputs, which are not specifically limited in the embodiment of the present invention, and may be determined according to actual usage requirements.
  • the electronic device In response to the second input, displays the first dynamic layer in the first area, and converts the first dynamic layer into a first static layer.
  • FIG. 6 is still taken as an example for exemplary description.
  • the content of the first dynamic layer can be displayed in the second area 02 of the screen.
  • the electronic device can respond to the click input, as shown in Figure 6(a), move the first dynamic layer from the second area 02 of the screen to the first area 01, and in the first area Area 01 displays the first dynamic layer, and converts the first dynamic layer into the first static layer.
  • the display method of the embodiment of the present invention provides a restoration reset entry, which can be used to restore the position of the layer to the original position, so that the position of the layer can be restored when the user wants to restore the initial setting. .
  • the icon display methods shown in the above figures are all exemplified in conjunction with one figure in the embodiment of the present invention.
  • the icon display method shown in each of the above figures can also be implemented in combination with any other figures illustrated in the above embodiments that can be combined, and will not be repeated here.
  • an embodiment of the present invention provides an electronic device 900.
  • the electronic device includes a display module 901 and a processing module 902.
  • the processing module 902 may be configured to convert the first static layer to the first dynamic layer when the first static layer displayed by the display module 901 in the first area of the screen satisfies a preset condition.
  • the display module 901 can be used to display the first dynamic layer in the second area of the screen.
  • the preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area, and the first input of the user on the first static layer in the first area is received.
  • the above-mentioned second area may include any one of the following: an area on the screen that allows the first dynamic layer to be displayed normally; an area determined by a user's touch input to the first dynamic layer.
  • the electronic device provided in the embodiment of the present invention may further include a receiving module 903.
  • the receiving module 903 may be used to receive a user's first input to the first area.
  • the processing module 902 may be specifically configured to respond to the first input received by the receiving module 903, and in the case where at least two layers are displayed in the first area, convert the first static image at the top of the at least two layers The layer is converted to the first dynamic layer.
  • the first static layer is a layer among multiple layers displayed on the screen.
  • the processing module 902 can also be used to delete the first static layer from the multiple layers, and add the first dynamic layer to the multiple layers according to the position information of the second area to generate the final layer.
  • the display module 901 can be specifically used to display the final layer on the screen.
  • the electronic device provided in the embodiment of the present invention may further include a receiving module 903.
  • the receiving module 903 may be configured to receive the second input of the user after the display module 901 displays the first dynamic layer in the second area of the screen.
  • the processing module 902 may also be configured to display the first dynamic layer in the first area in response to the second input received by the receiving module 903, and convert the first dynamic layer into a first static layer.
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • An embodiment of the present invention provides an electronic device. If the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the electronic device can automatically convert the first static layer to the first dynamic layer. The layer, or the electronic device may convert the first static layer into the first dynamic layer in response to the user's input. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
  • FIG. 11 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
  • the electronic device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , Processor 210, and power supply 211.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
  • the processor 210 is configured to convert the first static layer into a first dynamic layer when the first static layer displayed on the first area of the screen by the control display unit 206 meets a preset condition; and It is used to control the display unit 206 to display the first dynamic layer in the second area of the screen.
  • the preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area, and the first input of the user on the first static layer in the first area is received.
  • An embodiment of the present invention provides an electronic device. If the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the electronic device can automatically convert the first static layer to the first dynamic layer. The layer, or the electronic device may convert the first static layer into the first dynamic layer in response to the user's input. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
  • the radio frequency unit 201 can be used for receiving and sending signals during the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 210; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the electronic device 200 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 204 is used to receive audio or video signals.
  • the input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042.
  • the graphics processing unit 2041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 206.
  • the image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202.
  • the microphone 2042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
  • the electronic device 200 further includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light.
  • the proximity sensor can turn off the display panel 2061 and the display panel 2061 when the electronic device 200 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 205 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 206 is used to display information input by the user or information provided to the user.
  • the display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 207 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 207 includes a touch panel 2071 and other input devices 2072.
  • the touch panel 2071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operate).
  • the touch panel 2071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 210, the command sent by the processor 210 is received and executed.
  • the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 207 may also include other input devices 2072.
  • other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 2071 can be overlaid on the display panel 2061.
  • the touch panel 2071 detects a touch operation on or near it, it transmits it to the processor 210 to determine the type of the touch event, and then the processor 210 determines the type of touch event according to the touch
  • the type of event provides corresponding visual output on the display panel 2061.
  • the touch panel 2071 and the display panel 2061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 208 is an interface for connecting an external device and the electronic device 200.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 208 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 200 or can be used to connect the electronic device 200 to an external device. Transfer data between devices.
  • the memory 209 can be used to store software programs and various data.
  • the memory 209 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 210 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 209, and calls the data stored in the memory 209 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, and the modem
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
  • the electronic device 200 may also include a power source 211 (such as a battery) for supplying power to various components.
  • a power source 211 such as a battery
  • the power source 211 may be logically connected to the processor 210 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 200 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor 210 as shown in FIG. 11, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is
  • the processor 210 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • computer-readable storage media such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a storage medium such as ROM/RAM, magnetic disk,
  • the optical disc includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A display method and an electronic device, relating to the technical field of communications. The method comprises: when a first static layer displayed in a first area of a screen satisfies a preset condition, converting the first static layer into a first dynamic layer (S101); and displaying the first dynamic layer in a second area of the screen (S102), wherein the preset condition comprises any one of the following: the first static layer cannot be normally displayed in the first area, and a first input of a user for the first static layer in the first area is received.

Description

显示方法及电子设备Display method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年02月26日在中国提交的中国专利申请号No.202010121401.8的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010121401.8 filed in China on February 26, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种显示方法及电子设备。The embodiments of the present application relate to the field of communication technology, and in particular, to a display method and an electronic device.
背景技术Background technique
通常,在每个图层中可以***文本、图片和表格等,而不同的图层可以通过上下叠放的方式形成界面,从而实现了对界面中元素的精确定位。Generally, text, pictures, tables, etc. can be inserted in each layer, and different layers can be stacked up and down to form an interface, thereby achieving precise positioning of elements in the interface.
目前,图层可以分为两种:一种是动态图层,用户可以根据使用场景和使用习惯等,调整显示屏中的动态图层的显示位置,例如,电子设备可以显示多个窗口操作界面,这些窗口操作界面支持用户的移动操作;另一种是静态图层,在设计阶段研发人员通过对控件图层选型,静态图层的位置参数是固化的,即静态图层具体显示在显示屏中的哪个位置已经被固定。Currently, layers can be divided into two types: one is dynamic layers. Users can adjust the display position of dynamic layers in the display according to the use scene and usage habits. For example, electronic devices can display multiple window operation interfaces. , These window operation interfaces support the user’s mobile operation; the other is static layer. In the design stage, the R&D personnel select the control layer. The position parameter of the static layer is solidified, that is, the static layer is displayed in the display. Which position on the screen has been fixed.
然而,由于静态图层的显示位置已经被固定,因此在某些情况下静态图层和显示屏可能无法兼容。例如,当字幕图层为静态图层,且显示屏为曲面屏时,字幕图层和曲面屏的边缘区域无法兼容,那么可能会出现部分字幕显示不全的问题,从而降低了界面的画面质量。However, since the display position of the static layer has been fixed, in some cases the static layer and the display screen may not be compatible. For example, when the subtitle layer is a static layer and the display screen is a curved screen, the subtitle layer and the edge area of the curved screen are not compatible, then some subtitles may be displayed incompletely, thereby reducing the picture quality of the interface.
发明内容Summary of the invention
本发明实施例提供一种显示方法及电子设备,以解决静态图层和显示屏无法兼容会降低画面质量的问题。The embodiments of the present invention provide a display method and an electronic device to solve the problem that the incompatibility between static layers and the display screen will reduce the picture quality.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供了一种显示方法。该方法包括:在屏幕的第一区域 显示的第一静态图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层;在屏幕的第二区域显示该第一动态图层;其中,该预设条件包括以下任一项:该第一静态图层在该第一区域无法正常显示、接收到用户对该第一区域中的该第一静态图层的第一输入。In the first aspect, an embodiment of the present invention provides a display method. The method includes: when the first static layer displayed in the first area of the screen satisfies a preset condition, converting the first static layer into a first dynamic layer; and displaying the first static layer in the second area of the screen. Dynamic layer; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static layer in the first area is received by the user. enter.
第二方面,本发明实施例提供了一种电子设备。该电子设备包括显示模块和处理模块。处理模块,用于在显示模块在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层;显示模块,用于在屏幕的第二区域显示该第一动态图层;其中,该预设条件包括以下任一项:该第一静态图层在该第一区域无法正常显示、接收到用户对该第一区域中的该第一静态图层的第一输入。In the second aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a display module and a processing module. The processing module is used for converting the first static layer into the first dynamic layer when the first static layer displayed by the display module in the first area of the screen satisfies the preset condition; the display module is used for The second area of the screen displays the first dynamic layer; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the user’s information in the first area is received The first input of the first static layer.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的显示方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor. The computer program is executed by the processor to realize the first The steps of the display method provided by the aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的显示方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program implements the steps of the display method provided in the first aspect when the computer program is executed by a processor.
在本发明实施例中,可以在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层;在屏幕的第二区域显示该第一动态图层;其中,该预设条件包括以下任一项:该第一静态图层在该第一区域无法正常显示、接收到用户对该第一区域中的该第一静态图层的第一输入。通过该方案,如果在屏幕上显示的图层中的第一静态图层在第一区域无法正常显示,那么可以自动将该第一静态图层转换为第一动态图层,或者,可以响应于用户的输入将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动至屏幕的其他区域,从而可以使第一动态图层能够正常显示,进而提高了屏幕画面的质量。In the embodiment of the present invention, when the first static layer displayed in the first area of the screen meets the preset condition, the first static layer can be converted into the first dynamic layer; in the second area of the screen Display the first dynamic layer; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static image in the first area is received by the user The first input of the layer. With this solution, if the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, then the first static layer can be automatically converted to the first dynamic layer, or it can respond to The user's input converts the first static layer into the first dynamic layer. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
附图说明Description of the drawings
图1为本发明实施例提供的一种安卓操作***的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种显示方法的示意图之一;FIG. 2 is one of the schematic diagrams of a display method provided by an embodiment of the present invention;
图3为本发明实施例提供的三种图层合成方法的示意图;FIG. 3 is a schematic diagram of three layer composition methods provided by an embodiment of the present invention;
图4为本发明实施例提供的一种显示方法的示意图之二;4 is a second schematic diagram of a display method provided by an embodiment of the present invention;
图5为本发明实施例提供的一种显示方法的示意图之三;FIG. 5 is the third schematic diagram of a display method provided by an embodiment of the present invention;
图6为本发明实施例提供的移动图层的示意图之一;FIG. 6 is one of the schematic diagrams of a moving layer provided by an embodiment of the present invention;
图7为本发明实施例提供的移动图层的示意图之二;FIG. 7 is the second schematic diagram of a moving layer provided by an embodiment of the present invention;
图8为本发明实施例提供的一种显示方法的示意图之四;FIG. 8 is a fourth schematic diagram of a display method provided by an embodiment of the present invention;
图9为本发明实施例提供的电子设备的结构示意图之一;FIG. 9 is one of structural schematic diagrams of an electronic device provided by an embodiment of the present invention;
图10为本发明实施例提供的电子设备的结构示意图之二;FIG. 10 is a second structural diagram of an electronic device provided by an embodiment of the present invention;
图11为本发明实施例提供的电子设备的硬件示意图。FIG. 11 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone These three situations. The symbol "/" in this document represents the relationship that the associated object is or, for example, A/B represents A or B.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一区域和第二区域等是用于区别不同的区域,而不是用于描述区域的特定顺序。The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first area and the second area are used to distinguish different areas, rather than to describe the specific order of the areas.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "plurality" means two or more than two, for example, a plurality of elements means two or more elements, and so on.
本发明实施例提供一种显示方法及电子设备,可以在屏幕的第一区域显示的第一静态 图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层;在屏幕的第二区域显示该第一动态图层;其中,该预设条件包括以下任一项:该第一静态图层在该第一区域无法正常显示、接收到用户对该第一区域中的该第一静态图层的第一输入。通过该方案,如果在屏幕上显示的图层中的第一静态图层在第一区域无法正常显示,那么可以自动将该第一静态图层转换为第一动态图层,或者,可以响应于用户的输入将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动至屏幕的其他区域,从而可以使第一动态图层能够正常显示,进而提高了屏幕画面的质量。The embodiments of the present invention provide a display method and an electronic device, which can convert the first static layer into the first dynamic layer when the first static layer displayed in the first area of the screen satisfies a preset condition; The first dynamic layer is displayed in the second area of the screen; wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and it is received that the user is in the first area The first input of the first static layer. With this solution, if the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, then the first static layer can be automatically converted to the first dynamic layer, or it can respond to The user's input converts the first static layer into the first dynamic layer. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
本发明实施例中的电子设备可以为具有操作***的电子设备。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
以安卓操作***为例,介绍一下本发明实施例提供的显示方法所应用的软件环境。Taking the Android operating system as an example, the software environment to which the display method provided in the embodiment of the present invention is applied is introduced.
如图1所示,为本发明实施例提供的一种安卓操作***的架构示意图。在图1中,安卓操作***的架构包括4层,分别为:应用程序层、应用程序框架层、***运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of an Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作***中的各个应用程序(包括***应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
***运行库层包括库(也称为***库)和安卓操作***运行环境。库主要为安卓操作***提供其所需的各类资源。安卓操作***运行环境用于为安卓操作***提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作***的操作***层,属于安卓操作***软件层次的最底层。内核层基于Linux内核为安卓操作***提供核心***服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作***为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作***的***架构,开发实现本发明实施例提供的显示方法的软件程序,从而使得该显示方法可以基于如图1所示的安卓操作***运行。即处理器或者电子设备可以通过在安卓操作***中运行该软件程序实现本发明实施例提供的显示方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the display method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. 1, so that the display method It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the display method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为移动终端设备,也可以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc. The non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
本发明实施例提供的显示方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。The execution subject of the display method provided in the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the display method, and the details can be determined according to actual usage requirements. The embodiment is not limited.
通常,图层是由多个像素点组合成的,而电子设备的屏幕画面是由多个图层叠加显示成的。屏幕画面的生成过程具体可以包括设计阶段、图层绘制阶段和渲染阶段等。为了更清楚地示意本发明实施例,下面将分别对各个阶段进行示例性说明。Generally, a layer is composed of multiple pixels, and the screen picture of an electronic device is displayed by superimposing multiple layers. The screen image generation process may specifically include a design phase, a layer drawing phase, and a rendering phase. In order to illustrate the embodiments of the present invention more clearly, each stage will be exemplified below.
在设计阶段,软件工程师可以通过对控件图层的选型,使得大部分控件排放的具***置参数固化。例如,图层显示在屏幕中具体的哪个位置,图层是否支持用户的移动等,如果图层支持用户的移动则为动态图层;如果图层不支持用户的移动则为静态图层。在实际中,大部分图层为静态图层,而这些静态图层是不可移动的。In the design stage, software engineers can solidify the specific position parameters of most controls by selecting the control layer. For example, where the layer is displayed on the screen, whether the layer supports the user's movement, etc., if the layer supports the user's movement, it is a dynamic layer; if the layer does not support the user's movement, it is a static layer. In practice, most layers are static layers, and these static layers are not movable.
在图层绘制阶段,先将所有图层绘制到一个最终层(frame buffer)上,再将frame buffer送到电子设备的屏幕显示,例如,送到液晶显示器(liquid crystal display,LCD)显示。由于合成frame buffer与送到LCD显示一般是异步的,因此可以称为离线合成。例如,如图3中的(a)所示,电子设备可以先将动态图层1、静态图层2和静态图层3绘制在frame buffer上,生成最终图层,然后,电子设备可以将最终图层送到LCD进行显示。In the layer drawing stage, all layers are first drawn on a final layer (frame buffer), and then the frame buffer is sent to the screen of the electronic device for display, for example, to a liquid crystal display (LCD) for display. Since frame buffer synthesis and sending to LCD display are generally asynchronous, it can be called offline synthesis. For example, as shown in (a) in Figure 3, the electronic device can first draw the dynamic layer 1, the static layer 2 and the static layer 3 on the frame buffer to generate the final layer, and then the electronic device can The layers are sent to the LCD for display.
在渲染阶段,电子设备可以按照制定的位置进行渲染,从而实现在LCD的画面显示。在现有技术中,屏幕画面中的静态图层是不可移动的,用户只能移动动态图层。静态图层的显示位置已经被固定,但在某些场景下,不可以移动的静态图层可能会为用户带来不便。In the rendering stage, the electronic device can perform rendering according to the specified position, so as to realize the screen display on the LCD. In the prior art, the static layer in the screen picture is not movable, and the user can only move the dynamic layer. The display position of static layers has been fixed, but in some scenes, static layers that cannot be moved may cause inconvenience to users.
示例性的,一种可能的场景为,有时静态图层和显示屏可能无法兼容,例如,当字幕图层为静态图层,且显示屏为曲面屏时,字幕图层和曲面屏的边缘区域无法兼容,那么可能会出现部分字幕显示不全的问题,从而降低了界面的画面质量。另一种可能的场景为, 静态图层的位置不符合用户的操作习惯,例如,用户习惯使用右手操作屏幕,但由于静态图层可能位于屏幕的左侧,从而降低了用户的操作体验感。Exemplarily, a possible scenario is that sometimes the static layer and the display screen may not be compatible. For example, when the subtitle layer is a static layer and the display screen is a curved screen, the subtitle layer and the edge area of the curved screen If it is not compatible, some subtitles may not be displayed completely, which reduces the picture quality of the interface. Another possible scenario is that the location of the static layer does not conform to the user's operating habits. For example, the user is accustomed to using the right hand to operate the screen, but the static layer may be located on the left side of the screen, which reduces the user's operating experience.
为解决上述问题,本发明实施例提供了一种显示方法。这种方法允许在图层绘制阶段修改设计师的图纸,可以通过一系列的算法转换,将之前静态图层的属性修改为动态图层属性,满足动态图层转换后移动的需求。下面以电子设备为例,对本发明实施例提供的显示方法进行示例性的说明。To solve the above-mentioned problem, an embodiment of the present invention provides a display method. This method allows the designer's drawings to be modified in the layer drawing stage. A series of algorithm conversions can be used to modify the properties of the previous static layer to the dynamic layer property to meet the needs of moving after the dynamic layer is converted. The following takes an electronic device as an example to illustrate the display method provided by the embodiment of the present invention.
如图2所示,本发明实施例提供一种显示方法。该方法可以应用于电子设备。该方法可以包括下述的S101和S102。As shown in FIG. 2, an embodiment of the present invention provides a display method. This method can be applied to electronic devices. The method may include the following S101 and S102.
S101、在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,电子设备将该第一静态图层转换为第一动态图层。S101. When the first static layer displayed in the first area of the screen satisfies a preset condition, the electronic device converts the first static layer into a first dynamic layer.
其中,上述预设条件可以包括以下任一项:第一静态图层在屏幕的第一区域无法正常显示,接收到用户对屏幕的第一区域中的第一静态图层的第一输入。The above-mentioned preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area of the screen, and the first input of the user to the first static layer in the first area of the screen is received.
本发明实施例中,在电子设备的屏幕上显示的图层可以经历设计阶段、图层绘制阶段和渲染阶段等生成。具体的,设计师可以根据设计需求,在设计阶段设置多个图层中各个图层的显示位置、图层属性等,其中,图层属性是指图层为静态图层或动态图层。在用户使用电子设备时,用户可以通过一个输入,触发电子设备将已经完成设计的多个图层绘制在frame buffer上,生成最终图层,然后,电子设备可以将最终图层送到屏幕进行显示。可以参照实施例中的相关描述,此处不再赘述。In the embodiment of the present invention, the layer displayed on the screen of the electronic device may be generated through the design phase, the layer drawing phase, and the rendering phase. Specifically, the designer can set the display position and layer attributes of each layer in multiple layers in the design stage according to the design requirements, where the layer attribute refers to whether the layer is a static layer or a dynamic layer. When the user uses an electronic device, the user can trigger the electronic device to draw multiple layers of the completed design on the frame buffer through an input to generate the final layer, and then the electronic device can send the final layer to the screen for display . Reference may be made to the relevant description in the embodiment, which will not be repeated here.
可选的,第一静态图层为在电子设备的屏幕中显示的多个图层中的图层。Optionally, the first static layer is a layer of multiple layers displayed on the screen of the electronic device.
可选的,上述多个图层可以包括静态图层和动态图层,或者,可以仅包括动态图层。Optionally, the foregoing multiple layers may include static layers and dynamic layers, or may only include dynamic layers.
示例性的,仍以上述图3中的(a)为例进行示例性说明。电子设备可以先将动态图层1、静态图层2和静态图层3绘制在frame buffer上,生成最终图层,该最终图层包括多个图层;然后,电子设备可以将生成最终图层送到屏幕中进行显示。Exemplarily, (a) in FIG. 3 above is still taken as an example for illustrative description. The electronic device can first draw the dynamic layer 1, the static layer 2 and the static layer 3 on the frame buffer to generate the final layer, which includes multiple layers; then, the electronic device can generate the final layer Send it to the screen for display.
需要说明的是,本发明实施例对上述多个图层的数量不作具体限定,可以根据实际使用需求确定。It should be noted that the embodiment of the present invention does not specifically limit the number of the foregoing multiple layers, and may be determined according to actual use requirements.
可选的,电子设备可以在屏幕中显示至少一个图像,每个图像均是由至少一个图层叠加成的。第一静态图层可以为至少一个图像中的某个图像中的至少一个图层,也可以为至 少一个图像中的多个图像中的多个图层。下述实施例均是以第一静态图层可以为至少一个图像中的某个图像中的至少一个图层为例进行说明的,其并不对本发明实施例形成任何限定。Optionally, the electronic device may display at least one image on the screen, and each image is superimposed by at least one layer. The first static layer may be at least one layer in a certain image in at least one image, or may be multiple layers in a plurality of images in at least one image. The following embodiments are all described with an example in which the first static layer may be at least one layer in a certain image in at least one image, which does not limit the embodiment of the present invention in any way.
可选的,在电子设备的屏幕上显示多个图层的过程中,电子设备可以按照预设周期检测该多个图层中的图层是否满足预设条件。在该多个图层中的第一静态图层满足预设条件的情况下,电子设备可以将该第一静态图层转换为第一动态图层。而在该多个图层中的静态图层均不满足预设条件的情况下,静态图层可以不作任何转换。Optionally, in the process of displaying multiple layers on the screen of the electronic device, the electronic device may detect whether the layers in the multiple layers meet the preset condition according to a preset cycle. In the case that the first static layer of the multiple layers meets the preset condition, the electronic device may convert the first static layer into the first dynamic layer. In the case where none of the static layers in the multiple layers meet the preset conditions, the static layers may not undergo any conversion.
可选的,上述预设条件可以包括以下任一项:Optionally, the foregoing preset conditions may include any of the following:
预设条件1、第一静态图层在屏幕的第一区域无法正常显示。Preset conditions 1. The first static layer cannot be displayed normally in the first area of the screen.
本发明实施例中,在将多个图层发送到屏幕显示时,由于多种原因会导致多个图层中的某些图层中的内容无法在屏幕中正常显示。电子设备可以通过预设算法,将合成后但尚未显示的多个图层、在屏幕上显示的多个图层进行图像内容比对,从而确定出多个图层中的无法正常显示的图层。例如第一静态图层。In the embodiment of the present invention, when multiple layers are sent to the screen for display, the content in some of the multiple layers cannot be displayed normally on the screen due to various reasons. The electronic device can compare the image content of multiple layers that have been synthesized but not yet displayed and multiple layers displayed on the screen through a preset algorithm, so as to determine the layers that cannot be displayed normally among the multiple layers. . For example, the first static layer.
一种可能的情况为,电子设备的屏幕为不规则屏。以不规则屏为曲面屏为例,当将多个图层中的某些图层投射至曲面屏的弯曲部分时,位于第一图像边缘的某些图层与该弯曲部分可能无法兼容,那么某些图层中的内容在弯曲部分会显示不完全,即只能显示某些图层中的一部分内容,或者某些图层中的内容完全不会显示,从而降低了画面质量。如果位于第一图像边缘的图层为动态图层,那么在动态图层中的内容无法正常显示的情况下,用户可以将该动态图层拖动至屏幕的其他区域,以使得该动态图层中的内容可以正常显示;而如果位于第一图像边缘的图层为静态图层,例如第一静态图层,那么需要先将该第一静态图层转换为第一动态图层,之后用户才能将转换后的第一动态图层移动至屏幕的其他区域。One possible situation is that the screen of the electronic device is an irregular screen. Taking an irregular screen as a curved screen as an example, when some of the multiple layers are projected onto the curved part of the curved screen, some layers at the edge of the first image may not be compatible with the curved part, then The content in some layers will be incompletely displayed in the curved part, that is, only part of the content in some layers can be displayed, or the content in some layers will not be displayed at all, which reduces the picture quality. If the layer at the edge of the first image is a dynamic layer, the user can drag the dynamic layer to other areas of the screen to make the dynamic layer The content in can be displayed normally; and if the layer at the edge of the first image is a static layer, such as the first static layer, then the first static layer needs to be converted to the first dynamic layer before the user can Move the converted first dynamic layer to other areas of the screen.
另一种可能的情况为,电子设备的屏幕为规则屏幕,但提供多个图层的软件与电子设备无法完全兼容,这使得在将多个图层映射至屏幕时,无法兼容的图层会在屏幕上显示不全。如果显示不全的图层为动态图层,那么用户可以将该动态图层拖动至屏幕的其他区域,以使得该动态图层中的内容可以正常显示;而如果显示不全的图层为静态图层,例如第一静态图层,那么需要先将该第一静态图层转换为第一动态图层,之后才能将转换后的第一 动态图层移动至屏幕的其他区域。Another possible situation is that the screen of the electronic device is a regular screen, but the software that provides multiple layers is not fully compatible with the electronic device. This makes the incompatible layers appear when multiple layers are mapped to the screen. Incomplete display on the screen. If the incompletely displayed layer is a dynamic layer, the user can drag the dynamic layer to other areas of the screen so that the content in the dynamic layer can be displayed normally; and if the incompletely displayed layer is a static image Layer, such as the first static layer, then the first static layer needs to be converted to the first dynamic layer before the converted first dynamic layer can be moved to other areas of the screen.
需要说明的是,在预设条件1下,上述第一静态图层可以是指多个图层中无法在屏幕上正常显示的某一个静态图层;或者,第一静态图层可以是指多个图层中无法在屏幕上正常显示的全部静态图层,此时,第一静态图层可能包括一个静态图层,也可能包括多个静态图层。It should be noted that under preset condition 1, the above-mentioned first static layer may refer to a certain static layer of multiple layers that cannot be displayed normally on the screen; or, the first static layer may refer to multiple layers. All the static layers in the three layers that cannot be displayed normally on the screen. At this time, the first static layer may include one static layer or multiple static layers.
预设条件2、接收到用户对屏幕的第一区域中的第一静态图层的第一输入。The preset condition 2. The first input of the user on the first static layer in the first area of the screen is received.
本发明实施例中,第一静态图层可以在第一区域正常显示或者无法正常显示。电子设备可以在下述任意一种可能的场景下,接收到用户对静态图层的第一输入:In the embodiment of the present invention, the first static layer may or may not be displayed normally in the first area. The electronic device can receive the user's first input to the static layer in any of the following possible scenarios:
一种可能的场景为,在将多个图层发送到屏幕显示时,由于多种原因会导致多个图层的某些图层中的内容无法在屏幕中正常显示。以第一静态图层无法在屏幕的第一区域正常显示为例,用户可以通过对第一静态图层的选择输入,触发电子设备将该第一静态图层转换为第一动态图层,以便对第一动态图层进行移动。One possible scenario is that when multiple layers are sent to the screen for display, the content in some layers of the multiple layers cannot be displayed normally on the screen due to various reasons. Taking the first static layer that cannot be displayed normally in the first area of the screen as an example, the user can trigger the electronic device to convert the first static layer into the first dynamic layer by selecting and inputting the first static layer. Move the first dynamic layer.
另一种可能的场景为,在将多个图层发送到屏幕之后,屏幕可以正常显示多个图层,但是多个图层中的某些图层的显示位置可能并不符合用户需求或用户习惯。以第一静态图层在屏幕的第一区域正常显示为例,用户可以通过对第一静态图层的选择输入,触发电子设备将该第一静态图层转换为第一动态图层,以便对第一动态图层进行移动。Another possible scenario is that after sending multiple layers to the screen, the screen can display multiple layers normally, but the display position of some of the multiple layers may not meet the needs of the user or the user. Habit. Taking the normal display of the first static layer in the first area of the screen as an example, the user can trigger the electronic device to convert the first static layer into the first dynamic layer by selecting and inputting the first static layer, so that the The first dynamic layer is moved.
本发明实施例中,上述第一输入可以用于选中第一区域中的第一静态图层。In the embodiment of the present invention, the above-mentioned first input may be used to select the first static layer in the first area.
可选的,上述对第一静态图层的第一输入可以为以下任一项:Optionally, the aforementioned first input to the first static layer may be any of the following:
(1)用户可以在屏幕中进行点击输入,电子设备可以将点击输入所在的区域作为第一区域。如此,电子设备可以将第一区域中的第一静态图层转换为第一动态图层。(1) The user can perform tap input on the screen, and the electronic device can use the area where the tap input is located as the first area. In this way, the electronic device can convert the first static layer in the first area into the first dynamic layer.
(2)第一静态图层为通过在第一区域的圈选输入,从第一区域中选择的静态图层。具体的,用户可以在屏幕中进行滑动输入,该滑动输入的轨迹可以形成一个闭合图形,该闭合图形内的区域即为第一区域。如此,电子设备可以预设规则将第一区域中的第一静态图层转换为第一动态图层,该预设规则可以为第一区域的多个图层中位于最上层的静态图层。(2) The first static layer is the static layer selected from the first area through the circle selection input in the first area. Specifically, the user may perform a sliding input on the screen, and the track of the sliding input may form a closed figure, and the area within the closed figure is the first area. In this way, the electronic device may convert the first static layer in the first area into the first dynamic layer by a preset rule, and the preset rule may be the static layer at the top layer among the multiple layers in the first area.
需要说明的是,在预设条件2下,上述第一静态图层可以是指第一区域中的某一个静态图层;或者,第一静态图层可以是指第一区域中的多个静态图层。可以参照下述实施例 中的相关描述,此处不予赘述。It should be noted that under preset condition 2, the above-mentioned first static layer may refer to a certain static layer in the first area; or, the first static layer may refer to multiple static layers in the first area. Layers. You can refer to the relevant description in the following embodiments, which will not be repeated here.
可选的,在上述预设条件为预设条件1或预设条件2的情况下,预设条件还可以包括:第一区域包括至少两个图层,即第一静态图层为至少两个图层中的静态图层。Optionally, when the foregoing preset condition is preset condition 1 or preset condition 2, the preset condition may further include: the first area includes at least two layers, that is, the first static layer is at least two The static layer in the layer.
可选的,本发明实施例中,上述第一动态图层具备可移动属性,将第一静态图层转换为第一动态图层具体可以包括:更改第一静态图层的属性,将由不可移动属性更改为可移动属性,从而得到第一动态图层。Optionally, in the embodiment of the present invention, the above-mentioned first dynamic layer has a movable attribute, and the conversion of the first static layer into the first dynamic layer may specifically include: changing the attribute of the first static layer to change the attribute from the non-movable layer. The attribute is changed to a movable attribute, thereby obtaining the first dynamic layer.
可选的,上述第一静态图层属于的界面可以包括以下至少一项:Optionally, the interface to which the first static layer belongs may include at least one of the following:
(a)电子设备的***界面。例如,桌面界面、解锁界面、开关机界面、控制界面、设置界面或其他可能的界面等。(a) The system interface of electronic equipment. For example, desktop interface, unlock interface, switch machine interface, control interface, setting interface or other possible interfaces, etc.
(b)第三方应用程序中的界面。例如,游戏应用程序中的操作界面、购物应用程序中的商品界面、社交应用程序中的聊天界面和视频应用程序中的视频播放界面等。(b) Interfaces in third-party applications. For example, the operation interface in the game application, the product interface in the shopping application, the chat interface in the social application, and the video playback interface in the video application, etc.
(c)网页中的界面。例如,网页中的搜索界面或其他可能的界面等。(c) The interface in the web page. For example, a search interface or other possible interfaces in a web page.
可选的,本发明实施例中的屏幕可以为以下任一项:LCD显示器、映象管显示器(cathode ray tube,CRT)、发光二极管显示器(light emitting diode,LED)、3D显示器。当然还可以为其他任意可能的屏幕,本发明实施例不作限定。Optionally, the screen in the embodiment of the present invention may be any of the following: an LCD display, a picture tube display (CRT), a light emitting diode (LED), and a 3D display. Of course, it can also be any other possible screen, which is not limited in the embodiment of the present invention.
可选的,本发明实施例提供的电子设备可以包括至少一个屏幕。一种方式为,上述多个图层可以显示在至少一个屏幕的第一屏幕上,例如,多个图层可以为在第一屏幕上全屏显示的图像,或者多个图层可以在第一屏幕上显示的所有图层中的部分图层。另一种方式为,图层显示在至少一个屏幕的至少两个屏幕上。Optionally, the electronic device provided in the embodiment of the present invention may include at least one screen. One way is that the above multiple layers can be displayed on the first screen of at least one screen. For example, the multiple layers can be images displayed in full screen on the first screen, or multiple layers can be displayed on the first screen. Some of all the layers shown on. Another way is that the layer is displayed on at least two screens of at least one screen.
S102、电子设备在屏幕的第二区域显示该第一动态图层。S102. The electronic device displays the first dynamic layer in the second area of the screen.
本发明实施例中,上述第二区域可以为屏幕中允许第一动态图层正常显示的任意区域。In the embodiment of the present invention, the above-mentioned second area may be any area on the screen that allows the normal display of the first dynamic layer.
可选的,上述第二区域可以包括以下任一项:电子设备的屏幕中允许第一动态图层正常显示的区域;通过用户对第一动态图层的触控输入确定的区域。可以参照下述实施例中的具体描述,此处不予赘述。Optionally, the above-mentioned second area may include any one of the following: an area on the screen of the electronic device that allows the first dynamic layer to be displayed normally; and an area determined by the user's touch input on the first dynamic layer. Reference may be made to the specific description in the following embodiments, which will not be repeated here.
本发明实施例中,上述第一静态图层可以为在电子设备的屏幕中显示的多个图层中的图层。上述在屏幕的第二区域显示第一动态图层可以通过下述两种可能的方式实现:In the embodiment of the present invention, the above-mentioned first static layer may be a layer of multiple layers displayed on the screen of the electronic device. The foregoing display of the first dynamic layer in the second area of the screen can be achieved in the following two possible ways:
一种可能的方式为:第一步,从多个图层中删除第一静态图层,并根据第二区域的位置信息,在多个图层中添加第一动态图层,生成新的最终图层,即将多个图层中的第一静态图层替换为第一动态图层;第二步,在屏幕上显示新的最终图层。One possible way is: In the first step, delete the first static layer from multiple layers, and add the first dynamic layer to multiple layers according to the position information of the second area to generate a new final Layer, that is, replace the first static layer in multiple layers with the first dynamic layer; the second step is to display the new final layer on the screen.
另一种可能的方式为:第一步,从多个图层中删除第一静态图层,并根据多个图层中除第一静态图层外的其他图层的位置信息和第二区域的位置信息,将多个图层中除第一静态图层外的其他图层、与第二区域对应的第一动态图层分别重新绘制在一个图层上,从而生成新的最终图层;第二步,在屏幕上显示新的最终图层。Another possible way is: the first step is to delete the first static layer from multiple layers, and according to the position information and the second area of the layers other than the first static layer in the multiple layers The position information of the multiple layers except the first static layer and the first dynamic layer corresponding to the second area are redrawn on one layer respectively to generate a new final layer; The second step is to display the new final layer on the screen.
需要说明的是,对于上述两种可能的方式,在图层绘制阶段,均可以实现由静态图层转换为动态图层,从而得到新的最终图层,并显示新的最终图层,其中,第一动态图层显示在屏幕的第二区域。It should be noted that for the above two possible methods, in the layer drawing stage, it is possible to convert a static layer to a dynamic layer, so as to obtain a new final layer and display the new final layer. Among them, The first dynamic layer is displayed in the second area of the screen.
例如,如图3中的(b)所示,电子设备可以先将静态图层2通过预设算法处理,转换为动态图层4。之后,电子设备可以将动态图层1、动态图层4和静态图层3绘制在frame buffer上,得到新的最终图层,并将新的最终图层送到屏幕中进行显示。For example, as shown in (b) of FIG. 3, the electronic device may first process the static layer 2 through a preset algorithm and convert it into the dynamic layer 4. After that, the electronic device can draw the dynamic layer 1, the dynamic layer 4, and the static layer 3 on the frame buffer to obtain the new final layer, and send the new final layer to the screen for display.
再例如,如图3中的(c)所示,电子设备可以将静态图层2通过预设算法处理,转换为动态图层4;并将静态图层3通过预设算法处理,转换为动态图层5。之后,电子设备可以将动态图层1、动态图层4和动态图层5绘制在frame buffer上,得到新的最终图层,并将新的最终图层送到屏幕中进行显示。For another example, as shown in (c) in Figure 3, the electronic device can process static layer 2 through a preset algorithm and convert it to dynamic layer 4; and process static layer 3 through a preset algorithm to convert it to dynamic Layer 5. After that, the electronic device can draw the dynamic layer 1, the dynamic layer 4, and the dynamic layer 5 on the frame buffer to obtain the new final layer, and send the new final layer to the screen for display.
需要说明的是,本发明实施例对电子设备的屏幕中的第一区域和第二区域的形状、大小和位置不作具体限定,可以根据使用需求确定。It should be noted that the embodiment of the present invention does not specifically limit the shape, size, and position of the first area and the second area on the screen of the electronic device, and can be determined according to usage requirements.
本发明实施例提供一种显示方法,一方面,如果在屏幕上显示的图层中的第一静态图层在第一区域无法正常显示,那么可以自动将该第一静态图层转换为第一动态图层,或者,可以响应于用户的输入将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动至屏幕的其他区域,从而可以使第一动态图层能够正常显示,进而提高了屏幕画面的质量。The embodiment of the present invention provides a display method. On the one hand, if the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the first static layer can be automatically converted to the first static layer. The dynamic layer, or the first static layer can be converted into the first dynamic layer in response to the user's input. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
另一方面,在屏幕上显示多个图层的过程中,如果多个图层中的第一静态图层在屏幕中的显示区域不是用户想要的区域,那么用户可以触发电子设备将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动 至屏幕的其他区域,从而提高了用户的操作体验感。On the other hand, in the process of displaying multiple layers on the screen, if the display area of the first static layer of the multiple layers on the screen is not the area that the user wants, the user can trigger the electronic device to change the first static layer. A static layer is converted to the first dynamic layer. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, thereby improving the user's operating experience.
可选的,在预设条件为接收到用户对屏幕的第一区域中的第一静态图层的第一输入的情况下,电子设备需要先确定第一区域是否显示有效图层,并在显示有效图层的情况下,从有效图层中确定第一静态图层。示例性的,结合图2,如图4所示,上述S101可以通过下述的S101A和S101B实现。Optionally, when the preset condition is that the user's first input to the first static layer in the first area of the screen is received, the electronic device needs to first determine whether the first area displays a valid layer, and display the In the case of a valid layer, the first static layer is determined from the valid layers. Exemplarily, in conjunction with FIG. 2, as shown in FIG. 4, the above S101 may be implemented by the following S101A and S101B.
S101A、电子设备接收用户对第一区域的第一输入。S101A. The electronic device receives a user's first input to the first area.
需要说明的是,对于用户对第一区域和第一输入的描述,可以参照上述实施例中对第一区域和第一输入的相关描述,此处不再赘述。It should be noted that, for the user's description of the first area and the first input, reference may be made to the related description of the first area and the first input in the foregoing embodiment, which will not be repeated here.
在电子设备的屏幕的任意区域中,可以显示至少一个图层。可以理解的是,在一个区域仅显示一个图层的情况下,为了保证图像正常显示,该一个图层不允许被移动,即该一个图层为静态图层,且该静态图层无法转换为动态图层。In any area of the screen of the electronic device, at least one layer can be displayed. It is understandable that when only one layer is displayed in an area, in order to ensure the normal display of the image, the one layer is not allowed to be moved, that is, the one layer is a static layer, and the static layer cannot be converted to Dynamic layers.
因此,在电子设备接收到用户对第一区域的第一输入之后,电子设备可以先检测第一区域是否显示有效图层,即检测第一区域是否显示至少两个图层。在该第一区域显示至少两个图层的情况下,电子设备可以执行下述的S101B;在该第一区域显示一个图层的情况下,电子设备可以执行下述的S101C。Therefore, after the electronic device receives the user's first input to the first area, the electronic device may first detect whether the first area displays a valid layer, that is, whether the first area displays at least two layers. In the case where at least two layers are displayed in the first area, the electronic device may execute S101B below; in the case where one layer is displayed in the first area, the electronic device may execute S101C below.
S101B、电子设备响应于该第一输入,在该第一区域显示至少两个图层的情况下,将该至少两个图层中位于最上层的第一静态图层转换为第一动态图层。S101B. In response to the first input, the electronic device converts the topmost first static layer of the at least two layers into the first dynamic layer in the case where at least two layers are displayed in the first area .
在第一区域显示至少两个图层的情况下,该至少两个图层为上下叠放的,位于最上层的图层即为TOP端图层。例如,第一区域由下至上依次叠加有静态图层1、静态图层2、动态图层3、静态图层4。由于静态图层4位于这4个图层的最上层,因此静态图层4可能为用户最想要使用或操作的图层。如此,电子设备可以响应于用户的第一输入,将静态图层4转换为动态图层,即将该至少两个图层中位于最上层的第一静态图层转换为第一动态图层。In the case where at least two layers are displayed in the first area, the at least two layers are stacked on top of each other, and the layer located on the top layer is the TOP end layer. For example, the first area is sequentially superimposed with static layer 1, static layer 2, dynamic layer 3, and static layer 4 from bottom to top. Since the static layer 4 is located at the top of the four layers, the static layer 4 may be the layer that the user most wants to use or manipulate. In this way, the electronic device can convert the static layer 4 into a dynamic layer in response to the user's first input, that is, convert the first static layer located at the top of the at least two layers into the first dynamic layer.
可选的,在将第一静态图层转换为第一动态图层之后,一种可能的实现方式为,电子设备可以自动将屏幕中允许第一动态图层正常显示的区域,确定为第二区域,并将第一动态图层移动至第二区域,从而电子设备可以在第二区域显示第一动态图层。另一种可能的实现方式为,用户可以触发电子设备将第一动态图层移动至屏幕的第二区域,从而电子设 备可以在第二区域显示第一动态图层。可以参照下述实施例中的具体描述,此处不予赘述。Optionally, after converting the first static layer to the first dynamic layer, one possible implementation is that the electronic device can automatically determine the area on the screen that allows the first dynamic layer to be displayed normally as the second Area and move the first dynamic layer to the second area, so that the electronic device can display the first dynamic layer in the second area. Another possible implementation is that the user can trigger the electronic device to move the first dynamic layer to the second area of the screen, so that the electronic device can display the first dynamic layer in the second area. Reference may be made to the specific description in the following embodiments, which will not be repeated here.
可选的,若电子设备确定第一区域未显示有效图层,则电子设备可以提示用户对第一区域的第一输入为无效输入。示例性的,如图4所示,在上述S101A之后,本发明实施例提供的显示方法还可以包括下述的S101C。Optionally, if the electronic device determines that a valid layer is not displayed in the first area, the electronic device may prompt the user that the first input to the first area is an invalid input. Exemplarily, as shown in FIG. 4, after the above S101A, the display method provided in the embodiment of the present invention may further include the following S101C.
S101C、电子设备响应于第一输入,在第一区域显示一个图层的情况下,显示提示信息。S101C. In response to the first input, the electronic device displays prompt information when displaying a layer in the first area.
其中,上述提示信息可以用于提示用户重新选择区域。Wherein, the above prompt information can be used to prompt the user to reselect the area.
在屏幕的第一区域仅显示一个图层的情况下,为了保证图像正常显示,该一个图层不允许被移动,即该一个图层为静态图层,且该静态图层无法转换为动态图层。因此,电子设备可以显示提示信息,以提醒用户重新选择区域。In the case that only one layer is displayed in the first area of the screen, in order to ensure the normal display of the image, the one layer is not allowed to be moved, that is, the one layer is a static layer, and the static layer cannot be converted into a dynamic image Floor. Therefore, the electronic device can display prompt information to remind the user to reselect the area.
本发明实施例的显示方法,在从屏幕中选择第一区域之后,电子设备通过对第一区域进行图层分析,可以确认选取的区域是否有效。在第一区域未显示有效图层的情况下,电子设备无法进行图层转化,并显示提示信息,以提醒用户重新在屏幕中选择区域。在第一区域显示有效图层的情况下,电子设备可以将第一静态图层转换为第一动态图层,从而便于用户方便移动图层。In the display method of the embodiment of the present invention, after selecting the first area from the screen, the electronic device can confirm whether the selected area is valid by performing layer analysis on the first area. In the case where a valid layer is not displayed in the first area, the electronic device cannot perform layer conversion and displays a prompt message to remind the user to select the area on the screen again. When the effective layer is displayed in the first area, the electronic device can convert the first static layer into the first dynamic layer, so that the user can move the layer conveniently.
可选的,本发明实施例中,电子设备可以先确定第二区域,再将第一动态图层移动至屏幕的第二区域。示例性的,结合图2,如图5所示,在上述S101之后,在上述S102之前,本发明实施例提供的显示方法还可以包括下述的S103,或者,包括下述的S104和S105。Optionally, in this embodiment of the present invention, the electronic device may first determine the second area, and then move the first dynamic layer to the second area of the screen. Exemplarily, with reference to FIG. 2, as shown in FIG. 5, after the above S101 and before the above S102, the display method provided by the embodiment of the present invention may further include the following S103, or include the following S104 and S105.
第一种可选的实现方式The first alternative implementation
S103、电子设备将屏幕中允许第一动态图层正常显示的区域,确定为第二区域。S103. The electronic device determines the area on the screen that allows the normal display of the first dynamic layer to be the second area.
需要说明的是,上述允许第一动态图层正常显示的区域,是指第一动态图层中的内容(例如文本、图片和表格等)均可以完全显示的区域。本发明实施例中,电子设备可以对屏幕中的图像内容进行检测,以确定允许第一动态图层正常显示的区域,即第二区域。It should be noted that the above-mentioned area that allows the normal display of the first dynamic layer refers to an area where the content (for example, text, pictures, tables, etc.) in the first dynamic layer can be completely displayed. In the embodiment of the present invention, the electronic device can detect the image content on the screen to determine the area where the first dynamic layer is allowed to be displayed normally, that is, the second area.
可选的,电子设备确定的允许第一动态图层正常显示的区域可以包括至少一个区域,且该第二区域可以为该至少一个区域中的区域。Optionally, the area that allows the normal display of the first dynamic layer determined by the electronic device may include at least one area, and the second area may be an area in the at least one area.
示例性的,以预设条件为第一静态图层在屏幕的第一区域无法正常显示为例。如图6中的(a)所示,电子设备的屏幕中显示有多个图层,第一静态图层中的内容在第一区域 01无法正常显示,其中,第一区域的四个顶点坐标可以分别为(x1,y1)、(x2,y1)、(x1,y2)和(x2,y2)。若检测到第一静态图层在屏幕的第一区域01无法正常显示,则电子设备可以将该第一静态图层转换为第一动态图层,并对屏幕中的内容进行检测,已确定允许第一动态图层正常显示的第二区域02。例如,如图6中的(b)所示,第二区域02的四个顶点坐标可以分别为(x3,y3)、(x3,y4)、(x4,y3)和(x4,y4)。然后,电子设备可以将第一动态图像移动至第二区域02,并在第二区域02显示该第一动态图层。Exemplarily, take the preset condition that the first static layer cannot be displayed normally in the first area of the screen as an example. As shown in (a) in Figure 6, there are multiple layers displayed on the screen of the electronic device, and the content in the first static layer cannot be displayed normally in the first area 01. Among them, the coordinates of the four vertices of the first area Can be (x1, y1), (x2, y1), (x1, y2) and (x2, y2) respectively. If it is detected that the first static layer cannot be displayed normally in the first area 01 of the screen, the electronic device can convert the first static layer to the first dynamic layer, and detect the content on the screen, and it has been determined to allow The second area 02 where the first dynamic layer is normally displayed. For example, as shown in (b) in FIG. 6, the coordinates of the four vertices of the second area 02 may be (x3, y3), (x3, y4), (x4, y3), and (x4, y4), respectively. Then, the electronic device can move the first dynamic image to the second area 02 and display the first dynamic layer in the second area 02.
本发明实施例的显示方法,在检测到屏幕中存在无法正常显示的图层的情况下,会自动计算出可以正常显示的区域,并将异常的静态图层转换为动态图层,然后移动该动态图层至该区域进行显示,从而能够实现屏幕显示内容的自动适应调整功能,进而提高了合成画面的质量,并为用户提供更加好的观看体验。In the display method of the embodiment of the present invention, when it detects that there is a layer that cannot be displayed normally on the screen, it automatically calculates the area that can be displayed normally, converts the abnormal static layer into a dynamic layer, and then moves the layer. The dynamic layer is displayed in this area, which can realize the automatic adaptation and adjustment function of the screen display content, thereby improving the quality of the composite picture and providing users with a better viewing experience.
第二种可选的实现方式The second alternative implementation
S104、电子设备接收用户对第一动态图层的触控输入。S104. The electronic device receives the user's touch input on the first dynamic layer.
本发明实施例中,第一动态图层具备移动属性。一种方式为,用户可以通过对第一动态图层的拖动输入,将第一动态图层移动至屏幕的其他区域,例如第二区域。另一种方式为,用户可以长按第一动态图层,使其处于可移动状态;之后,用户可以点击屏幕中的某个区域,从而电子设备可以将该某个区域确定为第二区域。In the embodiment of the present invention, the first dynamic layer has a movement attribute. One way is that the user can move the first dynamic layer to other areas of the screen, such as the second area, by dragging the first dynamic layer. Another way is that the user can long press the first dynamic layer to make it in a movable state; after that, the user can click on a certain area on the screen, so that the electronic device can determine the certain area as the second area.
S105、电子设备响应于该触控输入,将该触控输入的终止位置所在的区域,确定为第二区域。S105. In response to the touch input, the electronic device determines the area where the end position of the touch input is located as the second area.
可选的,上述第二区域可以为屏幕中的一个区域或多个区域。Optionally, the above-mentioned second area may be one area or multiple areas on the screen.
示例性的,以预设条件为接收到用户对屏幕的第一区域中第一静态图层的选择输入为例。如图7中的(a)所示,电子设备的屏幕中显示有多个图层,第一静态图层中的内容显示在屏幕的中心区域,即第一区域01,其中,第一区域01的四个顶点坐标可以分别为(x5,y5)、(x5,y6)、(x6,y5)和(x6,y6)。若用户认为第一静态图层中内容的显示位置不符合操作习惯,则用户可以通过在屏幕中的滑动输入圈选第一区域01,以触发电子设备将该第一静态图层转换为第一动态图层。之后,一种方式为,如图7中的(b)所示,用户可以将第一动态图层拖动至屏幕的第二区域03,该第二区域03的四个顶点坐标可以分别为(x7,y7)、(x7,y8)、(x8,y7)和(x8,y8);另一种方式为,如图7中的 (c)所示,用户可以将第一动态图层中的“明牌开始”控件拖动至屏幕的一个第二区域031,并将第一动态图层中的“开始游戏”控件拖动至屏幕的另一个第二区域032,其中,一个第二区域031的四个顶点坐标可以分别为(x7,y10)、(x7,y8)、(x8,y10)和(x8,y8),另一个第二区域032的四个顶点坐标可以分别为(x7,y7)、(x7,y9)、(x8,y7)和(x8,y9)。Exemplarily, take the preset condition that the user's selection input of the first static layer in the first area of the screen is received as an example. As shown in (a) in Figure 7, multiple layers are displayed on the screen of the electronic device, and the content in the first static layer is displayed in the central area of the screen, namely the first area 01, where the first area 01 The coordinates of the four vertices of can be (x5, y5), (x5, y6), (x6, y5) and (x6, y6) respectively. If the user thinks that the display position of the content in the first static layer does not meet the operating habits, the user can circle the first area 01 by sliding input on the screen to trigger the electronic device to convert the first static layer to the first Dynamic layers. Then, one way is, as shown in (b) in Figure 7, the user can drag the first dynamic layer to the second area 03 of the screen, and the coordinates of the four vertices of the second area 03 can be ( x7, y7), (x7, y8), (x8, y7) and (x8, y8); another way is, as shown in Figure 7 (c), the user can set the Drag the "Start with the card" control to a second area 031 of the screen, and drag the "Start Game" control in the first dynamic layer to another second area 032 of the screen, including a second area 031 The coordinates of the four vertices of can be respectively (x7, y10), (x7, y8), (x8, y10) and (x8, y8), and the coordinates of the four vertices of the other second area 032 can be respectively (x7, y7 ), (x7, y9), (x8, y7) and (x8, y9).
本发明实施例的显示方法,可以供用户在显示屏上选择任意区域,确认用户选择的区域存在至少两个叠加图层后,可以通过算法将被选中首图层的静态图层进行抽取转化,这时该静态图层变为动态图层,具备窗口熟悉,用户可以对该动态图层的操作窗口进行随意移动,从而可以提高用户体验;同时,动态图层的操作窗口和界面也更具备个性化,用户可以根据使用场景和使用习惯调整图层的显示位置。The display method of the embodiment of the present invention can allow the user to select any area on the display screen. After confirming that there are at least two superimposed layers in the area selected by the user, the static layer of the selected first layer can be extracted and transformed through an algorithm. At this time, the static layer becomes a dynamic layer, and the window is familiar. The user can move the operating window of the dynamic layer at will, which can improve the user experience; at the same time, the operating window and interface of the dynamic layer are also more personalized The user can adjust the display position of the layer according to the usage scene and usage habits.
可选的,本发明实施例为转换的动态图层提供了恢复重置入口,将转换的图层由移动后的位置还原至原始位置。示例性的,结合图2,如图8所示,在上述S102之后,本发明实施例提供的显示方法还可以包括下述的S106和S107。Optionally, the embodiment of the present invention provides a restoration reset entry for the converted dynamic layer, and restores the converted layer from the moved position to the original position. Exemplarily, with reference to FIG. 2, as shown in FIG. 8, after the above S102, the display method provided by the embodiment of the present invention may further include the following S106 and S107.
S106、电子设备接收用户的第二输入。S106. The electronic device receives a second input from the user.
其中,上述第二输入可以用于将转换的图层由移动后的位置还原至原始位置。Wherein, the above-mentioned second input can be used to restore the converted layer from the moved position to the original position.
可选的,上述第二输入可以为对目标控件的输入,该目标控件用于确认将转换的动态图层由移动后的位置还原至移动前的原始位置;或者,第二输入可以为将第一动态图层由屏幕的第二区域向第一区域的拖动输入;或者,第二输入可以为预设输入,例如可以为沿预设方向滑动预设次数的输入。当然,第二输入还可以为其他可能的输入,本发明实施例不作具体限定,可以根据实际使用需求确定。Optionally, the above-mentioned second input may be an input to a target control, and the target control is used to confirm that the converted dynamic layer is restored from the position after the movement to the original position before the movement; or, the second input may be an input to the first A dynamic layer is dragged input from the second area of the screen to the first area; or, the second input may be a preset input, for example, it may be an input that slides a preset number of times in a preset direction. Of course, the second input may also be other possible inputs, which are not specifically limited in the embodiment of the present invention, and may be determined according to actual usage requirements.
S107、电子设备响应于该第二输入,在第一区域显示第一动态图层,并将该第一动态图层转换为第一静态图层。S107. In response to the second input, the electronic device displays the first dynamic layer in the first area, and converts the first dynamic layer into a first static layer.
示例性的,仍以上述图6为例进行示例性说明。如图6中的(b)所示,第一动态图层的内容可以显示在屏幕的第二区域02。如果用户点击目标控件,那么电子设备可以响应于点击输入,如图6中的(a)所示,将第一动态图层由屏幕的第二区域02移动至第一区域01,并在第一区域01显示该第一动态图层,以及将该第一动态图层转换为第一静态图层。Exemplarily, the above-mentioned FIG. 6 is still taken as an example for exemplary description. As shown in Figure 6(b), the content of the first dynamic layer can be displayed in the second area 02 of the screen. If the user clicks on the target control, the electronic device can respond to the click input, as shown in Figure 6(a), move the first dynamic layer from the second area 02 of the screen to the first area 01, and in the first area Area 01 displays the first dynamic layer, and converts the first dynamic layer into the first static layer.
本发明实施例的显示方法提供了恢复重置入口,该恢复重置入口可以用于将图层位置进行原始位置的还原,从而可以使用户想要还原初始设置的情况下实现图层的位置还原。The display method of the embodiment of the present invention provides a restoration reset entry, which can be used to restore the position of the layer to the original position, so that the position of the layer can be restored when the user wants to restore the initial setting. .
需要说明的是,本发明实施例中,上述各个附图所示的图标显示方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示的图标显示方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present invention, the icon display methods shown in the above figures are all exemplified in conjunction with one figure in the embodiment of the present invention. In a specific implementation, the icon display method shown in each of the above figures can also be implemented in combination with any other figures illustrated in the above embodiments that can be combined, and will not be repeated here.
如图9所示,本发明实施例提供一种电子设备900。该电子设备包括显示模块901和处理模块902。其中,处理模块902,可以用于在显示模块901在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层。显示模块901,可以用于在屏幕的第二区域显示该第一动态图层。该预设条件可以包括以下任一项:第一静态图层在第一区域无法正常显示、接收到用户对第一区域中的第一静态图层的第一输入。As shown in FIG. 9, an embodiment of the present invention provides an electronic device 900. The electronic device includes a display module 901 and a processing module 902. The processing module 902 may be configured to convert the first static layer to the first dynamic layer when the first static layer displayed by the display module 901 in the first area of the screen satisfies a preset condition. The display module 901 can be used to display the first dynamic layer in the second area of the screen. The preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area, and the first input of the user on the first static layer in the first area is received.
可选的,上述第二区域可以包括以下任一项:屏幕中允许第一动态图层正常显示的区域;通过用户对第一动态图层的触控输入确定的区域。Optionally, the above-mentioned second area may include any one of the following: an area on the screen that allows the first dynamic layer to be displayed normally; an area determined by a user's touch input to the first dynamic layer.
可选的,结合图9,如图10所示,本发明实施例提供的电子设备还可以包括接收模块903。接收模块903,可以用于接收用户对第一区域的第一输入。处理模块902,具体可以用于响应于接收模块903接收的该第一输入,在该第一区域显示至少两个图层的情况下,将至少两个图层中位于最上层的第一静态图层转换为第一动态图层。Optionally, in conjunction with FIG. 9, as shown in FIG. 10, the electronic device provided in the embodiment of the present invention may further include a receiving module 903. The receiving module 903 may be used to receive a user's first input to the first area. The processing module 902 may be specifically configured to respond to the first input received by the receiving module 903, and in the case where at least two layers are displayed in the first area, convert the first static image at the top of the at least two layers The layer is converted to the first dynamic layer.
可选的,第一静态图层为在屏幕中显示的多个图层中的图层。处理模块902,还可以用于从该多个图层中删除第一静态图层,并根据第二区域的位置信息,在该多个图层中添加第一动态图层,生成最终图层。显示模块901,具体可以用于在屏幕上显示该最终图层。Optionally, the first static layer is a layer among multiple layers displayed on the screen. The processing module 902 can also be used to delete the first static layer from the multiple layers, and add the first dynamic layer to the multiple layers according to the position information of the second area to generate the final layer. The display module 901 can be specifically used to display the final layer on the screen.
可选的,如图10所示,本发明实施例提供的电子设备还可以包括接收模块903。接收模块903,可以用于在显示模块901在屏幕的第二区域显示第一动态图层之后,接收用户的第二输入。处理模块902,还可以用于响应于接收模块903接收的该第二输入,在第一区域显示该第一动态图层,并将该第一动态图层转换为第一静态图层。Optionally, as shown in FIG. 10, the electronic device provided in the embodiment of the present invention may further include a receiving module 903. The receiving module 903 may be configured to receive the second input of the user after the display module 901 displays the first dynamic layer in the second area of the screen. The processing module 902 may also be configured to display the first dynamic layer in the first area in response to the second input received by the receiving module 903, and convert the first dynamic layer into a first static layer.
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
本发明实施例提供一种电子设备,如果在屏幕上显示的图层中的第一静态图层在第一 区域无法正常显示,那么电子设备可以自动将该第一静态图层转换为第一动态图层,或者,电子设备可以响应于用户的输入将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动至屏幕的其他区域,从而可以使第一动态图层能够正常显示,进而提高了屏幕画面的质量。An embodiment of the present invention provides an electronic device. If the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the electronic device can automatically convert the first static layer to the first dynamic layer. The layer, or the electronic device may convert the first static layer into the first dynamic layer in response to the user's input. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
图11为实现本发明各个实施例的一种电子设备的硬件结构示意图。如图11所示,该电子设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。FIG. 11 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention. As shown in FIG. 11, the electronic device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , Processor 210, and power supply 211. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,处理器210,用于在控制显示单元206在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将该第一静态图层转换为第一动态图层;以及用于控制显示单元206在屏幕的第二区域显示该第一动态图层。该预设条件可以包括以下任一项:第一静态图层在第一区域无法正常显示、接收到用户对第一区域中的第一静态图层的第一输入。The processor 210 is configured to convert the first static layer into a first dynamic layer when the first static layer displayed on the first area of the screen by the control display unit 206 meets a preset condition; and It is used to control the display unit 206 to display the first dynamic layer in the second area of the screen. The preset condition may include any one of the following: the first static layer cannot be displayed normally in the first area, and the first input of the user on the first static layer in the first area is received.
本发明实施例提供一种电子设备,如果在屏幕上显示的图层中的第一静态图层在第一区域无法正常显示,那么电子设备可以自动将该第一静态图层转换为第一动态图层,或者,电子设备可以响应于用户的输入将该第一静态图层转换为第一动态图层。在该第一静态图层转换为第一动态图层之后,该第一动态图层可以被移动至屏幕的其他区域,从而可以使第一动态图层能够正常显示,进而提高了屏幕画面的质量。An embodiment of the present invention provides an electronic device. If the first static layer of the layers displayed on the screen cannot be displayed normally in the first area, the electronic device can automatically convert the first static layer to the first dynamic layer. The layer, or the electronic device may convert the first static layer into the first dynamic layer in response to the user's input. After the first static layer is converted to the first dynamic layer, the first dynamic layer can be moved to other areas of the screen, so that the first dynamic layer can be displayed normally, thereby improving the quality of the screen picture .
应理解的是,本发明实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信***与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 201 can be used for receiving and sending signals during the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 210; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与电子设备200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元203包括扬声器、蜂鸣器以及受话器等。The audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the electronic device 200 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(graphics processing unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。The input unit 204 is used to receive audio or video signals. The input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042. The graphics processing unit 2041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 206. The image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202. The microphone 2042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
电子设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在电子设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 200 further includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light. The proximity sensor can turn off the display panel 2061 and the display panel 2061 when the electronic device 200 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 205 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting Diode,OLED)等形式来配置显示面板2061。The display unit 206 is used to display information input by the user or information provided to the user. The display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元207可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中, 触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 207 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. The touch panel 2071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operate). The touch panel 2071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 210, the command sent by the processor 210 is received and executed. In addition, the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 2071, the user input unit 207 may also include other input devices 2072. Specifically, other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图11中,触控面板2071与显示面板2061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 2071 can be overlaid on the display panel 2061. When the touch panel 2071 detects a touch operation on or near it, it transmits it to the processor 210 to determine the type of the touch event, and then the processor 210 determines the type of touch event according to the touch The type of event provides corresponding visual output on the display panel 2061. Although in FIG. 11, the touch panel 2071 and the display panel 2061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元208为外部装置与电子设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备200内的一个或多个元件或者可以用于在电子设备200和外部装置之间传输数据。The interface unit 208 is an interface for connecting an external device and the electronic device 200. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 208 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 200 or can be used to connect the electronic device 200 to an external device. Transfer data between devices.
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 209 can be used to store software programs and various data. The memory 209 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器210是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器210可包括一个或多个处理单元;可选的,处理器210可集成应用处理器和调制解调 处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The processor 210 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 209, and calls the data stored in the memory 209 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, and the modem The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
电子设备200还可以包括给各个部件供电的电源211(比如电池),可选的,电源211可以通过电源管理***与处理器210逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。The electronic device 200 may also include a power source 211 (such as a battery) for supplying power to various components. Optionally, the power source 211 may be logically connected to the processor 210 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备200包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 200 includes some functional modules not shown, which will not be repeated here.
可选的,本发明实施例还提供一种电子设备,包括如图11所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention also provides an electronic device, including a processor 210 as shown in FIG. 11, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is The processor 210 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Among them, computer-readable storage media, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例描述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在 本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (14)

  1. 一种显示方法,所述方法包括:A display method, the method includes:
    在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将所述第一静态图层转换为第一动态图层;In the case that the first static layer displayed in the first area of the screen satisfies a preset condition, converting the first static layer into a first dynamic layer;
    在所述屏幕的第二区域显示所述第一动态图层;Displaying the first dynamic layer in the second area of the screen;
    其中,所述预设条件包括以下任一项:所述第一静态图层在所述第一区域无法正常显示、接收到用户对所述第一区域中的所述第一静态图层的第一输入。Wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static layer in the first area is received from the user. One input.
  2. 根据权利要求1所述的方法,其中,所述第二区域包括以下任一项:The method according to claim 1, wherein the second area includes any one of the following:
    所述屏幕中允许所述第一动态图层正常显示的区域;The area on the screen that allows the normal display of the first dynamic layer;
    通过用户对所述第一动态图层的触控输入确定的区域。The area determined by the user's touch input to the first dynamic layer.
  3. 根据权利要求1所述的方法,其中,所述在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将所述第一静态图层转换为第一动态图层,包括:The method according to claim 1, wherein when the first static layer displayed in the first area of the screen satisfies a preset condition, converting the first static layer into a first dynamic layer, include:
    接收用户对所述第一区域的第一输入;Receiving a user's first input to the first area;
    响应于所述第一输入,在所述第一区域显示至少两个图层的情况下,将所述至少两个图层中位于最上层的所述第一静态图层转换为所述第一动态图层。In response to the first input, in the case where at least two layers are displayed in the first area, the first static layer located on the uppermost layer of the at least two layers is converted to the first static layer. Dynamic layers.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述第一静态图层为在所述屏幕中显示的多个图层中的图层;The method according to any one of claims 1 to 3, wherein the first static layer is a layer of a plurality of layers displayed on the screen;
    所述在所述屏幕的第二区域显示所述第一动态图层,包括:The displaying the first dynamic layer in the second area of the screen includes:
    从所述多个图层中删除所述第一静态图层,并根据所述第二区域的位置信息,在所述多个图层中添加所述第一动态图层,生成最终图层;Deleting the first static layer from the plurality of layers, and adding the first dynamic layer to the plurality of layers according to the position information of the second area to generate a final layer;
    在屏幕上显示所述最终图层。The final layer is displayed on the screen.
  5. 根据权利要求1至3中任一项所述的方法,其中,所述在所述屏幕的第二区域显示所述第一动态图层之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein, after the first dynamic layer is displayed in the second area of the screen, the method further comprises:
    接收用户的第二输入;Receiving a second input from the user;
    响应于所述第二输入,在所述第一区域显示所述第一动态图层,并将所述第一动态图层转换为所述第一静态图层。In response to the second input, the first dynamic layer is displayed in the first area, and the first dynamic layer is converted into the first static layer.
  6. 一种电子设备,所述电子设备包括显示模块和处理模块;An electronic device including a display module and a processing module;
    所述处理模块,用于在所述显示模块在屏幕的第一区域显示的第一静态图层满足预设条件的情况下,将所述第一静态图层转换为第一动态图层;The processing module is configured to convert the first static layer into a first dynamic layer when the first static layer displayed by the display module in the first area of the screen satisfies a preset condition;
    所述显示模块,用于在所述屏幕的第二区域显示所述第一动态图层;The display module is configured to display the first dynamic layer in a second area of the screen;
    其中,所述预设条件包括以下任一项:所述第一静态图层在所述第一区域无法正常显示、接收到用户对所述第一区域中的所述第一静态图层的第一输入。Wherein, the preset condition includes any one of the following: the first static layer cannot be displayed normally in the first area, and the first static layer in the first area is received from the user. One input.
  7. 根据权利要求6所述的电子设备,其中,所述第二区域包括以下任一项:The electronic device according to claim 6, wherein the second area includes any one of the following:
    所述屏幕中允许所述第一动态图层正常显示的区域;The area on the screen that allows the normal display of the first dynamic layer;
    通过用户对所述第一动态图层的触控输入确定的区域。The area determined by the user's touch input to the first dynamic layer.
  8. 根据权利要求6所述的电子设备,其中,所述电子设备还包括接收模块;The electronic device according to claim 6, wherein the electronic device further comprises a receiving module;
    所述接收模块,用于接收用户对所述第一区域的第一输入;The receiving module is configured to receive a user's first input to the first area;
    所述处理模块,具体用于响应于所述接收模块接收的所述第一输入,在所述第一区域显示至少两个图层的情况下,将所述至少两个图层中位于最上层的所述第一静态图层转换为所述第一动态图层。The processing module is specifically configured to respond to the first input received by the receiving module, in a case where at least two layers are displayed in the first area, place the at least two layers in the uppermost layer The first static layer is converted to the first dynamic layer.
  9. 根据权利要求6至8中任一项所述的电子设备,其中,所述第一静态图层为在所述屏幕中显示的多个图层中的图层;8. The electronic device according to any one of claims 6 to 8, wherein the first static layer is a layer of a plurality of layers displayed on the screen;
    所述处理模块,还用于从所述多个图层中删除所述第一静态图层,并根据所述第二区域的位置信息,在所述多个图层中添加所述第一动态图层,生成最终图层;The processing module is further configured to delete the first static layer from the plurality of layers, and add the first dynamic layer to the plurality of layers according to the position information of the second area Layer to generate the final layer;
    所述显示模块,具体用于在屏幕上显示所述最终图层。The display module is specifically configured to display the final layer on the screen.
  10. 根据权利要求6所述的电子设备,其中,所述电子设备还包括接收模块;The electronic device according to claim 6, wherein the electronic device further comprises a receiving module;
    所述接收模块,用于在所述显示模块在所述屏幕的第二区域显示所述第一动态图层之后,接收用户的第二输入;The receiving module is configured to receive a second input from the user after the display module displays the first dynamic layer in the second area of the screen;
    所述处理模块,还用于响应于所述接收模块接收的所述第二输入,在所述第一区域显示所述第一动态图层,并将所述第一动态图层转换为所述第一静态图层。The processing module is further configured to display the first dynamic layer in the first area in response to the second input received by the receiving module, and convert the first dynamic layer into the The first static layer.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的显示方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 The steps of the display method described in one item.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所 述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的显示方法的步骤。A computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the display method according to any one of claims 1 to 5 are realized.
  13. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的显示方法。A computer program product, which is executed by at least one processor to implement the display method according to any one of claims 1 to 5.
  14. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的显示方法。An electronic device, comprising the electronic device configured to execute the display method according to any one of claims 1 to 5.
PCT/CN2021/077168 2020-02-26 2021-02-22 Display method and electronic device WO2021169885A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010121401.8 2020-02-26
CN202010121401.8A CN111309429A (en) 2020-02-26 2020-02-26 Display method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021169885A1 true WO2021169885A1 (en) 2021-09-02

Family

ID=71149321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077168 WO2021169885A1 (en) 2020-02-26 2021-02-22 Display method and electronic device

Country Status (2)

Country Link
CN (1) CN111309429A (en)
WO (1) WO2021169885A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309429A (en) * 2020-02-26 2020-06-19 维沃移动通信有限公司 Display method and electronic equipment
CN113094010B (en) * 2021-03-23 2024-04-05 西安诺瓦星云科技股份有限公司 Image display method, device and system
CN114879896B (en) * 2022-07-08 2023-05-12 荣耀终端有限公司 Frozen screen processing method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995657A (en) * 2013-02-19 2014-08-20 Lg电子株式会社 Mobile terminal and control method thereof
US20150054821A1 (en) * 2013-08-23 2015-02-26 Nvidia Corporation Dynamic adjustment of display content for power optimization of a continuous scan display
CN109753145A (en) * 2018-05-11 2019-05-14 北京字节跳动网络技术有限公司 A kind of methods of exhibiting and relevant apparatus of transition cartoon
CN111309429A (en) * 2020-02-26 2020-06-19 维沃移动通信有限公司 Display method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925982B2 (en) * 2006-09-01 2011-04-12 Cheryl Parker System and method of overlaying and integrating data with geographic mapping applications
CN102981810A (en) * 2011-09-02 2013-03-20 英业达股份有限公司 Display method and electronic device applying the same
CN109117239A (en) * 2018-09-21 2019-01-01 维沃移动通信有限公司 A kind of screen wallpaper display methods and mobile terminal
CN109871741A (en) * 2018-12-28 2019-06-11 青岛海信电器股份有限公司 The mask method and device of object are identified in a kind of image for smart television
CN110162362B (en) * 2019-04-15 2023-07-25 腾讯科技(深圳)有限公司 Dynamic control position detection and test method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995657A (en) * 2013-02-19 2014-08-20 Lg电子株式会社 Mobile terminal and control method thereof
US20150054821A1 (en) * 2013-08-23 2015-02-26 Nvidia Corporation Dynamic adjustment of display content for power optimization of a continuous scan display
CN109753145A (en) * 2018-05-11 2019-05-14 北京字节跳动网络技术有限公司 A kind of methods of exhibiting and relevant apparatus of transition cartoon
CN111309429A (en) * 2020-02-26 2020-06-19 维沃移动通信有限公司 Display method and electronic equipment

Also Published As

Publication number Publication date
CN111309429A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
WO2021104365A1 (en) Object sharing method and electronic device
WO2021083052A1 (en) Object sharing method and electronic device
WO2020063091A1 (en) Picture processing method and terminal device
WO2021197263A1 (en) Content sharing method and electronic device
WO2021082711A1 (en) Image display method and electronic device
WO2021169885A1 (en) Display method and electronic device
WO2020220991A1 (en) Screen capture method, terminal device and computer-readable storage medium
WO2021115278A1 (en) Group management method and electronic device
WO2021083087A1 (en) Screen capturing method and terminal device
WO2020151525A1 (en) Message sending method, and terminal device
WO2020151460A1 (en) Object processing method and terminal device
WO2021036531A1 (en) Screenshot method and terminal device
WO2021129538A1 (en) Control method and electronic device
WO2021129536A1 (en) Icon moving method and electronic device
WO2021093844A1 (en) Sharing control method and electronic device
WO2020192298A1 (en) Image processing method and terminal device
WO2021175143A1 (en) Picture acquisition method and electronic device
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2020215982A1 (en) Desktop icon management method and terminal device
WO2021057290A1 (en) Information control method and electronic device
WO2020215969A1 (en) Content input method and terminal device
WO2021057545A1 (en) Multi-network access method and terminal device
WO2020181956A1 (en) Method for displaying application identifier, and terminal apparatus
US11392267B2 (en) Icon display control method and terminal
WO2020215967A1 (en) Content selection method and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21760785

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21760785

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 220223)

122 Ep: pct application non-entry in european phase

Ref document number: 21760785

Country of ref document: EP

Kind code of ref document: A1