Content display method, content processing method and related equipment

By dividing the target content into main content and auxiliary content, and displaying them according to the screen type, the problem of storage space occupied by electronic devices is solved, and efficient adaptation to special-shaped screens and non-special-shaped screens is achieved.

CN111813488BActive Publication Date: 2024-08-23BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010711400.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-22
Publication Date
2024-08-23
Estimated Expiration
2040-07-22

AI Technical Summary

Technical Problem

In the existing technology, electronic devices need to store and design two display interfaces at the same time, resulting in increased storage space usage.

Method used

By obtaining the target content to be displayed, dividing it into main content and auxiliary content, and displaying it in the special-shaped display area and other display areas of the special-shaped screen or in all areas of the non-special-shaped screen according to the screen type of the electronic device, adapting Different screen types.

Benefits of technology

It is possible to adapt the display effects of special-shaped screens and non-special-shaped screens without increasing storage space, saving storage space of electronic devices and improving the adaptation effect of display content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111813488B
    Figure CN111813488B
Patent Text Reader

Abstract

The present disclosure relates to a content display method, a content processing method and related devices, which can obtain target content to be displayed in response to a received content display request, wherein the target content includes main content and auxiliary content; when it is detected that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; when it is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen. This embodiment only needs to save one target content to be displayed so that the target content can be adapted to both the non-special-shaped screen and the special-shaped screen, which effectively saves the storage space of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display control, and in particular to a content display method, a content processing method, and related devices. Background Art

[0002] With the development of science and technology, the popularity of electronic devices such as mobile phones is increasing, and the types of their screens have also become diverse. Screens with display areas of different shapes have emerged, such as special-shaped screens. Special-shaped screens are a type of screen with a notch area (for example, a notch caused by the irregular edge of the display area). For example, the bangs screen and water drop screen that are currently common in the field of smartphones belong to special-shaped screens. The notch areas such as the bangs area and the water drop area in the special-shaped screen are generally used to place components such as cameras, which makes it impossible to display content in this notch area. In addition to special-shaped screens, there are also non-special-shaped screens without notches, such as rectangular screens or rounded rectangular screens.

[0003] In the related art, a display interface is designed for the special-shaped screen and the non-special-shaped screen respectively, and one display interface is selected from the two display interfaces for display according to the type of the screen of the electronic device during use. This requires the electronic device to store the two designed display interfaces at the same time, occupying the valuable storage space of the electronic device. Summary of the invention

[0004] The present disclosure provides a content display method, a content processing method and related devices, so as to at least solve the problem of occupying storage space of electronic devices due to storing two display interfaces designed at the same time in the related art. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a content display method, including:

[0006] In response to the received content display request, acquiring target content to be displayed, the target content including main content and auxiliary content;

[0007] Detecting that the screen type of the electronic device displaying the target content is a special-shaped screen, displaying the auxiliary content in a special-shaped display area of ​​the special-shaped screen, and displaying the main content in other display areas of the special-shaped screen except the special-shaped display area;

[0008] It is detected that the screen type of the electronic device displaying the target content is a non-irregular screen, and the main content is displayed in the entire display area of ​​the non-irregular screen.

[0009] In a possible implementation manner of the first aspect, acquiring the target content to be displayed includes:

[0010] Initial content to be displayed is obtained, the initial content is divided into the main content and the auxiliary content, and the main content and the auxiliary content are determined as target content to be displayed.

[0011] In a possible implementation manner of the first aspect, dividing the initial content into the main content and the auxiliary content includes:

[0012] The initial content is divided into the main content and the auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0013] In a possible implementation manner of the first aspect, displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen includes:

[0014] Adjusting the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the auxiliary content after adjustment is adapted to the size of the special-shaped display area;

[0015] The adjusted auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen.

[0016] In a possible implementation manner of the first aspect, the adjusting the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area includes at least one of the following three processes:

[0017] Processing 1: when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction, wherein the first direction is perpendicular to the second direction; when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction;

[0018] Process 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction;

[0019] Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

[0020] In a possible implementation manner of the first aspect, displaying the main content in other display areas of the special-shaped screen except the special-shaped display area includes: adjusting the main content of the interface to be displayed so that a size of the adjusted main content in a first direction is adapted to a size of the other display area in the first direction, and displaying the adjusted main content in the other display area;

[0021] and / or,

[0022] Displaying the main content in the entire display area of ​​the non-irregular screen includes: adjusting the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displaying the adjusted main content in the entire display area.

[0023] In a possible implementation of the first aspect, displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen includes: displaying the auxiliary content in the special-shaped display area through a first display control, wherein a border of the first display control overlaps with a circumscribed rectangle of the special-shaped display area;

[0024] and / or,

[0025] Displaying the main content in other display areas of the special-shaped screen except the special-shaped display area includes: displaying the main content in the other display areas through a second display control, wherein a border of the second display control overlaps with the other display areas.

[0026] In a possible implementation manner of the first aspect, the content display method further includes:

[0027] It is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and the first display control is hidden.

[0028] In a possible implementation manner of the first aspect, acquiring the target content to be displayed includes:

[0029] Send a content acquisition request to the server device;

[0030] Obtain the target content to be displayed returned by the server device.

[0031] According to a second aspect of an embodiment of the present disclosure, a content processing method is provided, including:

[0032] In response to a content acquisition request sent by a client device, obtaining initial content to be displayed;

[0033] dividing the initial content into the main content and the auxiliary content, and determining the main content and the auxiliary content as target content to be displayed;

[0034] The target content to be displayed is sent to a client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; and when the client device detects that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen.

[0035] In a possible implementation manner of the second aspect, dividing the initial content into the main content and the auxiliary content includes:

[0036] The initial content is divided into the main content and the auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0037] According to a third aspect of an embodiment of the present disclosure, there is provided a content display device, including:

[0038] a content acquisition unit, configured to execute, in response to the received content display request, acquiring target content to be displayed, wherein the target content includes main content and auxiliary content;

[0039] A first adapting unit is configured to detect that the screen type of the electronic device displaying the target content is a special-shaped screen, display the auxiliary content in a special-shaped display area of ​​the special-shaped screen, and display the main content in other display areas of the special-shaped screen except the special-shaped display area;

[0040] The second adaptation unit is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and display the main content in the entire display area of ​​the non-special-shaped screen.

[0041] In a possible implementation of the third aspect, the content acquisition unit acquires the target content to be displayed, and is specifically configured to execute acquisition of initial content to be displayed, divide the initial content into the main content and the auxiliary content, and determine the main content and the auxiliary content as the target content to be displayed.

[0042] In a possible implementation of the third aspect, the content acquisition unit divides the initial content into the main content and the auxiliary content, and is specifically configured to divide the initial content into the main content and the auxiliary content through a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0043] In a possible implementation of the third aspect, the first adaptation unit displays the auxiliary content in the irregular display area in the irregular screen, and is specifically configured to adjust the auxiliary content according to the size of the irregular display area in the irregular screen so that the size of the adjusted auxiliary content is adapted to the size of the irregular display area; and display the adjusted auxiliary content in the irregular display area in the irregular screen.

[0044] In a possible implementation manner of the third aspect, the first adaptation unit adjusts the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the adjusted size of the auxiliary content is adapted to the size of the special-shaped display area, and is specifically configured to perform at least one of the following three processes:

[0045] Processing 1: when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction, wherein the first direction is perpendicular to the second direction; when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction;

[0046] Process 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction;

[0047] Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

[0048] In a possible implementation manner of the third aspect, the first adaptation unit displays the main content in other display areas of the special-shaped screen except the special-shaped display area, and is specifically configured to adjust the main content of the interface to be displayed so that the size of the adjusted main content in the first direction is adapted to the size of the other display area in the first direction, and display the adjusted main content in the other display area;

[0049] and / or,

[0050] The second adaptation unit displays the main content in the entire display area of ​​the non-irregular screen, and is specifically configured to adjust the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displays the adjusted main content in the entire display area.

[0051] In a possible implementation manner of the third aspect, the first adaptation unit displays the auxiliary content in the special-shaped display area of ​​the special-shaped screen, and is specifically configured to display the auxiliary content in the special-shaped display area through a first display control, wherein a border of the first display control overlaps with a circumscribed rectangle of the special-shaped display area;

[0052] and / or,

[0053] The first adaptation unit displays the main content in other display areas of the special-shaped screen except the special-shaped display area, and is specifically configured to display the main content in the other display areas through a second display control, wherein the border of the second display control overlaps with the other display areas.

[0054] In a possible implementation manner of the third aspect, the content display device further includes:

[0055] The control hiding unit is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen and hide the first display control.

[0056] In a possible implementation manner of the third aspect, the content acquisition unit acquires the target content to be displayed, and is specifically configured to execute sending a content acquisition request to a server device; and obtain the target content to be displayed returned by the server device.

[0057] According to a fourth aspect of an embodiment of the present disclosure, there is provided a content processing device, including:

[0058] a request response unit, configured to execute a response to a content acquisition request sent by a client device, and obtain initial content to be displayed;

[0059] a content segmentation unit, configured to segment the initial content into the main content and the auxiliary content, and determine the main content and the auxiliary content as target content to be displayed;

[0060] The content sending unit is configured to send the target content to be displayed to a client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; and when the client device detects that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen.

[0061] In a possible implementation of the fourth aspect, the content segmentation unit segments the initial content into the main content and the auxiliary content, and is specifically configured to segment the initial content into the main content and the auxiliary content through a segmentation line parallel to the first direction, wherein a size of the auxiliary content in the second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0062] According to a fifth aspect of an embodiment of the present disclosure, there is provided a client device, including: a processor;

[0063] a memory for storing instructions executable by the processor;

[0064] The processor is configured to execute the instructions to implement the content display method provided in the first aspect.

[0065] According to a sixth aspect of an embodiment of the present disclosure, there is provided a server device, including: a processor;

[0066] a memory for storing instructions executable by the processor;

[0067] The processor is configured to execute the instructions to implement the content processing method provided in the second aspect.

[0068] According to a seventh aspect of an embodiment of the present disclosure, a content processing system is provided, comprising: the client device provided in the fifth aspect and the server device provided in the sixth aspect.

[0069] According to an eighth aspect of an embodiment of the present disclosure, a storage medium is provided, wherein the storage medium includes instructions, and the instructions are executed by a processor of a client device to complete the content display method provided in the first aspect.

[0070] According to a ninth aspect of an embodiment of the present disclosure, a storage medium is provided, wherein the storage medium includes instructions, and the instructions are executed by a processor of a server-side device to complete the content processing method provided in the second aspect.

[0071] According to a tenth aspect of an embodiment of the present disclosure, a computer program product is provided, which, when executed on a client device, is suitable for executing a program that initializes the steps of the content display method provided by the first aspect.

[0072] According to an eleventh aspect of the embodiments of the present disclosure, a computer program product is provided, which, when executed on a server device, is suitable for executing a program that initializes the steps of the content processing method provided by the second aspect.

[0073] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: a content display method, a content processing method and related devices provided by the embodiments of the present disclosure can obtain the target content to be displayed in response to the received content display request, wherein the target content includes the main content and the auxiliary content; when it is detected that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; when it is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen. In this embodiment, only one target content to be displayed needs to be saved so that the target content to be displayed can be adapted to both the non-special-shaped screen and the special-shaped screen, which effectively saves the storage space of the electronic device. At the same time, since the target content includes the auxiliary content for displaying in the special-shaped display area and the main content for displaying in other display areas, the present embodiment can adjust these two parts respectively to adapt to the special-shaped display area and other display areas respectively, which effectively improves the adaptation effect.

[0074] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0076] Figure 1 is a schematic diagram of a mobile phone with a notch screen according to an exemplary embodiment;

[0077] Figure 2 is a schematic diagram of another mobile phone with a notch screen according to an exemplary embodiment;

[0078] Figure 3 is a schematic diagram of another mobile phone with a notch screen according to an exemplary embodiment;

[0079] Figure 4 According to an exemplary embodiment, Figure 1 A schematic diagram of the display area of ​​the mobile phone in an actual scenario;

[0080] Figure 5 is a flow chart of a content display method according to an exemplary embodiment;

[0081] Figure 6 is a schematic diagram showing a horizontal display of a screen of an electronic device according to an exemplary embodiment;

[0082] Figure 7 is a schematic diagram of an interface to be displayed according to an exemplary embodiment;

[0083] Figure 8 According to an exemplary embodiment, Figure 7 A schematic diagram showing the division of the interface to be displayed;

[0084] Fig. 9 is a schematic diagram showing a specific process of displaying the first part of an interface to be displayed in a special-shaped display area of ​​a special-shaped screen according to an exemplary embodiment;

[0085] Fig.10 is a schematic diagram showing a cutting process of the first part according to an exemplary embodiment;

[0086] Fig.11 is a schematic diagram showing a scaling process of a special-shaped display area according to an exemplary embodiment;

[0087] Fig.12is a schematic diagram showing a first part enlarged in proportion according to an exemplary embodiment;

[0088] Fig.13 is a schematic diagram showing an upper portion of second display content according to an exemplary embodiment;

[0089] Fig.14 According to an exemplary embodiment, Fig.13 The content shown is similar to Fig.10 A schematic diagram showing the continuity of contents within the irregular display area shown;

[0090] Fig.15 is a schematic diagram of an interface with a slide bar according to an exemplary embodiment;

[0091] Fig.16 A non-special-shaped screen display according to an exemplary embodiment Figure 8 A schematic diagram of the interface to be displayed is shown;

[0092] Fig.17 A flowchart of a content processing method according to an exemplary embodiment;

[0093] Fig.18 is a block diagram of a content display device according to an exemplary embodiment;

[0094] Fig.19 is a block diagram of a content processing device according to an exemplary embodiment;

[0095] Fig. 20 is a block diagram of a client device according to an exemplary embodiment;

[0096] Fig.21 is a block diagram of a server device according to an exemplary embodiment;

[0097] Fig. 22 is a block diagram of a content processing system according to an exemplary embodiment;

[0098] Fig.23 According to an exemplary embodiment, Fig. 22 The flowchart of the content processing system performing content processing is shown. DETAILED DESCRIPTION

[0099] In order to enable ordinary people in the field to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0100] The following first describes the diversity of special-shaped screens by taking the notch screen as an example in conjunction with the accompanying drawings:

[0101] Figures 1 to 3 Three mobile phones with notch screens are shown. Figures 1 to 3 The number 001 in the figure indicates the mobile phone, and the number 004 indicates the bangs area (i.e. the notch area), in which a camera or other devices may be set, and the content cannot be displayed in this area. The number 002 indicates the special-shaped display area. The number 003 indicates the other display areas in the special-shaped screen except the special-shaped display area. It should be noted that for the sake of clarity, Figures 1 to 3 The black thick solid line frame and the number 002 indicate the special-shaped display area 002. Figures 1 to 3 The black thick solid frame and the label 003 are used to indicate other display areas 003 except the special-shaped display area. Figures 1 to 3 The special-shaped display area and other display areas except the special-shaped display area constitute a whole. For example: Figure 1 The display area of ​​the mobile phone in the actual scene is as follows Figure 4 shown.

[0102] set up Figures 1 to 3 The current state of the mobile phone in is the display state. The bangs area 004 is located at the top of the mobile phone. Figures 1 to 3 The distance from the top to the bottom of the screen is the height of the screen. Figures 1 to 3 The distance from the left end to the right end of the mobile phone screen is the width of the screen. Figure 1 The screen of the mobile phone shown has a height of H1 and a width of W1; Figure 2 The screen of the mobile phone shown has a height of H2 and a width of W1; Figure 3 The screen of the illustrated mobile phone has a height of H2 and a width of W1. Figure 1 The height of the bangs of the mobile phone shown is H3. Figure 2 The height of the bangs of the mobile phone shown is H3. Figure 3 The height of the notch of the mobile phone shown is H4, wherein H1 is greater than H2, and H4 is greater than H3.

[0103] It is understandable that since the size and position of the bangs area in each special-shaped screen are different, Figures 1 to 3 The bangs area and the special-shaped display area in the present disclosure are only exemplary. The special-shaped display area and the bangs area in the present disclosure are not limited to Figures 1 to 3 Several types are shown.

[0104] Figure 5 is a flow chart of a content display method according to an exemplary embodiment. Figure 5 As shown, the content display method includes the following steps.

[0105] In step S11 , in response to the received content display request, target content to be displayed is acquired, where the target content includes main content and auxiliary content.

[0106] Optional, Figure 5 The method shown can be used in electronic devices, such as mobile phones, tablet computers, wearable electronic devices (such as smart watches, smart glasses, head-mounted virtual reality devices, etc.), computers, etc. The electronic device can be a client device with a preset application installed. The target content to be displayed can be directly from the execution Figure 5 The method can be obtained from the device that executes Figure 5 The method is obtained from a device other than the device shown.

[0107] Optionally, obtaining the target content to be displayed in step S11 may specifically include:

[0108] Send a content acquisition request to the server device;

[0109] Get the target content to be displayed returned by the server device.

[0110] Optionally, the target content to be displayed may be generated by the server device and returned to the execution Figure 5 The method and device shown are:

[0111] Of course, in other embodiments, the target content to be displayed may also be executed Figure 5 The method shown is generated by the device itself.

[0112] The target content to be displayed may be a complete interface or a partial interface to be displayed on the screen, and the content display request may be a display request for the complete interface or a partial interface.

[0113] The screen types of electronic devices may include: special-shaped screens and non-special-shaped screens. Of course, the present disclosure may also make a more detailed classification of screen types, for example, special-shaped screens may be divided into: bangs screens, water drop screens, and punch-hole screens. Of course, the present disclosure may also make a more detailed classification of screen types, for example, bangs screens may be divided into: top middle bangs screens, top right bangs screens, left middle bangs screens, etc.; another example: punch-hole screens may be divided into: top left punch-hole screens, bottom left punch-hole screens, etc.

[0114] It is understandable that the non-irregular screen can also be called a regular screen. The regular screen has a relatively regular screen shape. The present disclosure can make a more detailed classification of the non-irregular screen, for example, the regular screen can be divided into a rectangular screen, a rounded rectangular screen, etc.

[0115] It should be noted that the technical solution of the present disclosure is also applicable to curved screens. Regardless of whether the curved screen is partially or entirely curved, the present disclosure can still determine whether it is a special-shaped screen or a non-special-shaped screen based on whether the curved screen includes an area for placing components such as a camera and cannot display content. For example: when the curved screen of a mobile phone with a curved screen includes a bangs area, it can be determined that the curved screen is a special-shaped screen. If the curved screen does not have an area for placing components such as a camera and cannot display content, it is determined that the curved screen is a non-special-shaped screen.

[0116] Optionally, the target content to be displayed in the present disclosure may be a target content pre-designed according to a variety of special-shaped screens and a variety of non-special-shaped screens. The present disclosure divides the target content to be displayed into at least primary content and secondary content, wherein at least part of the secondary content is used to be displayed in the special-shaped display area of ​​the special-shaped screen. At least part of the primary content is used to be displayed in other display areas of the special-shaped screen except the special-shaped display area, and at least part of the primary content is also used to be displayed in all display areas of the non-special-shaped screen.

[0117] Optionally, the auxiliary content and the main content may constitute the target content to be displayed. Optionally, the auxiliary content and the main content are continuous on the displayed object.

[0118] Optionally, obtaining the target content to be displayed in step S11 may specifically include:

[0119] Initial content to be displayed is obtained, the initial content is divided into main content and auxiliary content, and the main content and the auxiliary content are determined as target content to be displayed.

[0120] Optionally, the initial content to be displayed obtained by the present disclosure can be a complete content, such as a complete interface or a complete picture. The present disclosure can divide the initial content to be displayed into main content and auxiliary content. Since the main content and the auxiliary content are obtained by dividing from the same initial content to be displayed, the display effects of the main content and the auxiliary content match or even coincide with each other. At the same time, the main content and the auxiliary content have continuity in the displayed objects. When the main content and the auxiliary content are displayed on the screen at the same time, the main content and the auxiliary content can still be seamlessly spliced ​​into display content with matching display effects and continuous display objects, which effectively improves the display effect and continuity of the displayed content.

[0121] Further, optionally, the specific process of dividing the initial content into the main content and the auxiliary content may include:

[0122] The initial content is divided into main content and auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0123] Optionally, the above segmentation process may be performed by a client device or a server device, which is not limited in the present disclosure.

[0124] In order to make the auxiliary content adapt to the shaped display areas of various shaped screens, the present disclosure can obtain the size of the shaped display areas of various shaped screens in the second direction, and set the size of the auxiliary content in the second direction to be no less than the size of the shaped display area of ​​each of the various shaped screens in the second direction. The size of the shaped display area of ​​each of the various shaped screens in the second direction is the preset size. It can be seen that the auxiliary content obtained by dividing the dividing line in the present disclosure can adapt to the shaped display areas of various shaped screens, and has good applicability.

[0125] Optionally, when the screen of the electronic device is as follows Figures 1 to 3 When the vertical display is shown, the second direction is as follows Figures 1 to 3 When the screen of the electronic device is as shown Figure 6 When the screen is displayed in the horizontal direction, the second direction is the width direction. The first direction is the direction perpendicular to the second direction in the plane where the screen is located. For example, when the second direction is the height direction, the first direction is the width direction; when the second direction is the width direction, the second direction is the height direction.

[0126] The following is an example of the target content to be displayed: Figure 7 The interface shown is the target content to be displayed. Figure 8 The dividing line 009 shown will Figure 7 The interface shown is divided into Figure 8The two parts shown are auxiliary content 005 and main content 006, where the auxiliary content 005 and the main content 006 are marked with black solid lines. Assuming that the maximum size of the special-shaped display area of ​​various special-shaped screens on the market in the second direction is 144 pixels, the present disclosure can set the size of the auxiliary content in the second direction to be no less than 144 pixels (that is, the preset size is 144 pixels). Figure 7 As shown, the auxiliary content 005 and the main content 006 are continuous on the object displayed on the interface, such as Figure 7 The branches in the auxiliary content 005 and the main content 006 are continuous.

[0127] In an optional embodiment, the auxiliary content and the main content in the present disclosure can both be independent files. For example, if the target content to be displayed is a picture, the present disclosure divides the picture into auxiliary content and main content, wherein the auxiliary content is a separate picture and the main content is a separate picture.

[0128] In another optional embodiment, the auxiliary content and the main content in the present disclosure may be parts of one file, that is, the auxiliary content and the main content are not independent files. The auxiliary content and the main content may be pre-divided in the present disclosure, or may be divided when the target content to be displayed needs to be displayed.

[0129] In step S12, it is detected that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area.

[0130] The present disclosure can obtain the screen type of the electronic device in a variety of different ways, one of which is provided below as an example:

[0131] The screen type of the electronic device is obtained through the system screen parameter interface.

[0132] Specifically, the present disclosure may use an interface call function corresponding to the system screen parameter interface to obtain the screen type of the electronic device through the system screen parameter interface. There may be multiple interface call functions used in the present disclosure. For example, when the system type / system model of the electronic device is different, the interface call function used in the present disclosure may also be different. When the system type of the electronic device is an Android system, the interface call function used in the present disclosure may be:

[0133] DisplayCutout cutout=mContext.getDisplayCutout().

[0134] The present disclosure can obtain the screen type of the electronic device according to the information returned by the interface calling function. Optionally, the present disclosure can also obtain the screen size of the electronic device, the size of the notch in the screen, etc. according to the information returned by the interface calling function. Optionally, the present disclosure can obtain the screen type of the electronic device according to the number of notches in the screen returned by the interface calling function. When the number of notches in the screen returned by the interface calling function is 0, it can be determined that the screen type of the electronic device is a non-special-shaped screen, and when the number of notches in the screen returned by the interface calling function is not 0, it can be determined that the screen type of the electronic device is a special-shaped screen.

[0135] The size of the notch in the screen is the same as the size of the special-shaped display area in the second direction. Figures 1 to 3 When the vertical display is shown, the second direction is as follows Figures 1 to 3 When the screen of the electronic device is as shown Figure 6 When the horizontal display is shown, the second direction is the width direction. Figures 1 to 3 It can be seen that when the screen of the electronic device is displayed vertically, the height of the notch 004 is the same as the height of the special-shaped display area 002 .

[0136] The present disclosure may determine the size of the notch in the screen in the second direction as the size of the special-shaped display area in the second direction.

[0137] Optionally, when the size of the main content in the first direction is not compatible with the sizes of other display areas except the irregular display area in the first direction, the present disclosure may adjust the auxiliary content according to the size of the irregular display area in the irregular screen so that the size of the adjusted auxiliary content is compatible with the size of the irregular display area; and display the adjusted auxiliary content in the irregular display area in the irregular screen.

[0138] Optionally, when the size of the auxiliary content matches the size of the special-shaped display area, the auxiliary content does not need to be adjusted and can be directly displayed in the special-shaped display area.

[0139] Optionally, when the size of the main content in the first direction matches the size of other display areas except the special-shaped display area in the first direction, the main content does not need to be adjusted and can be directly displayed in the other display areas.

[0140] In step S13, it is detected that the screen type of the electronic device displaying the target content is a non-irregular screen, and the main content is displayed in the entire display area of ​​the non-irregular screen.

[0141] Optionally, when the size of the main content in the first direction does not match the size of the entire display area of ​​the screen in the first direction, the present disclosure can adjust the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the screen in the first direction, and display the adjusted main content in the entire display area.

[0142] Optionally, when the size of the main content in the first direction matches the size of the entire display area of ​​the screen in the first direction, the main content does not need to be adjusted and can be directly displayed in the entire display area of ​​the screen.

[0143] Optionally, the specific processing methods for adjusting the auxiliary content and / or the main content in the present disclosure may include: cropping, scaling, changing angles, etc. Optionally, the cropping process may be performed along one direction (such as the first direction or the second direction), and the cropped portion may be a rectangular area, and the remaining portion may also be a rectangular area. Optionally, the scaling process may be: proportional scaling, unequal scaling, etc. Among them, proportional scaling refers to: scaling under the premise of a fixed aspect ratio. Unequal scaling refers to: scaling under the premise of an unfixed aspect ratio. The transformation angle may be: rotating a certain angle along a certain point, vertical flipping, horizontal flipping, etc.

[0144] A content display method provided by an embodiment of the present disclosure can obtain a target content to be displayed in response to a received content display request, wherein the target content includes a main content and an auxiliary content; when it is detected that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; when it is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen. In this embodiment, only one target content to be displayed needs to be saved so that the target content to be displayed can be adapted to both the non-special-shaped screen and the special-shaped screen, thereby effectively saving the storage space of the electronic device. At the same time, since the target content includes auxiliary content for display in the special-shaped display area and main content for display in other display areas, the present embodiment can adjust these two parts respectively to adapt to the special-shaped display area and other display areas respectively, thereby effectively improving the adaptation effect.

[0145] In other optional embodiments of the present disclosure, Fig. 9 As shown, Figure 5 In the illustrated embodiment, the specific process of displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen in step S12 may include:

[0146] S121. Adjust the auxiliary content according to the size of the special-shaped display area in the special-shaped screen, so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area.

[0147] It can be understood that the present disclosure adjusts the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content can be adapted to the size of the special-shaped display area. Since the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area, the auxiliary content of the present disclosure can obtain a good display effect in the special-shaped display area.

[0148] The size of the irregular display area may include: height and width. When the screen of the electronic device is displayed in a vertical orientation, the height of the irregular display area may be the height of the notch area, and the width of the irregular display area may be the width of the screen. When the screen of the electronic device is displayed in a horizontal orientation, the width of the irregular display area may be the width of the notch area, and the height of the irregular display area may be the height of the screen.

[0149] Optionally, step S121 may specifically include at least one of the following four processes:

[0150] Processing 1: When the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction; wherein the first direction is perpendicular to the second direction. When the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction.

[0151] Optionally, the above-mentioned scaling process is a proportional scaling process. The first direction and the second direction have been described in the above-mentioned embodiments of the present disclosure, and will not be described again here. Please refer to the description of the above-mentioned embodiments.

[0152] For ease of understanding, the following Figure 1 The screen shown and Figure 8 Taking the target content to be displayed as an example, “when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped” is illustrated as follows:

[0153] because Figure 1 The screen is shown in portrait orientation, so the first direction is Figure 1The width direction of the screen is shown, and the second direction is Figure 1 The height direction of the screen is shown. Figure 8 The size of the auxiliary content 005 of the target content to be displayed in the width direction (ie, the width of the auxiliary content 005) is Figure 1 If the size of the irregular display area 002 in the width direction (ie, the width of the irregular display area 002) is the same, then Fig.10 As shown, the right oblique line area in the auxiliary content 005 can be cut off, so that the size of the remaining part of the auxiliary content 005 in the height direction is the same as Figure 1 The dimensions of the irregular display areas 002 in the height direction are the same.

[0154] The size of the remaining portion after the auxiliary content is cropped is adapted to the size of the special-shaped display area, so that the remaining portion can be well displayed in the special-shaped display area with a high degree of adaptability.

[0155] For ease of understanding, the following Figure 3 The screen shown and Figure 8 Taking the target content to be displayed as an example, "when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, scaling the auxiliary content" is illustrated as follows:

[0156] because Figure 3 The screen is shown in portrait orientation, so the first direction is Figure 3 The width direction of the screen is shown, and the second direction is Figure 3 The height direction of the screen is shown. Figure 8 The first size ratio (ie, the ratio of the width to the height of the auxiliary content 005) of the target content to be displayed is Figure 3 When the second size ratio of the special-shaped display area 002 (ie, the ratio of the width to the height of the special-shaped display area 002) is the same as shown in FIG. Fig.11 As shown, the special-shaped display area 002 can be scaled so that the width of the auxiliary content 005 is the same as the width of the special-shaped display area 002. In this way, the size of the auxiliary content 005 in the height direction is the same as that of the special-shaped display area 002. Figure 1 The size of the special-shaped display area 002 in the height direction is the same as that of the auxiliary content 005 in the width direction. Figure 1 The sizes of the irregular display area 002 in the width direction are the same, that is, the auxiliary content 005 is adapted to the size of the irregular display area 002 .

[0157] The scaled size of the auxiliary content is adapted to the size of the special-shaped display area, so that the scaled auxiliary content can be well displayed in the special-shaped display area with a high degree of adaptability.

[0158] Processing 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction.

[0159] Optionally, the above-mentioned scaling process is a proportional scaling process.

[0160] Process 2 may first perform scaling and then perform cropping. Through scaling, Process 2 may make the size of the auxiliary content in the first direction the same as the size of the special-shaped display area in the first direction; through cropping, Process 2 may make the size of the remaining part of the auxiliary content in the second direction the same as the size of the special-shaped display area in the second direction. In this way, the size of the remaining part of the auxiliary content may be adapted to the size of the special-shaped display area, thereby achieving a good display effect.

[0161] For ease of understanding, the following Figure 1 The screen shown and Figure 8 Take the target content to be displayed as an example for illustration:

[0162] because Figure 1 The screen is shown in portrait orientation, so the first direction is Figure 1 The width direction of the screen is shown, and the second direction is Figure 1 The height direction of the screen is shown. Fig.12 As shown, the present disclosure can firstly scale up the auxiliary content 005 so that the width of the auxiliary content 005 is the same as the width of the special-shaped display area 002. Then, Fig.10 The right oblique line area is cut off by cutting as shown. In this way, the remaining part of the auxiliary content 005 has the same size in the height direction and width direction as Figure 1 The dimensions of the irregular display area 002 in the height direction and the width direction are the same.

[0163] Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

[0164] Optionally, the above-mentioned scaling process is a proportional scaling process.

[0165] Process three can first perform a cropping process and then perform a scaling process. Through the cropping process, process three can make the first size ratio of the remaining part of the auxiliary content and the second size ratio of the special-shaped display area the same; through the scaling process, process three can make the size of the remaining part of the auxiliary content in the second direction the same as the size of the special-shaped display area in the second direction. In this way, the size of the remaining part of the auxiliary content can be adapted to the size of the special-shaped display area, thereby achieving a good display effect.

[0166] Optionally, in the above process, the remaining portion after the auxiliary content is cropped is continuous with the main content on the object displayed on the interface. Fig.10 and Figure 8 As shown, the remaining part after cutting the auxiliary content ( Fig.10 The part in the medium thick solid line rectangle) and Figure 8 The main content 006 is continuous on the object displayed on the interface, for example, the branches are continuous. Since the remaining part after the auxiliary content is cut is continuous with the main content on the object displayed on the interface, even if it is cut, the object displayed on the screen is continuous, which effectively ensures the display effect.

[0167] S122: Display the adjusted auxiliary content in the special-shaped display area of ​​the special-shaped screen.

[0168] Since the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area, the adjusted auxiliary content can have a better display effect in the special-shaped display area.

[0169] Optionally, in other embodiments, the specific process of displaying the main content in other display areas of the irregular screen except the irregular display area in S12 may include: adjusting the main content of the display interface to be displayed so that the size of the adjusted main content in the first direction is adapted to the size of the other display areas in the first direction, and displaying the adjusted main content in other display areas.

[0170] Optionally, the above adjustment of the main content may include: proportional scaling.

[0171] Specifically, when the size of the adjusted main content in the first direction is adapted to the size of the other display areas in the first direction, if the size of the adjusted main content in the second direction is larger than the size of the other display areas in the second direction, the present disclosure can display the upper part of the adjusted main content, the size of which in the second direction is equal to the size of the other display areas in the second direction. For the lower part of the main content that is not currently displayed, the present disclosure can enable the user to switch the displayed content by setting a sliding bar or the like, so that the screen displays the lower part of the content.

[0172] For ease of understanding, the following Figure 1 The screen shown and Figure 8 Take the target content to be displayed as an example for illustration:

[0173] because Figure 1 The screen is shown in portrait orientation, so the first direction is Figure 1 The width direction of the screen is shown, and the second direction is Figure 1 The height direction of the screen is shown. Figure 8 The second display content 006 shown in the present disclosure is first scaled in the width direction so that the width of the second display content 006 is equal to Figure 1 The widths of the other display areas 003 are equal. Figure 8 The height of the second display content 006 is greater than Figure 1 The height of other display areas 003 shown in the figure can be Fig.13 The upper part of the second display content 006 shown is displayed on Figure 1 Other display areas 003 are shown. In this way, Fig.13 The content shown is the same as in the previous example Fig.10 The objects in the shaped display area shown are continuous, such as Fig.14 Of course, in order to display the content of the second display content 006, the present invention can be performed as follows Fig.15 The slider 007 shown allows the user to switch the displayed content so that the screen displays the next part of the content, wherein: Fig.15 The slide bar 007 in the example may have a slider 008 .

[0174] Optionally, in other embodiments, the specific process of displaying the main content in the entire display area of ​​the non-irregular screen in step S13 may include: adjusting the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displaying the adjusted main content in the entire display area.

[0175] Optionally, the above adjustment of the main content may include: proportional scaling.

[0176] Specifically, when the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the screen in the first direction, if the size of the adjusted main content in the second direction is larger than the size of the entire display area of ​​the screen in the second direction, the present disclosure can display the upper part of the adjusted main content, the size of which in the second direction is equal to the size of the entire display area of ​​the screen in the second direction. For the lower part of the main content that is not currently displayed, the present disclosure can enable the user to switch the displayed content by setting a sliding bar or the like, so that the screen displays the lower part of the content.

[0177] For ease of understanding, the following Fig.16 The screen shown and Figure 8 Take the target content to be displayed as an example for illustration:

[0178] because Fig.16 The screen is shown in portrait orientation, so the first direction is Fig.16 The width direction of the screen is shown, and the second direction is Fig.16 The height direction of the screen is shown. Figure 8 The second display content 006 shown in the present disclosure is first scaled in the width direction so that the width of the second display content 006 is equal to Fig.16 The entire display area of ​​the screen shown is of equal width. Figure 8 The height of the second display content 006 is greater than Fig.16 The height of the total display area of ​​the screen shown, such as Fig.16 As shown, the present disclosure can display the upper part of the second display content 006 on Fig.16 Of course, in order to display the content of the second display content 006, the present invention can enable the user to switch the display content through a sliding bar so that the screen displays the lower part of the content.

[0179] Optional, Figure 5 The step S12 of displaying the auxiliary content in the irregular display area of ​​the irregular screen may specifically include: displaying the auxiliary content in the irregular display area through a first display control, wherein the border of the first display control overlaps with the circumscribed rectangle of the irregular display area.

[0180] The first display control may be: ImageView. When the screen type is a special-shaped screen, the present disclosure may adjust the first display control so that the border of the first display control overlaps with the circumscribed rectangle of the special-shaped display area. In this way, the adjusted auxiliary content may be displayed in the first display control, and then in the special-shaped display area.

[0181] Among them, the display level of the first display control in the screen can be the top layer.

[0182] In other optional embodiments of the present disclosure, Figure 5 In the illustrated embodiment, step S12 displays the main content in other display areas of the special-shaped screen except the special-shaped display area, which may specifically include: displaying the main content in other display areas through a second display control, wherein the border of the second display control overlaps with the other display areas.

[0183] The second display control may be: a container. When the screen type is a special-shaped screen, the present disclosure may adjust the second display control so that the border of the second display control overlaps with other display areas except the special-shaped display area. In this way, the adjusted main content may be displayed in the second display control, and then in other display areas.

[0184] Among them, the display level of the second display control in the screen can be the top layer.

[0185] Optional, Figure 5 In the illustrated embodiment, step S13 displays the main content in the entire display area of ​​the non-special-shaped screen, which may specifically include:

[0186] The main content is displayed in the entire display area of ​​the non-special-shaped screen through the second display control, wherein the border of the second display control is in the entire display area of ​​the screen of the electronic device.

[0187] Optionally, a content display method provided in other embodiments of the present disclosure may further include:

[0188] It is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and the first display control is hidden.

[0189] Since the non-special-shaped screen does not have a special-shaped display area, the processing of the first display control can be avoided by hiding the first display control, thereby saving computing resources.

[0190] Fig.17 is a flowchart of a content processing method according to an exemplary embodiment. Fig.17 As shown, the content processing method includes the following steps:

[0191] In step S21, in response to a content acquisition request sent by a client device, initial content to be displayed is obtained.

[0192] Optional, Fig.17 The method shown can be applied to a server device.

[0193] In step S22, the initial content is divided into main content and auxiliary content, and the main content and the auxiliary content are determined as target content to be displayed.

[0194] Optionally, dividing the initial content into main content and auxiliary content in step S22 may specifically include:

[0195] The initial content is divided into main content and auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0196] In order to make the auxiliary content adapt to the shaped display areas of various shaped screens, the present disclosure can obtain the size of the shaped display areas of various shaped screens in the second direction, and set the size of the auxiliary content in the second direction to be no less than the size of the shaped display area of ​​each of the various shaped screens in the second direction. The size of the shaped display area of ​​each of the various shaped screens in the second direction is the preset size. It can be seen that the auxiliary content obtained by dividing the dividing line in the present disclosure can adapt to the shaped display areas of various shaped screens, and has good applicability.

[0197] In step S23, the target content to be displayed is sent to the client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; and when the client device detects that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen.

[0198] Optionally, the initial content to be displayed obtained by the present disclosure can be a complete content, such as a complete interface or a complete picture. The present disclosure can divide the initial content to be displayed into main content and auxiliary content. Since the main content and the auxiliary content are obtained by dividing from the same initial content to be displayed, the display effects of the main content and the auxiliary content match or even coincide with each other. At the same time, the main content and the auxiliary content have continuity in the displayed objects. When the main content and the auxiliary content are displayed on the screen at the same time, the main content and the auxiliary content can still be seamlessly spliced ​​into display content with matching display effects and continuous display objects, which effectively improves the display effect and continuity of the displayed content.

[0199] A content processing method provided by an embodiment of the present disclosure can obtain the initial content to be displayed in response to a content acquisition request sent by a client device; divide the initial content into main content and auxiliary content, determine the main content and the auxiliary content as the target content to be displayed; and send the target content to be displayed to the client device. This embodiment divides the initial content into main content and auxiliary content, determines the main content and the auxiliary content as the target content to be displayed and sends them to the client device, so that the client device only needs to save one target content to be displayed so that the target content to be displayed can be adapted to both the non-special-shaped screen and the special-shaped screen, effectively saving the storage space of the electronic device. At the same time, since the target content includes auxiliary content for display in the special-shaped display area and main content for display in other display areas, this embodiment can adjust these two parts separately to adapt to the special-shaped display area and other display areas respectively, effectively improving the adaptation effect.

[0200] Fig.18is a block diagram of a content display device according to an exemplary embodiment. Fig.18 As shown, the content display device includes: a content acquisition unit 31, a first adaptation unit 32 and a second adaptation unit 33.

[0201] The content acquisition unit 31 is configured to execute, in response to the received content display request, acquiring target content to be displayed, wherein the target content includes main content and auxiliary content;

[0202] The first adapting unit 32 is configured to detect that the screen type of the electronic device displaying the target content is a special-shaped screen, display the auxiliary content in the special-shaped display area of ​​the special-shaped screen, and display the main content in other display areas of the special-shaped screen except the special-shaped display area;

[0203] The second adapting unit 33 is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and display the main content in the entire display area of ​​the non-special-shaped screen.

[0204] Optionally, the content acquisition unit 31 acquires target content to be displayed, and is specifically configured to obtain initial content to be displayed, divide the initial content into main content and auxiliary content, and determine the main content and the auxiliary content as target content to be displayed.

[0205] Optionally, the content acquisition unit 31 divides the initial content into main content and auxiliary content, and is specifically configured to divide the initial content into main content and auxiliary content through a dividing line parallel to the first direction, wherein a size of the auxiliary content in the second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0206] Optionally, the first adaptation unit 32 displays the auxiliary content in the irregular display area in the irregular screen, and is specifically configured to adjust the auxiliary content according to the size of the irregular display area in the irregular screen so that the size of the adjusted auxiliary content is adapted to the size of the irregular display area; and display the adjusted auxiliary content in the irregular display area in the irregular screen.

[0207] Optionally, the first adaptation unit 32 adjusts the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area, and is specifically configured to perform at least one of the following three processes:

[0208] Processing 1: when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction, wherein the first direction is perpendicular to the second direction; when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction;

[0209] Process 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction;

[0210] Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

[0211] Optionally, the first adaptation unit 32 displays the main content in other display areas except the special-shaped display area in the special-shaped screen, and is specifically configured to adjust the main content of the interface to be displayed so that the size of the adjusted main content in the first direction is adapted to the size of the other display areas in the first direction, and display the adjusted main content in the other display areas;

[0212] and / or,

[0213] The second adaptation unit 33 displays the main content in the entire display area of ​​the non-irregular screen, and is specifically configured to adjust the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displays the adjusted main content in the entire display area.

[0214] Optionally, the first adapting unit 32 displays the auxiliary content in the irregular display area of ​​the irregular screen, and is specifically configured to display the auxiliary content in the irregular display area through the first display control, wherein the border of the first display control overlaps with the circumscribed rectangle of the irregular display area;

[0215] and / or,

[0216] The first adapting unit 32 displays the main content in other display areas except the special-shaped display area in the special-shaped screen, and is specifically configured to display the main content in other display areas through the second display control, wherein the border of the second display control overlaps with the other display areas.

[0217] Optionally, another content display device provided by the present disclosure may further include:

[0218] The control hiding unit is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen and hide the first display control.

[0219] Optionally, the content acquisition unit 31 acquires the target content to be displayed, and is specifically configured to execute sending a content acquisition request to the server device; and obtain the target content to be displayed returned by the server device.

[0220] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0221] The present disclosure provides a content display device, which can obtain the target content to be displayed in response to the received content display request, wherein the target content includes the main content and the auxiliary content; when it is detected that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; when it is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen. In this embodiment, only one target content to be displayed needs to be saved so that the target content to be displayed can be adapted to both the non-special-shaped screen and the special-shaped screen, which effectively saves the storage space of the electronic device. At the same time, since the target content includes the auxiliary content for displaying in the special-shaped display area and the main content for displaying in other display areas, the present embodiment can adjust these two parts respectively to adapt to the special-shaped display area and the other display areas respectively, which effectively improves the adaptation effect.

[0222] Fig.19 is a block diagram of a content processing device according to an exemplary embodiment. Fig.18 As shown, the content processing device includes: a request response unit 41, a content segmentation unit 42 and a content sending unit 43.

[0223] The request response unit 41 is configured to execute a response to a content acquisition request sent by a client device to obtain initial content to be displayed;

[0224] A content segmentation unit 42, configured to segment the initial content into main content and auxiliary content, and determine the main content and the auxiliary content as target content to be displayed;

[0225] The content sending unit 43 is configured to execute sending of the target content to be displayed to the client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; and when the client device detects that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen.

[0226] Optionally, the content segmentation unit 42 segments the initial content into main content and auxiliary content, and is specifically configured to segment the initial content into main content and auxiliary content through a segmentation line parallel to the first direction, wherein a size of the auxiliary content in the second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

[0227] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0228] Fig. 20 is a block diagram of a client device according to an exemplary embodiment. Fig. 20 As shown, the client device includes: a processor 51 and a memory 52 for storing executable instructions of the processor 51;

[0229] The processor 51 is configured to execute instructions to implement the content display method provided by any embodiment of the present disclosure.

[0230] Fig.21 is a block diagram of a server device according to an exemplary embodiment. Fig.21 As shown, the server device includes: a processor 61 and a memory 62 for storing executable instructions of the processor 61;

[0231] The processor 61 is configured to execute instructions to implement the content processing method provided by any embodiment of the present disclosure.

[0232] Fig. 22 is a block diagram of a content processing system according to an exemplary embodiment. Fig. 22 As shown, the content processing system includes: a client device 71 and a server device 72.

[0233] The client device 71 may be Fig. 20The client device shown, the server device 72 can be Fig.21 The server device shown.

[0234] Fig.23 According to an exemplary embodiment, Fig. 22 The flowchart of the content processing system performing content processing shown in the figure may include:

[0235] In step S81 , the client device 71 sends a content acquisition request to the server device 72 in response to the received content display request.

[0236] In step S82 , the server device 72 obtains the initial content to be displayed in response to the content acquisition request sent by the client device 71 .

[0237] In step S83 , the server device 72 divides the initial content into main content and auxiliary content, and determines the main content and the auxiliary content as target content to be displayed.

[0238] In step S84 , the server device 72 sends the target content to be displayed to the client device 71 .

[0239] In step S85, the client device 71 detects that the screen type of the electronic device displaying the target content is a special-shaped screen, displays the auxiliary content in the special-shaped display area of ​​the special-shaped screen, and displays the main content in other display areas of the special-shaped screen except the special-shaped display area.

[0240] In step S86 , the client device 71 detects that the screen type of the electronic device displaying the target content is a non-irregular screen, and displays the main content in the entire display area of ​​the non-irregular screen.

[0241] The electronic device that displays the target content may be the same device as the client device 71 or a different device.

[0242] Among them, Fig.23 During each execution of the process shown, only one of step S85 and step S86 may be executed.

[0243] In an exemplary embodiment, a storage medium including instructions is also provided, such as Figure 5 The memory 52 includes instructions, and the instructions can be executed by the processor 51 of the client device to complete any of the above content display methods. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0244] In an exemplary embodiment, another storage medium including instructions is also provided, such as Figure 6 The memory 62 includes instructions, and the instructions can be executed by the processor 61 of the server device to complete any of the above content processing methods. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

[0245] In an exemplary embodiment, a computer program product is also provided. When executed on a client device, the computer program product is adapted to execute a program for initiating the steps of the content display method provided in any embodiment.

[0246] In an exemplary embodiment, a computer program product is also provided. When executed on a server device, the computer program product is suitable for executing a program that initializes the steps of the content processing method provided in any embodiment.

[0247] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims. It should be understood that the present disclosure is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A content display method, characterized in that: The method comprises: In response to the received content display request, acquiring target content to be displayed, the target content including main content and auxiliary content; Detecting that the screen type of the electronic device displaying the target content is a special-shaped screen, displaying the auxiliary content in a special-shaped display area of ​​the special-shaped screen, and displaying the main content in other display areas of the special-shaped screen except the special-shaped display area; wherein displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen comprises: adjusting the auxiliary content according to the size of the special-shaped display area of ​​the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area; and displaying the adjusted auxiliary content in the special-shaped display area of ​​the special-shaped screen; Detecting that the screen type of the electronic device displaying the target content is a non-special-shaped screen, displaying the main content in the entire display area of ​​the non-special-shaped screen; Wherein, the obtaining of target content to be displayed includes: Obtaining initial content to be displayed, dividing the initial content into the main content and the auxiliary content, and determining the main content and the auxiliary content as target content to be displayed; The step of dividing the initial content into the main content and the auxiliary content includes: The initial content is divided into the main content and the auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

2. The content display method according to claim 1, characterized in that: The adjusting the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the auxiliary content after adjustment is adapted to the size of the special-shaped display area includes at least one of the following three processes: Processing 1: when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction, wherein the first direction is perpendicular to the second direction; when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction; Process 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction; Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

3. The content display method according to claim 1, characterized in that: Displaying the main content in other display areas of the special-shaped screen except the special-shaped display area includes: adjusting the main content of the display interface to be displayed so that the size of the adjusted main content in the first direction is adapted to the size of the other display area in the first direction, and displaying the adjusted main content in the other display area; and / or, Displaying the main content in the entire display area of ​​the non-irregular screen includes: adjusting the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displaying the adjusted main content in the entire display area.

4. The content display method according to claim 1, characterized in that: The displaying of the auxiliary content in the special-shaped display area of ​​the special-shaped screen includes: displaying the auxiliary content in the special-shaped display area through a first display control, wherein the frame of the first display control overlaps with the circumscribed rectangle of the special-shaped display area; and / or, Displaying the main content in other display areas of the special-shaped screen except the special-shaped display area includes: displaying the main content in the other display areas through a second display control, wherein a border of the second display control overlaps with the other display areas.

5. The content display method according to claim 4, characterized in that: Also includes: It is detected that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and the first display control is hidden.

6. The content display method according to any one of claims 1 to 5, characterized in that: The step of obtaining the target content to be displayed includes: Send a content acquisition request to the server device; Obtain the target content to be displayed returned by the server device.

7. A content processing method, characterized in that: The method comprises: In response to a content acquisition request sent by a client device, obtaining initial content to be displayed; dividing the initial content into main content and auxiliary content, and determining the main content and the auxiliary content as target content to be displayed; The target content to be displayed is sent to a client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; wherein, displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen comprises: adjusting the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area; displaying the adjusted auxiliary content in the special-shaped display area of ​​the special-shaped screen; and when the client device detects that the screen type of the electronic device displaying the target content is a non-special-shaped screen, the main content is displayed in the entire display area of ​​the non-special-shaped screen; The step of dividing the initial content into the main content and the auxiliary content includes: The initial content is divided into the main content and the auxiliary content by a dividing line parallel to the first direction, wherein a size of the auxiliary content in a second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

8. A content display device, characterized in that: The content display device comprises: a content acquisition unit, configured to execute, in response to the received content display request, acquiring target content to be displayed, wherein the target content includes main content and auxiliary content; A first adaptation unit is configured to detect that the screen type of the electronic device displaying the target content is a special-shaped screen, display the auxiliary content in the special-shaped display area of ​​the special-shaped screen, and display the main content in other display areas of the special-shaped screen except the special-shaped display area; wherein the first adaptation unit displays the auxiliary content in the special-shaped display area of ​​the special-shaped screen, and is specifically configured to adjust the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area; and display the adjusted auxiliary content in the special-shaped display area of ​​the special-shaped screen; A second adapting unit is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen, and display the main content in the entire display area of ​​the non-special-shaped screen; The content acquisition unit acquires the target content to be displayed, and is specifically configured to acquire the initial content to be displayed, divide the initial content into the main content and the auxiliary content, and determine the main content and the auxiliary content as the target content to be displayed; Among them, the content acquisition unit divides the initial content into the main content and the auxiliary content, and is specifically configured to divide the initial content into the main content and the auxiliary content through a dividing line parallel to the first direction, wherein the size of the auxiliary content in the second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

9. The content display device according to claim 8, characterized in that: The first adaptation unit adjusts the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area, and is specifically configured to perform at least one of the following three processes: Processing 1: when the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, the auxiliary content is cropped so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction, wherein the first direction is perpendicular to the second direction; when the first size ratio of the auxiliary content and the second size ratio of the special-shaped display area are the same, the auxiliary content is scaled so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction, wherein the first size ratio is the ratio of the size of the auxiliary content in the first direction to the size of the auxiliary content in the second direction, and the second size ratio is the ratio of the size of the special-shaped display area in the first direction to the size of the special-shaped display area in the second direction; Process 2: scaling the auxiliary content so that the size of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction; cropping the auxiliary content so that the size of the remaining part of the auxiliary content in the second direction is the same as the size of the special-shaped display area in the second direction; Processing three: cropping the auxiliary content so that the first size ratio of the remaining part of the auxiliary content is the same as the second size ratio of the special-shaped display area; scaling the auxiliary content so that the size of the remaining part of the auxiliary content in the first direction is the same as the size of the special-shaped display area in the first direction.

10. The content display device according to claim 8, characterized in that: The first adaptation unit displays the main content in other display areas of the special-shaped screen except the special-shaped display area, and is specifically configured to adjust the main content of the interface to be displayed so that the size of the adjusted main content in the first direction is adapted to the size of the other display areas in the first direction, and display the adjusted main content in the other display areas; and / or, The second adaptation unit displays the main content in the entire display area of ​​the non-irregular screen, and is specifically configured to adjust the main content so that the size of the adjusted main content in the first direction is adapted to the size of the entire display area of ​​the non-irregular screen in the first direction, and displays the adjusted main content in the entire display area.

11. The content display device according to claim 8, characterized in that: The first adapting unit displays the auxiliary content in the irregular display area of ​​the irregular screen, and is specifically configured to display the auxiliary content in the irregular display area through a first display control, wherein the border of the first display control overlaps with the circumscribed rectangle of the irregular display area; and / or, The first adaptation unit displays the main content in other display areas of the special-shaped screen except the special-shaped display area, and is specifically configured to display the main content in the other display areas through a second display control, wherein the border of the second display control overlaps with the other display areas.

12. The content display device according to claim 11, characterized in that: Also includes: The control hiding unit is configured to detect that the screen type of the electronic device displaying the target content is a non-special-shaped screen and hide the first display control.

13. The content display device according to any one of claims 8 to 12, characterized in that: The content acquisition unit acquires target content to be displayed, and is specifically configured to execute sending a content acquisition request to a server device; and obtain the target content to be displayed returned by the server device.

14. A content processing device, characterized in that: The content processing device comprises: a request response unit, configured to execute a response to a content acquisition request sent by a client device, and obtain initial content to be displayed; A content segmentation unit, configured to segment the initial content into main content and auxiliary content, and determine the main content and the auxiliary content as target content to be displayed; A content sending unit is configured to execute sending the target content to be displayed to a client device, so that when the client device detects that the screen type of the electronic device displaying the target content is a special-shaped screen, the auxiliary content is displayed in the special-shaped display area of ​​the special-shaped screen, and the main content is displayed in other display areas of the special-shaped screen except the special-shaped display area; wherein, displaying the auxiliary content in the special-shaped display area of ​​the special-shaped screen comprises: adjusting the auxiliary content according to the size of the special-shaped display area in the special-shaped screen so that the size of the adjusted auxiliary content is adapted to the size of the special-shaped display area; displaying the adjusted auxiliary content in the special-shaped display area of ​​the special-shaped screen; and enabling the client device to display the main content in the entire display area of ​​the non-special-shaped screen when detecting that the screen type of the electronic device displaying the target content is a non-special-shaped screen; Among them, the content segmentation unit segments the initial content into the main content and the auxiliary content, and is specifically configured to segment the initial content into the main content and the auxiliary content through a segmentation line parallel to the first direction, wherein the size of the auxiliary content in the second direction is not less than a preset size, and the second direction is perpendicular to the first direction.

15. A client device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the content display method according to any one of claims 1 to 6.

16. A server device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the content processing method as claimed in claim 7.

17. A content processing system, characterized in that: include: The client device as claimed in claim 15 and the server device as claimed in claim 16.

18. A storage medium, comprising instructions, wherein the instructions are executed by a processor of a client device to implement the content display method according to any one of claims 1 to 6.

19. A storage medium, comprising instructions, wherein the instructions are executed by a processor of a server device to complete the content processing method of claim 7.