Search

CN-122027739-A - Display method and electronic equipment

CN122027739ACN 122027739 ACN122027739 ACN 122027739ACN-122027739-A

Abstract

The application discloses a display method and electronic equipment. The application relates to the technical field of terminals. In the method, an interactive panel corresponding to the banner notification item may be displayed, and the interactive panel is displayed at a location that is a region convenient for the user to operate. The interactive panel may provide functionality that the banner notification entry is capable of providing. Thus, when the user holds the scroll bar with one hand, the user can conveniently complete the operation on the interactive panel without adjusting the holding gesture of the one hand and using the other hand, and the function of providing the banner notification item is realized. That is, the function provided by the banner notification entry may be implemented by an operation with the interactive panel instead of an operation with the banner notification entry.

Inventors

  • SHU XIN
  • XIONG XIAOYONG
  • LI CHENBO
  • NING SHANGMING
  • PAN XINGYU
  • FU QIUJIE
  • LIANG CHAO
  • TANG HONG

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250910

Claims (18)

  1. 1. A display method, wherein the method is applied to an electronic device, the method comprising: determining that the holding state of the electronic equipment is a first holding state; displaying a first notification item and a first interaction panel corresponding to the first notification item, wherein the first interaction panel is used for realizing all or part of functions of the first notification item; The first interactive panel is displayed in a left area of a screen used by the electronic equipment if the first holding state is left hand holding, in a right area of the screen used by the electronic equipment if the first holding state is right hand holding, in a left area of the screen used by the electronic equipment if the first holding state is both hands holding, in a right area of the screen used by the electronic equipment if the common holding state of the electronic equipment is left hand holding, in a right area of the screen used by the electronic equipment if the common holding state of the electronic equipment is right hand holding.
  2. 2. The method of claim 1, wherein prior to determining the grip state of the electronic device as the first grip state, the method further comprises: Receiving or generating a first notification message, the first notification entry containing the first notification message; The determining that the holding state of the electronic device is the first holding state specifically includes: and responding to the first notification message, and determining the holding state of the electronic equipment as the first holding state.
  3. 3. The method of claim 1, wherein prior to determining the grip state of the electronic device as the first grip state, the method further comprises: Receiving or generating a first notification message, the first notification entry containing the first notification message; determining the type of the first notification entry as a banner notification entry; The determining that the holding state of the electronic device is the first holding state specifically includes: And determining that the holding state of the electronic equipment is the first holding state under the condition that the type of the first notification item is a banner notification item.
  4. 4. A method according to any of claims 1-3, wherein after displaying a first notification entry and a first interactive panel corresponding to the first notification entry, the method further comprises: Determining that the holding state of the electronic equipment is a second holding state; continuing to display the first notification entry and the first interactive panel; If the first holding state is left hand holding, the second holding state is right hand holding, the first interactive panel is continuously displayed in a right side area of a screen used by the electronic equipment, and if the first holding state is left hand holding, the second holding state is both hand holding, the first interactive panel is continuously displayed in a left side area of the screen used by the electronic equipment; If the first holding state is right hand holding and the second holding state is left hand holding, the first interactive panel continues to be displayed in a left side area of a screen used by the electronic equipment; if the first holding state is right hand holding and the second holding state is double hand holding, the first interactive panel is continuously displayed in a right side area of a screen used by the electronic equipment; If the first holding state is holding by two hands and the second holding state is holding by left hand, the first interactive panel continues to be displayed in the left area of the screen used by the electronic equipment, and if the first holding state is holding by two hands and the second holding state is holding by right hand, the first interactive panel continues to be displayed in the right area of the screen used by the electronic equipment.
  5. 5. A method according to any of claims 1-3, wherein after displaying a first notification entry and a first interactive panel corresponding to the first notification entry, the method further comprises: Determining that the holding state of the electronic equipment is a holding-free state; And keeping the display position of the first interaction panel unchanged, and continuing to display the first notification item and the first interaction panel in a screen used by the electronic equipment.
  6. 6. The method according to claim 4 or 5, wherein the electronic device comprises a first display screen, a second display screen and a third display screen, the first display screen is connected with the second display screen through a folding component, the second display screen is opposite to a display surface of the third display screen, the structural form of the electronic device comprises a folded state and an unfolded state, a screen used by the electronic device is the third display screen when the electronic device is in the folded state, and a screen used by the electronic device is a screen formed by the first display screen and the second display screen when the electronic device is in the unfolded state.
  7. 7. The method of claim 6, wherein after displaying a first notification entry and a first interactive panel corresponding to the first notification entry, before determining that the holding state of the electronic device is the second holding state or determining that the holding state of the electronic device is the no holding state, the method further comprises: The electronic equipment is switched from a folded state to an unfolded state, or the electronic equipment is switched from the unfolded state to the folded state; the determining that the holding state of the electronic device is the second holding state specifically includes: After the electronic equipment finishes the switching of the structural form, determining the holding state of the electronic equipment as the second holding state; The determining that the holding state of the electronic device is a holding-free state specifically includes: and after the electronic equipment finishes the switching of the structural form, determining that the holding state of the electronic equipment is a holding-free state.
  8. 8. The method of claim 6, wherein after displaying a first notification entry and a first interactive panel corresponding to the first notification entry, before determining that the holding state of the electronic device is the second holding state or determining that the holding state of the electronic device is the no holding state, the method further comprises: The electronic equipment in the unfolded state is rotated, and the layout direction of the electronic equipment is switched from the first direction to the second direction.
  9. 9. The method according to any one of claims 1-8, further comprising: Determining that the holding state of the electronic equipment is a third holding state; continuing to display the first notification entry and the first interactive panel; the third holding state is determined according to sensor data acquired in adjacent first time period and second time period respectively, the first time period is located before the second time period, and the ending point of the second time period is the moment when the holding state of the electronic equipment is determined to be the third holding state.
  10. 10. The method of claim 9, wherein if the determined grip state based on the sensor data acquired during the first period of time is different from the determined grip state based on the sensor data acquired during the second period of time, the third grip state is the same as a fourth grip state that is a previous grip state of the third grip state determined by the electronic device; And if the holding state determined according to the sensor data acquired in the first time period is the same as the holding state determined according to the sensor data acquired in the second time period, the third holding state is the holding state determined according to the sensor data acquired in the first time period.
  11. 11. The method according to any one of claims 1-10, further comprising: Determining that the holding state of the electronic equipment is holding by two hands, and displaying the first interactive panel at a first position, wherein if the common holding state of the electronic equipment is holding by a left hand, the first position is a left side area in a screen used by the electronic equipment, and if the common holding state of the electronic equipment is holding by a right hand, the first position is a right side area in the screen used by the electronic equipment; determining that the holding state of the electronic equipment is switched from double-hand holding to single-hand holding; If the holding state of the electronic equipment is not switched from holding by one hand to holding by both hands within a second duration after the holding state of the electronic equipment is switched from holding by both hands to holding by both hands, displaying the first interactive panel at a second position, wherein if the holding by one hand is holding by left hand, the second position is a left side area in a screen used by the electronic equipment, and if the holding by one hand is holding by right hand, the second position is a right side area in the screen used by the electronic equipment; And if the holding state of the electronic equipment is switched from holding by two hands to holding by one hand within the second duration after the holding state of the electronic equipment is switched from holding by two hands to holding by one hand, displaying the first interactive panel at the first position.
  12. 12. The method of claim 11, wherein after determining that the grip state of the electronic device is switched to one-hand grip, the method further comprises: and determining that the electronic equipment is in a game scene and/or a horizontal screen state.
  13. 13. The method of any of claims 1-12, wherein the first interactive panel comprises a first control, the first notification entry comprises the first control, or does not comprise the first control.
  14. 14. The method according to any one of claims 1-13, further comprising: receiving a first operation acting on the first notification entry or receiving a second operation acting on the first interactive panel; stopping displaying the first notification item and the first interactive panel; receiving a third operation acting on the first notification entry or receiving a fourth operation acting on the first interactive panel; and displaying a first user interface provided by the first application and corresponding to the first notification message, and stopping displaying the first notification item and the first interaction panel.
  15. 15. The method of any one of claims 1-14, wherein the notification message included in the first notification entry is one of an incoming call notification message, an alarm alert notification message, a take away payment message, a flight boarding message, a music message, a system update message, and an open play alert message.
  16. 16. An electronic device comprising a memory, a processor, and computer instructions stored on the memory, the processor executing the computer program to implement the method of any one of claims 1-15.
  17. 17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-15.
  18. 18. A computer program product comprising computer instructions which, when executed by a processor, implement the method of any one of claims 1-15.

Description

Display method and electronic equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to a display method and an electronic device. Background When the user uses the electronic device, the holding state of the electronic device may be single-hand holding, double-hand holding or no holding. The electronic device, upon receiving the notification message, may display a notification entry containing the notification message. The user can use the function provided by the notification entry by an operation acting on the notification entry. There may be inconvenience in that the user performs the operation. Disclosure of Invention The application provides a display method and electronic equipment, so that a user can conveniently complete the operation on an interactive panel without adjusting the holding gesture of one hand and using the other hand when holding the electronic equipment by one hand, and the function of providing a banner notification item is realized. In a first aspect, the application provides a display method applied to an electronic device, the method comprises the steps of determining that a holding state of the electronic device is a first holding state, displaying a first notification item and a first interaction panel corresponding to the first notification item, wherein the first interaction panel is used for realizing all or part of functions of the first notification item, the first interaction panel is displayed in a left side area of a screen used by the electronic device if the first holding state is left hand holding, the first interaction panel is displayed in a right side area of the screen used by the electronic device if the first holding state is right hand holding, and the first interaction panel is displayed in a left side area of the screen used by the electronic device if the first holding state is double hand holding, and the first interaction panel is displayed in a right side area of the screen used by the electronic device if the first holding state is left hand holding. For example, the first holding state may be a holding state corresponding to the holding hand 1, and the common holding state is a holding state corresponding to the common hand. The first notification entry may refer to banner notification entry 1 and the first interactive panel may refer to interactive panel 1. The left region of the screen may refer to the left side of the screen and the right region of the screen may refer to the right side of the screen. The above-described relation between the first holding state and the position of the first interactive panel may also be referred to the following related description of table 1. For example, the schematic diagrams of the display interactive panel for left hand holding, right hand holding, both hand holding, and no hand holding may refer to the following scenarios shown in fig. 3A-3E. In particular, the electronic device displays the interactive panel 1 based on the currently determined grip 1, and reference may be made specifically to the following detailed description about scenario one. By implementing the method provided in the first aspect, when the user holds the device with one hand, the user can conveniently complete the operation on the interactive panel without adjusting the holding gesture of the single hand and using the other hand, and the function provided by the banner notification item is realized. That is, the function provided by the banner notification entry may be implemented by an operation with the interactive panel instead of an operation with the banner notification entry. In some embodiments, in combination with the first aspect, before determining that the holding state of the electronic device is the first holding state, the method further comprises receiving or generating a first notification message, the first notification entry containing the first notification message, and the determining that the holding state of the electronic device is the first holding state specifically comprises determining that the holding state of the electronic device is the first holding state in response to the first notification message. The first notification message may refer to a notification message included in the first notification entry, for example. That is, in embodiments of the present application, the receipt of a notification message by the electronic device may trigger the electronic device to begin determining to hold the hand. In this case, the type of the first notification message is not limited, and any type of notification message may trigger the determination of the grip to determine the display position of the interactive panel. In combination with the first aspect, in some embodiments, before determining that the holding state of the electronic device is the first holding state, the method further includes receiving or generating a first notification message, w