WO2024131306A1 - 显示方法、装置、电子设备以及存储介质 - Google Patents

显示方法、装置、电子设备以及存储介质 Download PDF

Info

Publication number
WO2024131306A1
WO2024131306A1 PCT/CN2023/128588 CN2023128588W WO2024131306A1 WO 2024131306 A1 WO2024131306 A1 WO 2024131306A1 CN 2023128588 W CN2023128588 W CN 2023128588W WO 2024131306 A1 WO2024131306 A1 WO 2024131306A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface element
target
target interface
opening
display screen
Prior art date
Application number
PCT/CN2023/128588
Other languages
English (en)
French (fr)
Inventor
李轩恺
王剑锋
魏曦
周胜丰
董伟鑫
汤志斌
许达兴
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024131306A1 publication Critical patent/WO2024131306A1/zh

Links

Definitions

  • the present application relates to the technical field of electronic devices, and more specifically, to a display method, device, electronic device and storage medium.
  • the present application proposes a display method, device, electronic device and storage medium to solve the above problems.
  • an embodiment of the present application provides a display method, which is applied to an electronic device, wherein the electronic device includes a display screen having an opening, and the method includes: displaying a current interface; in response to a movement event of a target interface element, using an area on the display screen corresponding to the opening as a movement exit or movement entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • an embodiment of the present application provides a display device, which is applied to an electronic device, wherein the electronic device includes a display screen having an opening, and the device includes: a current interface display module, which is used to display the current interface; an interface element movement module, which is used to respond to a movement event of a target interface element, using the area on the display screen corresponding to the opening as a movement exit or movement entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • an embodiment of the present application provides an electronic device, comprising a display screen, a memory and a processor, wherein the display screen and the memory are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
  • an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
  • FIG1 shows a first structural diagram of an electronic device provided in an embodiment of the present application
  • FIG2 shows a second structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG3 shows a third structural schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG4 shows a fourth structural schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG5 shows a fifth structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG6 is a schematic diagram showing a flow chart of a display method provided in an embodiment of the present application.
  • FIG7 shows a first schematic diagram of mobile display of a target interface element provided in an embodiment of the present application
  • FIG8 shows a second schematic diagram of mobile display of a target interface element provided in an embodiment of the present application.
  • FIG9 shows a third schematic diagram of mobile display of a target interface element provided in an embodiment of the present application.
  • FIG10 is a schematic diagram showing a target interface element displayed on a current interface according to an embodiment of the present application.
  • FIG11 is a schematic diagram showing a flow chart of a display method provided in an embodiment of the present application.
  • FIG. 12 is a schematic flow chart showing step S230 of the display method shown in FIG. 11 of the present application.
  • FIG13 is a schematic diagram showing a flow chart of a display method provided in an embodiment of the present application.
  • FIG14 shows a first interface schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG15 is a schematic diagram showing a second interface of an electronic device provided in an embodiment of the present application.
  • FIG16 is a schematic diagram showing a flow chart of a display method provided in an embodiment of the present application.
  • FIG17 is a logic diagram of a display method provided in an embodiment of the present application.
  • FIG18 shows a module block diagram of a display device provided by an embodiment of the present application.
  • FIG19 shows a block diagram of an electronic device for executing a display method according to an embodiment of the present application
  • FIG. 20 shows a storage unit for storing or carrying program codes for implementing a display method according to an embodiment of the present application.
  • the display screen usually plays the role of displaying text, pictures, icons or videos in electronic devices such as mobile phones and tablets.
  • electronic devices include a front panel, a back cover and a frame.
  • the front panel includes an upper forehead area, a middle screen area and a lower key area.
  • the upper forehead area is provided with a receiver sound hole and photosensitive devices such as a front camera
  • the middle screen area is provided with a display screen
  • the lower key area is provided with one to three physical buttons.
  • the earpiece sound hole and photosensitive devices such as the front camera set in the upper forehead area are important for the functional support of the mobile phone and are not easy to cancel, so it is very difficult to expand the display area of the display screen to cover the upper forehead area.
  • the inventor found that it is possible to set an opening in the display screen and set the photosensitive device set in the upper forehead area into the opening to expand the original upper forehead area into the display area of the display screen, so as to increase the area of the display area. It can be understood that the display area is an area that can be lit and displayed.
  • the opening can be set on one or more edges of the display screen, or on the non-edge area of the display screen, and the shape of the hole can be semicircular, rectangular, rounded rectangle, circular, regular polygonal or irregular multi-deformed, etc.
  • the opening 140 can be a circular notch set at the non-edge area of the display screen 130, and the position of the hole formed by the circular notch is used to accommodate at least one front panel component of the projection assembly, camera, proximity light sensor, earpiece, distance sensor, ambient light brightness sensor, temperature sensor, and pressure sensor as a photosensitive device.
  • the above-mentioned photosensitive device can be set below the display screen, and the position corresponds to the opening 140; for example, the front camera is set below the display screen, and is set corresponding to the opening 140 in the thickness direction of the display screen, so that the ambient light can enter the front camera through the opening to support the light sensing imaging of the front camera.
  • the opening 140 may be a semicircular notch set at an edge position of the display screen 130, and the position vacated by the hole formed by the semicircular notch is used to accommodate at least one front panel component of the projection assembly, camera, proximity light sensor, earpiece, distance sensor, ambient light brightness sensor, temperature sensor, and pressure sensor as a photosensitive device.
  • the above-mentioned photosensitive device may be arranged below the display screen, and the position corresponds to the opening 140; for example, the front camera is arranged below the display screen, and is arranged corresponding to the opening 140 in the thickness direction of the display screen, so that the ambient light can enter the front camera through the opening to support the light sensing imaging of the front camera.
  • the opening 140 may be a semicircular notch set at a non-edge area of the display screen 130, and the position vacated by the hole formed by the semicircular notch is used to accommodate at least one front panel component of the projection assembly, camera, proximity light sensor, earpiece, distance sensor, ambient light brightness sensor, temperature sensor, and pressure sensor as a photosensitive device.
  • the photosensitive device may be disposed below the display screen, at a position corresponding to the opening 140; for example, the front camera is disposed below the display screen, at a position corresponding to the opening 140 in the thickness direction of the display screen, so that ambient light may enter the front camera through the opening to support photosensitive imaging of the front camera.
  • the opening can also be opened in the edge area of the display screen.
  • the opening 140 can be a circular notch set at the left edge area of the display screen 130. The position of the hole formed by the circular notch is used to accommodate at least one front panel component of the projection assembly, camera, proximity light sensor, earpiece, distance sensor, ambient light brightness sensor, temperature sensor, and pressure sensor as a functional photosensitive device.
  • the above-mentioned photosensitive device can be set below the display screen, and the position corresponds to the opening 140; for example, the front camera is set below the display screen and is set corresponding to the opening 140 in the thickness direction of the display screen, so that the ambient light can enter the front camera through the opening to support the front camera's light sensing imaging.
  • the opening 140 can be a circular notch set at the right edge area of the display screen 130. The position of the hole formed by the circular notch is used to accommodate at least one front panel component of the projection assembly, camera, proximity light sensor, earpiece, distance sensor, ambient light brightness sensor, temperature sensor, and pressure sensor as a photosensitive device.
  • the photosensitive device may be disposed below the display screen, at a position corresponding to the opening 140; for example, the front camera is disposed below the display screen, at a position corresponding to the opening 140 in the thickness direction of the display screen, so that ambient light may enter the front camera through the opening to support photosensitive imaging of the front camera.
  • the inventor has found through research that for electronic devices of the above structure, due to the presence of photosensitive devices such as the front camera, the display screen has to reserve an opening area to support the realization of the functions of these devices, resulting in the occupation of the display area, affecting the display effect, and bringing a bad user experience. Therefore, in response to the above problems, the inventor has proposed the display method, device, electronic device and storage medium provided in the embodiments of the present application. By coordinating the openings in the display screen with the removal and insertion of interface elements, the openings in the display screen can be given new uses, thereby improving the user experience of the electronic device. Among them, the specific display method is described in detail in the subsequent embodiments.
  • FIG. 6 shows a flow chart of a display method provided in an embodiment of the present application.
  • the display method is used to give new uses to the openings in the display screen by coordinating the movement of interface elements in the openings in the display screen, thereby improving the user experience.
  • the display method is applied to a display device 200 as shown in FIG. 18 and an electronic device 100 ( FIG. 19 ) equipped with the display device 200.
  • the specific process of this embodiment will be described below using an electronic device as an example.
  • the electronic device used in this embodiment may include a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here.
  • the process shown in FIG6 will be described in detail below.
  • the electronic device includes a display screen having an opening, and the display method may specifically include the following steps:
  • Step S110 Display the current interface.
  • the electronic device can display the current interface.
  • the electronic device may display the current interface in response to the interface display instruction.
  • the electronic device may determine that the interface display instruction is received and the current interface is displayed when the target voice information is received; may determine that the interface display instruction is received and the current interface is displayed when the touch operation acting on the target physical key of the electronic device is detected; may determine that the interface display instruction is received and the current interface is displayed when the touch operation acting on the target virtual key of the electronic device is detected; may determine that the interface display instruction is received and the current interface is displayed when the target shaking operation (such as lifting operation) acting on the electronic device is detected; may determine that the interface display instruction is received and the current interface is displayed when the target sliding operation acting on the display screen of the electronic device is detected; may determine that the interface display instruction is received and the current interface is displayed when the environment in which the electronic device is located satisfies the preset environmental conditions (such as the current time reaches the preset time, the current location is at the preset location, the current temperature reaches the preset temperature, etc.), etc.; and
  • the current interface displayed by the electronic device may include a system desktop, a negative one screen interface, a lock screen interface, a chat interface, a video playback interface, a browser interface, an album interface, etc., which are not limited here.
  • Step S120 In response to a movement event of the target interface element, the area on the display screen corresponding to the opening is used as a movement exit or movement entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • the interface element may be an element that can be displayed in the interface, for example, the interface element may be an image that can be displayed in the interface, may be a partial element of an image that can be displayed in the interface, text that can be displayed in the interface, characters that can be displayed in the interface, a video that can be displayed in the interface, a number that can be displayed in the interface, etc., which are not limited here.
  • the interface element when the interface element is a partial element of an image that can be displayed in the interface, the interface element may include an image of an airplane, an image of a vehicle, an image of an animal, an image of a scenic spot, etc., which are not limited here.
  • the interface element is a partial element of a video that can be displayed in the interface
  • the video is a video containing an airplane flying
  • the interface element is the airplane in the video
  • the video is a video containing a vehicle driving
  • the interface element is the vehicle in the video
  • the video is a video containing an animal running
  • the interface element is the animal in the video, etc., which are not limited here.
  • the area on the display screen corresponding to the opening can be used as the movement exit or movement entrance of the target interface element, so that the target interface element is moved and displayed in the current interface. If a movement event of the target interface element is not detected, it is possible to keep monitoring whether a movement event of the target interface element is triggered.
  • causing the target interface element to move and display in the current interface may include: causing the target interface element to move out of the area on the display screen corresponding to the opening (such as appearing near the opening area) and then continue to move and display in the current interface; causing the target interface element to move in the current interface until it moves to the area on the display screen corresponding to the opening (such as disappearing near the opening area); causing the target interface element to move out of the area on the display screen corresponding to the opening and then move to a target display position of the current interface for static display, wherein the target display position may be any position in the current interface; or, causing the target interface element to move from the target display position of the current interface to the area on the display screen corresponding to the opening.
  • using the area on the display screen corresponding to the opening as the moving exit or moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface may include: using the area on the display screen corresponding to the opening as the moving exit of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • using the area on the display screen corresponding to the opening as the moving exit of the target interface element the target interface element is moved out of the area on the display screen corresponding to the opening, and after moving out, it is moved to the target display position of the current interface with a first preset moving trajectory for display.
  • the target interface element is an "aircraft image”
  • the area on the display screen corresponding to the opening can be used as the moving exit of the "aircraft image”, so that the "aircraft image” is moved out of the area on the display screen corresponding to the opening, and after moving out, it is moved to the target display position of the current interface with a first preset moving trajectory for display.
  • using the area on the display screen corresponding to the opening as the moving exit or moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface may include: using the area on the display screen corresponding to the opening as the moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • using the area on the display screen corresponding to the opening as the moving entrance of the target interface element the target interface element is moved from the target display position of the current interface to the area on the display screen corresponding to the opening with a second preset moving trajectory, and disappears when it moves to the area on the display screen corresponding to the opening.
  • the target interface element is an "aircraft image”
  • the area on the display screen corresponding to the opening can be used as the moving entrance of the "aircraft image”, so that the "aircraft image” is moved from the target display position of the current interface to the area on the display screen corresponding to the opening with a second preset moving trajectory, and disappears when it moves to the area position on the display screen corresponding to the opening.
  • using the area on the display screen corresponding to the opening as the moving exit or moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface may include: using the area on the display screen corresponding to the opening as the target interface element The moving entrance and the moving exit of the target interface element are used to move and display the target interface element in the current interface.
  • the area on the display screen corresponding to the opening is used as the moving exit and the moving entrance of the target interface element, so that the target interface element is moved out of the area on the display screen corresponding to the opening, and after moving out, it is moved to the target display position of the current interface with a first preset moving trajectory, and then the target interface element is moved from the target display position of the current interface to the area on the display screen corresponding to the opening with a second preset moving trajectory, and disappears when it moves to the area on the display screen corresponding to the opening.
  • the target interface element is an "aircraft image”
  • the area on the display screen corresponding to the opening can be used as the moving exit and the moving entrance of the "aircraft image”, so that the "aircraft image” is moved out of the area on the display screen corresponding to the opening, and after moving out, it is moved to the target display position of the current interface with a first preset moving trajectory, and then the "aircraft image” is controlled to move from the target display position of the current interface to the area on the display screen corresponding to the opening with a second preset moving trajectory, and disappears when it moves to the area on the display screen corresponding to the opening.
  • Figure 7 shows a first schematic diagram of the mobile display of the target interface element provided in the embodiment of the present application.
  • the opening A1 of the electronic device is located in the top middle area of the display screen, and the target interface element B can be moved out of the area on the display screen corresponding to the opening A1 and moved to the target display position C in the current interface for static display, or the target interface element can be moved from the target display position C to the area on the display screen corresponding to the opening A1.
  • Figure 8 shows a second schematic diagram of the mobile display of the target interface element provided in the embodiment of the present application.
  • the opening A2 of the electronic device is located in the top left area of the display screen, and the target interface element B can be moved out of the area on the display screen corresponding to the opening A2, and moved to the target display position C in the current interface for static display, or the target interface element can be moved from the target display position C to the area on the display screen corresponding to the opening A2.
  • Figure 9 shows a second schematic diagram of the mobile display of the target interface element provided in the embodiment of the present application.
  • the opening A3 of the electronic device is located in the top right area of the display screen, and the target interface element B can be moved out of the area on the display screen corresponding to the opening A3 and moved to the target display position C in the current interface for static display, or the target interface element can be moved from the target display position C to the area on the display screen corresponding to the opening A3.
  • Figure 10 shows a schematic diagram of the target interface element provided by the embodiment of the present application being displayed on the current interface.
  • a flight card D (the flight card can be displayed at the target display position) can be displayed in the current interface, and an airplane (target interface element B) is displayed on the flight card.
  • a preset animation can be displayed in a preset peripheral area of the opening in response to the movement event of the target interface element.
  • the preset animation may include particles, halos, etc., which are not limited here.
  • the target interface element uses the area on the display screen corresponding to the opening as an exit and the area on the display screen corresponding to the opening as an entrance, the preset animation displayed in the preset peripheral area of the opening may be the same or different, which is not limited here.
  • a display method provided in an embodiment of the present application displays the current interface, and in response to a movement event of a target interface element, uses an area on the display screen corresponding to an opening of the display screen of the electronic device as a moving exit or moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • the opening in the display screen can be coordinated with the movement of the interface element in and out through the opening in the display screen, thereby giving the opening in the display screen a new purpose and improving the user experience.
  • FIG11 shows a schematic flow chart of a display method provided by an embodiment of the present application.
  • the method is applied to the above-mentioned electronic device, which includes a display screen having an opening.
  • the process shown in FIG11 will be described in detail below.
  • the display method may specifically include the following steps:
  • Step S210 Display the current interface.
  • step S210 can be found in step S110 , which will not be repeated here.
  • Step S220 responding to the movement event of the target interface element.
  • Step S230 Using the area on the display screen corresponding to the opening as the moving exit or entrance of the target interface element, and controlling the movement and display of the target interface element in the current interface based on the element type of the target interface element, wherein the element type includes a static type or a dynamic type.
  • the element type of the target interface element can be obtained.
  • the element type of the target interface element can include a static type or a dynamic type.
  • the target interface element may include images, texts, characters, etc., and the format of the target interface element may be a 2D format, a 3D format, etc., which is not limited here.
  • the format of the target interface element may be a JPG format, an FNG format, etc.
  • the format of the target interface element may be a 3D format
  • the format of the target interface element may be an OBJ format, an GLTF format, etc., which is not limited here.
  • the target interface element can be included in the video, and the format of the target interface element can be MP4 format, WMV format, RMVB format, MOV format, etc., which is not limited here.
  • the format of the target interface element when the target interface element is determined, the format of the target interface element can be obtained, and based on the target interface element, the target interface element can be The format of the target interface element, obtains the element type of the target interface element.
  • the element type of the target interface element can be determined to be a static type; if the format of the target interface element is determined to be MP4 format, the element type of the target interface element can be determined to be a dynamic type.
  • the identifier of the target interface element can be obtained, and based on the identifier of the target interface element, the element type of the target interface element can be obtained.
  • the electronic device can be pre-set with a first identifier, a second identifier, and a relationship between the interface element and the first identifier and the second identifier, wherein the first identifier is used to characterize a static type, and the second identifier is used to characterize a dynamic type. Based on this, when the target interface element is determined, the identifier corresponding to the target interface element can be detected.
  • the element type of the target interface element can be determined to be a static type; if the identifier corresponding to the target interface element is determined to be the second identifier, the element type of the target interface element can be determined to be a dynamic type.
  • the area on the display screen corresponding to the opening can be used as the moving exit or entrance of the target interface element, and the target interface element can be controlled to move and display in the current interface based on the element type.
  • the electronic device may be pre-set with a first mobile display mode and a second mobile display mode, and the first mobile display mode is different from the second mobile display mode, wherein a static type establishes a corresponding relationship with the first mobile display mode, and a dynamic type establishes a corresponding relationship with the second mobile display mode.
  • the target interface element determines whether the element type of the target interface element is a static type, the area on the display screen corresponding to the opening can be used as the mobile exit or mobile entrance of the target interface element, and the target interface element is controlled to move and display in the current interface based on the first mobile display mode; if it is determined that the element type of the target interface element is a dynamic type, the area on the display screen corresponding to the opening can be used as the mobile exit or mobile entrance of the target interface element, and the target interface element is controlled to move and display in the current interface based on the second mobile display mode.
  • Figure 12 shows a schematic flow chart of step S230 of the display method shown in Figure 11 of the present application.
  • the flow chart shown in Figure 12 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S231 If the element type of the target interface element is the static type, the target interface element is moved and displayed in the current interface with a preset target moving trajectory and the preset target animation.
  • a preset target movement trajectory and a preset target animation can be loaded into the target interface element so that the target interface element moves and is displayed in the current interface with the preset target movement trajectory and the preset target animation.
  • the electronic device may pre-set and store a preset target movement trajectory and a preset target animation, wherein the preset target movement trajectory and the preset target animation can be used as a static type interface element to assist in the movement of the current interface. Therefore, when it is determined that the element type of the target interface element is a static type, the preset preset target movement trajectory and the preset target animation can be loaded into the target interface element, so that the target interface element can be moved and displayed in the current interface with the preset target movement trajectory and the preset target animation.
  • the provider/developer of the interface element can only provide or design the interface element, that is, the preset target movement trajectory and preset target animations can be directly provided to the provider/developer of the interface element for use, which can improve the production efficiency of the interface materials and reduce the production cost of the interface materials.
  • the preset target movement trajectory may include a target curve trajectory, a target broken line trajectory, a target straight line trajectory, a target S-line trajectory, etc., which are not limited here.
  • the preset target motion effect may include a preset zoom ratio, and loading a preset target moving track and a preset target motion effect in the target interface element so that the target interface element moves and displays in the current interface with the preset target moving track and the preset target motion effect may include: making the target interface element move and display in the current interface with the preset target moving track and the preset zoom ratio.
  • the preset zoom ratio may include a preset magnification ratio or a preset reduction ratio, and the preset zoom ratio may remain fixed, or may also be changed dynamically, etc., which is not limited here. Among them, based on the loading of the preset zoom ratio, when the target interface element moves and displays in the current interface, different display sizes may correspond to different positions, or different display sizes may correspond to the same display size, which is not limited here.
  • the target interface element can be moved and displayed in the current interface in the form of gradually enlarging the preset target moving track and the preset enlargement ratio. That is to say, in the process of the target interface element moving out of the area on the display screen corresponding to the opening and moving and displaying in the current interface with the preset target moving track, the display size corresponding to the target interface element gradually increases, that is, the display size of the target interface element is the smallest when it moves out of the area on the display screen corresponding to the opening, and is the largest when it moves to the target display position (end position).
  • the target interface element can be gradually enlarged to a first preset size at a preset magnification ratio on the preset target moving track of the current interface, and then maintained to move and display on the preset target moving track with the first preset size.
  • the display size corresponding to the target interface element will gradually increase to the first preset size, and then maintain the first preset size and continue to move and display on the preset target moving track until it moves to the target display position (end position).
  • the target interface element can be moved and displayed in the current interface in the form of a preset target moving track and a preset reduction ratio.
  • the display size corresponding to the target interface element gradually decreases, that is, the display size of the target interface element is the largest at the target display position and is the smallest when it moves to the area on the display screen corresponding to the opening.
  • the target interface element can be gradually reduced to a second preset size at a preset reduction ratio on the preset target moving track of the current interface, and then maintained to move and display on the preset target moving track with the second preset size.
  • the display size corresponding to the target interface element will gradually decrease to the second preset size, and then maintain the second preset size and continue to move and display on the target moving track until it moves to the area on the display screen corresponding to the opening.
  • the target motion effect may include a preset transparency, and loading a preset target moving track and a target motion effect in the target interface element so that the target interface element moves and displays in the current interface with the preset target moving track and the preset target motion effect may include: making the target interface element move and display in the current interface with the preset target moving track and the preset transparency.
  • the target interface element can reduce the occlusion of other interface information in its lower layer during the movement process, thereby improving the display effect of the interface.
  • the preset transparency may remain fixed, or may be changed dynamically, etc., which is not limited here. Among them, based on the loading of the preset transparency, when the target interface element moves and displays in the current interface, different display transparencies may correspond to different positions, or the same transparency may correspond to different positions, which is not limited here.
  • the target interface element can be moved and displayed in the current interface with the preset target moving track and preset transparency. That is to say, when the target interface element moves out of the area on the display screen corresponding to the opening and moves and displays in the current interface with the target moving track, the transparency corresponding to the target interface element can remain unchanged, that is, the transparency of the target interface element remains unchanged from the time when it moves out of the area on the display screen corresponding to the opening to the time when it moves to the target display position (end position).
  • the target interface element can be controlled to move and display in the current interface in the form of a preset target moving track and a preset transparency gradually decreasing. That is, in the process of the target interface element moving out of the area on the display screen corresponding to the opening and moving and displaying in the current interface with the preset target moving track, the transparency corresponding to the target interface element gradually decreases, that is, the transparency of the target interface element is the largest when it moves out of the area on the display screen corresponding to the opening, and is the smallest when it moves to the target display position (end position).
  • the target interface element can be controlled to move and display in the current interface with the preset target moving track and preset transparency. That is to say, in the process of the target interface element moving and displaying in the current interface from the target display position (starting position) with the preset target moving track, the transparency corresponding to the target interface element can remain unchanged, that is, the transparency of the target interface element remains unchanged in the process of moving from the target display position (starting position) to the area on the display screen corresponding to the opening.
  • the target interface element can be controlled to move and display in the current interface in the form of a preset target moving track and a preset transparency gradually increasing. That is to say, when the target interface element starts to move from the target display position (starting point position) and moves and displays in the current interface with the preset target moving track, the transparency corresponding to the target interface element gradually increases, that is, the transparency of the target interface element is the largest at the sub-target display position and is the smallest when it moves to the area on the display screen corresponding to the opening.
  • Step S232 If the element type is the dynamic type, play the video containing the target interface element so that the target interface element moves and is displayed in the current interface.
  • a video containing the target interface element can be directly played in the current interface, so that the target interface element moves and displays in the current interface. It can be understood that when the element type of the target interface element is a dynamic type, the provider/developer representing the target interface element has already designed and determined the corresponding dynamic effect and movement trajectory of the target interface element when designing the target interface element. Therefore, the electronic device can realize the moving display of the target interface element in the current interface by directly playing the video containing the target interface element.
  • the element type of the target interface element is a dynamic type and the number of the target interface elements is one (that is, the provider/developer only provides one target interface element)
  • the video containing the target interface element can be played in forward sequence; if the target interface element moves in with the area on the display screen corresponding to the opening as a mobile entrance, the video containing the target interface element is played in reverse sequence.
  • the element type of the target interface element is a dynamic type and the number of the target interface elements is two, namely, a video containing a first target interface element and a video containing a second target interface element, wherein the video containing the second target interface element is the reverse order of the video containing the first target interface element (i.e., the provider/developer provides the first target interface element and the second target interface element), if the target interface element moves out with the area on the display screen corresponding to the opening as the mobile exit, the video containing the first target interface element can be played, and if the target interface element moves in with the area on the display screen corresponding to the opening as the mobile entrance, the video containing the second target interface element can be played. frequency.
  • the display method provided in an embodiment of the present application displays the current interface, responds to the movement event of the target interface element, uses the area on the display screen corresponding to the opening as the movement exit or movement entrance of the target interface element, and controls the movement and display of the target interface element in the current interface based on the element type of the target interface element, wherein the element type may include a static type or a dynamic type.
  • this embodiment also controls the movement and display of the target interface element in the current interface according to the element type of the target interface element, thereby achieving adaptation of different element types and improving the diversity of adaptation.
  • FIG. 13 shows a schematic flow chart of a display method provided by an embodiment of the present application.
  • the method is applied to the above-mentioned electronic device, which includes a display screen having an opening.
  • the process shown in FIG. 13 will be described in detail below.
  • the display method may specifically include the following steps:
  • Step S310 Display the current interface.
  • step S310 For the detailed description of step S310, please refer to step S110, which will not be repeated here.
  • Step S320 If the target notification message corresponding to the target interface element appears in the current interface, determine the display event that triggers the target interface element.
  • notification messages refer to content carriers in applications, such as weather notification messages, flight notification messages, etc.
  • the carrier of the target interface element in the current interface is the target notification message.
  • the target notification message can be a flight notification message; if the target interface element is the sun, the target notification message can be a weather notification message, etc., which is not limited here.
  • the target notification message corresponding to the target interface element it can be detected whether the target notification message corresponding to the target interface element appears in the current interface. If the target notification message corresponding to the target interface element is detected to appear in the current interface, it can be determined that the show event of the target interface element is triggered. If the target notification message corresponding to the target interface element is not detected to appear in the current interface, it can be determined that the show event of the target interface element is not triggered.
  • Step S330 In response to the display event of the target interface element, the target interface element is moved from the area on the display screen corresponding to the opening to the current interface.
  • the target interface element when it is determined that the target interface element is triggered to show an event, can be moved from the area on the display screen corresponding to the opening to the current interface in response to the show event of the target interface element.
  • the target interface element is moved from the area on the display screen corresponding to the opening, and the target interface element is moved to the target display position of the current interface with a target moving track for static display.
  • a flight notification message may appear on the current interface, i.e., if an event triggering the display of an aircraft is determined, the aircraft may fly out of the area on the display screen corresponding to the hole into the flight notification message.
  • Figure 14 shows a first interface schematic diagram of an electronic device provided in an embodiment of the present application
  • Figure 15 shows a second interface schematic diagram of an electronic device provided in an embodiment of the present application.
  • a flight notification message D target notification message
  • the flight notification message D has not yet displayed an aircraft B (target interface element).
  • the aircraft B can be controlled to move out of the area on the display screen corresponding to the opening, and finally moved to the flight notification message D for display, as shown in Figure 15.
  • the target interface element can be moved from the area on the display screen corresponding to the opening to the current interface based on the application type corresponding to the current interface, where the application type includes a system application or a non-system application.
  • the application type corresponding to the current interface may be obtained. That is, it may be obtained whether the application type corresponding to the current interface is a system application or a non-system application. For example, if the current interface is a desktop, it may be determined that the application type corresponding to the current interface is a system application; if the current interface is a text interface, it may be determined that the application type corresponding to the current interface is a non-system application.
  • the electronic device may be pre-set with a third mobile display mode and a fourth mobile display method, and the third mobile display mode is different from the fourth mobile display mode, wherein a corresponding relationship is established between the system application and the third mobile display mode, and a corresponding relationship is established between the non-system application and the fourth mobile display mode.
  • the target interface element when the application type corresponding to the current interface is obtained, if it is determined that the application type of the current interface is a system application, the target interface element may be controlled to move out of the area on the display screen corresponding to the opening to the current interface based on the third mobile display mode; if it is determined that the application type of the current interface is a non-system application, the target interface element may be controlled to move out of the area on the display screen corresponding to the opening to the current interface based on the fourth mobile display mode.
  • the target interface element can be moved from the area on the display screen corresponding to the opening to the target notification message in the current interface. For example, if the current interface is a desktop, a negative one screen interface, or a lock screen interface, the target interface element can be moved from the area on the display screen corresponding to the opening to the target notification message in the current interface.
  • the target interface element can be moved out of the area on the display screen corresponding to the opening and moved to the target notification message in the current interface along the target movement trajectory.
  • the application type is determined to be a non-system application, which indicates that there is generally no target notification message in the current interface that is compatible with the target interface element (i.e., it is determined that there is no target notification message in the current interface, or the target notification message that exists is incompatible with the target interface element)
  • a top-level window that is compatible with the target interface element can be created in the current interface, and the target interface element is moved out of the area on the display screen corresponding to the opening to the top-level window.
  • the current interface is a video interface or a chat interface
  • a top-level window can be created in the current interface, and the target interface element is moved out of the area on the display screen corresponding to the opening to the top-level window.
  • Step S340 If the target notification message corresponding to the target interface element disappears in the current interface, it is determined that a hiding event of the target interface element is triggered.
  • the target notification message corresponding to the target interface element disappears in the current interface. If it is detected that the target notification message corresponding to the target interface element disappears in the current interface, it can be determined that the hide-in event of the target interface element is triggered. If it is not detected that the target notification message corresponding to the target interface element disappears in the current interface, it can be determined that the hide-in event of the target interface element is not triggered.
  • the electronic device if it detects a delete operation or an open operation for the target notification message while displaying the current interface and the target notification message corresponding to the target interface element in the current interface, it can determine that the hiding event of the target interface element is triggered.
  • Step S350 In response to the hiding event of the target interface element, control the target interface element to move from the current interface into the area on the display screen corresponding to the opening.
  • the current interface displays a flight notification message, and an airplane is displayed on the flight card. If a delete operation or an open operation is detected for the flight notification message, it can be determined that the aircraft hiding event is triggered, and the aircraft can be controlled to fly back from the flight notification message to the area on the display screen corresponding to the opening.
  • the display method provided by an embodiment of the present application displays the current interface. If the target notification message corresponding to the target interface element appears in the current interface, the target interface element is determined to be triggered to show the event. In response to the target interface element showing event, the target interface element is moved out of the area on the display screen corresponding to the opening to the current interface. If the target notification message corresponding to the target interface element disappears in the current interface, the target interface element is determined to be triggered to hide the event. In response to the target interface element hiding event, the target interface element is moved from the current interface to the area on the display screen corresponding to the opening.
  • FIG. 16 shows a schematic flow chart of a display method provided by an embodiment of the present application.
  • the method is applied to the above-mentioned electronic device, which includes a display screen having an opening.
  • the process shown in FIG. 16 will be described in detail below.
  • the display method may specifically include the following steps:
  • Step S410 Display the current interface.
  • Step S420 In response to the movement event of the target interface element, obtaining the position of the opening.
  • the position of the opening in the electronic device may be fixed, so the position of the opening may be acquired and stored in advance, and then, when a movement event that triggers a target interface element is detected, the position of the opening may be directly acquired from the local device of the electronic device.
  • the position of the opening in the electronic device may change dynamically, so when a movement event that triggers a target interface element is detected, the position of the opening may be detected to acquire the position of the opening.
  • a target coordinate system can be established with the electronic device, for example, the target coordinate system can be established with the center of the electronic device as the coordinate origin and the two sides of the electronic device perpendicular to each other as the horizontal axis and the vertical axis, or the target coordinate system can be established with the corner point of the electronic device as the coordinate origin and the two sides of the electronic device perpendicular to each other as the horizontal axis and the vertical axis. Based on this, the coordinate information of the opening in the target coordinate system can be obtained, and the position of the opening can be determined based on the coordinate information.
  • obtaining the position of the opening may include: obtaining the position on the display screen corresponding to the opening as the position of the opening. That is, the coordinate information of the position on the display screen corresponding to the opening in the target coordinate system may be obtained, and the position on the display screen corresponding to the opening is determined as the position of the opening based on the coordinate information.
  • Step S430 Based on the position of the opening, the area on the display screen corresponding to the opening is used as a moving exit or moving entrance of the target interface element, so that the target interface element is moved and displayed in the current interface.
  • the display image corresponding to the opening can be obtained based on the position of the opening.
  • the area on the display screen serves as a moving exit or moving entrance for the target interface element, so that the target interface element is moved and displayed in the current interface.
  • the electronic device can also obtain the target display position of the target interface element in the current interface (such as the location of the target notification message). Then, when the position of the opening and the target display position are obtained, the opening can be used as a moving exit or entrance of the target interface element based on the position of the opening and the target display position, so that the target interface element can be moved and displayed between the position of the opening and the target display position.
  • the display method provided in an embodiment of the present application displays the current interface, and in response to the movement event of the target interface element, obtains the position of the opening, and uses the area on the display screen corresponding to the opening as the movement exit or movement entrance of the target interface element based on the position of the opening, so that the target interface element is moved and displayed in the current interface.
  • this embodiment also obtains the position of the opening, and performs the movement display of the target interface element based on the position of the opening, which can improve the accuracy of the movement display of the interface element.
  • the technical architecture of the electronic device can be divided into three parts: card application (card app), system application (system app) and system framework (android framework).
  • the card application includes an interface rendering module and a logic execution module, the interface rendering module is responsible for the rendering of the foreground interface in the card code, and the logic execution module is responsible for the execution of the background logic in the card code.
  • the system application may include a negative one screen application, a desktop application and a lock screen application.
  • the system framework may include a window management module, a hardware driver module and a preset dynamic effect library
  • the window management module is used to manage the visible windows of the system
  • the hardware driver module is used to manage the hardware driver of the system
  • the preset dynamic effect library is used to store rich dynamic effects preset in the system.
  • the interface rendering module can be used to determine the current environment of the card. There are two judgment results, namely, the card is on the system application, or the card is on an ordinary application (non-system application).
  • the interface rendering module notifies the system application to process it.
  • the interface rendering module notifies the window management module to process it.
  • the system application After receiving the notification, the system application obtains the position of the opening. If a static material is connected, the corresponding animation is loaded in the system application. If a dynamic (video) material is connected, the video is played in the system application.
  • the window management module obtains the position of the opening and creates a top-level window. If a static material is connected, the corresponding animation is loaded on the new top-level window. If a dynamic (video) material is connected, the video is played on the new top-level window.
  • FIG. 18 shows a module block diagram of a display device provided by an embodiment of the present application.
  • the display device 200 is applied to the above-mentioned electronic device, and the electronic device includes a display screen, and the display screen has an opening.
  • the display device 200 includes: a current interface display module 210 and an interface element moving module 220, wherein:
  • the current interface display module 210 is used to display the current interface.
  • the interface element moving module 220 is used to respond to the moving event of the target interface element, use the area on the display screen corresponding to the opening as the moving exit or moving entrance of the target interface element, and make the target interface element move and display in the current interface.
  • the interface element moving module 220 includes: a moving event response submodule and a first interface element moving submodule, wherein:
  • the movement event response submodule is used to respond to the movement event of the target interface element.
  • the first interface element movement submodule is used to use the area on the display screen corresponding to the opening as the movement exit or movement entrance of the target interface element, and control the movement and display of the target interface element in the current interface based on the element type of the target interface element, and the element type includes a static type or a dynamic type.
  • the target animation loading unit is used to make the target interface element move and display in the current interface with a preset target movement trajectory and a preset target animation if the element type of the target interface element is the static type.
  • the target animation loading unit includes: a first control subunit, a second control subunit and a third control subunit, wherein:
  • the first control subunit is used to make the target interface element move and display in the current interface according to the preset target movement trajectory and preset zoom ratio.
  • the first control sub-unit includes: an amplification sub-sub-unit and a reduction sub-sub-unit, wherein:
  • the magnification sub-subunit is used to make the target interface element move and display in the current interface in the form of gradually magnifying the preset target movement trajectory and the preset magnification ratio if the target interface element moves out with the area on the display screen corresponding to the opening as the moving exit.
  • the zoom-out sub-sub-unit is used to make the target interface element move and display in the current interface in the form of gradually zooming out along the preset target moving trajectory and the preset zoom-out ratio if the target interface element moves in with the area on the display screen corresponding to the opening as the moving entrance.
  • the second control subunit is used to make the target interface element move and display in the current interface with the preset target movement track and preset transparency.
  • the target interface element playing unit is used to play the video containing the target interface element if the element type is the dynamic type, so that the target interface element moves and is displayed in the current interface.
  • the target interface element playing unit includes: a forward playing subunit and a reverse playing subunit, wherein:
  • the forward-playing subunit is used to play the video containing the target interface element in forward order if the target interface element moves out using the area on the display screen corresponding to the opening as a moving exit.
  • the reverse play subunit is used to play the video containing the target interface element in reverse order if the target interface element is moved in using the area on the display screen corresponding to the opening as the moving entrance.
  • the interface element moving module 220 includes: an interface element moving out submodule and an interface element moving in submodule, wherein:
  • the interface element moving out submodule is used to respond to the display event of the target interface element and move the target interface element from the area on the display screen corresponding to the opening to the current interface.
  • the interface element removal submodule includes: an interface element removal unit, wherein:
  • An interface element removal unit is used to move the target interface element from the area on the display screen corresponding to the opening to the current interface based on the application type corresponding to the current interface, and the application type includes a system type or a non-system application.
  • the target interface element corresponds to a target notification message in the current interface
  • the interface element removal unit includes: a first interface element removal subunit and a second interface element removal subunit, wherein:
  • the first interface element removal subunit is used to move the target interface element from the area on the display screen corresponding to the opening to the target notification message in the current interface if the application type corresponding to the current interface is the system application.
  • the second interface element moving out subunit is used to create a top-level window in the current interface if the application type is the non-system application, and move the target interface element from the area on the display screen corresponding to the opening to the top-level window.
  • the interface element moving submodule is used to respond to the hiding event of the target interface element and move the target interface element from the current interface into the area on the display screen corresponding to the opening.
  • the interface element moving module 220 includes: a display event triggering submodule and a hidden event triggering submodule, wherein:
  • the display event triggering submodule is used to determine the display event that triggers the target interface element if the target notification message corresponding to the target interface element appears in the current interface.
  • the hidden event triggering submodule is used to determine the introduction event that triggers the target interface element if the target notification message corresponding to the target interface element disappears in the current interface.
  • the interface element moving module 220 includes: a position acquisition submodule and a second interface element moving submodule, wherein:
  • the position acquisition submodule is used to acquire the position of the opening in response to the movement event of the target interface element.
  • the second interface element moving submodule uses the area on the display screen corresponding to the opening as the moving exit or moving entrance of the target interface element based on the position of the opening, so that the target interface element is moved and displayed in the current interface.
  • the display device 200 further includes: a preset animation display module, wherein:
  • the preset animation display module is used to display a preset animation in a preset peripheral area of the opening in response to a movement event of a target interface element.
  • the coupling between modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules.
  • the electronic device 100 can be an electronic device such as a smart phone, a tablet computer, an e-book, etc. that can run applications.
  • the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display screen 130, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the aforementioned method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
  • the memory 120 may include a random access memory (RAM) or a read-only memory (ROM).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.
  • the data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
  • the display screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, texts, icons, numbers, videos, and any combination thereof.
  • the display screen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
  • FIG 20 shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application.
  • the computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
  • the computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM.
  • the computer-readable storage medium 300 comprises a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 300 has storage space for program code 310 for executing any method steps in the above method. These program codes may be read from or written to one or more computer program products.
  • the program code 310 may be compressed, for example, in a suitable form.
  • the display method, device, electronic device and storage medium provided in the embodiments of the present application display the current interface, respond to the movement event of the target interface element, use the opening of the display screen of the electronic device as the movement exit or movement entrance of the target interface element, and control the movement and display of the target interface element in the current interface, so that the opening in the display screen can be coordinated with the movement of the interface element through the opening in the display screen, so as to give the opening in the display screen a new purpose and enhance the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种显示方法、装置、电子设备以及存储介质,涉及电子设备技术领域。该方法应用于电子设备,该电子设备包括显示屏,该显示屏具有开孔,该方法包括:显示当前界面,响应于目标界面元素的移动事件,以开孔对应的显示屏上的区域作为目标界面元素的移动出口或者移动入口,使目标界面元素在当前界面中移动显示。本申请通过显示屏中的开孔配合界面元素的移出和移入,可以给显示屏中的开孔赋予新的用途,提升用户的使用体验。

Description

显示方法、装置、电子设备以及存储介质
相关申请的交叉引用
本申请要求于2022年12月22日提交的申请号为CN202211659031.9的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及电子设备技术领域,更具体地,涉及一种显示方法、装置、电子设备以及存储介质。
背景技术
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。同时,用户对全面屏有追求,但是由于前置摄像头等感光器件的存在,使得显示屏不得不留出一个开孔区域用于支持这些器件功能的实现。
发明内容
鉴于上述问题,本申请提出了一种显示方法、装置、电子设备以及存储介质,以解决上述问题。
第一方面,本申请实施例提供了一种显示方法,应用于电子设备,所述电子设备包括显示屏,所述显示屏具有开孔,所述方法包括:显示当前界面;响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
第二方面,本申请实施例提供了一种显示装置,应用于电子设备,所述电子设备包括显示屏,所述显示屏具有开孔,所述装置包括:当前界面显示模块,用于显示当前界面;界面元素移动模块,用于响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
第三方面,本申请实施例提供了一种电子设备,包括显示屏、存储器和处理器,所述显示屏和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1示出了本申请实施例提供的电子设备的第一种结构示意图;
图2示出了本申请实施例提供的电子设备的第二种结构示意图;
图3示出了本申请实施例提供的电子设备的第三种结构示意图;
图4示出了本申请实施例提供的电子设备的第四种结构示意图;
图5示出了本申请实施例提供的电子设备的第五种结构示意图;
图6示出了本申请一实施例提供的显示方法的流程示意图;
图7示出了本申请实施例提供的目标界面元素的第一种移动显示示意图;
图8示出了本申请实施例提供的目标界面元素的第二种移动显示示意图;
图9示出了本申请实施例提供的目标界面元素的第三种移动显示示意图;
图10示出了本申请实施例提供的目标界面元素在当前界面显示的示意图;
图11示出了本申请一实施例提供的显示方法的流程示意图;
图12示出了本申请的图11所示的显示方法的步骤S230的流程示意图;
图13示出了本申请一实施例提供的显示方法的流程示意图;
图14示出了本申请实施例提供的电子设备的第一种界面示意图;
图15示出了本申请实施例提供的电子设备的第二种界面示意图;
图16示出了本申请一实施例提供的显示方法的流程示意图;
图17示出了本申请实施例提供的显示方法的逻辑示意图;
图18示出了本申请一实施例提供的显示装置的模块框图;
图19示出了本申请实施例用于执行根据本申请实施例的显示方法的电子设备的框图;
图20示出了本申请实施例的用于保存或者携带实现根据本申请实施例的显示方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
显示屏通常在手机、平板电脑等电子设备中所起到的作用为显示文本、图片、图标或者视频等内容。通常电子设备包括前面板、后盖以及边框。前面板包括上额区、中部屏幕区和下部按键区。通常,上额区设置有听筒出音孔以及前置摄像头等感光器件,中部屏幕区设置有显示屏,下部按键区设置有一到三个物理按键。而随着技术的发展,下部按键区被逐渐取消,原本设置在下部按键区的物理按键由显示屏中的虚拟按键替代。
而上额区所设置的听筒出音孔以及前置摄像头等感光器件对于手机的功能支持较为重要,不易轻易的取消,所以将显示屏的可显示区域拓展到覆盖上额区具有较大的难度。在经过一系列研究后,发明人发现可以在显示屏设置开孔,将上额区设置的感光器件设置到开孔内的方式来实现将原本的上额区扩展为显示屏的可显示区域,以增大可显示区域的面积,其中,可以理解的,可显示区域为能够点亮并显示的区域。
示例性的,该开孔可以设置在显示屏的一个或多个边缘上,也可以设置在显示屏的非边缘区域上,该孔的形状可以是半圆形、直角矩形、圆角矩形、圆形、规则多边形或不规则多变形等。示意性的,请参阅图1,该开孔140可以是在显示屏130的非边缘区域位置设置圆形缺口,所述圆形缺口形成的孔所空出的位置用于容纳投影组件、摄像头、接近光传感器、听筒、距离传感器、环境光亮度传感器、温度传感器、压力传感器中的至少一种前面板部件作为感光器件。或者,上述感光器件可以设置在显示屏的下方,位置与开孔140对应;例如,前置摄像头设置在显示屏的下方,在显示屏的厚度方向上与开孔140对应设置,如此环境光可以通过该开孔进入前置摄像头中,以支持前置摄像头感光成像。请参阅图2,该开孔140可以是在显示屏130的一个边缘位置设置半圆形缺口,所述半圆形缺口形成的孔所空出的位置用于容纳投影组件、摄像头、接近光传感器、听筒、距离传感器、环境光亮度传感器、温度传感器、压力传感器中的至少一种前面板部件作为感光器件。或者,上述感光器件可以设置在显示屏的下方,位置与开孔140对应;例如,前置摄像头设置在显示屏的下方,在显示屏的厚度方向上与开孔140对应设置,如此环境光可以通过该开孔进入前置摄像头中,以支持前置摄像头感光成像。请参阅图3,该开孔140可以是在显示屏130的非边缘区域位置设置半圆形缺口,所述半圆形缺口形成的孔所空出的位置用于容纳投影组件、摄像头、接近光传感器、听筒、距离传感器、环境光亮度传感器、温度传感器、压力传感器中的至少一种前面板部件作为感光器件。或者,上述感光器件可以设置在显示屏的下方,位置与开孔140对应;例如,前置摄像头设置在显示屏的下方,在显示屏的厚度方向上与开孔140对应设置,如此环境光可以通过该开孔进入前置摄像头中,以支持前置摄像头感光成像。
其中,该开孔除了可以开设于显示屏的中间区域之外,还可以开设于显示屏的边缘区域,示例性的,请参阅图4,该开孔140可以是在显示屏130的左侧边缘区域位置设置圆形缺口,所述圆形缺口形成的孔所空出的位置用于容纳投影组件、摄像头、接近光传感器、听筒、距离传感器、环境光亮度传感器、温度传感器、压力传感器中的至少一种前面板部件作为功感光器件。或者,上述感光器件可以设置在显示屏的下方,位置与开孔140对应;例如,前置摄像头设置在显示屏的下方,在显示屏的厚度方向上与开孔140对应设置,如此环境光可以通过该开孔进入前置摄像头中,以支持前置摄像头感光成像。请参阅图5,该开孔140可以是在显示屏130的右侧边缘区域位置设置圆形缺口,所述圆形缺口形成的孔所空出的位置用于容纳投影组件、摄像头、接近光传感器、听筒、距离传感器、环境光亮度传感器、温度传感器、压力传感器中的至少一种前面板部件作为感光器件。或者,上述感光器件可以设置在显示屏的下方,位置与开孔140对应;例如,前置摄像头设置在显示屏的下方,在显示屏的厚度方向上与开孔140对应设置,如此环境光可以通过该开孔进入前置摄像头中,以支持前置摄像头感光成像。
但是,发明人经过研究发现,针对上述结构的电子设备,由于前置摄像头等感光器件的存在,使得显示屏不得不留出一个开孔区域用于支持这些器件功能的实现,造成显示面积的占用,影响显示效果,带来不好的用户体。因此,针对上述问题,发明人提出了本申请实施例提供的显示方法、装置、电子设备以及存储介质,通过显示屏中的开孔配合界面元素的移出和移入,可以给显示屏中的开孔赋予新的用途,提升用户对于电子设备的使用体验。其中,具体的显示方法在后续的实施例中进行详细的说明。
请参阅图6,图6示出了本申请一实施例提供的显示方法的流程示意图。该显示方法用于通过显示屏中的开孔配合界面元素的移出和移入,可以给显示屏中的开孔赋予新的用途,提升用户的使用体验。在具体的实施例中,该显示方法应用于如图18所示的显示装置200以及配置有显示装置200的电子设备100(图19)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的, 本实施例所应用的电子设备可以包括智能手机、平板电脑、穿戴式电子设备等,在此不做限定。下面将针对图6所示的流程进行详细的阐述,在本实施例中,该电子设备包括显示屏,该显示屏具有开孔,所述显示方法具体可以包括以下步骤:
步骤S110:显示当前界面。
在本实施例中,电子设备可以显示当前界面。
在一些实施方式中,电子设备可以响应于界面显示指令显示当前界面。可选地,电子设备可以在接收到目标语音信息时,确定接收到界面显示指令并显示当前界面;可以在检测到作用于电子设备的目标实体按键的触控操作时,确定接收到界面显示指令并显示当前界面;可以在检测到作用于电子设备的目标虚拟按键的触控操作时,确定接收到界面显示指令并显示当前界面;可以在检测到作用于电子设备的目标晃动操作(如抬起操作)时,确定接收到界面显示指令并显示当前界面;可以在检测到作用于电子设备的显示屏的目标滑动操作时,确定接收到界面显示指令并显示当前界面;可以在检测到电子设备所处的环境满足预设环境条件(如当前时间达到预设时间、当前地点位于预设地点、当前温度达到预设温度等)时,确定接收到界面显示指令并显示当前界面等;以及其他此处未能一一穷举的界面显示指令,在此不做限定。
在一些实施方式中,电子设备所显示的当前界面可以包括***桌面、负一屏界面、锁屏界面、聊天界面、视频播放界面、浏览器界面、相册界面等,在此不做限定。
步骤S120:响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
在本实施例中,界面元素可以为可在界面中显示的元素,例如,界面元素可以为可在界面中显示的图像、可以为可在界面中显示的图像中部分元素、可在界面中显示的文本、可在界面中显示的字符、可在界面中显示的视频、可在界面中显示的数字等,在此不做限定。可选的,当界面元素为可在界面中显示的图像中的部分元素时,则该界面元素可以包括飞机图像、车辆图像、动物图像、景点图像等,在此不做限定。当界面元素为可在界面中显示的视频中的部分元素时,则若该视频为包含飞机飞行的视频时,则界面元素为视频中的飞机,若该视频为包含车辆行驶的视频时,则界面元素为视频中的车辆,若该视频为包含动物奔跑的视频时,则界面元素为视频中的动物等,在此不做限定。
在本实施例中,在显示当前界面的过程中,可以监测是否触发目标界面元素的移动事件。其中,若监测到触发目标界面元素的移动事件,则可以以该开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,使目标界面元素在当前界面中移动显示。其中,若未监测到触发目标界面元素的移动事件,则可以保持监测是否触发目标界面元素的移动事件。
在一些实施方式中,使目标界面元素在当前界面中移动显示可以包括:使目标界面元素从开孔对应的显示屏上的区域中移出(如靠近开孔区域出现)后在当前界面中始终移动显示;使目标界面元素在当前界面中移动直到移动至开孔对应的显示屏上的区域中(如靠近开孔区域消失);使目标界面元素从开孔对应的显示屏上的区域中移出后移动到当前界面的目标显示位置静态显示,其中,该目标显示位置可以为当前界面中的任意位置;或者,使目标界面元素从当前界面的目标显示位置移动至开孔对应的显示屏上的区域中。
作为一种方式,以开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,使目标界面元素在当前界面中移动显示可以包括:以开孔对应的显示屏上的区域作为目标界面元素的移动出口,使目标界面元素在当前界面中移动显示。可选的,以开孔对应的显示屏上的区域作为目标界面元素的移动出口,使目标界面元素从开孔对应的显示屏上的区域中移出,并在移出后以第一预设移动轨迹移动到当前界面的目标显示位置进行显示。例如,假设目标界面元素为“飞机图像”,则可以以开孔对应的显示屏上的区域作为“飞机图像”的移动出口,使“飞机图像”从开孔对应的显示屏上的区域中移出,并在移出后以第一预设移动轨迹移动到当前界面的目标显示位置进行显示。
作为又一种方式,以开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,使目标界面元素在当前界面中移动显示可以包括:以开孔对应的显示屏上的区域作为目标界面元素的移动入口,使目标界面元素在当前界面中移动显示。可选的,以开孔对应的显示屏上的区域作为目标界面元素的移动入口,使目标界面元素从当前界面的目标显示位置以第二预设移动轨迹向开孔对应的显示屏上的区域移动,并在移动到开孔对应的显示屏上的区域时消失。例如,假设目标界面元素为“飞机图像”,则可以以开孔对应的显示屏上的区域作为“飞机图像”的移动入口,使“飞机图像”从当前界面的目标显示位置以第二预设移动轨迹向开孔对应的显示屏上的区域移动,并在移动到开孔对应的显示屏上的区域位置时消失。
作为再一种方式,以所述开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,使目标界面元素在当前界面中移动显示可以包括:以开孔对应的显示屏上的区域作为目标界面元素 的移动入口以及移动出口,使目标界面元素在当前界面中移动显示。可选的,以开孔对应的显示屏上的区域作为目标界面元素的移动出口和移动入口,使目标界面元素从开孔对应的显示屏上的区域中移出,并在移出后以第一预设移动轨迹移动到当前界面的目标显示位置,然后,使目标界面元素从当前界面的目标显示位置以第二预设移动轨迹向开孔对应的显示屏上的区域移动,并在移动到开孔对应的显示屏上的区域时消失。例如,假设目标界面元素为“飞机图像”,则可以以开孔对应的显示屏上的区域作为“飞机图像”的移动出口和移动入口,使“飞机图像”从开孔对应的显示屏上的区域中移出,并在移出后以第一预设移动轨迹移动到当前界面的目标显示位置,然后,控制“飞机图像”从当前界面的目标显示位置以第二预设移动轨迹向开孔对应的显示屏上的区域移动,并在移动到开孔对应的显示屏上的区域时消失。
请参阅图7,图7示出了本申请实施例提供的目标界面元素的第一种移动显示示意图。如图7所示,该电子设备的开孔A1位于显示屏的顶部中间区域,目标界面元素B可以从开孔A1对应的显示屏上的区域移出,并在当前界面中移动至目标显示位置C处静态显示,或者,目标界面元素可以从目标显示位置C除移动至开孔A1对应的显示屏上的区域中。
请参阅图8,图8示出了本申请实施例提供的目标界面元素的第二种移动显示示意图。如图8所示,该电子设备的开孔A2位于显示屏的顶部左边区域,目标界面元素B可以从开孔A2对应的显示屏上的区域移出,并在当前界面中移动至目标显示位置C处静态显示,或者,目标界面元素可以从目标显示位置C除移动至开孔A2对应的显示屏上的区域中。
请参阅图9,图9示出了本申请实施例提供的目标界面元素的第二种移动显示示意图。如图9所示,该电子设备的开孔A3位于显示屏的顶部右边区域,目标界面元素B可以从开孔A3对应的显示屏上的区域移出,并在当前界面中移动至目标显示位置C处静态显示,或者,目标界面元素可以从目标显示位置C除移动至开孔A3对应的显示屏上的区域中。
请参阅图10,图10示出了本申请实施例提供的目标界面元素在当前界面显示的示意图。如图10所示,当前界面中可以显示有航班卡片D(该航班卡片可以显示在目标显示位置)上,航班卡片上显示有飞机(目标界面元素B)。
在一些实施方式中,在显示当前界面的过程中,可以监测是否触发目标界面元素的移动事件。其中,若监测到触发目标界面元素的移动事件,则可以响应于目标界面元素的移动事件,在开孔的预设周边区域显示预设动画。其中,该预设动画可以包括粒子、光晕等,在此不做限定。可选的,在目标界面元素以开孔对应的显示屏上的区域作为移出出口时和以开孔对应的显示屏上的区域作为移入入口时,在开孔的预设周边区域显示的预设动画可以相同,也可以不相同,在此不做限定。
本申请一实施例提供的显示方法,显示当前界面,响应于目标界面元素的移动事件,以电子设备的显示屏的开孔对应的显示屏上的区域作为目标界面元素的移动出口或者移动入口,使目标界面元素在当前界面中移动显示,从而通过显示屏中的开孔配合界面元素的移出和移入,可以给显示屏中的开孔赋予新的用途,提升用户的使用体验。
请参阅图11,图11示出了本申请一实施例提供的显示方法的流程示意图。该方法应用于上述电子设备,该电子设备包括显示屏,该显示屏具有开孔。下面将针对图11所示的流程进行详细的阐述,所述显示方法具体可以包括以下步骤:
步骤S210:显示当前界面。
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。
步骤S220:响应于所述目标界面元素的移动事件。
步骤S230:以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,基于所述目标界面元素的元素类型控制所述目标界面元素在所述当前界面中移动显示,所述元素类型包括静态类型或者动态类型。
在本实施例中,在显示当前界面的过程中,可以监测是否触发目标界面元素的移动事件,其中,若监测到触发目标界面元素的移动事件,则可以获取该目标界面元素的元素类型。可选的,该目标界面元素的元素类型可以包括静态类型或者动态类型。
作为一种方式,若目标界面元素的元素类型为静态类型,则该目标界面元素可以包括图像、文本、字符等,且该目标界面元素的格式可以为2D格式、3D格式等,在此不做限定。可选的,若该目标界面元素的格式为2D格式,则该目标界面元素的格式可以为JPG格式、可以为FNG格式等,若该目标界面元素的格式为3D格式,则该目标界面元素的格式可以为OBJ格式、可以为GLTF格式等,在此不做限定。
作为又一种方式,若目标界面元素的元素类型为动态类型,则该目标界面元素可以包括在视频中,且该目标界面元素的格式可以为MP4格式、WMV格式、RMVB格式、MOV格式等,在此不做限定。
在一些实施方式中,在确定目标界面元素的情况下,则可以获取该目标界面元素的格式,以及基于该 目标界面元素的格式,获取该目标界面元素的元素类型。可选的,若确定该目标界面元素的格式为JPG格式,则可以确定该目标界面元素的元素类型为静态类型;若确定该目标界面元素的格式为MP4格式,则可以确定该目标界面元素的元素类型为动态类型。
在一些实施方式中,在确定目标界面元素的情况下,则可以获取该目标界面元素的标识,以及基于该目标界面元素的标识,获取该目标界面元素的元素类型。可选的,电子设备可以预先设置有第一标识、第二标识以及界面元素与第一标识和第二标识之间的关系,其中,该第一标识用于表征静态类型,该第二标识用于表征动态类型,基于此,在确定目标界面元素的情况下,可以检测该目标界面元素所对应的标识,若确定该目标界面元素对应的标识为第一标识,则可以确定该目标界面元素的元素类型为静态类型;若确定该目标界面元素对应的标识为第二标识,则可以确定该目标界面元素的元素类型为动态类型。
在本实施例中,在获得目标界面元素的元素类型的情况下,则可以以该开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,基于该元素类型控制该目标界面元素在该当前界面中移动显示。
在一些实施方式中,电子设备可以预先设置有第一移动显示方式和第二移动显示方式,且第一移动显示方式与第二移动显示方式不同,其中,静态类型与第一移动显示方式建立有对应关系,动态类型与第二移动显示方式建立有对应关系。基于此,在获得目标界面元素的元素类型的情况下,若确定该目标界面元素的元素类型为静态类型,则可以以该开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,基于该第一移动显示方式控制该目标界面元素在该当前界面中移动显示;若确定该目标界面元素的元素类型为动态类型,则可以以该开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,基于该第二移动显示方式控制该目标界面元素在该当前界面中移动显示。
请参阅图12,图12示出了本申请的图11所示的显示方法的步骤S230的流程示意图。下面将针对图12所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:
步骤S231:若所述目标界面元素的元素类型为所述静态类型,则使所述目标界面元素以预设目标移动轨迹和所述预设目标动效在所述当前界面中移动显示。
在一些实施方式中,若确定该元素类型为静态类型,则可以在目标界面元素中加载预设目标移动轨迹和预设目标动效,以使得该目标界面元素以该预设目标移动轨迹和预设目标动效在该当前界面中移动显示。
作为一种可实施的方式,电子设备可以预先设置并存储有预设目标移动轨迹和预设目标动效,其中,该预设目标移动轨迹和预设目标动效可以用于作为静态类型的界面元素在当前界面的移动辅助。因此,在确定目标界面元素的元素类型为静态类型的情况下,则可以将预先设置的预设目标移动轨迹和预设目标动效加载在目标界面元素中,从而可以使得目标界面元素以该预设目标移动轨迹和预设目标动效在当前界面移动显示。
可以理解的,由于电子设备可以预先设置并存储有预设目标移动轨迹和预设目标动效,因此,界面元素的提供者/开发者可以只提供或设计界面元素,即,该预设目标移动轨迹和预设目标动效可以直接供界面元素的提供者/开发者使用,可以提升界面素材的制作效率以及降低界面素材的制作成本。
在一些实施方式中,预设目标移动轨迹可以包括目标曲线轨迹、目标折线轨迹、目标直线轨迹、目标S线轨迹等,在此不做限定。
在一些实施方式中,预设目标动效可以包括预设缩放比例,在目标界面元素中加载预设目标移动轨迹和预设目标动效,以使目标界面元素以预设目标移动轨迹和预设目标动效在当前界面中移动显示可以包括:使目标界面元素在当前界面中以预设目标移动轨迹和预设缩放比例移动显示。可选的,预设缩放比例可以包括预设放大比例或者预设缩小比例,且该预设缩放比例可以保持固定,或者,也可以动态改变等,在此不做限定。其中,基于该预设缩放比例的加载,该目标界面元素在当前界面移动显示时,在不同的位置可以对应不同的显示大小,或者,在不同的位置也可以对应相同的显示大小,在此不做限定。
作为一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动出口移出,则可以使该目标界面元素在当前界面以该预设目标移动轨迹和预设放大比例逐渐放大的形式移动显示。也就是说,目标界面元素在从开孔对应的显示屏上的区域移出并以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的显示大小逐渐增大,即,该目标界面元素的显示大小在从开孔对应的显示屏上的区域中移出时最小,在移动到目标显示位置(终点位置)时最大。
作为又一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动出口移出,则可以使该目标界面元素在当前界面的预设目标移动轨迹上以预设放大比例逐渐放大到第一预设大小后,保持以该第一预设大小在预设目标移动轨迹上移动显示。也就是说,目标界面元素在从开孔对应的显示屏上的区域移出并以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的显示大小会逐渐增大至第一预设大小,之后,便保持该第一预设大小继续在该预设目标移动轨迹上移动显示直到移动到目标显示位置(终点位置)。
作为再一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动入口移入,则可以使目标界面元素在当前界面中以预设目标移动轨迹和预设缩小比例逐渐缩小的形式移动显示。也就是说,目标界 面元素在以目标移动轨迹从目标显示位置(起点)移动到开孔对应的显示屏上的区域中的过程中,该目标界面元素对应的显示大小逐渐减小,即,该目标界面元素的显示大小在目标显示位置时最大,在移动到开孔对应的显示屏上的区域内时最小。
作为另一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动入口移入,则可以使该目标界面元素在当前界面的预设目标移动轨迹上以预设缩小比例逐渐缩小到第二预设大小后,保持以该第二预设大小在预设目标移动轨迹上移动显示。也就是说,目标界面元素在从目标显示位置(起点位置)以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的显示大小会逐渐减小至第二预设大小,之后,便保持该第二预设大小继续在该目标移动轨迹上移动显示直到移动到开孔对应的显示屏上的区域中。
在一些实施方式中,目标动效可以包括预设透明度,在目标界面元素中加载预设目标移动轨迹和目标动效,以使目标界面元素以预设目标移动轨迹和预设目标动效在当前界面中移动显示可以包括:使目标界面元素在当前界面中以预设目标移动轨迹和预设透明度移动显示。可以理解的是,通过设置目标界面元素以预设透明度在当前界面移动显示,可以使得目标界面元素在移动的过程中,降低处于其下层的其他界面信息的遮挡,提升界面的显示效果。可选的,在目标界面元素移动显示的过程中,该预设透明度可以保持固定,或者,也可以动态改变等,在此不做限定。其中,基于该预设透明度的加载,该目标界面元素在当前界面移动显示时,在不同的位置可以对应不同的显示透明度,或者,在不同的位置也可以对应相同的透明度,在此不做限定。
作为一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动出口移出,则可以使该目标界面元素在当前界面以该预设目标移动轨迹和预设透明度移动显示。也就是说,目标界面元素在从开孔对应的显示屏上的区域移出并以目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的透明度可以保持不变,即,该目标界面元素的透明度从开孔对应的显示屏上的区域中移出至移动到目标显示位置(终点位置)时均保持不变。
作为又一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动出口移出,则可以控制该目标界面元素在当前界面以预设目标移动轨迹和预设透明度逐渐减小的形式移动显示。也就是说,目标界面元素在从开孔对应的显示屏上的区域移出并以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的透明度逐渐减小,即,该目标界面元素的透明度在开孔对应的显示屏上的区域中移出时最大,在移动到目标显示位置(终点位置)时最小。
作为再一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动入口移入,则可以控制该目标界面元素在当前界面以该预设目标移动轨迹和预设透明度移动显示。也就是说,目标界面元素在从目标显示位置(起点位置)以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的透明度可以保持不变,即,该目标界面元素的透明度从目标显示位置(起点位置)移动到开孔对应的显示屏上的区域中的过程中均保持不变。
作为另一种方式,若目标界面元素以该开孔对应的显示屏上的区域作为移动入口移入,则可以控制该目标界面元素在当前界面以预设目标移动轨迹和预设透明度逐渐增大的形式移动显示。也就是说,目标界面元素在从目标显示位置(起点位置)开始移动并以预设目标移动轨迹在当前界面移动显示的过程中,该目标界面元素对应的透明度逐渐增大,即,该目标界面元素的透明度子目标显示位置时最大,在移动到开孔对应的显示屏上的区域中时最小。
步骤S232:若所述元素类型为所述动态类型,则播放包含所述目标界面元素的视频,以使所述目标界面元素在所述当前界面中移动显示。
在一些实施方式中,若确定该元素类型为动态类型,则可以直接在当前界面播放包含该目标界面元素的视频,以使得该目标界面元素在该当前界面中移动显示。可以理解的是,在目标界面元素的元素类型为动态类型时,表征该目标界面元素的提供者/开发者在设计该目标界面元素时,已经设计确定该目标界面元素对应的动效和移动轨迹,因此,电子设备可以通过直接播放包含该目标界面元素的视频的方式,便可以实现目标界面元素在当前界面中移动显示。
作为一种可实施的方式,目标界面元素的元素类型为动态类型且该目标界面元素的数量为一个(即提供者/开发者仅提供一个目标界面元素)时,若目标界面元素以开孔对应的显示屏上的区域作为移动出口移出,则可以以正序的方式播放包含该目标界面元素的视频;若目标界面元素以开孔作对应的显示屏上的区域为移动入口移入,则以倒序的方式播放包含该目标界面元素的视频。
作为又一种可实施的方式,目标界面元素的元素类型为动态类型且该目标界面元素的数量为两个,即包含第一目标界面元素的视频和包含第二目标界面元素的视频,其中,包含第二目标界面元素的视频为包含第一目标界面元素的视频的倒序(即提供者/开发者提供第一目标界面元素和第二目标界面元素)时,若目标界面元素以开孔对应的显示屏上的区域作为移动出口移出,则可以播放包含第一目标界面元素的视频,若目标界面元素以开孔对应的显示屏上的区域作为移动入口移入,则可以播放包含第二目标界面元素的视 频。
本申请一实施例提供的显示方法,显示当前界面,响应于目标界面元素的移动事件,以开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,基于该目标界面元素的元素类型控制目标界面元素在当前界面中移动显示,其中,该元素类型可以包括静态类型或者动态类型。相较于图6所示的显示方法,本实施例还根据目标界面元素的元素类型控制目标界面元素在当前界面中移动显示,从而可以实现不同元素类型的适配,提升适配的多样性。
请参阅图13,图13示出了本申请一实施例提供的显示方法的流程示意图。该方法应用于上述电子设备,该电子设备包括显示屏,该显示屏具有开孔。下面将针对图13所示的流程进行详细的阐述,所述显示方法具体可以包括以下步骤:
步骤S310:显示当前界面。
其中,步骤S310的具体描述请参阅步骤S110,在此不再赘述。
步骤S320:若所述目标界面元素对应的目标通知消息在所述当前界面中出现,则确定触发所述目标界面元素的示出事件。
其中,通知消息(如卡片)是指应用程序中的内容载体,如天气通知消息、航班通知消息等。于本实施例中,目标界面元素在当前界面中的载体为目标通知消息,例如,若该目标界面元素为飞机,则该目标通知消息可以为航班通知消息;该目标界面元素为太阳,则该目标通知消息可以为天气通知消息等,在此不做限定。
在本实施例中,在显示当前界面的过程中,可以检测该目标界面元素对应的目标通知消息是否在当前界面中出现,其中,若检测到目标界面元素对应的目标通知消息在当前界面中出现,则可以确定触发目标界面元素的示出事件,若未检测到目标界面元素对应的目标通知消息在当前界面中出现,则可以确定未触发目标界面元素的示出事件。
步骤S330:响应于所述目标界面元素的示出事件,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中。
在本实施例中,在确定触发目标界面元素的示出事件的情况下,则可以响应于该目标界面元素的示出事件,使该目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中。可选的,使目标界面元素从开孔对应的显示屏上的区域中移出,并使目标界面元素以目标移动轨迹移动至当前界面的目标显示位置静态显示。
例如,若电子设备在显示当前界面的过程中,接收到航班信息提醒,则可以在当前界面出现航班通知消息,即确定触发飞机的示出事件,则可以使飞机从孔对应的显示屏上的区域中飞出至航班通知消息中。
请参阅图14和图15,图14示出了本申请实施例提供的电子设备的第一种界面示意图,图15示出了本申请实施例提供的电子设备的第二种界面示意图。如图14所示,电子设备的当前界面可以刚出现航班通知消息D(目标通知消息)时,该航班通知消息D上还未显示有飞机B(目标界面元素),此时,可以控制飞机B从开孔对应的显示屏上的区域中移出,并最终移动至航班通知消息D中显示,如图15所示。
在一些实施方式中,可以基于当前界面对应的应用类型,使目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中,其中,该应用类型包括***应用或者非***应用。
可以理解的,电子设备所显示的界面一般都是由具体的应用程序来生成的,而在不同的场景中,生成界面的应用程序不同。例如,桌面、负一屏的界面、锁屏界面由***应用生成,而文本类的界面通常由文本类应用(非***应用)生成,视频类的界面通常由视频类的应用(非***应用)生成。
在一些实施方式中,可以获取当前界面对应的应用类型。即,可以获取当前界面对应的应用类型为***应用还是为非***应用。例如,若当前界面为桌面,则可以确定当前界面对应的应用类型为***应用;若当前界面为文本类的界面,则可以确定当前界面对应的应用类型为非***应用。
在一些实施方式中,电子设备可以预先设置有第三移动显示方式和第四移动显示方法,且第三移动显示方式和第四移动显示方式不同,其中,***应用与第三移动显示方式建立有对应关系,非***应用与第四移动显示方式建立有对应关系。基于此,在获得当前界面对应的应用类型的情况下,若确定该当前界面的应用类型为***应用,则可以基于第三移动显示方式控制目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中;若确定该当前界面的应用类型为非***应用,则可以基于第四移动显示方式控制目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中。
在一些实施方式中,若确定该应用类型为***应用,表征该当前界面中一般有与该目标界面元素适配的目标通知消息,则可以使目标界面元素从该开孔对应的显示屏上的区域中移出至当前界面中的目标通知消息中。例如,若该当前界面为桌面、负一屏界面或者锁屏界面时,则可以使该目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中的目标通知消息中。
作为一种可实施的方式,若确定该应用类型为***应用,则可以使目标界面元素从开孔对应的显示屏上的区域中移出,并以目标移动轨迹移动至当前界面中的目标通知消息中。
在一些实施方式中,若确定该应用类型为非***应用,表征该当前界面中一般没有与该目标界面元素适配的目标通知消息(即,确定该当前界面中没有目标通知消息,或者,其存在的目标通知消息与目标界面元素不适配),则可以在当前界面创建与该目标界面元素适配的顶层窗口,并使目标界面元素从该开孔对应的显示屏上的区域中移出至顶层窗口中。例如,若该当前界面为视频类界面、聊天类界面时,则可以在当前界面创建顶层窗口,并使该目标界面元素从开孔对应的显示屏上的区域中移出至顶层窗口中。
作为一种可实施的方式,若确定该应用类型为非***应用,则可以在当前界面创建顶层窗口,并使该目标界面元素从开孔对应的显示屏上的区域中移出,以目标移动轨迹移动至顶层窗口中。
步骤S340:若所述目标界面元素对应的目标通知消息在所述当前界面中消失,则确定触发所述目标界面元素的隐入事件。
在本实施例中,在显示当前界面并在当前界面显示目标界面元素对应的目标通知消息的过程中,可以检测该目标界面元素对应的目标通知消息是否在当前界面中消失,其中,若检测到目标界面元素对应的目标通知消息在当前界面中消失,则可以确定触发目标界面元素的隐入事件,若未检测到目标界面元素对应的目标通知消息在当前界面中消失,则可以确定未触发目标界面元素的隐入事件。
在一些实施方式中,若电子设备在显示当前界面并在当前界面显示目标界面元素对应的目标通知消息的过程中,检测到针对该目标通知消息的删除操作或者打开操作等时,则可以确定触发目标界面元素的隐入事件
步骤S350:响应于所述目标界面元素的隐入事件,控制所述目标界面元素从所述当前界面中移入所述开孔对应的显示屏上的区域中。
在本实施例中,在确定触发目标界面元素的隐入事件的情况下,则可以响应于该目标界面元素的隐入事件,控制该目标界面元素从当前界面中移入开孔对应的显示屏上的区域中。可选的,控制目标界面元素从当前界面中的目标显示位置以目标移动轨迹移动至开孔对应的显示屏上的区域中。
例如,当前界面显示有航班通知消息,且航班卡片上显示有飞机,若检测到针对该航班通知消息的删除操作或者打开操作,则可以确定触发飞机的隐入事件,则可以控制飞机从航班通知消息飞回开孔对应的显示屏上的区域中。
本申请一实施例提供的显示方法,显示当前界面,目标界面元素对应的目标通知消息在当前界面中出现,则确定触发目标界面元素的示出事件,响应于目标界面元素的示出事件,使目标界面元素从开孔对应的显示屏上的区域中移出至当前界面中,若目标界面元素对应的目标通知消息在当前界面中消失,则确定触发目标界面元素的隐入事件,响应于目标界面元素的隐入事件,使目标界面元素从当前界面中移入开孔对应的显示屏上的区域中。相较于图6所示的显示方法,本实施例还控制目标界面元素移出开孔对应的显示屏上的区域或者控制目标界面元素移入开孔对应的显示屏上的区域中,可以提升用户的视觉体验。
请参阅图16,图16示出了本申请一实施例提供的显示方法的流程示意图。该方法应用于上述电子设备,该电子设备包括显示屏,该显示屏具有开孔。下面将针对图16所示的流程进行详细的阐述,所述显示方法具体可以包括以下步骤:
步骤S410:显示当前界面。
其中,步骤S410的具体描述请参阅步骤S110,在此不再赘述。
步骤S420:响应于所述目标界面元素的移动事件,获取所述开孔的位置。
在本实施例中,在显示当前界面的过程中,可以监测是否触发目标界面元素的移动事件。其中,若监测到触发目标界面元素的移动事件,则可以获取开孔的位置。
在一些实施方式中,开孔在电子设备的位置可以固定不变,因此,可以预先获取并存储开孔的位置,那么,在监测到触发目标界面元素的移动事件时,则可以直接从电子设备的本地获取该开孔的位置。或者,开孔在电子设备的位置可以动态变化,因此,可以在监测到触发目标界面元素的移动事件时,对开孔的位置进行检测,以获得该开孔的位置。
在一些实施方式中,可以以电子设备建立目标坐标系,例如,以电子设备的中心为坐标原点,以电子设备相互垂直的两边分别作为横轴和纵轴建立目标坐标系,或者,以电子设备的角点为坐标原点,以电子互相垂直的两边分别作为横轴和纵轴建立目标坐标系。基于此,可以获取开孔在该目标坐标系下的坐标信息,基于该坐标信息,可以确定该开孔的位置。
在一些实施方式中,获取开孔的位置可以包括:获取开孔对应的显示屏上的位置作为开孔的位置。即,可以获取开孔对应的显示屏上的位置在目标坐标系中下的坐标信息,基于该坐标信息确定开孔对应的显示屏上的位置作为开孔的位置。
步骤S430:基于所述开孔的位置以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
在本实施例中,在获得该开孔的位置的情况下,则可以基于该开孔的位置,以该开孔对应的显 示屏上的区域作为目标界面元素的移动出口或者移动入口,使目标界面元素在当前界面中移动显示。
在一些实施方式中,电子设备还可以获取目标界面元素在当前界面的目标显示位置(如目标通知消息所在的位置),则在获得该开孔的位置和该目标显示位置的情况下,可以基于该开孔的位置和目标显示位置,以该开孔作为目标界面元素的移动出口或者移动入口,使目标界面元素在开孔的位置和目标显示位置之间移动显示。
本申请一实施例提供的显示方法,显示当前界面,响应于目标界面元素的移动事件,获取开孔的位置,基于开孔的位置以开孔对应的显示屏上的区域作为目标界面元素的移动出口或移动入口,使目标界面元素在当前界面中移动显示。相较于图6所示的显示方法,本实施例还获取开孔的位置,并基于开孔的位置进行目标界面元素的移动显示,可以提升界面元素的移动显示的准确性。
请参阅图17,图17示出了本申请实施例提供的显示方法的逻辑示意图。如图17所示,在一些实施方式中,电子设备的技术架构可以分为卡片应用(card app)、***应用(system app)以及***框架三个部分(android framework)。其中,卡片应用包括界面渲染模块和逻辑执行模块,该界面渲染模块用于负责卡片代码中前台界面的渲染,该逻辑执行模块用于负责卡片代码中后台逻辑的执行。其中,***应用可以包括负一屏应用、桌面应用以及锁屏应用。其中,***框架可以包括窗口管理模块、硬件驱动模块以及预设动效库,该窗口管理模块用于管理***的可见窗口,该硬件驱动模块用于管理***的硬件驱动,提供软件接口获取信息及操作硬件,该预设动效库用于存储预置在***中丰富的动效。
基于此,可以在卡片出现或消失时,通过界面渲染模块判断当前卡片所处环境,其存在两种判断结果,即卡片在***应用上,或者,卡片在普通应用(非***应用)上。当卡片在***应用上时,界面渲染模块通知***应用进行处理。当卡片在普通应用上时,界面渲染模块通知窗口管理模块处理。***应用在接收到通知后,获取开孔的位置,如果接入的是静态素材,则在***应用内加载对应的动效,如果接入的是动态(视频)素材,则在***应用内播放视频。窗口管理模块在接收到通知后,获取开孔的位置,并创建一个顶层窗口,如果接入的是静态素材,则在新的顶层窗口上加载对应的动效,如果接入的是动态(视频)素材,则在新的顶层窗口上播放视频。
请参阅图18,图18示出了本申请一实施例提供的显示装置的模块框图。该显示装置200应用于上述电子设备,该电子设备包括显示屏,该显示屏具有开孔。下面将针对图18所示的框图进行阐述,所述显示装置200包括:当前界面显示模块210和界面元素移动模块220,其中:
当前界面显示模块210,用于显示当前界面。
界面元素移动模块220,用于响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
进一步地,所述界面元素移动模块220包括:移动事件响应子模块和第一界面元素移动子模块,其中:
移动事件响应子模块,用于响应于所述目标界面元素的移动事件。
第一界面元素移动子模块,用于以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,基于所述目标界面元素的元素类型控制所述目标界面元素在所述当前界面中移动显示,所述元素类型包括静态类型或者动态类型。
进一步地,所述第一界面元素移动子模块包括:目标动效加载单元和目标界面元素播放单元,其中:
目标动效加载单元,用于若所述目标界面元素的元素类型为所述静态类型,则使所述目标界面元素以预设目标移动轨迹和预设目标动效在所述当前界面中移动显示。
进一步地,所述目标动效加载单元包括:第一控制子单元、第二控制子单元以及第三控制子单元,其中:
第一控制子单元,用于使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设缩放比例移动显示。
进一步地,所述第一控制子单元包括:放大子子单元和缩小子子单元,其中:
放大子子单元,用于若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动出口移出,则使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设放大比例逐渐放大的形式移动显示。
缩小子子单元,用于若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动入口移入,则使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设缩小比例逐渐缩小的形式移动显示。
第二控制子单元,用于使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设透明度移动显示。
目标界面元素播放单元,用于若所述元素类型为所述动态类型,则播放包含所述目标界面元素的视频,以使所述目标界面元素在所述当前界面中移动显示。
进一步地,所述目标界面元素播放单元包括:正序播放子单元和倒序播放子单元,其中:
正序播放子单元,用于若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动出口移出,则以正序的方式播放包含所述目标界面元素的视频。
倒序播放子单元,用于若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动入口移入,则以倒序的方式播放包含所述目标界面元素的视频。
进一步地,所述界面元素移动模块220包括:界面元素移出子模块和界面元素移入子模块,其中:
界面元素移出子模块,用于响应于所述目标界面元素的示出事件,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中。
进一步地,所述界面元素移出子模块包括:界面元素移出单元,其中:
界面元素移出单元,用于基于所述当前界面对应的应用类型,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中,所述应用类型包括***类型或者非***应用。
进一步地,所述目标界面元素在当前界面中对应有目标通知消息,所述界面元素移出单元包括:第一界面元素移出子单元和第二界面元素移出子单元,其中:
第一界面元素移出子单元,用于若所述当前界面对应的应用类型为所述***应用,则使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中的所述目标通知消息中。
第二界面元素移出子单元,用于若所述应用类型为所述非***应用,则在所述当前界面创建顶层窗口,并使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述顶层窗口中。
界面元素移入子模块,用于响应于所述目标界面元素的隐入事件,使所述目标界面元素从所述当前界面中移入所述开孔对应的显示屏上的区域中。
进一步地,所述界面元素移动模块220包括:示出事件触发子模块和隐入事件触发子模块,其中:
显示事件触发子模块,用于若所述目标界面元素对应的目标通知消息在所述当前界面中出现,则确定触发所述目标界面元素的示出事件。
隐藏事件触发子模块,用于若所述目标界面元素对应的目标通知消息在所述当前界面中消失,则确定触发所述目标界面元素的引入事件。
进一步地,所述界面元素移动模块220包括:位置获取子模块和第二界面元素移动子模块,其中:
位置获取子模块,用于响应于所述目标界面元素的移动事件,获取所述开孔的位置。
第二界面元素移动子模块,基于所述开孔的位置以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
进一步地,所述显示装置200还包括:预设动画显示模块,其中:
预设动画显示模块,用于响应于目标界面元素的移动事件,在所述开孔的预设周边区域显示预设动画。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参阅图19,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、显示屏130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于实现功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
显示屏130用于显示由用户输入的信息、提供给用户的信息以及所述电子设备100的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,该显示屏130可以为液晶显示器(Liquid Crystal Display,LCD),也可以为有机发光二极管(Organic Light-Emitting Diode,OLED),在此不做限定。
请参阅图20,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。
综上所述,本申请实施例提供的显示方法、装置、电子设备以及存储介质,显示当前界面,响应于目标界面元素的移动事件,以电子设备的显示屏的开孔作为目标界面元素的移动出口或者移动入口,控制目标界面元素在当前界面中移动显示,从而通过显示屏中的开孔配合界面元素的移出和移入,可以给显示屏中的开孔赋予新的用途,提升用户的使用体验。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种显示方法,其特征在于,应用于电子设备,所述电子设备包括显示屏,所述显示屏具有开孔,所述方法包括:
    显示当前界面;
    响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
  2. 根据权利要求1所述的方法,其特征在于,所述响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示,包括:
    响应于所述目标界面元素的移动事件;
    以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,基于所述目标界面元素的元素类型控制所述目标界面元素在所述当前界面中移动显示;
    所述元素类型包括静态类型或者动态类型。
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述目标界面元素的元素类型控制所述目标界面元素在所述当前界面中移动显示,包括:
    若所述目标界面元素的元素类型为所述静态类型,则使所述目标界面元素以预设目标移动轨迹和预设目标动效在所述当前界面中移动显示;或者
    若所述元素类型为所述动态类型,则播放包含所述目标界面元素的视频,以使所述目标界面元素在所述当前界面中移动显示。
  4. 根据权利要求3所述的方法,其特征在于,所述使所述目标界面元素以预设目标移动轨迹和预设目标动效在所述当前界面中移动显示,包括:
    使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设缩放比例移动显示;和/或
    使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设透明度移动显示。
  5. 根据权利要求4所述的方法,其特征在于,所述使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设缩放比例移动显示,包括:
    若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动出口移出,则使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设放大比例逐渐放大的形式移动显示;或者
    若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动入口移入,则使所述目标界面元素在所述当前界面中以所述预设目标移动轨迹和预设缩小比例逐渐缩小的形式移动显示。
  6. 根据权利要求3所述的方法,其特征在于,所述播放包含所述目标界面元素的视频,包括:
    若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动出口移出,则以正序的方式播放包含所述目标界面元素的视频;或者
    若所述目标界面元素以所述开孔对应的显示屏上的区域作为移动入口移入,则以倒序的方式播放包含所述目标界面元素的视频。
  7. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    获取所述目标界面元素的标识;
    基于所述目标界面元素的标识,获取所述目标界面元素的元素类型。
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于目标界面元素的移动事件,在所述开孔的预设周边区域显示预设动画。
  9. 根据权利要求1所述的方法,其特征在于,所述响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示,包括:
    响应于所述目标界面元素的示出事件,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中;或者
    响应于所述目标界面元素的隐入事件,使所述目标界面元素从所述当前界面中移入所述开孔对应的显示屏上的区域中。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    若所述目标界面元素对应的目标通知信息在所述当前界面中出现,则确定触发所述目标界面元素的示出事件;或者
    若所述目标界面元素对应的目标通知信息在所述当前界面中消失,则确定触发所述目标界面元素的隐入事件。
  11. 根据权利要求9所述的方法,其特征在于,所述使所述目标界面元素从所述开孔对应的显示屏上 的区域中移出至所述当前界面中,包括:
    基于所述当前界面对应的应用类型,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中;
    所述应用类型包括***应用或者非***应用。
  12. 根据权利要求11所述的方法,其特征在于,所述目标界面元素在所述当前界面中对应有目标通知消息,所述基于所述当前界面对应的应用类型,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中,包括:
    若所述当前界面对应的应用类型为所述***应用,则使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述当前界面中的所述目标通知消息中;
    若所述当前界面对应的应用类型为所述非***应用,则在所述当前界面创建顶层窗口,并使所述目标界面元素从所述开孔对应的显示屏上的区域中移出至所述顶层窗口中。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示,包括:
    响应于所述目标界面元素的移动事件,获取所述开孔的位置;
    基于所述开孔的位置以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
  14. 根据权利要求13所述的方法,其特征在于,所述获取所述开孔的位置,包括:
    获取所述开孔对应的显示屏上的位置,作为所述开孔的位置。
  15. 根据权利要求13所述的方法,其特征在于,所述基于所述开孔的位置以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示,包括:
    获取所述目标界面元素子啊所述当前界面的目标显示位置,其中,所述目标显示位置为所述当前界面中的任意位置;
    基于所述开孔的位置和所述目标显示位置,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述开孔的位置和所述目标显示位置之间移动显示。
  16. 根据权利要求1-12任一项所述的方法,其特征在于,所述电子设备还包括感光器件,所述开孔与所述感光器件位置对应。
  17. 根据权利要求1-12任一项所述的方法,其特征在于,所述响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示,包括:
    响应于所述目标界面元素的移动事件,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出后在所述当前界面中始终移动显示;或者
    响应于所述目标界面元素的移动事件,使所述目标界面元素在所述当前界面中移动直到移动至所述开孔对应的显示屏上的区域中;或者
    响应于所述目标界面元素的移动事件,使所述目标界面元素从所述开孔对应的显示屏上的区域中移出后移动到所述当前界面的目标显示位置静态显示,其中,所述目标显示位置为所述当前界面中的任意位置;或者
    响应于所述目标界面元素的移动事件,使所述目标界面元素从所述当前界面的所述目标显示位置移动至所述开孔对应的显示屏上的区域中。
  18. 一种显示装置,其特征在于,应用于电子设备,所述电子设备包括显示屏,所述显示屏具有开孔,所述装置包括:
    当前界面显示模块,用于显示当前界面;
    界面元素移动模块,用于响应于目标界面元素的移动事件,以所述开孔对应的显示屏上的区域作为所述目标界面元素的移动出口或移动入口,使所述目标界面元素在所述当前界面中移动显示。
  19. 一种电子设备,其特征在于,包括显示屏、存储器和处理器,所述显示屏和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
PCT/CN2023/128588 2022-12-22 2023-10-31 显示方法、装置、电子设备以及存储介质 WO2024131306A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211659031.9 2022-12-22
CN202211659031.9A CN118250359A (zh) 2022-12-22 2022-12-22 显示方法、装置、电子设备以及存储介质

Publications (1)

Publication Number Publication Date
WO2024131306A1 true WO2024131306A1 (zh) 2024-06-27

Family

ID=91559090

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/128588 WO2024131306A1 (zh) 2022-12-22 2023-10-31 显示方法、装置、电子设备以及存储介质

Country Status (2)

Country Link
CN (1) CN118250359A (zh)
WO (1) WO2024131306A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117689A1 (en) * 2011-01-06 2013-05-09 Research In Motion Limited Electronic device and method of displaying information in response to a gesture
CN108024009A (zh) * 2016-10-28 2018-05-11 三星电子株式会社 具有孔区域的电子设备及控制其孔区域的方法
CN108512997A (zh) * 2018-03-02 2018-09-07 广东欧珀移动通信有限公司 显示方法、装置、移动终端以及存储介质
CN108804190A (zh) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 用户界面显示方法、装置、终端及存储介质
CN110892371A (zh) * 2018-03-26 2020-03-17 华为技术有限公司 显示控制方法和终端
CN111596982A (zh) * 2020-04-20 2020-08-28 维沃移动通信有限公司 显示方法、显示装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130117689A1 (en) * 2011-01-06 2013-05-09 Research In Motion Limited Electronic device and method of displaying information in response to a gesture
CN108024009A (zh) * 2016-10-28 2018-05-11 三星电子株式会社 具有孔区域的电子设备及控制其孔区域的方法
CN108512997A (zh) * 2018-03-02 2018-09-07 广东欧珀移动通信有限公司 显示方法、装置、移动终端以及存储介质
CN110892371A (zh) * 2018-03-26 2020-03-17 华为技术有限公司 显示控制方法和终端
CN108804190A (zh) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 用户界面显示方法、装置、终端及存储介质
CN111596982A (zh) * 2020-04-20 2020-08-28 维沃移动通信有限公司 显示方法、显示装置及电子设备

Also Published As

Publication number Publication date
CN118250359A (zh) 2024-06-25

Similar Documents

Publication Publication Date Title
US11868586B2 (en) Floating window user interface display method and apparatus, device, and storage medium
US11706521B2 (en) User interfaces for capturing and managing visual media
US11770601B2 (en) User interfaces for capturing and managing visual media
US11348201B2 (en) Electronic device having rollable display and method of controlling the same
WO2019174469A1 (zh) 消息提醒方法、装置、设备及存储介质
JP7366976B2 (ja) コンピューティング装置の通知のための通知チャネル
WO2019174546A1 (zh) 用户界面显示方法、装置、设备及存储介质
US11320960B2 (en) Icon display method, device, and terminal
WO2020147665A1 (zh) 文件处理方法、装置、终端及存储介质
CN108804190B (zh) 用户界面显示方法、装置、终端及存储介质
WO2019174477A1 (zh) 用户界面显示方法、装置及终端
CN109164964B (zh) 内容分享方法、装置、终端及存储介质
CN109101157B (zh) 侧边栏图标设置方法、装置、终端及存储介质
WO2019174466A1 (zh) 消息提醒方法、装置、设备及存储介质
WO2020038169A1 (zh) 图标显示方法、装置、终端及存储介质
US10747416B2 (en) User terminal device and method for displaying thereof
WO2016082586A1 (zh) 网页更新方法及装置
CN111966252A (zh) 应用窗口显示方法和电子设备
US20190073101A1 (en) Method and device for switching pages of applications in a terminal device
US20230315256A1 (en) Method for displaying application icon and electronic device
CN111597000B (zh) 一种小窗口管理方法及终端
CN108370396B (zh) 电子装置、电子装置的通知显示方法及计算机可读介质
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
WO2024139477A1 (zh) 交互方法、装置、电子设备以及存储介质
WO2024131306A1 (zh) 显示方法、装置、电子设备以及存储介质