Message display method, message display device, electronic equipment and medium

By determining the display parameters of the message prompt box and page content in the electronic device, ensuring that the message prompt box does not obscure the page content, the problem of the message prompt box blocking the content in the prior art is solved, and a flexible message display method is realized.

CN119620990APending Publication Date: 2025-03-14VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411841445.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

When existing electronic devices display message prompt boxes, they can easily block the content of the displayed page on the screen, causing users to set message blocking or not to disturb, resulting in the missing important prompt messages.

Method used

By determining the display parameters of the message prompt box and page content, including the display size and display area, ensure that the message prompt box does not obstruct the display area of ​​the page content when it is displayed on the page.

Benefits of technology

It realizes that when displaying the message prompt box, the page content is not blocked, so that message blocking or distraction is not required, and users avoid missing important prompt messages, improving the flexibility of electronic devices to display messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620990A_ABST
    Figure CN119620990A_ABST
Patent Text Reader

Abstract

The invention discloses a message display method, a message display device, electronic equipment and a medium, and belongs to the technical field of display, the message display method comprises the steps that display parameters of a first object are determined, and the first object comprises at least one of a message prompt box of a first message and content of a first page, the display parameters comprise at least one of a display size and a display area; according to the display parameters, a message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of the content of the first page is not overlapped with the display area of the message prompt box.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of display technology, and specifically relates to a message display method, a message display device, an electronic device and a storage medium. Background Art

[0002] With the widespread popularity of electronic devices, people's lives are closely related to electronic devices. As an important tool for daily communication and entertainment, electronic devices are also used in various scenarios in life. In related technologies, applications in electronic devices can usually send prompt messages through message prompt boxes to remind users of the content in the application.

[0003] Usually, when an electronic device displays a message prompt box, the message prompt box occupies a part of the screen of the electronic device, thereby blocking the original display content of the display page on the screen. For example, the content that the user needs to view will be blocked by the message prompt box. If the user does not want the message prompt box to block the display content on the display page, the user can set the message blocking or message do not disturb on the electronic device.

[0004] However, the above message shielding or do not disturb mode will cause the electronic device to shield all messages, causing the user to miss important prompt messages. Therefore, the way in which the electronic device displays messages in the existing solution is not flexible enough. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a message display method, a message display device, an electronic device and a storage medium, which can improve the flexibility of the way in which the electronic device displays messages.

[0006] In a first aspect, an embodiment of the present application provides a message display method, the method comprising:

[0007] Determine display parameters of a first object, the first object includes at least one of the following: a message prompt box of a first message and content of a first page, and the display parameters include at least one of the following: display size and display area;

[0008] According to the display parameters, a message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0009] In a second aspect, an embodiment of the present application provides a message display device, the device comprising:

[0010] Determine the module and display the module; wherein,

[0011] A determination module, configured to determine display parameters of a first object, the first object comprising at least one of the following: a message prompt box of a first message and content of a first page, and the display parameters comprising at least one of the following: a display size and a display area;

[0012] The display module is used to display a message prompt box on the first page according to the display parameters, wherein the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the message display method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the message display method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the message display method as described in the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the message display method as described in the first aspect.

[0017] In an embodiment of the present application, the display parameters of the first object are determined, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area; according to the display parameters, a message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box. In this way, in the present application, the message prompt box is displayed on the first page by at least one of the display size and display area of ​​the message prompt box and the content of the first page, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, and no matter which display area of ​​the message prompt box on the first page is displayed, it will not block the content of the first page, so there is no need to set message shielding or do not disturb mode, and it will not cause users to miss important prompt messages, thereby improving the flexibility of electronic devices to display messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1This is one of the flowcharts of the message display method provided in the embodiment of the present application;

[0019] Figure 2 This is the second flow chart of the message display method provided in the embodiment of the present application;

[0020] Figure 3A It is one of the schematic diagrams of the message display interface provided in the embodiment of the present application;

[0021] Figure 3B This is the second schematic diagram of the message display interface provided in the embodiment of the present application;

[0022] Figure 3C This is the third schematic diagram of the message display interface provided in the embodiment of the present application;

[0023] Figure 3D This is the fourth schematic diagram of the message display interface provided in the embodiment of the present application;

[0024] Figure 3E This is the fifth schematic diagram of the message display interface provided in the embodiment of the present application;

[0025] Figure 4 This is the third flow chart of the message display method provided in the embodiment of the present application;

[0026] Figure 5 This is the fourth flow chart of the message display method provided in the embodiment of the present application;

[0027] Figure 6 This is the fifth flow chart of the message display method provided in the embodiment of the present application;

[0028] Figure 7 This is the sixth flow chart of the message display method provided in the embodiment of the present application;

[0029] Figure 8 is a schematic diagram of a message display device provided in an embodiment of the present application;

[0030] Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0031] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0034] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0035] The message display method, message display device, electronic device and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0036] The message display method, message display device, electronic device and medium provided in the embodiments of the present application can be applied to message display scenarios of mobile phones.

[0037] In one scenario, the message display method provided in the embodiment of the present application can be applied to a scenario where a navigation page and a prompt message of a social APP are displayed on the screen of a mobile phone at the same time.

[0038] When the user uses the "Map" APP in the mobile phone for navigation, the mobile phone can display the navigation page of the "Map" APP on the screen, and the user can drive the vehicle according to the navigation route displayed on the navigation page. If the social APP on the mobile phone sends a prompt message to the user at this time, the mobile phone can display a message prompt box on the screen so that the user can view the message content of the prompt message of the social APP through the message prompt box. However, the message prompt box will occupy a considerable area on the screen, thereby blocking the navigation route displayed on the navigation page on the screen, thereby affecting the user's driving of the vehicle. If the user does not want the message prompt box to block the navigation route displayed on the navigation page, the user can set message shielding or message do not disturb on the mobile phone. However, the above-mentioned message shielding or do not disturb method will cause the mobile phone to shield all messages, causing the user to miss important prompt messages. Therefore, the way in which the mobile phone displays messages in the existing scheme is not flexible enough.

[0039] In one scenario, the message display method provided in the embodiment of the present application can be applied to a scenario where a game page and a text message prompt message are displayed simultaneously on the screen of a mobile phone.

[0040] When a user uses a mobile phone to play games, the mobile phone can display the game page of the game APP on the screen. If a text message is received on the mobile phone at this time, the mobile phone can display a message prompt box of the text message prompt message on the screen so that the user can view the text message content through the message prompt box. However, if the message content of the text message prompt message is too much, when the mobile phone displays the message prompt box, the message prompt box will occupy a considerable area on the screen, thereby blocking the game screen content of the game page on the screen, thereby affecting the user's gaming experience. If the user does not want the message prompt box to block the game screen content displayed on the game page, the user can set message shielding or message do not disturb on the mobile phone. However, the above-mentioned message shielding or do not disturb method will cause the mobile phone to shield all messages, causing the user to miss important prompt messages. Therefore, the way in which the mobile phone displays messages in the existing scheme is not flexible enough.

[0041] To this end, the display parameters of the first object are determined, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area; according to the display parameters, a message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box. Thus, in the present application, the message prompt box is displayed on the first page by at least one of the display size and display area of ​​the message prompt box and the content of the first page, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, and no matter which display area of ​​the message prompt box on the first page is displayed, it will not block the content of the first page, so there is no need to set a message shielding or do not disturb mode, and it will not cause the user to miss important prompt messages, thereby improving the flexibility of electronic devices in displaying messages.

[0042] The execution subject of the message display method provided in the embodiment of the present application may be a message display device. Exemplarily, the message display device may be an electronic device, or a functional component or functional entity in the electronic device. The following will take the execution subject as an electronic device as an example to exemplarily illustrate the message display method provided in the embodiment of the present application.

[0043] Figure 1 is a flow chart of a message display method provided in an embodiment of the present application, such as Figure 1 As shown, the message display method provided in the embodiment of the present application may include the following steps 101 and 102.

[0044] Step 101: The electronic device determines display parameters of a first object.

[0045] In some embodiments of the present application, the first object includes at least one of the following: a message prompt box of the first message and content of the first page, and the display parameter includes at least one of the following: display size and display area.

[0046] In some embodiments of the present application, the first page may be a page of any application on the electronic device, and the content of the first page may be application content of the application.

[0047] In some embodiments of the present application, the first page may also be the main interface of the electronic device, or the lock screen interface of the electronic device.

[0048] Step 102: The electronic device displays a message prompt box on the first page according to the display parameters.

[0049] In some embodiments of the present application, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0050] In an embodiment of the present application, the display parameters of the first object are determined, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area; according to the display parameters, a message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box. In this way, in the present application, the message prompt box is displayed on the first page by at least one of the display size and display area of ​​the message prompt box and the content of the first page, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, and no matter which display area of ​​the message prompt box on the first page is displayed, it will not block the content of the first page, so there is no need to set message shielding or do not disturb mode, and it will not cause users to miss important prompt messages, thereby improving the flexibility of electronic devices to display messages.

[0051] In some embodiments of the present application, Figure 1 ,like Figure 2 As shown, the above step 101 can be implemented by the following step 101a and the following step 101b:

[0052] Step 101a: When the message prompt box obscures the content of the first page, the electronic device obtains first size information.

[0053] In some embodiments of the present application, the first size information is the size information of the message prompt box.

[0054] In some embodiments of the present application, the electronic device can obtain the first size information when the message prompt box of the first message covers the valid content of the first page. It should be noted that the icon on the first page is not the valid content of the first page.

[0055] In some embodiments of the present application, the first message may be a prompt message sent by a first application on the electronic device. When the first page content is displayed on the screen of the electronic device, when the electronic device receives the first message, the message prompt box may be displayed in a floating manner on the screen of the electronic device, and the message content of the first message may be displayed in the message prompt box.

[0056] In some embodiments of the present application, the electronic device can display the above-mentioned message prompt box in a floating manner at any position on the screen of the electronic device.

[0057] Exemplarily, the above-mentioned arbitrary position may include one of the following: a status bar, a notification bar, a task bar, a virtual navigation bar, and a top area of ​​the screen.

[0058] In some embodiments of the present application, the shape of the message prompt box can be any possible shape such as a circle, a rectangle, a triangle, a diamond, a ring or a polygon, etc. The specific shape can be determined according to actual use requirements and is not limited in the embodiments of the present application.

[0059] In some embodiments of the present application, when the shape of the message prompt box is a rectangle, the first size information may include a first area, a first length and a first width of the message prompt box.

[0060] In some embodiments of the present application, when a user drags a message prompt box, the message prompt box may move on the screen along with the user's dragging operation.

[0061] In some embodiments of the present application, the message prompt box may be displayed in a screen component, and the screen component may be displayed in a floating manner on the screen of the electronic device.

[0062] In some embodiments of the present application, the screen component may be a control in the electronic device that is not dependent on a certain application. In other words, the screen component may be displayed in any interface of the electronic device.

[0063] In some embodiments of the present application, the above-mentioned screen component may also be an atomic island.

[0064] In some embodiments of the present application, the above-mentioned atomic island is also called an interactive component, which is an interactive area similar to an "island" formed around the front camera. This area can also be understood as an interactive area in the screen corresponding to the front camera of the electronic device, and can also be called the atomic island area. The atomic island can include various status information, such as time, network status, battery power, etc., and can also display some simple notification messages, such as text messages, email notifications, etc. The atomic island is a brand-new status bar embedded interactive module, which can dynamically display electronic equipment such as mobile phone status information and application information running in the background, can interact by clicking, long pressing, and sliding, and can display a variety of information, such as including music playback, recording, Bluetooth headset connection, timer, ringtone, taxi, flight mode, etc., and can also call out a floating menu for simple operations, such as switching songs, pausing timers, etc.

[0065] In some embodiments of the present application, the shape of the screen assembly may be any possible shape such as a circle, a rectangle, a triangle, a rhombus, a ring or a polygon, etc. The specific shape may be determined according to actual use requirements and is not limited in the embodiments of the present application.

[0066] It should be noted that when a message prompt box is displayed in the above-mentioned screen component, the shape and size information of the above-mentioned message prompt box may be consistent with the above-mentioned screen component.

[0067] In some embodiments of the present application, the above-mentioned screen component may be a floating control.

[0068] Exemplarily, the screen component can be displayed in a floating manner at any position on the screen. When the user drags the screen component, the screen component can move on the screen along with the user's dragging operation, and the message prompt box will move along with the movement of the screen component.

[0069] It should be noted that, when the user wants to operate the screen component later, the screen component can be controlled to move through specific input, and the message prompt box will move with the movement of the screen component.

[0070] In some embodiments of the present application, the above-mentioned screen component can also be displayed in a superimposed manner at the first position with a preset transparency.

[0071] For example, assuming that the preset transparency is recorded as T, the value range of T can be 0% <T<100%。

[0072] In some embodiments of the present application, the background color of the screen component may also change. For example, if the content of the first application program of the first application program changes, the background color of the screen component may also change accordingly.

[0073] In some embodiments of the present application, the above-mentioned screen component can also be displayed at high brightness or low brightness to remind the user of the specific display position of the screen component.

[0074] In actual implementation, the above screen component can be displayed in any possible form at a preset position. This embodiment of the present application does not specifically limit it. For example, the screen component can be displayed in a suspended state bar on the screen.

[0075] In some embodiments of the present application, the above-mentioned screen component can be fixedly displayed at a certain position on the screen.

[0076] Exemplarily, the screen component can be fixedly displayed in a preset position on the screen of the electronic device. For example, the preset position includes at least one of the following: a status bar, a notification bar, a task bar, and a virtual navigation bar.

[0077] In some embodiments of the present application, the above-mentioned first application can be any application in the electronic device, and the present application does not limit this.

[0078] In some embodiments of the present application, the first application may include but is not limited to any of the following: navigation applications, social software applications, shopping applications, video applications, photo album applications, music applications, etc. The specific application may be determined according to actual usage requirements and is not limited in the embodiments of the present application.

[0079] In some embodiments of the present application, the electronic device can display the above-mentioned message prompt box in suspension on the screen of the electronic device. If it is determined that the display area of ​​the above-mentioned message prompt box on the screen originally displays the first page content of the first page, that is, the display area of ​​the above-mentioned message prompt box on the screen is not a blank area of ​​the above-mentioned first page, then it is determined that the message prompt box obscures the first page content.

[0080] For example, take the electronic device as a mobile phone. Figure 3A As shown, the first page is displayed on the screen 30 of the mobile phone. When the mobile phone receives the first message pushed by the social APP, combined with Figure 3A ,like Figure 3B As shown, a message prompt box 31 of a first message can be suspended and displayed on the screen 30, the first message is displayed in the message prompt box 31, and the shape of the message prompt box 31 is rectangular. If the message prompt box 31 blocks the content of the first page displayed on the screen 30, the electronic device can obtain the first size information of the message prompt box 31, and the first size information includes the first area S0, the first length a0 and the first width b0 of the message prompt box 31.

[0081] Step 101b: The electronic device determines display parameters of the first object based on the first size information.

[0082] In some embodiments of the present application, the first object includes the message prompt box, and the display parameter includes a display area; Figure 2 ,like Figure 4 As shown, the above step 101b can be implemented by the following step 101b1:

[0083] Step 101b1: When the second size information and the first size information of the first blank area satisfy a first condition, the electronic device determines the display area of ​​the first blank area as the display area of ​​the message prompt box.

[0084] In some embodiments of the present application, the first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0085] In some embodiments of the present application, the electronic device may, upon receiving the first message, obtain all blank areas in the first page and the size information of each of all the blank areas, and then determine the first blank area that meets the first condition from all the blank areas in the first page based on the size information of each blank area.

[0086] In some embodiments of the present application, the shape of the first blank area may be consistent with the shape of the message prompt box. For example, when the shape of the message prompt box is rectangular, the shape of the first blank area is rectangular. For another example, when the shape of the message prompt box is circular, the shape of the first blank area is circular.

[0087] In some embodiments of the present application, when the above-mentioned first blank area is a rectangular area, the above-mentioned first size information may include the first area, first length and first width of the above-mentioned message prompt box; the above-mentioned second size information may include the second area, second length and second width of the above-mentioned first blank area; the above-mentioned first condition may include: the above-mentioned second area is greater than or equal to the above-mentioned first area.

[0088] In some embodiments of the present application, the first condition may further include: the second length is greater than or equal to the first length, and the second width is greater than or equal to the first width.

[0089] It should be noted that when the second size information of the first blank area and the first size information meet the first condition, it indicates that the size of the first blank area is greater than or equal to the size of the message prompt box, and the display area of ​​the first blank area is determined as the display area of ​​the message prompt box, and then when the message prompt box is displayed in the first blank area, the message prompt box will not block the content of the first page. Then, when the second size information of the first blank area and the first size information meet the first condition, the electronic device can display the message prompt box in the first blank area, so that the message prompt box will not block the content of the first page.

[0090] For example, combining Figure 3B ,like Figure 3C As shown, the blank areas on the first page include blank area 321, blank area 322 and blank area 323. Among them, the shapes of blank area 321, blank area 322 and blank area 323 are all rectangular, and the size information of blank area 321 includes the area S1, length a1 and width b1 of blank area 312; the size information of blank area 322 includes the area S2, length a2 and width b2 of blank area 313; the size information of blank area 323 includes the area S3, length a3 and width b3 of blank area 314. If the size information of blank area 323 and the first size information meet the first condition, that is, the area S3 of blank area 323 is greater than or equal to the first area S0 of the message prompt box, and the length a3 of blank area 323 is greater than or equal to the first length a0 of the message prompt box, and the width b3 of blank area 323 is greater than or equal to the first width b0 of the message prompt box, then blank area 323 is the first blank area, and the mobile phone can use the display area of ​​blank area 323 as the display area of ​​the message prompt box. Combined with Figure 3B ,like Figure 3D As shown, the mobile phone can display the message prompt box 31 in the blank area 323.

[0091] In this way, the electronic device determines the display area of ​​the first blank area as the display area of ​​the message prompt box when the second size information of the first blank area and the first size information meet the first condition, so that the electronic device can display the message prompt box in the first blank area, so that the first message can be displayed normally without blocking the content of the first page, and the message can be displayed flexibly.

[0092] In this way, the electronic device obtains the first size information when the message prompt box of the first message blocks the content of the first page; the electronic device determines the display parameters of the first object based on the first size information, and then when displaying the first object according to the display parameters, the display area of ​​the content of the first page and the display area of ​​the message prompt box are not overlapped, and no matter which display area of ​​the first page the message prompt box is displayed in, it will not block the content of the first page, so there is no need to set message shielding or do not disturb mode, and it will not cause users to miss important prompt messages, thereby improving the flexibility of the electronic device in displaying messages.

[0093] In some embodiments of the present application, the above display parameters include display size, combined with Figure 2 ,like Figure 5 As shown, the above step 101b can be implemented by the following step 101b2:

[0094] Step 101b2: When the second size information and the first size information of the first blank area do not satisfy the first condition, the electronic device determines the display size of the first object.

[0095] In some embodiments of the present application, the display area for the content of the first page may be a display area for all the content of the first page.

[0096] In some embodiments of the present application, the second size information and the first size information do not satisfy the first condition, indicating that the size of all blank areas on the first page is smaller than the size of the message prompt box, and no matter where the message prompt box is suspended on the screen, the message prompt box will block the content of the first page displayed on the screen. Therefore, when the second size information and the first size information do not satisfy the first condition, the electronic device can reduce the display size of the first object until the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, and determine the display size of the first object so that the message prompt box does not block the content of the first page.

[0097] In some embodiments of the present application, the display size of the first object includes at least one of the display length of the first object and the display width of the first object. The electronic device can reduce at least one of the display length and the display width of the first object until the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box, and determine at least one of the display length of the first object and the display width of the first object.

[0098] In some embodiments of the present application, when a message prompt box is displayed floating in the top area of ​​the screen, if there is a blank area in the area covered by the message prompt box, the electronic device can determine the display size of the message prompt box as the size of the blank area, and display the message prompt box in the blank area according to the size of the blank area, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0099] In some embodiments of the present application, after the electronic device determines the display size of the message prompt box, the electronic device also needs to reduce the message content of the first message according to the ratio of the reduction of the display size of the prompt box, so that the message content of the first message can be displayed in the reduced message prompt box.

[0100] It should be noted that, when the message prompt box is displayed in the top area of ​​the screen, if the display size of the message prompt box is determined to be the size of the blank area, the display ratio of the message content of the first message is too small, which will cause the message content of the first message to be unclear, or there is no blank area in the area covered by the message prompt box. In this case, the electronic device can simultaneously reduce the size information of the message prompt box and the size information of the content of the first page until the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0101] In some embodiments of the present application, when the message prompt box is displayed in the top area of ​​the screen, the electronic device also separately reduces the size information of the content of the first page so that the content of the first page is displayed in the area of ​​the screen except for the message prompt box, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0102] It should be noted that, when reducing the display size of the content of the first page, the electronic device may reduce the display size of the content of the first page as a whole.

[0103] Example 1: When the electronic device is a mobile phone, and the message prompt box is displayed vertically in the top area of ​​the mobile phone screen, the length of the mobile phone screen is a and the width is b. When the first page is displayed in full screen on the mobile phone screen, if the message prompt box blocks the content of the first page, the mobile phone can reduce the width of the message prompt box from b0 to b4, reduce the overall display width of the content of the first page from b to b-b0+b4, and reduce the display length of the message prompt box in accordance with the ratio of the reduction of the display width of the message prompt box, that is, reduce the display length of the message prompt box from a0 to a0*(b0-b4) / b, and reduce the display length of the content of the first page in accordance with the ratio of the reduction of the display width of the content of the first page, that is, reduce the display length of the content of the first page from a to a*(b-b0+b4) / b. That is, the electronic device can determine that the display length of the message prompt box is a0*(b0-b4) / b, the display width of the message prompt box is b4, the display width of the content of the first page is b-b0+b4, and the display length of the content of the first page is a*(b-b0+b4) / b. In this way, when the mobile phone displays the message prompt box according to the display length and display width of the message prompt box, and displays the content of the first page according to the display length and display width of the content of the first page, the display area of ​​the content of the first page and the display area of ​​the message prompt box do not overlap. Among them, b is greater than or equal to b0+b4, and b0 is greater than b4.

[0104] Example 2: When the electronic device is a mobile phone, and the message prompt box is displayed vertically in the top area of ​​the mobile phone screen, the length of the mobile phone screen is a, and the width is b. When the first page is displayed in full screen on the mobile phone screen, if the message prompt box blocks the content of the first page, the mobile phone can reduce the display width of the content of the first page from b to b-b0, and reduce the display length of the content of the first page according to the ratio of the reduction of the display width of the content of the first page, that is, reduce the display length of the content of the first page from a to a*(b-b0) / b. That is, the electronic device can determine that the display length of the content of the first page is a*(b-b0) / b, and the display width of the content of the first page is b-b0. In this way, when the mobile phone displays the content of the first page according to the display length and display width of the content of the first page, the content display area of ​​the first page can be made not to overlap with the display area of ​​the message prompt box.

[0105] Combination Figure 3B ,like Figure 3E As shown, the display area and display size of the message prompt box 31 remain unchanged, the display size of the content of the first page is reduced compared with the original, and the content of the first page is displayed in the display area of ​​the screen 30 except for the message prompt box 31, and the display area of ​​the message prompt box 31 does not overlap with the display area of ​​the content of the first page.

[0106] It should be noted that if the message prompt box is displayed in other edge areas of the screen, the electronic device can reduce the display size of the first object in a similar manner to the message prompt box displayed in the screen area, until the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, so as to determine the display size of the first object. To avoid repetition, this embodiment will not be repeated here.

[0107] It should be noted that if the message prompt box is not displayed in a floating manner at the edge of the screen, the electronic device can receive a first input from the user to the message prompt box, and in response to the first input, the message prompt box is displayed in a floating manner at the top of the screen, and then the display size information of the first object is reduced in a similar manner to the message prompt box being displayed in a floating manner at the top of the screen, until the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box, so as to determine the display size of the first object. The first input is used to indicate that the message prompt box is displayed in the top area of ​​the screen.

[0108] In some embodiments of the present application, the above-mentioned first input may include any of the following: user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.

[0109] In some embodiments of the present application, the above-mentioned gesture input may include but is not limited to at least one of the following: click gesture, sliding gesture, drag gesture, pressure recognition gesture, long press gesture, area change gesture, double press gesture, double click gesture, specific gesture input or other possible gesture inputs. The specific gesture input form can be determined according to actual needs and is not limited to this in some embodiments.

[0110] In some embodiments of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long-press input or a short-press input, which is not limited in some embodiments.

[0111] In some embodiments of the present application, the above-mentioned sliding input can be a sliding input in any direction, such as sliding up, sliding down, sliding to the left or sliding to the right, etc., which is not limited in some embodiments.

[0112] In this way, the electronic device determines the display size of the first object when the second size information and the first size information do not satisfy the first condition, so that the display area of ​​the content of the first page and the display area of ​​the message prompt box do not overlap, so that the message prompt box does not block the content of the first page when displayed, and the message can be displayed flexibly.

[0113] In some embodiments of the present application, the first object includes the content of the first page, and the display parameter includes a display area; Figure 2 ,like Figure 6 As shown, the above step 101b can be implemented by the following step 101b3:

[0114] Step 101b3: When the second size information and the first size information of the first blank area do not satisfy the first condition, the electronic device determines a display area for the content of the first page.

[0115] In some embodiments of the present application, when the message prompt box is displayed in the top area of ​​the screen, the electronic device can move the display area of ​​the content of the first page down by a first distance, and the first distance is greater than or equal to the first width of the message prompt box. That is, the electronic device can determine that the display area of ​​the content of the first page is below the top area of ​​the screen and is at a first distance from the top area of ​​the screen. In this way, the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0116] It should be noted that after the electronic device moves the display area of ​​the content of the first page downward by the target distance, part of the content of the first page may not be displayed on the screen. At this time, the electronic device can receive a second input from the user on the first page, and display the above part of the content in response to the second input. The second input is used to instruct to display the above part of the content.

[0117] In some embodiments of the present application, the second input may include any one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.

[0118] It should be noted that if the message prompt box is displayed in the edge area of ​​the screen, the electronic device can move the first page content in the same manner as the message prompt box is displayed in the screen area until the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box. To avoid repetition, this embodiment will not be repeated here.

[0119] It should be noted that if the message prompt box is not displayed in other edge areas of the screen, the electronic device can receive the user's first input to the message prompt box, and in response to the first input, display the message prompt box in a floating manner in the top area of ​​the screen, and then move the first page content in the same manner as the message prompt box is displayed in the top area of ​​the screen until the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box. To avoid repetition, this embodiment will not be repeated here.

[0120] In some embodiments of the present application, if the message prompt box is displayed at the edge of the screen, the electronic device can use the location area where the message prompt box is located as the starting area position, and move the starting area position and all the contents below the starting area position downward by the target distance, so as to display the first page in two parts, one part is displayed above the message prompt box, and the other part is displayed below the message prompt box. In this way, the display area of ​​the content of the first page and the display area of ​​the message prompt box can also be made not to overlap.

[0121] In this way, the electronic device moves the content of the first page until the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box when the second size information and the first size information do not satisfy the first condition. This enables the electronic device to move the content of the first page when the message prompt box cannot be displayed in the blank area, so that the message prompt box does not block the content of the first page when displayed, and the message can be displayed flexibly.

[0122] In some embodiments of the present application, the first page includes at least two second blank areas; the first blank area is the largest blank area among the plurality of second blank areas.

[0123] In some embodiments of the present application, after obtaining the size information of each blank area in all blank areas of the first page, the electronic device can determine whether the size information of each blank area and the first size information satisfy a first condition, so as to determine multiple second blank areas whose size information and the first size information satisfy the first condition from all the blank areas.

[0124] In some embodiments of the present application, if there is only one second blank area among all the blank areas whose size information and the first size information satisfy the first condition, then the one second blank area is the first blank area.

[0125] In this way, the electronic device uses the largest blank area in the second blank area and the blank area that meets the first condition as the first blank area, and displays a message prompt box in the first blank area. It can display the first message normally without blocking the content of the first page, thereby being able to display the message flexibly.

[0126] In some embodiments of the present application, the first object includes the first page content; after the above step 102, the message display method provided by the present application may further include the following step 103:

[0127] Step 103: When the message prompt box is not displayed on the first page, the electronic device restores the display parameters of the first page content.

[0128] In some embodiments of the present application, after the electronic device displays the above-mentioned message prompt box on the screen in suspension for a preset period of time, it will automatically exit the above-mentioned message prompt box from the screen, and then the message prompt box will not be displayed on the first page.

[0129] In some embodiments of the present application, if the electronic device reduces the display size of the content of the first page when the message prompt box obscures the content of the first page, then when the message prompt box is not displayed on the first page, the electronic device can restore the display of the content of the first page to the display size before the reduction.

[0130] Example three, combined with example one: if when the message prompt box blocks the content of the first page, the mobile phone reduces the display width of the content of the first page from b to b-b0-b4, and reduces the display length of the content of the first page from a to a*(b-b0+b4) / b, then when the message prompt box is not displayed on the first page, the electronic device can enlarge the display width of the content of the first page from b-b0-b4 to b, and enlarge the display length of the content of the first page from a*(b-b0+b4) / b to a.

[0131] Example 4, combined with Example 2: If the message prompt box blocks the content of the first page, the mobile phone reduces the display width of the content of the first page from b to b-b0, and reduces the display length of the content of the first page from a to a*(b-b0) / b. If the message prompt box is not displayed on the first page, the electronic device can enlarge the display width of the content of the first page from b-b0 to b, and enlarge the display length of the content of the first page from a*(b-b0) / b to a.

[0132] In some embodiments of the present application, if the electronic device moves the content of the first page when the message prompt box obscures the content of the first page, then when the message prompt box is not displayed on the first page, the electronic device can move the content of the first page to the original display area.

[0133] In some embodiments of the present application, if the electronic device blocks the content of the first page when the message prompt box is blocked, the electronic device may move the entire content of the first page up by a target distance to move the content of the first page to the original display area.

[0134] In this way, the electronic device can restore the display parameters of the first page content when the message prompt box is not displayed on the first page, and can restore the first page content to its original display state, thereby avoiding the problem of unclear display of the first page content due to reducing the size information of the first page content, and avoiding the problem of part of the first page content not being able to be displayed on the screen due to moving the first page content, thereby being able to display the first page content more clearly and comprehensively.

[0135] Combine the following Figure 7 , the message display method provided by the present application is exemplified. The execution subject of the message display method provided by the present application can be a mobile phone, such as Figure 7 As shown, the message display method provided by the present application may include the following steps 701 to 708.

[0136] Step 701: When a mobile phone receives a first prompt message, a message prompt box of the first prompt message is displayed on the mobile phone screen.

[0137] For example, Figure 3A As shown, the first page is displayed on the screen 30 of the mobile phone. When the mobile phone receives the first prompt message, the mobile phone will suspend and display the message prompt box 311 of the first prompt message on the screen 30. Figure 3A ,like Figure 3B As shown, the mobile phone will display a message prompt box 311 in the top area of ​​the screen.

[0138] Step 702: The mobile phone determines whether the message prompt box blocks the content of the first page currently displayed on the mobile phone screen. If yes, execute step 703. If no, execute step 710.

[0139] For example, Figure 3B As shown, if the message prompt box blocks the content of the first page, it will affect the normal use of the page function of the first page by the user, and then the mobile phone needs to perform additional processing on the currently displayed first page.

[0140] For example, the first page can be an application page of any application on the mobile phone, and the first page content of the first page can be the application content of any of the above applications. The first page can also be the lock screen interface of the mobile phone or the main interface of the mobile phone, which is not limited in this embodiment.

[0141] It should be noted that step 703 is executed only when the message prompt box is valid content for the first page.

[0142] Step 703: The mobile phone obtains first size information of the message prompt box, where the first size information of the message prompt box includes a first area, a first length, and a first width.

[0143] For example, the shape of the message prompt box can be a rectangle. Figure 3B ,like Figure 3C As shown, the first area of ​​the message prompt box 311 is S0, the first length is a0, and the first width is b0.

[0144] Step 704: The mobile phone obtains all blank areas in the first page to form a blank area set.

[0145] Exemplarily, the mobile phone may obtain all rectangular blank areas in the first page to form a blank area set. The size information of the blank areas in the blank area set is obtained, and the size information of the blank areas includes the area, length, and width of the blank areas. For example, the blank area set may include blank area 1, blank area 2, ... blank area n. Where n is an integer greater than or equal to 2.

[0146] For example, Figure 3B As shown, the blank areas on the first page include blank areas 321, 322, and 323. The blank areas 321, 322, and 323 are all rectangular in shape, and the size information of the blank area 321 includes the area S1, length a1, and width b1 of the blank area 312; the size information of the blank area 322 includes the area S2, length a2, and width b2 of the blank area 313; and the size information of the blank area 323 includes the area S3, length a3, and width b3 of the blank area 314.

[0147] Step 705: The mobile phone compares the sizes of all blank rectangular areas S1-Sn in the blank area set, sorts the blank rectangular areas from large to small, and selects the blank rectangular area with the largest area from the blank area set.

[0148] Exemplarily, the area of ​​the largest blank rectangular region is Smax, Smax=max(S1, S2, S3 . . . Sn), the length of the largest blank rectangular region is amax, and the width of the largest blank rectangular region is bmax.

[0149] Step 706: The mobile phone determines whether the size information of the largest blank rectangular area and the first size information of the message prompt box meet the first condition, and if so, executes step 707. If not, executes step 608.

[0150] Step 707: The mobile phone displays a message box in the blank rectangular area.

[0151] Exemplarily, the first condition includes condition 1, condition 2, and condition 2. Among them, condition 1 is: the area of ​​the largest blank rectangular area is greater than or equal to the area of ​​the message prompt box, that is, Smax>=S0. Condition 2 is: the length of the largest blank rectangular area is greater than or equal to the length of the message prompt box, that is, amax>=a. Condition 3 is: the width of the largest blank area is greater than or equal to the width of the message prompt box, that is, bmax>=b.

[0152] Step 708: The mobile phone removes the blank rectangular area with the largest area from the blank area set. If the blank area set is not empty, the process returns to step 705 to filter the next largest blank rectangular area that meets the first condition. If the blank area set is empty and no blank rectangular area that meets the first condition is found, the process proceeds to step 709.

[0153] Exemplarily, if the size information of the largest blank rectangular area and the first size information of the message prompt box do not meet any one of conditions 1 to 3, the mobile phone will determine that the size information of the largest blank area and the first size information of the message prompt box do not meet the first condition.

[0154] Step 709: The mobile phone zooms out and displays the content of the first page, and displays the message prompt box normally.

[0155] For example, in combination Figure 3B ,like Figure 3D As shown, the mobile phone can shrink the first page content and display it in a display area outside the message prompt box, so that the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box.

[0156] Exemplarily, if the blank area set is empty and no blank rectangular area satisfying the first condition is screened out, the mobile phone may also reduce the size of the message prompt box so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0157] Exemplarily, if the blank area set is empty and no blank rectangular area satisfying the first condition is filtered out, the mobile phone can also simultaneously reduce the size of the message prompt box and the first page content so that the display area of ​​the first page content does not overlap with the display area of ​​the message prompt box.

[0158] Exemplarily, if the blank area set is empty and no blank rectangular area satisfying the first condition is found, the mobile phone may also move the content of the first page downward to display the content of the first page so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0159] Step 710: The mobile phone does not process the first page.

[0160] Exemplarily, if the message box does not block the content of the first page, the electronic device does not need to perform additional processing on the currently displayed first page.

[0161] In this way, when a user receives a prompt message while using a mobile phone, the mobile phone can display a message prompt box in a blank area, or reduce the content of the first page. In this way, the message prompt box will not block the content of the first page, so that the user can use the mobile phone normally while browsing the message content and not miss important messages.

[0162] It should be noted that the specific implementation process of the steps of the above-mentioned message display method can refer to the relevant description of the above-mentioned embodiment. To avoid repetition, this embodiment will not be repeated here.

[0163] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.

[0164] The message display method provided in the embodiment of the present application can be executed by a message display device. In the embodiment of the present application, the message display device provided in the embodiment of the present application is described by taking the message display method executed by the message display device as an example.

[0165] Figure 8 It is a structural diagram of a message display device 800 provided in an embodiment of the present application. The message display device 800 includes: a determination module 801 and a display module 802.

[0166] The determination module 801 is used to determine the display parameters of the first object, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area;

[0167] The display module 802 is used to display the message prompt box on the first page according to the display parameters, and the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0168] In some embodiments of the present application, the determining module 801 is specifically used to:

[0169] In the case where the message prompt box obstructs the content of the first page, obtaining first size information, where the first size information is size information of the message prompt box;

[0170] Based on the first size information, a display parameter of the first object is determined.

[0171] In some embodiments of the present application, the first object includes the message prompt box, and the display parameter includes a display area;

[0172] The determining module 801 is specifically used for:

[0173] When the second size information of the first blank area and the first size information satisfy a first condition, determining the display area of ​​the first blank area as the display area of ​​the message prompt box;

[0174] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0175] In some embodiments of the present application, the first page includes at least two second blank areas;

[0176] The first blank area is the blank area with the largest area among the at least two second blank areas.

[0177] In some embodiments of the present application, the display parameters include display size;

[0178] The determining module 801 is specifically used for:

[0179] If the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display size of the first object;

[0180] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0181] In some embodiments of the present application, the first object includes the content of the first page, and the display parameter includes a display area;

[0182] The determining module 801 is specifically used for:

[0183] When the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display area of ​​the content of the first page;

[0184] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0185] In some embodiments of the present application, the first size information includes a first area, a first length, and a first width of the message prompt box; the second size information includes a second area, a second length, and a second width of the first blank area;

[0186] The first condition includes: the second area is greater than or equal to the first area.

[0187] In the message display device provided in the present application, by determining the display parameters of the first object, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area; according to the display parameters, the message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box. In this way, in the present application, the message prompt box is displayed on the first page by at least one of the display size and display area of ​​the message prompt box and the content of the first page, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, no matter which display area on the first page the message prompt box is displayed, it will not block the content of the first page, so there is no need to set the message shielding or do not disturb mode, and it will not cause the user to miss important prompt messages, thereby improving the flexibility of the message display device in displaying messages.

[0188] The message display device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device, a super mobile personal computer, a netbook or a personal digital assistant, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0189] The message display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0190] The message display device provided in the embodiment of the present application can implement each process implemented by each embodiment of the above-mentioned message display method. To avoid repetition, it will not be described again here.

[0191] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned message display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0192] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0193] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0194] 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 and other components.

[0195] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0196] The processor 1010 is configured to determine display parameters of a first object, wherein the first object includes at least one of the following: a message prompt box of a first message and content of a first page, and the display parameters include at least one of the following: a display size and a display area;

[0197] The display unit 1006 is used to display the message prompt box on the first page according to the display parameters, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

[0198] In some embodiments of the present application, the processor 1010 is specifically configured to:

[0199] In the case where the message prompt box obstructs the content of the first page, obtaining first size information, where the first size information is size information of the message prompt box;

[0200] Based on the first size information, a display parameter of the first object is determined.

[0201] In some embodiments of the present application, the first object includes the message prompt box, and the display parameter includes a display area;

[0202] The processor 1010 is specifically configured to:

[0203] When the second size information of the first blank area and the first size information satisfy a first condition, determining the display area of ​​the first blank area as the display area of ​​the message prompt box;

[0204] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0205] In some embodiments of the present application, the first page includes at least two second blank areas;

[0206] The first blank area is the blank area with the largest area among the at least two second blank areas.

[0207] In some embodiments of the present application, the display parameters include display size;

[0208] The processor 1010 is specifically configured to:

[0209] If the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display size of the first object;

[0210] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0211] In some embodiments of the present application, the first object includes the content of the first page, and the display parameter includes a display area;

[0212] The processor 1010 is specifically configured to:

[0213] When the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display area of ​​the content of the first page;

[0214] The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

[0215] In some embodiments of the present application, the first size information includes a first area, a first length, and a first width of the message prompt box; the second size information includes a second area, a second length, and a second width of the first blank area;

[0216] The first condition includes: the second area is greater than or equal to the first area.

[0217] In the electronic device provided in the present application, by determining the display parameters of the first object, the first object includes at least one of the following: a message prompt box of the first message and the content of the first page, and the display parameters include at least one of the following: display size and display area; according to the display parameters, the message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box. In this way, in the present application, the message prompt box is displayed on the first page by at least one of the display size and display area of ​​the message prompt box and the content of the first page, so that the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box, and no matter which display area of ​​the message prompt box on the first page is displayed, it will not block the content of the first page, so there is no need to set message shielding or do not disturb mode, and it will not cause users to miss important prompt messages, thereby improving the flexibility of electronic devices to display messages.

[0218] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. 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, etc. The user input unit 1007 includes a touch panel 10071 and at least one of 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, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0219] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0220] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0221] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned message display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0222] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0223] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned message display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0224] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0225] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned message display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0226] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0227] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0228] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A message display method, characterized in that: The method comprises: Determining display parameters of a first object, the first object comprising at least one of the following: a message prompt box of a first message and content of a first page, the display parameters comprising at least one of the following: a display size and a display area; According to the display parameters, the message prompt box is displayed on the first page, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

2. The method according to claim 1, characterized in that The determining the display parameter of the first object includes: In the case where the message prompt box obstructs the content of the first page, obtaining first size information, where the first size information is size information of the message prompt box; Based on the first size information, a display parameter of the first object is determined.

3. The method according to claim 2, characterized in that The first object includes the message prompt box, and the display parameter includes a display area; The determining, based on the first size information, a display parameter of the first object includes: When the second size information of the first blank area and the first size information satisfy a first condition, determining the display area of ​​the first blank area as the display area of ​​the message prompt box; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

4. The method according to claim 3, characterized in that The first page includes at least two second blank areas; The first blank area is the blank area with the largest area among the at least two second blank areas.

5. The method according to claim 2, characterized in that: The display parameters include display size; The determining, based on the first size information, a display parameter of the first object includes: If the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display size of the first object; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

6. The method according to claim 2, characterized in that The first object includes the content of the first page, and the display parameter includes a display area; The determining, based on the first size information, a display parameter of the first object includes: When the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display area of ​​the content of the first page; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

7. The method according to any one of claims 3 to 6, characterized in that The first size information includes a first area, a first length and a first width of the message prompt box; the second size information includes a second area, a second length and a second width of the first blank area; The first condition includes: the second area is greater than or equal to the first area.

8. A message display device, characterized in that: The device comprises: A determination module, configured to determine display parameters of a first object, wherein the first object includes at least one of the following: a message prompt box of a first message and content of a first page, and the display parameters include at least one of the following: a display size and a display area; The display module is used to display the message prompt box on the first page according to the display parameters, the first message is displayed in the message prompt box, and the display area of ​​the content of the first page does not overlap with the display area of ​​the message prompt box.

9. The device according to claim 8, characterized in that The determination module is specifically used for: In the case where the message prompt box obstructs the content of the first page, obtaining first size information, where the first size information is size information of the message prompt box; Based on the first size information, a display parameter of the first object is determined.

10. The device according to claim 9, characterized in that The first object includes the message prompt box, and the display parameter includes a display area; The determination module is specifically used for: When the second size information of the first blank area and the first size information satisfy a first condition, determining the display area of ​​the first blank area as the display area of ​​the message prompt box; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

11. The device according to claim 10, characterized in that The first page includes at least two second blank areas; The first blank area is the blank area with the largest area among the at least two second blank areas.

12. The device according to claim 9, characterized in that The display parameters include display size; The determination module is specifically used for: If the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display size of the first object; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

13. The device according to claim 9, characterized in that The first object includes the content of the first page, and the display parameter includes a display area; The determination module is specifically used for: When the second size information of the first blank area and the first size information do not satisfy a first condition, determining a display area of ​​the content of the first page; The first blank area is any blank area in the first page, and the blank area is an area in the first page where the content of the first page is not displayed.

14. The device according to any one of claims 11 to 13, characterized in that The first size information includes a first area, a first length and a first width of the message prompt box; the second size information includes a second area, a second length and a second width of the first blank area; The first condition includes: the second area is greater than or equal to the first area.

15. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the message display method according to any one of claims 1 to 7 are implemented.

16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the message display method according to any one of claims 1 to 7 are implemented.