WO2023030267A1 - 弹框显示方法、装置、电子设备及可读存储介质 - Google Patents

弹框显示方法、装置、电子设备及可读存储介质 Download PDF

Info

Publication number
WO2023030267A1
WO2023030267A1 PCT/CN2022/115574 CN2022115574W WO2023030267A1 WO 2023030267 A1 WO2023030267 A1 WO 2023030267A1 CN 2022115574 W CN2022115574 W CN 2022115574W WO 2023030267 A1 WO2023030267 A1 WO 2023030267A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
interface
display
target
pop
Prior art date
Application number
PCT/CN2022/115574
Other languages
English (en)
French (fr)
Inventor
曾星星
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023030267A1 publication Critical patent/WO2023030267A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Definitions

  • the present application belongs to the technical field of communication, and in particular relates to a pop-up frame display method, device, electronic equipment and readable storage medium.
  • the electronic device may prompt the user's operation by displaying a prompt pop-up box.
  • the electronic device may first display a prompt pop-up box in the middle area of the screen to prompt the user whether to perform the operation.
  • the electronic device since the electronic device usually only displays the pop-up frame in the central area of the screen, the electronic device may have poor flexibility in displaying the pop-up frame.
  • the purpose of the embodiments of the present application is to provide a pop-up frame display method, device, electronic device and readable storage medium, which can solve the problem of poor flexibility of displaying pop-up frames in electronic devices.
  • the embodiment of the present application provides a pop-up frame display method, the method includes: receiving a first input from the user on the first area of the first interface, the first input is used to trigger the first event; responding to the first Input, the target bullet box is displayed in the second area of the first interface, and the target bullet box includes at least one of the following items: target prompt information and at least one logo, the target prompt information is used to prompt the user whether to continue to execute the first event, each logo It is used to indicate a second event; wherein, the second area and the first area are two adjacent areas.
  • the embodiment of the present application provides a pop-up frame display device, the device includes a receiving module and a display module; the receiving module is used to receive the user's first input to the first area of the first interface, the In order to trigger the first event; the display module is used to display the target bullet box in the second area of the first interface in response to the first input received by the receiving module, and the target bullet box includes at least one of the following: target prompt information and at least one logo, the target prompt information is used to prompt the user whether to continue to execute the first event, and each logo is used to indicate a second event; wherein, the second area and the first area are two adjacent areas.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor When realizing the steps of the method as in the first aspect.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method in the first aspect.
  • the first input from the user to the first area of the first interface is received, and the first input is used to trigger the first event; in response to the first input, a target bullet box is displayed in the second area of the first interface , the target bullet box includes at least one of the following: target prompt information and at least one logo, the target prompt information is used to prompt the user whether to continue to execute the first event, and each logo is used to indicate a second event; wherein, the second area and The first area is two adjacent areas.
  • the electronic device after the electronic device receives the user's first input for triggering the first event in the first area of the first interface, it can display the target in the second area adjacent to the first area in the first interface.
  • Bullet frame that is, the bullet frame can be displayed with the hand, instead of only displaying the target bullet frame in the middle area of the screen like the traditional technology, so the flexibility of displaying the bullet frame on the electronic device can be improved.
  • the target pop-up frame can be displayed in the user's gaze area, so the user's understanding of the content (prompt information and/or at least one identification) in the target pop-up frame can be improved. attention, which can improve the prompting effect of the target bullet box.
  • FIG. 1 is a schematic diagram of a pop-up display method provided in an embodiment of the present application
  • FIG. 2 is one of the interface schematic diagrams of the application of the pop-up display method provided by the embodiment of the present application
  • Fig. 3 is the second schematic diagram of the interface of the application of the pop-up display method provided by the embodiment of the present application;
  • Fig. 4 is the third schematic diagram of the interface of the application of the pop-up display method provided by the embodiment of the present application.
  • FIG. 5 is the fourth schematic diagram of the interface of the application of the pop-up display method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a pop-up display device provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
  • logos in the embodiments of the present application are used to indicate text, symbols, images, etc. of information, and controls or other containers may be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
  • the method for displaying a pop-up frame provided in the embodiment of the present application may be applied to a scenario where an electronic device displays a pop-up frame during a user operation.
  • the electronic device receives the user's input of the deletion control corresponding to the picture (such as this After the first input in the embodiment of the application), you can click on the area adjacent to the area where the delete control is located (such as the first area of the first interface in the embodiment of the application) (such as the first interface in the embodiment of the application)
  • the second area of displaying a pop-up box (for example, the target pop-up box in the embodiment of the present application), which includes the message "whether to continue deleting" (such as the target prompt message in the embodiment of the present application), for confirmation
  • the "confirm” sign for executing the delete operation and the "cancel” sign for confirming the cancellation of the delete operation (such as the second event in the embodiment of the present application) are used to prompt the user whether to continue to perform the delete operation on the picture.
  • the electronic device after the electronic device receives the user's first input for triggering the first event in the first area of the first interface, it can display the target bullet box in the second area adjacent to the first area in the first interface , that is, the bullet frame can be displayed with the hand, instead of only displaying the target bullet frame in the middle area of the screen as in the traditional technology, so the flexibility of displaying the bullet frame of the electronic device can be improved.
  • the target pop-up frame can be displayed in the user's gaze area, so the user's understanding of the content (prompt information and/or at least one identification) in the target pop-up frame can be improved. attention, which can improve the prompting effect of the target bullet box.
  • an embodiment of the present application provides a method for displaying a pop-up frame, and the method may include the following steps 101 and 102 .
  • an electronic device is used as an example to illustrate the method.
  • Step 101 The electronic device receives a first input from a user on a first area of a first interface.
  • the first input is used to trigger the first event.
  • the first input may be any input that can trigger the first event, such as hovering input or touch input, which may be determined according to actual usage requirements, and is not limited in this embodiment of the present application.
  • the first input may be any touch input that may trigger the first event, such as click input, slide input, and heavy press input in the first area of the first interface.
  • the first event may be that the user triggers the electronic device to delete a file, the user triggers the electronic device to download a file, etc., any possible event that requires the electronic device to display a pop-up box to prompt the user.
  • the first interface may be any interface, for example, the first interface may be an interface of a desktop or an application program.
  • the first area may be any area in the first interface that can trigger the first event in this area, for example, the first area may be the area used to trigger the first event in the first interface The region identified by the .
  • Step 102 the electronic device responds to the first input, and displays a target bullet box in the second area of the first interface.
  • the target bullet box may include at least one of the following: target prompt information and at least one identification, the target prompt information may be used to prompt the user whether to continue executing the first event, and each identification may be used to indicate a second event; the second The area and the first area are two adjacent areas.
  • the target pop-up box may only include target prompt information, or may only include the above at least one identification, and may also include target prompt information and the above at least one identification, which may be specifically determined according to the first event.
  • the target pop-up box may include: the target prompt message "Please confirm whether to delete?", confirmation mark (for confirming deletion), cancel mark (for confirming cancellation of deletion) .
  • the first event is a viewing event, for example, viewing the number of unread messages in an application
  • the at least one identifier may be any identifier related to the first event, such as a confirmation identifier, a cancellation identifier, an address identifier, or a date identifier.
  • the target pop-up box includes a save identifier, a cancel identifier, and an address identifier
  • the second event indicated by the save identifier is confirmation of saving file 1
  • the second event indicated by the cancel identifier is to interrupt saving the file 1
  • the second event indicated by the address identifier is to save the file 1 at the storage address corresponding to the address identifier.
  • the second area may be determined according to the relative position of the first area in the first interface.
  • interface 1 is an interface of a social application program
  • the user can check the number of unread messages in the social application program by clicking on area 4 in interface 1 (ie event), then, since the area 4 is located in the lower right corner of the interface 1, the electronic device can determine the area 5 adjacent to the area 4 and above the area 4 in the interface 1 after receiving the user’s click input on the area 4 is the second area, and displays bullet frame 1 (i.e. target bullet frame) in area 5, and includes a digital identification (ie at least one identification) in this bullet box 1, and this digital identification is used to indicate the unread in this social application program The number of messages to alert the user of the number of unread messages in the app.
  • bullet frame 1 i.e. target bullet frame
  • digital identification ie at least one identification
  • the second area where the target pop-up frame is displayed can be determined by the electronic device according to the relative position of the first area in the first interface, the flexibility of displaying the pop-up frame on the electronic device can be improved.
  • the method for determining the second area by the electronic device is exemplarily described below.
  • the pop-up frame display method provided by the embodiment of this application may further include the following step 103, and the above step 102 may be specifically implemented through the following step 102a.
  • Step 103 the electronic device determines the second area according to preset rules.
  • Step 102a the electronic device displays a target pop-up frame in the second area of the first interface.
  • the above preset rules may include at least one of the following (a-e):
  • the first area is an area in the top area of the first interface
  • the second area and the first area are two adjacent areas, and the second area is located below the first area
  • the first area is an area in the bottom area of the first interface
  • the second area and the first area are two adjacent areas, and the second area is located above the first area
  • the first area is an area in the left area of the first interface
  • the second area and the first area are two adjacent areas, and the second area is located on the right side of the first area
  • the first area is an area on the right side of the first interface
  • the second area and the first area are two adjacent areas, and the second area is located on the left side of the first area
  • the second area and the first area are two adjacent areas, and the second area is located above, below, and on the left side of the first area or right side.
  • top, bottom, top, bottom, left side, right side, and middle are all illustrated by taking the first interface displayed on the screen when the screen of the electronic device faces the user as an example.
  • the specific division of the top area, bottom area, left area, right area, and middle area of the first interface can be determined according to actual usage requirements, which is not limited in this embodiment of the application.
  • the top area of the first interface may include area 1, area 2, and area 3
  • the bottom area of the first interface may include area 7, area 8, and area 9, and the left area of the first interface may include Including area 1, area 4, and area 7, the right area of the first interface may include area 2, area 6, and area 9, and the middle area of the first interface may include area 5.
  • the foregoing preset rules may include one or both of the foregoing a to e.
  • the second area when the first area is located in the upper left corner (for example, area 1 in FIG. 3 ), the second area can be determined according to the aforementioned preset rule a and preset rule c; when the first area is located in the upper right corner (for example, in FIG. 3), the second area can be determined according to the above-mentioned preset rule a and preset rule d; when the first area is located in the lower left corner (for example, area 7 in Figure 3), the second area can be determined according to the above-mentioned The preset rule b and preset rule c are determined; when the first area is located in the lower right corner (for example, area 9 in FIG. 3 ), the second area can be determined according to the above-mentioned preset rule b and preset rule d.
  • the electronic The device may determine that the second area is an area a1 adjacent to area a and located on the lower right side of area a;
  • the electronic device can determine that the second area is area b1 adjacent to area b and located above area b;
  • the second area can be determined to be area c1 adjacent to area c and above area c.
  • the first area is area d in the interface 2 (that is, the top area and the right area in the embodiment of the present application)
  • the first area is the area e in the interface 2 (that is, the bottom area and the left area in the embodiment of the present application), then it can be determined that the second area is adjacent to the area e and located on the upper right side of the area e e1.
  • the electronic device can determine the second area according to the preset rules before displaying the target bullet box in the second area of the first interface, the second area determined according to the preset rules is the most suitable display in the first interface The area of the target bullet frame, so that the electronic device can display the target bullet frame in the most suitable area in the first interface, so the accuracy of the electronic device displaying the bullet frame can be further improved.
  • the second area may also satisfy at least one of the following: an area (1) whose size is greater than or equal to the target size in the first interface, and an area (2) where no content is displayed in the first interface , where the target size is the size of the target bullet frame.
  • the first area is the middle area of the first interface
  • the size of the target bullet box is a
  • the size of the area above the first area and adjacent to the first area is b
  • the size of the area below the first area and adjacent to the first area is c
  • the size of the area located on the left side of the first area and adjacent to the first area is d
  • located on the right side of the first area and adjacent to the first area The size of the area is e; then, if b ⁇ c ⁇ a ⁇ d, then: the electronic device can determine that the second area is an area located on the left side of the first area and adjacent to the first area in the first interface.
  • the area where no content is displayed in the first interface may be a blank area in the first interface.
  • the size of the area not displaying content is greater than or equal to the target size.
  • the second area can be an area whose size is greater than or equal to the target size in the first interface and/or an area where no content is displayed in the first interface
  • the target bullet box can be displayed in the second area It is fully displayed, so as to ensure that the electronic device displays the effect of the pop-up frame.
  • the electronic device after the electronic device receives the user's first input for triggering the first event in the first area of the first interface, it can communicate with the first event in the first interface.
  • the second area adjacent to the area displays the target bullet frame, that is, the bullet frame can be displayed by hand, instead of only displaying the target bullet frame in the middle area of the screen as in the traditional technology, so the flexibility of displaying the bullet frame on the electronic device can be improved.
  • the target pop-up frame can be displayed in the user's gaze area, so the user's understanding of the content (prompt information and/or at least one identification) in the target pop-up frame can be improved. attention, which can improve the prompting effect of the target bullet box.
  • the pop-up display method provided in the embodiment of the present application may further include the following step A.
  • Step A When the target condition is met, cancel the display of the target pop-up frame in the second area, and display the target pop-up frame in the preset area of the first interface.
  • the target condition may include at least one of the following: a display state of the screen where the first interface is located (hereinafter referred to as the target screen) changes, and a second input from the user is received.
  • the second input can be used to trigger the split-screen display of the first interface and the second interface, or to trigger the display of the first interface in the form of a small window.
  • the change of the display state of the target screen can be understood as: the display state of the target screen is switched from the vertical screen display state to the horizontal screen display state, or the display state of the target screen is switched from the horizontal screen display state to the vertical screen display state state.
  • the user may rotate the electronic device to trigger the screen to switch from the portrait display state to the landscape display state.
  • the second input can be any input that can trigger the electronic device to display the first interface in a split screen or in a small window, such as floating input, touch input, or voice input. Requirements are determined, and this embodiment of the application does not make a limitation.
  • both the first interface and the second interface support split-screen display.
  • the first interface and the second interface may be the same or different.
  • the first interface is a chat interface with contact 1
  • the second interface is also a chat interface with contact 1.
  • the first interface is the interface 1a in the application program 1
  • the second interface may be the interface 1b in the application program.
  • the first interface is the interface of the application program 1
  • the second interface may be the interface of the desktop or any application program except the application program 1.
  • the preset area may be a bottom area, a top area, a middle area, a left area or a right area of the first interface.
  • the preset area may be a default of the electronic device, or may be user-defined, and may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the pop-up frame display method provided by the embodiment of the present application is exemplarily described below with reference to FIG. 4 and FIG. 5 .
  • Example 1 as shown in (a) in FIG. 4 , the electronic device displays interface A (i.e. the first interface) in full screen on the screen, and displays the target bullet frame 40 in the top area of interface A (i.e. the second area), and then After the electronic device receives the user's split-screen input (that is, the second input), it can split-screen display interface A and interface B on the screen. Specifically, as shown in (b) in FIG. Interface B is displayed in the upper part of the screen, and interface A is displayed in the lower part of the screen, and the target bullet box displayed in the top area of interface A is cancelled, and the bottom area of interface A (that is, the preset area of the first interface) ) to display the target bullet box 40 .
  • interface A i.e. the first interface
  • the target bullet frame 40 in the top area of interface A (i.e. the second area)
  • the electronic device receives the user's split-screen input (that is, the second input)
  • the electronic device receives the user's split-screen
  • the electronic device after the electronic device receives the split screen input, it can first cancel the display of the target pop-up box, and then split the screen to display interface A and interface B, and display the target in the bottom area of interface A after the split screen pop-up frame; or, the electronic device can cancel displaying the target pop-up frame in the top area of interface A while displaying interface A and interface B in split screen, and display the target pop-up frame in the bottom area of interface A after split-screen.
  • Example 2 as shown in (a) in FIG. 5 , the electronic device displays an interface C (i.e. the first interface) in full screen on the screen, and displays a target bullet frame 50 on the top area of the interface C (i.e. the second area), and then , after the electronic device receives an input from the user to trigger the electronic device to display the first interface in the form of a small window (that is, the second input), the electronic device can cancel the display of the target pop-up frame in the second area, as shown in (b) in Figure 5 As shown, the electronic device can display the interface D in full screen on the screen, and display the interface C in the form of a small window on the interface D, and display the target bullet box 50 in the bottom area of the interface C (that is, the preset area of the first interface) .
  • Example 2 For other descriptions of Example 2, reference may be made to the relevant description of Example 1 above, and details are not repeated here to avoid repetition.
  • the display of the target in the second area can be canceled pop-up frame, and display the target pop-up frame in the preset area of the first interface, that is, the electronic device can continue to display the target when the display state of the screen changes, the first interface is displayed on a split screen, and the first interface is displayed in a small window
  • the bullet box so the flexibility of displaying the target bullet box can be further improved.
  • the pop-up display method provided in the embodiment of the present application may further include the following step B.
  • Step B When the first display parameter of the first interface changes, synchronously adjust the second display parameter of the target bullet box.
  • the display parameters include at least one of the following: display size and display position.
  • the second display parameter of the target pop-up frame includes the display size of the target pop-up frame
  • the first display parameter includes the display position of the first interface
  • the second display parameter of the target pop-up frame includes the display position of the target pop-up frame
  • the electronic device may adjust the display parameter of the target pop-up box using the same change strategy.
  • the size of the first interface is 6cm ⁇ 4cm
  • the size of the target bullet box is 2cm ⁇ 1cm
  • the size of the first interface is changed to 3cm ⁇ 2cm (equivalent to reducing the size to 1/ 2)
  • the size of the target bullet frame is synchronously adjusted to 1cm ⁇ 0.5cm.
  • the display position of the first interface is the entire area of the screen, and the display position of the target bullet box is the bottom area of the screen, then, in the case where the display position of the first interface is changed to the upper half screen area after splitting the screen , the display position of the target pop-up box is adjusted synchronously to the bottom area of the upper half-screen area after splitting the screen.
  • the electronic device can synchronously adjust the display parameters of the target pop-up frame when the display parameters of the first interface change, this can ensure the display effect of the first interface and the target pop-up frame, therefore, it can improve
  • the electronic device displays the accuracy of the bullet box.
  • the execution subject of the pop-up display method provided in the embodiment of the present application may be a pop-up display device, or a control module in the pop-up display device for executing the pop-up display method.
  • the method for displaying a pop-up frame performed by the pop-up frame display device is taken as an example to describe the pop-up frame display device provided in the embodiment of the present application.
  • an embodiment of the present application provides a pop-up display device 60
  • the pop-up display device 60 may include: a receiving module 61 and a display module 62 .
  • the receiving module 61 may be configured to receive a first input from a user on the first area of the first interface, where the first input is used to trigger a first event.
  • the display module 62 can be configured to respond to the first input received by the receiving module 61, and display the target pop-up frame in the second area of the first interface, and the target pop-up frame includes at least one of the following: target prompt information and at least one identification, target The prompt information is used to prompt the user whether to continue to execute the first event, and each identifier is used to indicate a second event; wherein, the second area and the first area are two adjacent areas.
  • the second area may be determined according to a relative position of the first area on the first interface.
  • the second area can also satisfy at least one of the following: an area whose size is greater than or equal to the target size in the first interface, and an area that does not display content in the first interface; wherein, the target size is the target bullet The size of the box.
  • the display module 62 can also be used to cancel the display of the target pop-up frame in the second area if the target condition is met after the target pop-up frame is displayed in the second area of the first interface, and
  • the preset area of the first interface displays a target bullet box.
  • the target condition includes at least one of the following: the display state of the screen where the first interface is located changes, and the second input from the user is received; the second input is used to trigger split-screen display of the first interface and the second interface, or to It is triggered to display the first interface in the form of a small window.
  • the pop-up frame display device 60 may further include an adjustment module.
  • the adjustment module can be used to synchronously adjust the second display parameter of the target pop-up frame when the first display parameter of the first interface changes after the display module 62 displays the target pop-up frame in the second area of the first interface.
  • the display parameters include at least one of the following: display size and display position.
  • the pop-up display device since the pop-up display device receives the user's first input for triggering the first event in the first area of the first interface, it can communicate with The second area adjacent to the first area displays the target bullet frame, that is, the bullet frame can be displayed at the same time, instead of only displaying the target bullet frame in the middle area of the screen like the traditional technology, so the flexibility of displaying the bullet frame can be improved.
  • the target pop-up frame can be displayed in the user's gaze area, so the user's understanding of the content (prompt information and/or at least one identification) in the target pop-up frame can be improved. attention, which can improve the prompting effect of the target bullet box.
  • the pop-up display device in this embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the pop-up display device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the pop-up frame display device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides an electronic device 200, including a processor 202, a memory 201, and a program or instruction stored in the memory 201 and operable on the processor 202.
  • the program or instruction is processed When executed by the device 202, each process of the above embodiment of the pop-up box display method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the user input unit 1007 may be configured to receive a first input from the user on the first area of the first interface, and the first input is used to trigger a first event.
  • the display unit 1006 may be configured to display a target bullet box in the second area of the first interface in response to the first input received by the user input unit 1007, and the target bullet box includes at least one of the following: target prompt information and at least one logo, The target prompt information is used to prompt the user whether to continue to execute the first event, and each identifier is used to indicate a second event; wherein, the second area and the first area are two adjacent areas.
  • the second area may be determined according to a relative position of the first area on the first interface.
  • the second area can also satisfy at least one of the following: an area whose size is greater than or equal to the target size in the first interface, and an area that does not display content in the first interface; wherein, the target size is the target bullet The size of the box.
  • the display unit 1006 may also be configured to cancel the display of the target pop-up frame in the second area if the target condition is met after the target pop-up frame is displayed in the second area of the first interface, and
  • the preset area of the first interface displays a target bullet box.
  • the target condition includes at least one of the following: the display state of the screen where the first interface is located changes, and the second input from the user is received; the second input is used to trigger split-screen display of the first interface and the second interface, or to triggering to display the first interface in the form of a small window.
  • the processor 1010 may be configured to synchronously adjust the first display parameter of the first interface after the display unit 1006 displays the target pop-up frame in the second area of the first interface.
  • the display parameters include at least one of the following: display size and display position.
  • the electronic device after receiving the user's first input to the first area of the first interface for triggering the first event, the electronic device can communicate with the first area in the first interface.
  • the target bullet frame can be displayed in the second adjacent area, that is, the bullet frame can be displayed at the same time, instead of only displaying the target bullet frame in the middle area of the screen like the traditional technology, so the flexibility of displaying the bullet frame can be improved.
  • the target pop-up frame can be displayed in the user's gaze area, so the user's understanding of the content (prompt information and/or at least one identification) in the target pop-up frame can be improved. attention, which can improve the prompting effect of the target bullet box.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the method for displaying a pop-up box is realized, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • the above-mentioned processor is the processor in the electronic device in the above-mentioned embodiment.
  • the above-mentioned readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned bullet box display method embodiment, and can achieve The same technical effects are not repeated here to avoid repetition.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

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

Abstract

本申请公开了一种弹框显示方法、装置、电子设备及可读存储介质,属于通信技术领域。该方法包括:接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件;响应于第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。

Description

弹框显示方法、装置、电子设备及可读存储介质
相关申请的交叉引用
本申请主张在2021年08月31日在中国提交的中国专利申请号202111015350.1的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种弹框显示方法、装置、电子设备及可读存储介质。
背景技术
随着通信技术的高速发展,电子设备的功能越来越丰富。例如,电子设备可以以显示提示弹框的方式,对用户的操作进行提示。
示例性地,当用户触发电子设备执行一个操作,例如删除操作、卸载操作时,电子设备可以先在屏幕的中间区域显示一个提示弹框,以提示用户是否执行该操作。
然而,按照上述方法,由于电子设备通常只会在屏幕的居中区域显示弹框,因此,可能导致电子设备显示弹框的灵活性较差。
发明内容
本申请实施例的目的是提供一种弹框显示方法、装置、电子设备及可读存储介质,能够解决电子设备显示弹框的灵活性较差的问题。
第一方面,本申请实施例提供了一种弹框显示方法,该方法包括:接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件;响应于第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。
第二方面,本申请实施例提供了一种弹框显示装置,该装置包括接收模块和显示模块;接收模块,用于接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件;显示模块,用于响应于接收模块接收的第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,所述程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程 序或指令,所述程序或指令被处理器执行时实现如第一方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。
在本申请实施例中,接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件;响应于第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。通过该方案,由于电子设备在接收到用户对第一界面的第一区域的用于触发第一事件的第一输入后,可以在第一界面中与第一区域相邻的第二区域显示目标弹框,即可以跟手显示弹框,而无需像传统技术一样只能在屏幕的中间区域显示目标弹框,因此可以提高电子设备显示弹框的灵活性。
进一步地,由于第二区域为与第一区域相邻的区域,即可以在用户的注视区域显示目标弹框,因此可以提高用户对目标弹框中的内容(提示信息和/或至少一个标识)的注意力,从而可以提高目标弹框的提示作用。
附图说明
图1为本申请实施例提供的弹框显示方法的示意图;
图2为本申请实施例提供的弹框显示方法应用的界面示意图之一;
图3为本申请实施例提供的弹框显示方法应用的界面示意图之二;
图4为本申请实施例提供的弹框显示方法应用的界面示意图之三;
图5为本申请实施例提供的弹框显示方法应用的界面示意图之四;
图6为本申请实施例提供的弹框显示装置的示意图;
图7为本申请实施例提供的电子设备的示意图;
图8为本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
需要说明的是,本申请实施例中的标识用于指示信息的文字、符号、图像等,可以以控件或者其他容器作为显示信息的载体,包括但不限于文字标识、符号标识、图 像标识。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的弹框显示方法、装置、电子设备及可读存储介质进行详细地说明。
本申请实施例提供的弹框显示方法可以应用于在用户的操作过程中,电子设备显示弹框的场景中。
示例性地,以用户触发电子设备删除电子设备中的一张图片(例如本申请实施例中的第一事件)为例,电子设备在接收到用户对该图片对应的删除控件的输入(例如本申请实施例中的第一输入)后,可以在与该删除控件所在区域(例如本申请实施例中的第一界面的第一区域)相邻的区域(例如本申请实施例中的第一界面的第二区域),显示一个弹框(例如本申请实施例中的目标弹框),该弹框中包括“是否继续删除”信息(例如本申请实施例中的目标提示信息),用于确认执行删除操作的“确认”标识和用于确认取消执行删除操作的“取消”标识(例如本申请实施例中的第二事件),以提示用户是否需要继续执行对该图片的删除操作。如此,由于电子设备在接收到用户对第一界面的第一区域的用于触发第一事件的第一输入后,可以在第一界面中与第一区域相邻的第二区域显示目标弹框,即可以跟手显示弹框,而无需像传统技术一样只能在屏幕的中间区域显示目标弹框,因此可以提高电子设备显示弹框的灵活性。
进一步地,由于第二区域为与第一区域相邻的区域,即可以在用户的注视区域显示目标弹框,因此可以提高用户对目标弹框中的内容(提示信息和/或至少一个标识)的注意力,从而可以提高目标弹框的提示作用。
结合图1,本申请实施例提供一种弹框显示方法,该方法可以包括下述的步骤101和步骤102。下面以电子设备执行该方法为例进行示例性地说明。
步骤101、电子设备接收用户对第一界面的第一区域的第一输入。
本申请实施例中,第一输入用于触发第一事件。
可选地,本申请实施例中,第一输入可以为悬浮输入或触控输入等任意可以触发第一事件的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
例如,以第一输入为触控输入为例,第一输入可以为在第一界面的第一区域的单击输入、滑动输入、重按输入等任意可能触发第一事件的触控输入。
可选地,本申请实施例中,第一事件可以为用户触发电子设备删除文件、用户触发电子设备下载文件等,任意可能的需要电子设备显示弹框以对用户进行提示的事件。
可选地,本申请实施例中,第一界面可以为任意一个界面,例如,第一界面可以为桌面或应用程序的界面等。
可选地,本申请实施例中,第一区域可以为第一界面中能够在该区域内触发第一事件的任意一个区域,例如,第一区域可以为第一界面中用于触发第一事件的标识所在的区域。
步骤102、电子设备响应于第一输入,在第一界面的第二区域显示目标弹框。
其中,目标弹框中可以包括以下至少一项:目标提示信息和至少一个标识,目标提示信息可以用于提示用户是否继续执行第一事件,每个标识可以用于指示一个第二事件;第二区域与第一区域为相邻的两个区域。
可以理解,本申请实施例中,目标弹框中可以仅包括目标提示信息,也可以仅包括上述至少一个标识,还可以包括目标提示信息和上述至少一个标识,具体可以根据第一事件确定。
示例性地,若第一事件为一个删除事件,则目标弹框中可以包括:目标提示信息“请确认是否删除?”、确定标识(用于确认删除),取消标识(用于确认取消删除)。
又示例性地,若第一事件为一个查看事件,例如,查看一个应用程序中未读消息的数量,则目标弹框中仅有一个数字标识(即至少一个标识),该数字标识可以指示该应用程序中未读消息的数量。
可选地,本申请实施例中,上述至少一个标识可以为确认标识、取消标识或地址标识、日期标识等任意与第一事件相关的标识。
例如,若第一事件为用户触发电子设备保存一个文件(以下称为文件1),目标弹框中包括保存标识、取消标识和地址标识,那么,保存标识指示的第二事件为确认保存文件1,取消标识指示的第二事件为中断保存文件1,地址标识指示的第二事件为在与该地址标识对应的存储地址保存文件1。
可选地,本申请实施例中,第二区域可以根据第一区域在第一界面中的相对位置确定。
示例性地,如图2所示,假设界面1为一个社交应用程序的界面,用户可以通过对界面1中的区域4的点击输入,查看该社交应用程序中的未读消息的数量(即第一事件),那么,由于区域4位于界面1的右下角,因此电子设备在接收到用户对区域4的点击输入后,可以将界面1中与区域4相邻且位于区域4上方的区域5确定为第二区域,并在区域5显示弹框1(即目标弹框),该弹框1中包括一个数字标识(即至少一个标识),该数字标识用于指示该社交应用程序中的未读消息的数量,以提示用户该应用程序中未读消息的数量。
本申请实施例中,由于显示目标弹框的第二区域可以由电子设备根据第一区域在第一界面中的相对位置来确定,因此,可以提高电子设备显示弹框的灵活性。
下面对电子设备确定第二区域的方法进行示例性说明。
可选地,本申请实施例中,在上述步骤102之前,本申请实施例提供的弹框显示方法还可以包括下述的步骤103,上述的步骤102具体可以通过下述的步骤102a实现。
步骤103、电子设备按照预设规则,确定第二区域。
步骤102a、电子设备在第一界面的第二区域显示目标弹框。
其中,上述预设规则可以包括以下(a~e)中至少一项:
a,在第一区域为第一界面的顶部区域中的区域的情况下,第二区域与第一区域为 相邻的两个区域,且第二区域位于第一区域的下方;
b,在第一区域为第一界面的底部区域中的区域的情况下,第二区域与第一区域为相邻的两个区域,且第二区域位于第一区域的上方;
c,在第一区域为第一界面的左侧区域中的区域的情况下,第二区域与第一区域为相邻的两个区域,且第二区域位于第一区域的右侧;
d,在第一区域为第一界面的右侧区域中的区域的情况下,第二区域与第一区域为相邻的两个区域,且第二区域位于第一区域的左侧;
e,在第一区域为第一界面的中间区域中的区域的情况下,第二区域与第一区域为相邻的两个区域,且第二区域位于第一区域的上方、下方、左侧或右侧。
需要说明的是,上述顶部、底部、上方、下方、左侧、右侧、中间均是以电子设备的屏幕朝向用户时,该屏幕上显示第一界面为例进行示意的。
可选地,本申请实施例中,第一界面的顶部区域、底部区域、左侧区域、右侧区域和中间区域的具体划分可以根据实际使用需求确定,本申请实施例不作限定。
例如,如图3所示,第一界面的顶部区域可以包括区域1、区域2、区域3,第一界面的底部区域可以包括区域7、区域8、区域9,第一界面的左侧区域可以包括区域1、区域4、区域7,第一界面的右侧区域可以包括区域2、区域6、区域9,第一界面的中间区域可以包括区域5。
可选地,本申请实施例中,上述预设规则可以包括上述a~e中的一项或两项。
示例性地,当第一区域位于左上角(例如图3中的区域1)时,第二区域可以根据上述的预设规则a和预设规则c确定;当第一区域位于右上角(例如图3中的区域3)时,第二区域可以根据上述的预设规则a和预设规则d确定;当第一区域位于左下角(例如图3中的区域7)时,第二区域可以根据上述的预设规则b和预设规则c确定;当第一区域位于右下角(例如图3中的区域9)时,第二区域可以根据上述的预设规则b和预设规则d确定。
下面结合图3对本申请实施例提供的弹框显示方法进行详细说明。
示例性地,假设第一界面为界面2,那么:如图3所示,若第一区域为界面2中的区域a(即本申请实施例中的的顶部区域和左侧区域),则电子设备可以确定第二区域为与区域a相邻,且位于区域a的右下侧的区域a1;
若第一区域为界面2中的区域b(即本申请实施例中的的中间区域),则电子设备可以确定第二区域为与区域b相邻,且位于区域b的上方的区域b1;
若第一区域为界面2中的区域c(即本申请实施例中的的底部区域),则可以确定第二区域为与区域c相邻,且位于区域c的上方的区域c1。
若第一区域为界面2中的区域d(即本申请实施例中的的顶部区域和右侧区域),则可以确定第二区域为与区域d相邻,且位于区域d的左下侧的区域d1。
若第一区域为界面2中的区域e(即本申请实施例中的的底部区域和左侧区域), 则可以确定第二区域为与区域e相邻,且位于区域e的右上侧的区域e1。
本申请实施例中,由于电子设备在第一界面的第二区域显示目标弹框之前,可以按照预设规则确定第二区域,按照预设规则确定的第二区域为第一界面中最适合显示目标弹框的区域,从而电子设备可以在第一界面中最适合的区域显示目标弹框,因此,可以进一步提高电子设备显示弹框的准确性。
可选地,本申请实施例中,第二区域还可以满足以下至少一项:第一界面中尺寸大于或等于目标尺寸的区域(1)、第一界面中的未显示内容的区域(2),其中,目标尺寸为目标弹框的尺寸。
例如,在上述(1)中,假设第一区域为第一界面的中间区域,目标弹框的尺寸为a,位于第一区域上方且与第一区域相邻的区域的尺寸为b、位于第一区域下方且与第一区域相邻的区域的尺寸为c、位于第一区域左侧且与第一区域相邻的区域的尺寸为d、位于第一区域右侧且与第一区域相邻的区域的尺寸为e;那么,若b<c<a<d,那么:电子设备可以确定第二区域为第一界面中位于第一区域左侧且与第一区域相邻的区域。
可选地,本申请实施例中,第一界面中的未显示内容的区域可以为第一界面中的空白区域。
可选地,本申请实施例中,当第二区域为第一界面中的未显示内容的区域时,该未显示内容的区域的尺寸大于或等于目标尺寸。
本申请实施例中,由于第二区域可以为第一界面中尺寸大于或等于目标尺寸的区域和/或第一界面中的未显示内容的区域,因此可以使目标弹框能够在第二区域中完全显示,从而可以确保电子设备显示弹框的效果。
在本申请实施例提供的弹框显示方法中,由于电子设备在接收到用户对第一界面的第一区域的用于触发第一事件的第一输入后,可以在第一界面中与第一区域相邻的第二区域显示目标弹框,即可以跟手显示弹框,而无需像传统技术一样只能在屏幕的中间区域显示目标弹框,因此可以提高电子设备显示弹框的灵活性。
进一步地,由于第二区域为与第一区域相邻的区域,即可以在用户的注视区域显示目标弹框,因此可以提高用户对目标弹框中的内容(提示信息和/或至少一个标识)的注意力,从而可以提高目标弹框的提示作用。
可选地,本申请实施例中,一种实现方式中,在上述步骤102之后,本申请实施例提供的弹框显示方法还可以包括下述的步骤A。
步骤A、在满足目标条件的情况下,取消在第二区域显示目标弹框,并在第一界面的预设区域显示目标弹框。
可选地,本申请实施例中,目标条件可以包括以下至少一项:第一界面所在的屏幕(以下称为目标屏幕)的显示状态发生变化、接收到用户的第二输入。
其中,第二输入可以用于触发分屏显示第一界面和第二界面,或用于触发以小窗 口形式显示第一界面。
本申请实施例中,目标屏幕的显示状态发生变化可以理解为:目标屏幕的显示状态从竖屏显示状态切换为横屏显示状态,或者目标屏幕的显示状态从横屏显示状态切换为竖屏显示状态。
例如,用户可以通过旋转电子设备,触发屏幕从竖屏显示状态切换为横屏显示状态。
可选地,本申请实施例中,第二输入可以为悬浮输入、触控输入或语音输入等任意可以触发电子设备以分屏或以小窗口形式显示第一界面的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
可选地,本申请实施例中,第一界面和第二界面均为支持分屏显示的界面。
可选地,本申请实施例中,第一界面与第二界面可以相同,也可以不同。
例如,第一界面为与联系人1的聊天界面,第二界面也为与联系人1的聊天界面。
又例如,第一界面为应用程序1中的界面1a,第二界面可以为该应用程序中的界面1b。
再例如,第一界面为应用程序1的界面,第二界面可以为桌面或除应用程序1之外的任一应用程序的界面。
可选地,本申请实施例中,预设区域可以为第一界面的底部区域、顶部区域、中间区域、左侧区域或右侧区域。
可选地,本申请实施例中,预设区域可以为电子设备默认的,也可以为用户自定义的,具体可以根据实际使用需求确定,本申请实施例不作限定。
下面结合图4和图5对本申请实施例提供的弹框显示方法进行示例性地说明。
示例1,如图4中的(a)所示,电子设备在屏幕上全屏显示界面A(即第一界面),并在界面A的顶部区域(即第二区域)显示目标弹框40,然后,电子设备在接收到用户的分屏输入(即第二输入)后,可以在该屏幕上分屏显示界面A和界面B,具体的,如图4中的(b)所示,电子设备在该屏幕的上半部分显示界面B,且在该屏幕的下半部分显示界面A,取消在界面A的顶部区域显示目标弹框,以及在界面A的底部区域(即第一界面的预设区域)显示目标弹框40。
可以理解,本申请实施例中,电子设备在接收到分屏输入之后,可以先取消显示目标弹框,然后分屏显示界面A和界面B,并在分屏后的界面A的底部区域显示目标弹框;或者,电子设备可以在分屏显示界面A和界面B的同时,取消在界面A的顶部区域显示目标弹框,并在分屏后的界面A的底部区域显示目标弹框。
示例2,如图5中的(a)所示,电子设备在屏幕上全屏显示界面C(即第一界面),并在界面C的顶部区域(即第二区域)显示目标弹框50,然后,电子设备在接收到用户触发电子设备以小窗口形式显示第一界面的输入(即第二输入)后,电子设备可以取消在第二区域显示目标弹框,并如图5中的(b)所示,电子设备可以在该屏幕上全 屏显示界面D,并在界面D上以小窗口形式显示界面C,且在界面C的底部区域(即第一界面的预设区域)显示目标弹框50。对于示例2的其他描述,具体可以参见对上述示例1的相关描述,为了避免重复,此处不再赘述。
本申请实施例中,由于电子设备在改变屏幕的显示状态,或者,在接收到用户触发电子设备以分屏或小窗口形式显示第一界面的第二输入后,可以取消在第二区域显示目标弹框,并在第一界面的预设区域显示目标弹框,即电子设备可以在屏幕的显示状态发生变化、分屏显示第一界面、以小窗口显示第一界面的情况下,继续显示目标弹框,因此可以进一步提高显示目标弹框的灵活性。
可选地,本申请实施例中,另一种实现方式中,在上述步骤102之后,本申请实施例提供的弹框显示方法还可以包括下述的步骤B。
步骤B、在第一界面的第一显示参数发生变化的情况下,同步调整目标弹框的第二显示参数。
其中,显示参数包括以下至少一项:显示尺寸、显示位置。
可以理解,本申请实施例中,当第一界面的第一显示参数包括第一界面的显示尺寸的情况下,目标弹框的第二显示参数包括目标弹框的显示尺寸;当第一界面的第一显示参数包括第一界面的显示位置的情况下,目标弹框的第二显示参数包括目标弹框的显示位置。
可选地,本申请实施例中,在第一界面的第一显示参数发生变化的情况下,电子设备可以以相同的变化策略调整目标弹框的显示参数。
例如,假设第一界面的尺寸为6cm×4cm,目标弹框的尺寸为2cm×1cm,那么,在第一界面的尺寸改变为3cm×2cm的情况下(相当于尺寸缩小至原尺寸的1/2),目标弹框的尺寸同步调整为1cm×0.5cm。
又例如,假设第一界面的显示位置为屏幕的全部区域,目标弹框的显示位置为屏幕的底部区域,那么,在第一界面的显示位置改变为分屏后的上半屏区域的情况下,目标弹框的显示位置同步调整为分屏后的上半屏区域的底部区域。
本申请实施例中,由于电子设备可以在第一界面的显示参数发生变化的情况下,同步调整目标弹框的显示参数,如此可以确保第一界面和目标弹框的显示效果,因此,可以提高电子设备显示弹框的准确性。
需要说明的是,本申请实施例提供的弹框显示方法,执行主体可以为弹框显示装置,或者该弹框显示装置中的用于执行弹框显示方法的控制模块。本申请实施例中以弹框显示装置执行弹框显示方法为例,说明本申请实施例提供的弹框显示装置。
结合图6,本申请实施例提供一种弹框显示装置60,该弹框显示装置60可以包括:接收模块61和显示模块62。接收模块61,可以用于接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件。显示模块62,可以用于响应于接收模块61接收的第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一 项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。
一种可能的实现方式中,第二区域可以根据第一区域在第一界面中的相对位置确定。
一种可能的实现方式中,第二区域还可以满足以下至少一项:第一界面中尺寸大于或等于目标尺寸的区域、第一界面中的未显示内容的区域;其中,目标尺寸为目标弹框的尺寸。
一种可能的实现方式中,显示模块62,还可以用于在第一界面的第二区域显示目标弹框之后,在满足目标条件的情况下,取消在第二区域显示目标弹框,并在第一界面的预设区域显示目标弹框。其中,目标条件包括以下至少一项:第一界面所在的屏幕的显示状态发生变化、接收到用户的第二输入;第二输入用于触发分屏显示第一界面和第二界面,或用于触发以小窗口形式显示第一界面。
一种可能的实现方式中,上述弹框显示装置60还可以包括调整模块。调整模块,可以用于在显示模块62在第一界面的第二区域显示目标弹框之后,在第一界面的第一显示参数发生变化的情况下,同步调整目标弹框的第二显示参数。其中,显示参数包括以下至少一项:显示尺寸、显示位置。
在本申请实施例提供的弹框显示装置中,由于弹框显示装置在接收到用户对第一界面的第一区域的用于触发第一事件的第一输入后,可以在第一界面中与第一区域相邻的第二区域显示目标弹框,即可以跟手显示弹框,而无需像传统技术一样只能在屏幕的中间区域显示目标弹框,因此可以提高显示弹框的灵活性。
进一步地,由于第二区域为与第一区域相邻的区域,即可以在用户的注视区域显示目标弹框,因此可以提高用户对目标弹框中的内容(提示信息和/或至少一个标识)的注意力,从而可以提高目标弹框的提示作用。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
本申请实施例中的弹框显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的弹框显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的弹框显示装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。
如图7所示,本申请实施例还提供一种电子设备200,包括处理器202,存储器201,存储在存储器201上并可在处理器202上运行的程序或指令,该程序或指令被处理器202执行时实现上述弹框显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元1007,可以用于接收用户对第一界面的第一区域的第一输入,第一输入用于触发第一事件。显示单元1006,可以用于响应于用户输入单元1007接收的第一输入,在第一界面的第二区域显示目标弹框,目标弹框中包括以下至少一项:目标提示信息和至少一个标识,目标提示信息用于提示用户是否继续执行第一事件,每个标识用于指示一个第二事件;其中,第二区域与第一区域为相邻的两个区域。
一种可能的实现方式中,第二区域可以根据第一区域在第一界面中的相对位置确定。
一种可能的实现方式中,第二区域还可以满足以下至少一项:第一界面中尺寸大于或等于目标尺寸的区域、第一界面中的未显示内容的区域;其中,目标尺寸为目标弹框的尺寸。
一种可能的实现方式中,显示单元1006,还可以用于在第一界面的第二区域显示目标弹框之后,在满足目标条件的情况下,取消在第二区域显示目标弹框,并在第一界面的预设区域显示目标弹框。其中,目标条件包括以下至少一项:第一界面所在的屏幕的显示状态发生变化、接收到用户的第二输入;第二输入用于触发分屏显示第一界面和第二界面,或用于触发以小窗口形式显示第一界面。
一种可能的实现方式中,处理器1010,可以用于在显示单元1006在第一界面的第二区域显示目标弹框之后,在第一界面的第一显示参数发生变化的情况下,同步调整目标弹框的第二显示参数。其中,显示参数包括以下至少一项:显示尺寸、显示位 置。
在本申请实施例提供的电子设备中,由于电子设备在接收到用户对第一界面的第一区域的用于触发第一事件的第一输入后,可以在第一界面中与第一区域相邻的第二区域显示目标弹框,即可以跟手显示弹框,而无需像传统技术一样只能在屏幕的中间区域显示目标弹框,因此可以提高显示弹框的灵活性。
进一步地,由于第二区域为与第一区域相邻的区域,即可以在用户的注视区域显示目标弹框,因此可以提高用户对目标弹框中的内容(提示信息和/或至少一个标识)的注意力,从而可以提高目标弹框的提示作用。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述弹框显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,上述处理器为上述实施例中的电子设备中的处理器。上述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述弹框显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括 那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种弹框显示方法,所述方法包括:
    接收用户对第一界面的第一区域的第一输入,所述第一输入用于触发第一事件;
    响应于所述第一输入,在所述第一界面的第二区域显示目标弹框,所述目标弹框中包括以下至少一项:目标提示信息和至少一个标识,所述目标提示信息用于提示用户是否继续执行所述第一事件,每个所述标识用于指示一个第二事件;
    其中,所述第二区域与所述第一区域为相邻的两个区域。
  2. 根据权利要求1所述的方法,其中,所述第二区域根据所述第一区域在所述第一界面中的相对位置确定。
  3. 根据权利要求2所述的方法,其中,所述第二区域还满足以下至少一项:
    所述第一界面中尺寸大于或等于目标尺寸的区域、所述第一界面中的未显示内容的区域;
    其中,所述目标尺寸为所述目标弹框的尺寸。
  4. 根据权利要求1至3中任一项所述的方法,其中,所述在所述第一界面的第二区域显示目标弹框之后,所述方法还包括:
    在满足目标条件的情况下,取消在所述第二区域显示所述目标弹框,并在所述第一界面的预设区域显示所述目标弹框;
    其中,所述目标条件包括以下至少一项:所述第一界面所在的屏幕的显示状态发生变化、接收到用户的第二输入;
    所述第二输入用于触发分屏显示所述第一界面和第二界面,或用于触发以小窗口形式显示所述第一界面。
  5. 根据权利要求1至3中任一项所述的方法,其中,所述在所述第一界面的第二区域显示目标弹框之后,所述方法还包括:
    在所述第一界面的第一显示参数发生变化的情况下,同步调整所述目标弹框的第二显示参数;
    其中,显示参数包括以下至少一项:显示尺寸、显示位置。
  6. 一种弹框显示装置,所述装置包括接收模块和显示模块;
    所述接收模块,用于接收用户对第一界面的第一区域的第一输入,所述第一输入用于触发第一事件;
    所述显示模块,用于响应于所述接收模块接收的所述第一输入,在所述第一界面的第二区域显示目标弹框,所述目标弹框中包括以下至少一项:目标提示信息和至少一个标识,所述目标提示信息用于提示用户是否继续执行所述第一事件,每个所述标识用于指示一个第二事件;
    其中,所述第二区域与所述第一区域为相邻的两个区域。
  7. 根据权利要求6所述的装置,其中,所述第二区域根据所述第一区域在所述第 一界面中的相对位置确定。
  8. 根据权利要求7所述的装置,其中,所述第二区域还满足以下至少一项:
    所述第一界面中尺寸大于或等于目标尺寸的区域、所述第一界面中的未显示内容的区域;
    其中,所述目标尺寸为所述目标弹框的尺寸。
  9. 根据权利要求6至8中任一项所述的装置,其中,
    所述显示模块,还用于在所述第一界面的第二区域显示目标弹框之后,在满足目标条件的情况下,取消在所述第二区域显示所述目标弹框,并在所述第一界面的预设区域显示所述目标弹框;
    其中,所述目标条件包括以下至少一项:所述第一界面所在的屏幕的显示状态发生变化、接收到用户的第二输入;所述第二输入用于触发分屏显示所述第一界面和第二界面,或用于触发以小窗口形式显示所述第一界面。
  10. 根据权利要求6至8中任一项所述的装置,其中,所述装置还包括调整模块;
    所述调整模块,用于在所述显示模块在所述第一界面的第二区域显示目标弹框之后,在所述第一界面的第一显示参数发生变化的情况下,同步调整所述目标弹框的第二显示参数;
    其中,显示参数包括以下至少一项:显示尺寸、显示位置。
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的弹框显示方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的弹框显示方法的步骤。
  13. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的弹框显示方法。
  14. 一种电子设备,包括电子设备被配置成用于执行如权利要求1至5中任一项所述的弹框显示方法。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的弹框显示方法。
PCT/CN2022/115574 2021-08-31 2022-08-29 弹框显示方法、装置、电子设备及可读存储介质 WO2023030267A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111015350.1 2021-08-31
CN202111015350.1A CN113934483A (zh) 2021-08-31 2021-08-31 弹框显示方法及装置

Publications (1)

Publication Number Publication Date
WO2023030267A1 true WO2023030267A1 (zh) 2023-03-09

Family

ID=79274912

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115574 WO2023030267A1 (zh) 2021-08-31 2022-08-29 弹框显示方法、装置、电子设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN113934483A (zh)
WO (1) WO2023030267A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934483A (zh) * 2021-08-31 2022-01-14 维沃移动通信有限公司 弹框显示方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071481A1 (zh) * 2015-10-30 2017-05-04 努比亚技术有限公司 一种移动终端及其实现分屏的方法
CN110413364A (zh) * 2019-07-29 2019-11-05 维沃移动通信有限公司 一种信息处理方法及终端
CN111984163A (zh) * 2020-07-30 2020-11-24 维沃移动通信有限公司 应用图标显示方法、装置及电子设备
CN113138785A (zh) * 2021-04-21 2021-07-20 维沃移动通信有限公司 应用程序的更新方法和装置
CN113934483A (zh) * 2021-08-31 2022-01-14 维沃移动通信有限公司 弹框显示方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820546B (zh) * 2014-12-30 2018-02-13 广州酷狗计算机科技有限公司 功能信息展示方法和装置
US9467718B1 (en) * 2015-05-06 2016-10-11 Echostar Broadcasting Corporation Apparatus, systems and methods for a content commentary community
CN110865865B (zh) * 2019-11-22 2023-01-13 科大讯飞股份有限公司 一种弹窗位置确定方法、装置、设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071481A1 (zh) * 2015-10-30 2017-05-04 努比亚技术有限公司 一种移动终端及其实现分屏的方法
CN110413364A (zh) * 2019-07-29 2019-11-05 维沃移动通信有限公司 一种信息处理方法及终端
CN111984163A (zh) * 2020-07-30 2020-11-24 维沃移动通信有限公司 应用图标显示方法、装置及电子设备
CN113138785A (zh) * 2021-04-21 2021-07-20 维沃移动通信有限公司 应用程序的更新方法和装置
CN113934483A (zh) * 2021-08-31 2022-01-14 维沃移动通信有限公司 弹框显示方法及装置

Also Published As

Publication number Publication date
CN113934483A (zh) 2022-01-14

Similar Documents

Publication Publication Date Title
US11074117B2 (en) Copying and pasting method, data processing apparatus, and user equipment
US11170737B2 (en) Display control method and apparatus
WO2022012656A1 (zh) 分屏显示方法、装置及电子设备
US10884605B2 (en) Methods and systems for displaying hidden information on a web page
CN108062190B (zh) 一种应用运行状态控制方法及移动终端
US20210349591A1 (en) Object processing method and terminal device
US10423264B2 (en) Screen enabling method and apparatus, and electronic device
CN110196667B (zh) 一种通知消息的处理方法及终端
WO2020192322A1 (zh) 显示方法及终端设备
CN109085968B (zh) 一种截屏方法及终端设备
WO2021083256A1 (zh) 触控响应方法及电子设备
US11861158B2 (en) Message processing method and electronic device
WO2020181956A1 (zh) 应用标识的显示方法及终端设备
WO2023025121A1 (zh) 显示方法、装置、电子设备及可读存储介质
WO2023040845A1 (zh) 消息发送方法、装置及电子设备
WO2023046184A1 (zh) 消息处理方法、装置和电子设备
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
CN112835485A (zh) 应用界面处理方法、装置、电子设备及可读存储介质
US20240045566A1 (en) Notification message display method and apparatus, device, readable storage medium, and chip
WO2022253182A1 (zh) 通信方法、装置、电子设备以及可读存储介质
WO2023046101A1 (zh) 图标显示方法、装置及电子设备
WO2022253181A1 (zh) 图标整理方法、装置和电子设备
WO2023030267A1 (zh) 弹框显示方法、装置、电子设备及可读存储介质
WO2020168882A1 (zh) 界面显示方法及终端设备
CN112148167A (zh) 控件设置方法、装置和电子设备

Legal Events

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

Ref document number: 22863402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE