Information display method, device and readable storage medium

By dynamically adjusting the height of the information display area and responding to user operations, the problems of cumbersome information display operations and poor user experience in the existing technology are solved, and a more convenient and efficient information browsing experience is achieved.

CN112612566BActive Publication Date: 2025-01-21BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011507176.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-18
Publication Date
2025-01-21
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

The existing technology is rigid and cumbersome when displaying information, has poor user experience, and has little benefit during information browsing.

Method used

By dynamically adjusting the height of the target area for displaying target information in real time, in response to the user's trigger operation, the display height of the target information is determined, and content corresponding to the target height is displayed in the target area.

Benefits of technology

It improves the user's operational convenience and quality of experience during information browsing, allowing users to view the content they need according to their own needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112612566B_ABST
    Figure CN112612566B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an information display method, device and readable storage medium, which are designed in the field of front-end display, and can dynamically and in real time adjust the height of a target area for displaying target information, without being limited by the limited interface area for displaying information and pre-shortening the target information, so that the user's operation in the process of browsing text information is more convenient and quick, and the user experience is improved. The method includes: in response to a trigger operation on the target information, determining the display height of the target information in the target direction; according to the operation information and the display height of the trigger operation, obtaining the target height of the target area in the target direction; the target area is used to display the target information; the height of the target area is adjusted to the target height, and the target content corresponding to the target height in the target information is displayed in the target area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of front-end display, and in particular to an information display method, device and readable storage medium. Background Art

[0002] At present, when terminals display comments, questions and answers, etc., they mostly use a folding display method such as thumbnail display of about 3 lines of content to facilitate users to see more information within the screen range and then select more interesting information for browsing. Figure 1 As shown in a, for information displayed in a thumbnail display mode of three lines, the user can click on the control corresponding to the words "more" to display all the contents of the information, such as Figure 1 When all the contents of the information are fully expanded and displayed, the user can click the corresponding control of "collapse" to restore the information to the state shown in FIG. Figure 1 The display format of 3-line thumbnail display shown in a.

[0003] It can be seen that the operations in the text information browsing process in the prior art are rigid and cumbersome and bring little benefit to the user, which has a bad impact on the user's reading experience and a poor user experience. Summary of the invention

[0004] The present disclosure relates to an information display method, device and readable storage medium, which can dynamically and in real time adjust the height of a target area for displaying target information, without pre-shortening the target information due to the limited interface area for displaying the information, so that the user's operation in the process of browsing the information is more convenient and quick, thereby improving the user experience.

[0005] To achieve the above objectives, the embodiments of the present disclosure adopt the following technical solutions:

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an information display method, comprising: in response to a trigger operation on target information, determining a display height of the target information in a target direction; acquiring a target height of a target area in the target direction according to the operation information and the display height of the trigger operation; the target area is used to display the target information; adjusting the height of the target area to the target height, and displaying target content corresponding to the target height in the target information in the target area.

[0007] Optionally, when the trigger operation is a sliding operation, the target height of the target area in the target direction is obtained according to the operation information and display height of the trigger operation, including: determining the sliding direction and sliding distance according to the operation information of the sliding operation; determining the target height of the target area in the target direction according to the display height, sliding direction and sliding distance.

[0008] Optionally, the sliding direction and sliding distance are determined according to the operation information of the sliding operation, including: determining the initial position and the end position of the sliding operation according to the operation information of the sliding operation; determining the sliding direction according to the direction of the component of the displacement in the target direction corresponding to the initial position and the end position; and determining the size of the component of the displacement in the target direction as the sliding distance.

[0009] Optionally, the target height of the target area in the target direction is determined based on the display height, sliding direction and sliding distance, including: when the sliding direction is a first direction, if the sum of the display height and the sliding distance is greater than or equal to a preset maximum height, the preset maximum height is determined as the target height; if the sum of the display height and the sliding distance is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height; when the sliding direction is a second direction opposite to the first direction, if the difference between the display height and the sliding distance is greater than or equal to a preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance is less than the preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction.

[0010] Optionally, when an information display control for displaying target information is provided in the target area, the height of the target area is adjusted to the target height, and the target content corresponding to the target height in the target information is displayed in the target area, including: determining the target number of rows of the information display control in the target direction according to the target height, a preset unit height and a preset spacing; adjusting the number of display rows of the information display control in the target area to the target number of rows, and displaying the target content in the information display control.

[0011] Optionally, the target number of rows of the information display control in the target direction is determined according to the target height, the preset unit height and the preset spacing, including: dividing the target height by the quotient of the sum of the preset unit height and the preset spacing to determine the target number of rows.

[0012] Optionally, the method further includes: in response to a target operation on target content in the target area, displaying content corresponding to the target operation in the target information in the target area; the content corresponding to the target operation includes content different from the target content.

[0013] According to the second aspect of the embodiment of the present disclosure, there is provided an information display device, comprising: a determination module, an acquisition module and a display module. The determination module is configured to determine the display height of the target information in the target direction in response to a trigger operation on the target information; the acquisition module is configured to acquire the target height of the target area in the target direction according to the operation information of the trigger operation and the display height determined by the determination module; the target area is used to display the target information; the display module is configured to adjust the height of the target area to the target height, and display the target content corresponding to the target height in the target information in the target area.

[0014] Optionally, when the trigger operation is a sliding operation, the acquisition module is specifically configured to: determine the sliding direction and sliding distance according to the operation information of the sliding operation; determine the target height of the target area in the target direction according to the display height, sliding direction and sliding distance.

[0015] Optionally, the acquisition module is specifically configured to: determine the initial position and end position of the sliding operation according to the operation information of the sliding operation; determine the sliding direction according to the direction of the component of the displacement in the target direction corresponding to the initial position and the end position; and determine the size of the component of the displacement in the target direction as the sliding distance.

[0016] Optionally, the acquisition module is specifically configured as follows: when the sliding direction is a first direction, if the sum of the display height and the sliding distance determined by the determination module is greater than or equal to a preset maximum height, the preset maximum height is determined as the target height; if the sum of the display height and the sliding distance determined by the determination module is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height; when the sliding direction is a second direction opposite to the first direction, if the difference between the display height determined by the determination module and the sliding distance is greater than or equal to a preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance determined by the determination module is less than the preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction.

[0017] Optionally, when an information display control for displaying target information is provided in the target area, the display module is specifically configured to: determine the target number of rows of the information display control in the target direction according to a preset unit height, a preset spacing and a target height obtained by the acquisition module; adjust the number of display rows of the information display control in the target area to the target number of rows, and display the target content in the information display control.

[0018] Optionally, the display module is specifically configured to: divide the target height obtained by the obtaining module by the sum of a preset unit height and a preset spacing to determine the target number of rows.

[0019] Optionally, the display module is further configured to: in response to a target operation on a target content in the target area, display content corresponding to the target operation in the target information in the target area; the content corresponding to the target operation includes content different from the target content.

[0020] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, comprising a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the information display method provided in the first aspect.

[0021] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the information display method provided in the first aspect.

[0022] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising instructions, which, when executed on a terminal, enables the terminal to execute the information display method provided in the first aspect.

[0023] It can be understood that in the technical solution provided by the embodiment of the present disclosure, when a user trigger operation on target information is detected, the display height of the target information in the target direction will be determined in response to the trigger operation, and then the target height of the target area used to display the target information in the target direction will be obtained according to the operation information and display height of the trigger operation, and then the height of the target area will be adjusted to the target height and the content corresponding to the target height in the target information will be displayed in the target area. In this way, the height of the target area used to display the target information can be dynamically and in real time adjusted according to different user trigger operations, without the need to pre-shorten the target information due to the limited interface area for displaying the information, so that the user can browse the content he needs to browse in the target area more conveniently and quickly, thereby improving the user experience.

[0024] 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

[0025] Figure 1 A schematic diagram of an information browsing process provided by the prior art;

[0026] Figure 2 A schematic diagram of the structure of an information display system provided by an embodiment of the present disclosure;

[0027] Figure 3 A schematic diagram of a method for displaying information provided by the present disclosure Figure 1 ;

[0028] Figure 4A schematic diagram of an information display scenario provided by an embodiment of the present disclosure;

[0029] Figure 5 A schematic diagram of another information display scenario provided by an embodiment of the present disclosure;

[0030] Figure 6 A schematic diagram of a method for displaying information provided by the present disclosure Figure 2 ;

[0031] Figure 7 A schematic diagram of a method for displaying information provided by the present disclosure Figure 3 ;

[0032] Figure 8 A schematic diagram of a method for displaying information provided by the present disclosure Figure 4 ;

[0033] Fig. 9 A schematic diagram of a sliding operation scenario provided by an embodiment of the present disclosure;

[0034] Fig.10 A schematic diagram of a method for displaying information provided by the present disclosure Figure 5 ;

[0035] Fig.11 A schematic diagram of a method for displaying information provided by the present disclosure Figure 6 ;

[0036] Fig.12 A schematic diagram of a method for displaying information provided by the present disclosure Figure 7 ;

[0037] Fig.13 A schematic diagram of a method for displaying information provided by the present disclosure Figure 8 ;

[0038] Fig.14 A schematic diagram of a method for displaying information provided by the present disclosure Figure 9 ;

[0039] Fig.15 A schematic diagram of a method for displaying information provided by the present disclosure Figure 10 ;

[0040] Fig.16 A schematic diagram of the structure of an information display device provided by an embodiment of the present disclosure;

[0041] Fig.17 A schematic diagram of the structure of another information display device provided by an embodiment of the present disclosure;

[0042] Fig.18A schematic diagram of the structure of a terminal provided in an embodiment of the present disclosure;

[0043] Fig.19 A schematic diagram of the structure of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] In order to enable ordinary persons in the art 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.

[0045] 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 herein can be implemented in an order other than those illustrated or described herein. 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. It should also be understood that the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements and / or components.

[0046] The data involved in the present disclosure may be data authorized by the user or fully authorized by all parties.

[0047] First, the application scenarios of the technical solutions provided by this disclosure are introduced:

[0048] Please refer to Figure 2 , is a schematic diagram of the structure of an information display system provided by an embodiment of the present disclosure, and the information display method provided by an embodiment of the present disclosure can be applied to the information display system. Figure 2 As shown, the system may include: a terminal 01 and a server 02, and the terminal 01 communicates with the server 02 via a wired communication method or a wireless communication method.

[0049] For example, the terminal 01 in the embodiment of the present disclosure may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR)\virtual reality (VR) device and other devices that can install and use content community applications (such as Kuaishou), and the embodiment of the present application does not impose any special restrictions on the specific form of the terminal. It can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device.

[0050] Exemplarily, the server 02 in the present disclosure can be a single server, or a server cluster consisting of multiple servers, or a cloud computing service center, which is not limited in the present disclosure. In the present disclosure, the server 02 can include multiple content community application service platforms, and each content community application service platform uniquely corresponds to an application. The application is installed on the terminal 01, and multimedia resources (text or pictures) are displayed on the content display interface of the terminal 01. The server 02 is mainly used to store relevant data of the content community application installed on the terminal 01, and can send corresponding data to the terminal upon receiving a data acquisition request sent by the terminal 01. The server 02 can be connected to at least one terminal 01, and the present disclosure does not specifically limit the number and type of the terminal 01.

[0051] As described in the background technology, when displaying comments, questions and answers, etc., the terminal mostly uses a folding display method such as thumbnail display of 3 lines of content to display them, so that users can see more information within the screen range and effectively select the information they are interested in for browsing. With this display method, when viewing a piece of information, the user can only control the amount of information displayed through the controls corresponding to the words "expand more" and the spaces corresponding to the words "collapse", etc. The operation is rigid and cumbersome, and the benefits brought to users are not good, resulting in a poor user experience.

[0052] In view of the above problems, the disclosed embodiments provide an information display method, which enables the terminal to dynamically and in real time adjust the height of the target area for displaying target information according to different trigger operations of the user, without being limited by the limited interface area for displaying information and pre-scaling the target information, so that the user can view the corresponding content in the target area as needed, thereby improving the user experience. The specific execution subject of the method can be the terminal in the above information display system, or the server therein, or the information display system itself, depending on the actual needs.

[0053] Reference Figure 3 As shown, the present disclosure implements a flow chart of an information display method, which, when applied to terminal 01, includes: 301-303.

[0054] 301. In response to a triggering operation on target information, determine a display height of the target information in a target direction.

[0055] For example, the trigger operation may be any feasible operation such as a sliding operation or a clicking operation, which is determined according to actual needs and is not specifically limited here. The target information may be multiple lines of text information, such as user comments; in addition, the text information mentioned here may contain emoticons (such as emoji images).

[0056] In an application scenario, the target information is user comments, and the trigger operation is a sliding operation. Figure 4 As shown in a, the trigger operation can be a sliding operation performed by the user on the information display page of the terminal (here, the display page of a certain work of the user). In addition, taking the target direction as the up and down direction as an example, refer to Figure 4 As shown in a, the display height of the target information may be the height h of the thumbnail displayed portion of the target information 41 in the up and down directions.

[0057] In the present disclosure, the "user" corresponding to all operations can be a user who logs in to the content community application installed on the terminal as a visitor, or a user who logs in to the content community application installed on the terminal with a fixed account; the user can be the author of the target information, or not the author of the target information; the present disclosure does not make specific restrictions on this.

[0058] Exemplarily, the target direction may be upward or downward, or left or right, which may be determined according to actual conditions, and the present disclosure does not impose any specific limitation thereto.

[0059] For example, all the contents of the target information may be stored in the local memory of the terminal. When more or less of the target information needs to be displayed later, it can be directly extracted from the memory as needed. This can reduce the delay in the terminal displaying the corresponding content after the user triggers the operation, making the entire user browsing process smoother and improving the user experience.

[0060] 302. Obtain a target height of the target area in a target direction according to the operation information of the triggering operation and the display height.

[0061] The target area is used to display target information. In the embodiment of the present disclosure, the target height specifically refers to the height of the target area used to display target information in the target direction when it is subsequently displayed.

[0062] 303. Adjust the height of the target area to the target height, and display the target content corresponding to the target height in the target information in the target area.

[0063] In a possible implementation, taking the target information as a user comment and the trigger operation as a sliding operation as an example, the target content corresponding to the target height in the target information displayed in the target area of ​​the information display page for displaying the user comment can be as follows: Figure 4 As shown in b, when the user Figure 4 After sliding downward or upward in the information display page shown in a, the target area 42 where the target information 41 is located is expanded downward to display the target content corresponding to the target height in the target information.

[0064] In another possible implementation, taking the target information as a user comment and the trigger operation as a sliding operation as an example, the target content corresponding to the target height in the target information displayed in the target area of ​​the information display page for displaying the user comment can be as follows: Figure 5 As shown in b, when the user Figure 5 After sliding leftward or rightward in the information display page shown in a, the area occupied by the target information 41 is expanded rightward to form a target area 43 to display the target content corresponding to the target height in the target information.

[0065] Based on the above technical solution, because the terminal can dynamically and real-time adjust the height of the target area used to display the target information according to different trigger operations of the user, the user can browse the content he needs to browse in the target area without having to pre-thumbnail the target information due to the limited interface area for displaying information as in the prior art. Therefore, the user can view the content he wants to view according to his own needs, and the operation in the entire information browsing process is more convenient and quick, thereby improving the user experience.

[0066] Optionally, in one practicable manner, combining Figure 3 ,like Figure 6 As shown, because the technical solution provided by the present disclosure is for a certain target information, in order to clarify the target information that the user wants to browse and avoid the terminal arbitrarily selecting the object corresponding to the user's triggering operation, step 301 also includes 300:

[0067] 300. In response to a selection operation performed on an information display page, determine target information.

[0068] The information display page is a page used to display target information.

[0069] In an optional solution, the selected operation may be a long press (pressing time exceeds a preset time (e.g., 1 second)), for details, see Figure 4 As shown in c, after the user long presses the target information 41, the terminal selects the target information 41 as the corresponding object of the subsequent trigger operation, and then Figure 4 The user's trigger operation is received as shown in a.

[0070] In another optional solution, the selection operation may be to click a selection button corresponding to the information. For details, please refer to Figure 5 As shown in Figure c, after the user clicks the small box control next to the target information 41, the terminal selects the target information 41 as the corresponding object of the subsequent trigger operation, and then Figure 5 The trigger operation of the user is received as shown in a. Further, in order to intuitively show the user's selection, refer to Figure 5 As shown in a, after the user clicks the small box control next to the target information 41, "√" may appear in the small box.

[0071] In one achievable approach, combining Figure 6 , refer to Figure 7 As shown, in the case where the triggering operation is a sliding operation, step 302 may specifically include 3021 and 3022:

[0072] 3021. Determine a sliding direction and a sliding distance according to operation information of the sliding operation.

[0073] Specifically, the terminal is generally provided with a gesture recognition module for monitoring user gesture operations. After the user performs a selection operation on the information display page of the terminal, in order to perform the subsequent step 301, the terminal will also respond to the selection operation performed on the information display page, start the gesture recognition module, and perform gesture recognition. The gesture recognition module can recognize the user's sliding operation on the terminal screen and determine the sliding direction and sliding distance.

[0074] The operation information of the sliding operation may be a sliding track corresponding to the sliding operation. For example, because the sliding direction of the user may not be a straight line when performing the sliding operation, in order to facilitate calculation, a directed line segment from the starting point to the end point of the sliding operation may be taken as the sliding track, and the sliding direction and sliding distance may be determined based on this as the operation information. Of course, in practice, the actual sliding track may also be considered to determine the sliding direction and sliding distance in a more complex calculation method.

[0075] 3022. Determine a target height of the target information in a target direction according to the display height, the sliding direction, and the sliding distance.

[0076] Based on the above scheme, when the trigger operation is a sliding operation, the terminal can determine the target height of the target information in the target direction according to the sliding direction and sliding distance of the sliding operation and the display height of the display part of the target information in the target direction, and then display the target information accordingly in the target area with the target height. The target area for displaying the target information is dynamically adjusted in real time according to the user's trigger operation to achieve the purpose of displaying different contents, avoiding the defect of the existing information display method that the target information needs to be abbreviated in advance due to the limited interface area for displaying the information, resulting in a poor user experience.

[0077] In one achievable approach, combining Figure 7 , refer to Figure 8 As shown, step 3021 may specifically include S1-S3:

[0078] S1. Determine an initial position and an end position of the sliding operation according to operation information of the sliding operation.

[0079] For example, in order to better clarify the initial position and the end position, the initial position and the end position can be determined in step S1 in combination with the screen coordinate system of the terminal. Fig. 9 As shown, in the screen coordinate system, the upper left corner of the screen can be used as the origin, the straight line in the up and down directions of the origin can be used as the vertical coordinate, and the straight line in the left and right directions of the origin can be used as the horizontal coordinate. Based on this coordinate system, the coordinates of the initial position O of the sliding operation (2,2) and the coordinates of the end position A (3,5) can be determined.

[0080] Of course, in practice, other feasible coordinate systems can also be used as long as the initial position and the end position can be clearly defined.

[0081] S2. Determine the sliding direction according to the direction of the component of the displacement corresponding to the initial position and the end position in the target direction.

[0082] For example, the target direction is the downward direction (i.e. Fig. 9 Take the positive direction of the y-axis in as an example, refer to Fig. 9 As shown in, after the coordinates of the initial position and the end position are determined, the corresponding displacement component in the target direction is The coordinates of B are (2, 5); the sliding direction is also downward.

[0083] S3. Determine the magnitude of the component of the displacement in the target direction as the sliding distance.

[0084] For example, taking the target direction as the downward direction, refer to Fig. 9 As shown, the displacements corresponding to the initial position and the final position are Component in the target direction The size of is the length of line segment OB, which is 3.

[0085] Based on the above technical solution, the terminal can clarify the sliding direction and sliding distance corresponding to the sliding operation based on the initial position and end position of the sliding operation, which provides data support for the subsequent terminal to determine the target height of the target area in the target direction according to the sliding direction and sliding, and then adjust the target area to complete the corresponding display of the target information.

[0086] In one achievable approach, combining Figure 7 , refer to Fig.10 As shown, step 3022 may specifically include X1 and X2:

[0087] X1. When the sliding direction is the first direction, if the sum of the display height and the sliding distance is greater than or equal to the preset maximum height, the preset maximum height is determined as the target height; if the sum of the display height and the sliding distance is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height.

[0088] Specifically, in the embodiment of the present disclosure, because it is necessary to determine whether the target height of the target area in the target direction is greater than the display height (increase the content of the display part) or less than the display height (reduce the content of the display part) according to the trigger operation, it is necessary to determine whether the display height is increased to the target height or decreased to the target height when the sliding direction is the target direction or the opposite direction of the target direction. In the present disclosure, the first direction corresponds to the case where the target height is greater than the display height, and the second direction opposite to the first direction corresponds to the case where the target height is less than the display height. The preset maximum height is the maximum height H in the target direction when the target area can display all the content of the target information.

[0089] In a feasible scenario, the target direction is the upward direction, the first direction is the downward direction, and the second direction is the upward direction. Figure 4As shown in a, the display height of the target information 41 is h. When the user's sliding operation is downward sliding and the sliding distance is a, and h+a is less than H, it is determined that the target height of the target information 41 in the target direction is h+a. Then, the following can be performed as follows Figure 4 As shown in b, the information display page displays the target content corresponding to the target height displayed in the target information 41.

[0090] X2. When the sliding direction is a second direction opposite to the first direction, if the difference between the display height and the sliding distance is greater than or equal to the preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance is less than the preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction.

[0091] The preset minimum height is the minimum height Y in the target direction when the target information displays the least content (for example, 3 lines of content are thumbnailed).

[0092] In a feasible scenario, the target direction is the upward direction, the first direction is the downward direction, and the second direction is the upward direction. Figure 4 As shown in b, the display height of the target information 41 is h+a. When the user's sliding operation is upward sliding and the sliding distance is x, and h+ax is less than Y, it is determined that the target height of the target information 41 in the target direction is h+a. Then, the following can be performed as follows Figure 4 As shown in (d), the information display page displays the target content corresponding to the target height displayed in the target information 41.

[0093] In addition, it should be noted that in the above steps X1 and X2, the difference or sum of the display height and the sliding distance is determined as the target height (the maximum is the preset maximum height, and the minimum is the preset minimum height). However, in practice, if the screen is larger in the target direction, according to the needs of different users, the difference or sum of the display height and the integer multiples of the sliding distance can also be determined as the target height, that is, in actual performance, it can be reflected that when the user slides 1 cm, the height of the display part of the target information increases by an integer multiple of 1 cm or decreases by an integer multiple of 1 cm. The present disclosure does not make specific restrictions on this.

[0094] Based on the above scheme, the terminal can determine the different target heights of the target information in the target direction for different trigger operations, and limit the target height between the preset minimum height and the preset maximum height to meet the actual situation. Thus, the terminal can dynamically increase or decrease the height of the target area in real time according to the user's trigger operation, thereby improving the user experience.

[0095] Further optional, because in practice the terminal displays the target information based on refreshing the information display control used to display the target information (adjusting the number of display lines and display content of the information display control), the display of the target information by the terminal is realized by combining Figure 6 , refer to Fig.11 As shown, in the case where an information display control for displaying target information is set in the target area, step 303 specifically includes 3031 and 3032:

[0096] 3031. Determine the target number of rows of the information display control in the target direction according to the target height, the preset unit height, and the preset spacing.

[0097] In one possible implementation, the target height is divided by the sum of the preset unit height and the preset spacing to determine the target number of rows. In addition, when the calculated quotient is a decimal, in order to ensure that the display effect is more in line with user expectations and that any possible information such as text, pictures, or videos is not displayed in half, it is rounded up or down. In this way, the accurate target number of rows can be determined according to the actual situation, which facilitates the subsequent adjustment of the information display control.

[0098] For example, taking the preset unit height as 5, the preset spacing as 3, the target height as 100, and rounding up as an example, the target number of rows is 100 / (3+5)≈13.

[0099] In addition, in practice, the target number of lines is a property of the information display control, number Of Lines, which means the number of lines of text that the information display control is allowed to display.

[0100] 3032. In the target area, the number of display rows of the information display control is adjusted to the target number of rows, and the target content is displayed in the information display control.

[0101] Among them, step 3032 is specifically to refresh the display state of the information display control so that the information display control uses the target number of rows to display the target content in the target information. Exemplarily, the refresh method may be [self.viewsetNeedsLayout] or [self.view layoutIfNeeded].

[0102] Based on the above scheme, the terminal can determine the target number of rows of the information display control corresponding to the target information through the target height, and then refresh the information display control according to the target number of rows, so as to display the target content corresponding to the target height, that is, the display content triggered by the user through the trigger operation, thereby meeting the user's viewing needs and user experience.

[0103] Optionally, because after selecting the target information, the trigger operation performed by the user on the information display page displaying the target information will cause the terminal to change the display content of the target information according to the trigger operation, so combined with Figure 6 , refer to Fig.12 As shown, the information display method further includes 304:

[0104] 304. In response to the stop operation, the height of the target area corresponding to the target information is no longer changed.

[0105] In one achievable manner, when the selected operation is a long press operation and the triggered operation is a sliding operation, the stop operation here may be that the user does not perform any operation on the information display page, that is, the user lifts up his finger and no longer touches the screen.

[0106] In another achievable manner, when the selected operation is clicking on the small box control next to the target information, the stopped operation is clicking on the small box control next to the target information a second time.

[0107] Based on the above scheme, a method for exiting adjustment of the display content of the target information can be provided to the user, so that when the user has finished viewing the target information, the user can perform other operations on the terminal after stopping the operation, thereby improving the entire information display method and enhancing the user experience.

[0108] Optionally, in order to allow users to fully see all the target information in the target area, refer to Fig.12 As shown, the information display method further includes 305:

[0109] 305. In response to a target operation on target content in the target area, display content corresponding to the target operation in the target information in the target area.

[0110] The content corresponding to the target operation includes content different from the target content. In the embodiment of the present disclosure, the content for a target operation can be obtained from the terminal locally or from the server, depending on the actual situation, and no specific limitation is made here.

[0111] Exemplarily, the target operation may be a sliding operation or a scrolling operation.

[0112] In this way, the user can view the complete target information in the target area.

[0113] In another achievable method in the embodiment of the present disclosure, in combination with Figure 3 , refer to Fig.13 As shown, the above step 302 may specifically include 3021A and 3022A:

[0114] 3021A. Send a display request carrying operation information of a triggering operation and a display height of the target information in a target direction to the server.

[0115] The display request is used to request to obtain a target height in a target direction of a target area for displaying target information.

[0116] Specifically, when the triggering operation is a sliding operation, the operation information in the display request may be a sliding track of the sliding operation.

[0117] 3022A. Receive target altitude from server.

[0118] Based on the above solution, the amount of calculation of the terminal can be reduced.

[0119] Fig.14 A flowchart of another information display method according to an exemplary embodiment is shown. When the information display method is applied to Figure 2 When the server 02 is shown, refer to Fig.14 As shown, the method includes 401-403:

[0120] 401. Receive a display request carrying operation information of a triggering operation and a display height of target information in a target direction.

[0121] The display request is used to request to obtain the target height of the target area in the target direction for displaying the target information. The display request may be sent by the terminal to the server in response to a trigger operation.

[0122] 402. Obtain a target height of the target area in a target direction according to the display request.

[0123] The specific method of obtaining the target height in step 402 can refer to the relevant description of step 302 in the above embodiment, which will not be repeated here.

[0124] 403. Send target altitude.

[0125] Based on the above technical solution, after receiving the display request sent by the terminal, the server can send the target height required by the terminal to the terminal in time, so that the terminal can dynamically and in real time adjust the height of the target area according to the target height, and display the target content corresponding to the target height in the target information in the target area. In this way, in the technical solution provided by the embodiment of the present disclosure, because the terminal can dynamically and in real time adjust the height of the target area used to display the target information according to different trigger operations of the user, there is no need to pre-shorten the target information due to the limited interface area for displaying information, so as to meet the user's height requirements for the target area in the target direction, and then allow the user to browse the target information in the target area, instead of displaying all or abbreviating the target information as in the prior art. Therefore, the technical solution provided by the present disclosure enables the user to adjust the height of the target area according to their own needs and view the content they want to view, and the operation during the entire browsing process is more convenient and quick, which improves the user experience.

[0126] Fig.15 is a flowchart of another information display method according to an exemplary embodiment. When the information display method is applied to Figure 2 When the information displayed is in the system, refer to Fig.15 As shown, the display method may include 501-506:

[0127] 501. The terminal receives a selection operation and determines target information.

[0128] 502. The terminal receives a trigger operation and determines a display height of the target information in a target direction.

[0129] 503. The terminal sends a display request carrying operation information of a triggering operation and a display height of the target information in a target direction to the server.

[0130] The display request is used to request to obtain a target height in a target direction of a target area for displaying target information.

[0131] 504. The server obtains a target height of the target area in a target direction according to the display request.

[0132] 505. The server sends the target altitude to the terminal.

[0133] 506. The terminal adjusts the height of the target area to the target height, and displays the target content corresponding to the target height in the target information in the target area.

[0134] It should be noted that the above steps 501-506 may correspond to the following: Figure 3 or Fig.15 In some of the method steps shown, their specific execution methods are similar and will not be repeated here.

[0135] The technical solution provided by the above embodiment brings at least the following beneficial effects: after receiving the trigger operation, the terminal sends a display request to the server, so that after the server obtains the target height required by the terminal, it sends the target height to the terminal, so that the terminal adjusts the height of the target area according to the target height, and displays the corresponding content of the target information in the target area. In this way, because the terminal can dynamically and in real time adjust the height of the target area used to display the target information according to different trigger operations of the user, there is no need to pre-shorten the target information due to the limited interface area for displaying information, so as to meet the user's height requirements for the target area in the target direction, and then the user can browse the target information in the target area, instead of displaying all the target information or displaying it in a thumbnail as in the prior art. Therefore, the technical solution provided by the present disclosure enables the user to adjust the height of the target area according to their own needs and view the content they want to view. The operation during the entire browsing process is more convenient and quick, which improves the user experience.

[0136] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the terminal / server. It is understandable that the terminal / server can respectively implement the above functions through the information display device configured therein. In order to achieve the above functions, the information display device includes a hardware structure and / or software module corresponding to each function, and these hardware structures and / or software modules corresponding to each function can constitute a terminal. It should be easy for those skilled in the art to realize that, in combination with the algorithm steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0137] The embodiments of the present disclosure may divide the terminal / server into functional modules according to the above method examples. For example, the terminal / server may include an information display device, and the information display device may divide each functional module corresponding to each function, or may integrate two or more functions into one processing module. The integrated module may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0138] In the case of dividing each functional module into corresponding functional modules, Fig.16 Shows the application Figure 2A possible structural diagram of an information display device 03 of a terminal 01 is shown in FIG. , and the information display device 03 includes: a determination module 51 , an acquisition module 52 and a display module 53 .

[0139] Among them, the determination module 51 is configured to determine the display height of the target information in the target direction in response to the trigger operation of the target information; the acquisition module 52 is configured to acquire the target height of the target area in the target direction according to the operation information of the trigger operation and the display height determined by the determination module 51; the target area is used to display the target information; the display module 53 is configured to adjust the height of the target area to the target height, and display the target content corresponding to the target height in the target information in the target area.

[0140] Optionally, when the trigger operation is a sliding operation, the acquisition module 52 is specifically configured to: determine the sliding direction and sliding distance according to the operation information of the sliding operation; determine the target height of the target area in the target direction according to the display height, sliding direction and sliding distance.

[0141] Optionally, the acquisition module 52 is specifically configured to: determine the initial position and end position of the sliding operation according to the operation information of the sliding operation; determine the sliding direction according to the direction of the component of the displacement in the target direction corresponding to the initial position and the end position; and determine the size of the component of the displacement in the target direction as the sliding distance.

[0142] Optionally, the acquisition module 52 is specifically configured as follows: when the sliding direction is the first direction, if the sum of the display height and the sliding distance determined by the determination module 51 is greater than or equal to the preset maximum height, the preset maximum height is determined as the target height; if the sum of the display height and the sliding distance determined by the determination module 51 is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height; when the sliding direction is a second direction opposite to the first direction, if the difference between the display height determined by the determination module 51 and the sliding distance is greater than or equal to the preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance determined by the determination module 51 is less than the preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction.

[0143] Optionally, when an information display control for displaying target information is provided in the target area, the display module 53 is specifically configured to: determine the target number of rows of the information display control in the target direction according to a preset unit height, a preset spacing and the target height obtained by the acquisition module 52; adjust the number of display rows of the information display control in the target area to the target number of rows, and display the target content in the information display control.

[0144] Optionally, the display module 53 is specifically configured to: divide the target height obtained by the obtaining module 52 by the sum of the preset unit height and the preset spacing to determine the target number of rows.

[0145] Optionally, the display module 53 is further configured to: in response to a target operation on a target content in the target area, display content corresponding to the target operation in the target information in the target area; the content corresponding to the target operation includes content different from the target content.

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

[0147] In the case of dividing each functional module into corresponding functional modules, Fig.17 Shows the application Figure 2 A possible structural diagram of an information display device 04 of a server 02 is shown in FIG. , and the information display device 04 includes: a receiving module 61 , an acquiring module 62 and a sending module 63 .

[0148] The receiving module 61 is configured to receive a display request carrying operation information of a triggering operation and a display height of the target information in a target direction; the display request is used to request to obtain the target height of the target area in the target direction for displaying the target information; the acquiring module 62 is configured to obtain the target height of the target area in the target direction according to the display request received by the receiving module 61; the sending module 63 is configured to send the target height.

[0149] Optionally, the acquisition module 62 is specifically configured to: determine the sliding direction and sliding distance based on the operation information of the sliding operation in the display request received by the receiving module; determine the target height of the target area in the target direction based on the display height, sliding direction and sliding distance in the display request received by the receiving module.

[0150] Further optionally, the acquisition module 62 is specifically configured to: determine the initial position and the end position of the sliding operation according to the operation information of the sliding operation in the display request received by the receiving module; determine the sliding direction according to the direction of the component of the displacement in the target direction corresponding to the initial position and the end position; and determine the size of the component of the displacement in the target direction as the sliding distance.

[0151] Further optionally, the acquisition module 62 is specifically configured as follows: when the sliding direction is the first direction, if the sum of the display height and the sliding distance determined by the determination module is greater than or equal to the preset maximum height, the preset maximum height is determined as the target height; if the sum of the display height and the sliding distance determined by the determination module is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height; when the sliding direction is a second direction opposite to the first direction, if the difference between the display height determined by the determination module and the sliding distance is greater than or equal to the preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance determined by the determination module is less than the preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction.

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

[0153] Fig.18 According to an exemplary embodiment, Figure 2 A possible structural diagram of a terminal 01 is shown in FIG. 1 , and the terminal 01 may be the above-mentioned information display device 03. Fig.18 As shown, the terminal 01 includes a processor 71 and a memory 72. The memory 72 is used to store instructions executable by the processor 71, and the processor 71 can implement the functions of each module in the information display device 03 in the above embodiment.

[0154] In a specific implementation, as an embodiment, the processor 71 (71-1 and 71-2) may include one or more CPUs, such as Fig.18 As an embodiment, the air conditioner control device may include a plurality of processors 71, such as Fig.18 The processor 71-1 and the processor 71-2 shown in FIG. Each CPU in these processors 71 may be a single-core processor (Single-CPU) or a multi-core processor (Multi-CPU). The processor 71 here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0155] The memory 72 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk-readable storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 72 may exist independently and be connected to the processor 71 via a bus 73. The memory 72 may also be integrated with the processor 71.

[0156] The bus 73 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 73 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.18 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0157] In addition, in order to facilitate information exchange between the terminal 01 and other devices (such as a server), the terminal 01 includes a communication interface 74. The communication interface 74 uses any transceiver-like device to communicate with other devices or communication networks, such as a control system, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 74 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.

[0158] In some embodiments, the terminal 01 may also optionally include: a peripheral device interface 75 and at least one peripheral device. The processor 71, the memory 72 and the peripheral device interface 75 may be connected via a bus 73 or a signal line. Each peripheral device may be connected to the peripheral device interface 75 via a bus 73, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 76, a display screen 77, a camera 78, an audio circuit 79, a positioning component 80 and a power supply 81.

[0159] The peripheral device interface 75 can be used to connect at least one peripheral device related to I / O (input / output) to the processor 71 and the memory 72. In some embodiments, the processor 71, the memory 72 and the peripheral device interface 75 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 71, the memory 72 and the peripheral device interface 75 can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0160] The radio frequency circuit 76 is used to receive and transmit RF (radio frequency) signals, also known as electromagnetic signals. The radio frequency circuit 76 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 76 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 76 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a Wi-Fi (wireless fidelity) network. In some embodiments, the radio frequency circuit 76 may also include circuits related to NFC (near field communication), which is not limited in the present disclosure.

[0161] The display screen 77 is used to display the UI (user interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 77 is a display screen, the display screen 77 also has the ability to collect touch signals on the surface or above the surface of the display screen 77. The touch signal can be input as a control signal to the processor 71 for processing. At this time, the display screen 77 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 77 can be one, setting the front panel of the terminal 01; the display screen 77 can be made of materials such as LCD (liquid crystal display), OLED (organic light-emitting diode), etc.

[0162] The camera assembly 78 is used to collect images or videos. Optionally, the camera assembly 78 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. The audio circuit 79 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 71 for processing, or input them into the radio frequency circuit 76 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there can be multiple microphones, which are respectively set at different parts of the terminal 01. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 71 or the radio frequency circuit 76 into sound waves. The speaker can be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into a sound wave audible to humans, but also convert the electrical signal into a sound wave inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 79 may also include a headphone jack.

[0163] The positioning component 80 is used to locate the current geographical location of the terminal 01 to implement navigation or LBS (location based service). The positioning component 80 can be a positioning component based on the US GPS (global positioning system), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0164] The power supply 81 is used to power various components in the terminal 01. The power supply 81 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 81 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0165] In some embodiments, the terminal 01 further includes one or more sensors 710. The one or more sensors 710 include but are not limited to: an acceleration sensor, a gyroscope sensor, a pressure sensor, a fingerprint sensor, an optical sensor, and a proximity sensor.

[0166] The acceleration sensor can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 01. The gyroscope sensor can detect the body direction and rotation angle of the terminal 01, and the gyroscope sensor can cooperate with the acceleration sensor to collect the user's 3D actions on the terminal 01. The pressure sensor can be set on the side frame of the terminal 01 and / or the lower layer of the display screen 77. When the pressure sensor is set on the side frame of the terminal 01, the user's holding signal of the terminal 01 can be detected. The fingerprint sensor is used to collect the user's fingerprint. The optical sensor is used to collect the ambient light intensity. The proximity sensor, also known as the distance sensor, is usually set on the front panel of the terminal 01. The proximity sensor is used to collect the distance between the user and the front of the terminal 01.

[0167] Those skilled in the art will understand that Fig.18 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0168] Fig.19 According to an exemplary embodiment, Figure 2 A possible structural diagram of a server 02 is shown in FIG. 1 , and the server 02 may be the above-mentioned information display device 04. Fig.19 As shown, the server 02 includes a processor 91 and a memory 92. Among them, the memory 92 is used to store instructions executable by the processor 91, and the processor 91 can implement the functions of each module in the information display device 04 in the above embodiment. The server 02 may have relatively large differences due to different configurations or performances, and may include one or more processors 91 and one or more memories 92. Among them, at least one instruction is stored in the memory 92, and at least one instruction is loaded and executed by the processor 91 to implement the information display method provided by the above-mentioned various method embodiments. Of course, the server 02 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 02 may also include other components for realizing device functions, which will not be repeated here.

[0169] The embodiments of the present disclosure also provide a computer-readable storage medium having instructions stored thereon. When the instructions on the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the information display method applied on the terminal provided in the aforementioned embodiments.

[0170] The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions on the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the information display method provided in the aforementioned embodiment applied on the server.

[0171] The embodiments of the present disclosure also provide a computer program product including instructions, which, when executed on a terminal, enables the terminal to execute the information display method applied on the terminal provided in the aforementioned embodiments.

[0172] The embodiment of the present disclosure also provides a computer program product including instructions, which, when executed on a server, enables the server to execute the information display method of the application on the server provided by the aforementioned embodiment.

[0173] The present disclosure also provides an information display system. Figure 2 As shown, the information display system includes the terminal and server provided in the aforementioned implementation. The terminal and the server are respectively used to execute the corresponding method steps in the aforementioned embodiment, so that the information display system solves the technical problems solved by the embodiment of the present disclosure and achieves the technical effects achieved by the embodiment of the present disclosure, which will not be repeated here.

[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0175] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An information display method, applied to a terminal, characterized in that: The method comprises: In response to a triggering operation on target information, determining a display height of the target information in a target direction before the triggering operation; In the case where the trigger operation is a sliding operation, determining a sliding direction and a sliding distance according to operation information of the sliding operation; In the case where the sliding direction is the first direction, if the sum of the display height and the sliding distance is greater than or equal to a preset maximum height, the preset maximum height is determined as the target height of the target area in the target direction; if the sum of the display height and the sliding distance is less than the preset maximum height, the sum of the display height and the sliding distance is determined as the target height; the target area is used to display the target information; the preset maximum height is the maximum height in the target direction when the target area can display all the contents of the target information; In the case where the sliding direction is a second direction opposite to the first direction, if the difference between the display height and the sliding distance is greater than or equal to a preset minimum height, the difference between the display height and the sliding distance is determined as the target height; if the difference between the display height and the sliding distance is less than a preset minimum height, the preset minimum height is determined as the target height; the target direction is the same as the first direction or the second direction; In a case where an information display control for displaying the target information is provided in the target area, determining a target number of rows of the information display control in the target direction according to the target height, the preset unit height and the preset spacing; The number of display rows of the information display control is adjusted to the target number of rows in the target area, and the target content corresponding to the target number of rows in the target information is displayed in the information display control.

2. The information display method according to claim 1, characterized in that: The determining the sliding direction and the sliding distance according to the operation information of the sliding operation includes: Determining an initial position and an end position of the sliding operation according to the operation information of the sliding operation; Determine the sliding direction according to the direction of the component of the displacement corresponding to the initial position and the end position in the target direction; The magnitude of the component of the displacement in the target direction is determined as the sliding distance.

3. The information display method according to claim 1, characterized in that: The determining, according to the target height, the preset unit height, and the preset spacing, the target number of rows of the information display control in the target direction includes: The target number of rows is determined by dividing the target height by the sum of the preset unit height and the preset spacing.

4. The information display method according to claim 1, characterized in that: Also includes: In response to a target operation on the target content in the target area, displaying content corresponding to the target operation in the target information in the target area; The content corresponding to the target operation includes content different from the target content.

5. An information display device, applied to a terminal, characterized in that: include: a determination module, configured to, in response to a trigger operation on target information, determine a display height of the target information in a target direction before the trigger operation; an acquisition module, configured to determine a sliding direction and a sliding distance according to operation information of the sliding operation when the triggering operation is a sliding operation; The acquisition module is further configured to, when the sliding direction is the first direction, if the sum of the display height and the sliding distance is greater than or equal to a preset maximum height, determine the preset maximum height as the target height of the target area in the target direction; if the sum of the display height and the sliding distance is less than the preset maximum height, determine the sum of the display height and the sliding distance as the target height; the target area is used to display the target information; the preset maximum height is the maximum height of the target area in the target direction when the target area can display all the contents of the target information; The acquisition module is further configured to, when the sliding direction is a second direction opposite to the first direction, determine the difference between the display height and the sliding distance as the target height if the difference between the display height and the sliding distance is greater than or equal to a preset minimum height; and determine the preset minimum height as the target height if the difference between the display height and the sliding distance is less than a preset minimum height; The target direction is the same as the first direction or the second direction; A display module, configured to determine a target number of rows of the information display control in the target direction according to the target height, a preset unit height and a preset spacing, when an information display control for displaying the target information is set in the target area; The number of display rows of the information display control is adjusted to the target number of rows in the target area, and the target content corresponding to the target number of rows in the target information is displayed in the information display control.

6. The information display device according to claim 5, characterized in that: The acquisition module is specifically configured as follows: Determining an initial position and an end position of the sliding operation according to the operation information of the sliding operation; Determine the sliding direction according to the direction of the component of the displacement corresponding to the initial position and the end position in the target direction; The magnitude of the component of the displacement in the target direction is determined as the sliding distance.

7. The information display device according to claim 5, characterized in that: The display module is specifically configured as follows: The target number of rows is determined as a quotient of the target height obtained by the obtaining module divided by the sum of the preset unit height and the preset spacing.

8. The information display device according to claim 5, characterized in that: The display module is further configured to: in response to a target operation on the target content in the target area, display content corresponding to the target operation in the target information in the target area; the content corresponding to the target operation includes content different from the target content.

9. A terminal, 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 information display method according to any one of claims 1 to 4.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the information display method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • A display control method and a terminal

    CN109388324A

  • Message content showing method and device

    CN109428967A