Information display method and device, equipment and medium
By obtaining sliding speed and target angle data, accurately identifying the sliding direction, the problem of misidentification of sliding operations is solved, and the accuracy of information display and user experience are improved.
Patent Information
- Application Number
- CN202411365772.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-31
AI Technical Summary
When users use applications, sliding operations may lead to misidentification of interactions, resulting in information display errors and affecting user experience.
By obtaining the data of correlation between sliding speed and target angle, the original sliding direction and sliding angle are determined, and the sliding angle and target response angle are compared based on the comparison strategy to accurately identify the sliding direction and realize the target sliding operation of the information page.
It improves the identification accuracy of sliding operations, ensures that sliding operations conform to the user's real interaction intentions, and improves the accuracy and user experience of information display.
Smart Images

Figure CN119225572A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an information display method, device, equipment and medium. Background Art
[0002] When users use applications (Applications, APPs), sliding operations are one of the most core operations. The smoothness and recognition accuracy of sliding operations are crucial to the user experience. However, when displaying information based on user sliding operations, there may be problems of interaction misrecognition. For example, an up-and-down sliding operation may be recognized as a left-and-right sliding operation, or a left-and-right sliding operation may be recognized as an up-and-down sliding operation. As a result, due to interaction misrecognition, information display errors occur, which cannot meet business scenario requirements and affect the user experience. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides an information display method, device, equipment and medium.
[0004] The present disclosure provides an information display method, the method comprising:
[0005] In response to a target sliding operation on an information page displaying first information, acquiring sliding speed and target angle associated data;
[0006] determining an original sliding direction and a sliding angle based on the sliding speed;
[0007] Determining, based on the target angle association data, a target response angle corresponding to the target sliding operation of the first information;
[0008] Comparing the sliding angle and the target response angle based on the comparison strategy of the original sliding direction, and determining the target sliding direction corresponding to the target sliding operation according to the comparison result;
[0009] The first information in the information page is slid and switched to display the second information in the target sliding direction.
[0010] The present disclosure also provides an information display device, the device comprising:
[0011] An acquisition module, configured to acquire sliding speed and target angle associated data in response to a target sliding operation on an information page displaying first information;
[0012] A first determining module, configured to determine an original sliding direction and a sliding angle based on the sliding speed;
[0013] A second determination module, configured to determine, based on the target angle association data, a target response angle corresponding to the target sliding operation of the first information;
[0014] a third determining module, configured to compare the sliding angle and the target response angle based on a comparison strategy of the original sliding direction, and determine a target sliding direction corresponding to the target sliding operation according to a comparison result;
[0015] The display module is used to display the first information in the information page by sliding switching to the second information in the target sliding direction.
[0016] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the information display method provided by the embodiment of the present disclosure.
[0017] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the information display method provided by the embodiment of the present disclosure.
[0018] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art: the information display solution provided by the embodiments of the present disclosure obtains sliding speed and target angle associated data in response to a target sliding operation on an information page displaying first information; determines the original sliding direction and sliding angle based on the sliding speed; determines the target response angle corresponding to the target sliding operation of the first information based on the target angle associated data; compares the sliding angle and the target response angle based on a comparison strategy of the original sliding direction, and determines the target sliding direction corresponding to the target sliding operation according to the comparison result; and slides and switches the first information in the information page to display the second information in the target sliding direction. By adopting the above technical solution, after performing a sliding operation on the information page of the first information, the sliding speed is obtained to determine the original sliding direction and the specific sliding angle, and the angle association data is obtained, and the target response angle allowed at this time is determined according to the angle association data; then, the sliding angle and the target response angle are compared according to the comparison strategy of the original sliding direction to determine the target sliding direction at this time, and the information in the target sliding direction is switched, the sliding direction and the sliding angle are accurately identified by the sliding speed, the accuracy of sliding operation identification is improved, and the sliding direction is strategically secondary allocated by comparing the sliding angle with the response angle, which not only ensures that the sliding operation meets the user's real interaction intention, but also the setting of the response angle makes the information display based on the sliding operation more in line with the needs of the business scenario, effectively improves the information display effect based on the sliding operation, and thus improves the user experience effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 A flowchart of an information display method provided by an embodiment of the present disclosure;
[0021] Figure 2 A schematic diagram of an information display method provided by an embodiment of the present disclosure;
[0022] Figure 3 A flowchart of another information display method provided by an embodiment of the present disclosure;
[0023] Figure 4 A flowchart of another information display method provided by an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram of a target response angle provided by an embodiment of the present disclosure;
[0025] Figure 6 A schematic diagram of a valid angle and an invalid angle provided in an embodiment of the present disclosure;
[0026] Figure 7 A schematic diagram of another information display method provided by an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram of the structure of an information display device provided in an embodiment of the present disclosure;
[0028] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] In order to solve the above problems, the embodiments of the present disclosure provide an information display method, which is introduced below in conjunction with specific embodiments.
[0036] Figure 1 The present invention provides a flowchart of an information display method provided by an embodiment of the present invention. The method can be executed by an information display device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes:
[0037] Step 101: In response to a target sliding operation on an information page displaying first information, obtain sliding speed and target angle association data.
[0038] The first information may be the information currently displayed in the information page, and this embodiment does not limit the type of the first information. For example, the first information may include one of live video data, short video data, and information recommendation data. The information page may be a page in the target application that displays information to the user, and the information page may include one of a recommendation page, a follow page, and a video stream page. This embodiment does not limit the type of the target application, and the target application is a content-based application that provides content to the user. For example, the target application may be a short video application.
[0039] The target sliding operation may be a sliding operation on an information page displaying the first information. The sliding operation may be an operation in which a user drags a finger or a mouse pointer in a specific direction through an input device such as a touch screen or a mouse, so that the information displayed on the page changes dynamically accordingly. The sliding speed may be the distance moved by the finger or the mouse pointer per unit time in the target sliding operation. The target angle associated data may be data that affects the determination of the target response angle, and the target angle associated data may characterize factors that affect the interactive experience when performing the target sliding operation.
[0040] In some embodiments of the present disclosure, the target angle associated data includes the scene data of the first information, the left and right hand data of the target sliding operation, and the user data. Among them, the scene data of the first information can represent the content browsing scene of the first information. The left and right hand data of the target sliding operation can represent whether the hand used by the current user when performing the target sliding operation is the left hand or the right hand. The user data may include relevant data representing the proficiency of the current user in using the target application.
[0041] In the disclosed embodiment, after the current user starts the target application, the target application initiates a request to the recommendation page data interface, and the recommendation page data interface returns multiple information to the target application in response to the request, including the first information. The information display device can determine the scene data corresponding to the first information. And after the current user logs in to the target application, the information display device can obtain the corresponding user data with the authorization of the current user.
[0042] The current user browses information on the information page of the target application, and implements sliding transition and information switching through sliding operation. Before the current user browses the first information, the scene data and user data corresponding to the first information have been determined. When the current user browses the first information, the target sliding operation is performed according to the user's own needs, and the information display device determines the left and right hand data corresponding to the target sliding operation. Then, the above left and right hand data, scene data, and user data are combined into target angle association data. In addition, the sliding speed corresponding to the target sliding operation is obtained.
[0043] In some embodiments of the present disclosure, the scene data of the first information is determined based on the field identifier of the first information, and the scene data includes a live broadcast scene, a short video scene, or an information recommendation scene.
[0044] Among them, the field identifier can be used to record the content browsing scene of the first information, and the field identifier can be an identifier stored in the first information. The field identifier can include field parameters and field values. The live broadcast scene can include a live broadcast preview scene and a real-time live broadcast scene. When the first information is a live broadcast preview stream or real-time live broadcast video data, the scene data of the first information is a live broadcast scene. The short video scene can include a scene when the first information is short video data. The information recommendation scene can include a scene when the first information is information recommendation data. Information recommendation data can be used to recommend items to users.
[0045] In this embodiment, after the information display device obtains the first information, if the field identifier of the first information includes the information recommendation field identifier, the scene data of the first information is determined as the information recommendation scene. If the field identifier of the first information includes the live broadcast field identifier, the scene data of the first information is determined as the live broadcast scene. If the first information does not include the information recommendation field identifier and the live broadcast field identifier, the scene data of the first information is determined as the short video scene.
[0046] Optionally, in this embodiment, if the first information is not a video, the field identifier of the first information is determined as a default field identifier, and the default field identifier indicates that the scene data of the first information is a non-video playback scene.
[0047] In the above solution, different scenario data are identified according to different field identifiers, which creates conditions for dynamically adjusting the effective angles in different scenarios and meets the business scenario requirements in different scenarios.
[0048] In some embodiments of the present disclosure, left and right hand data of a target sliding operation are determined based on sliding track data of the target sliding operation and a left and right hand recognition model.
[0049] The sliding trajectory data may record the trajectory of a finger or a mouse pointer sliding on the screen. The left-right hand recognition model may be used to recognize whether the hand performing the sliding operation is the left hand or the right hand. The left-right hand recognition model may be trained using the trajectory sliding data as sample data and the corresponding left-right hand labels, and the recognition success rate of the left-right hand recognition model is greater than the success rate threshold.
[0050] In this embodiment, when the current user performs a target sliding operation, corresponding sliding trajectory data will be generated. The information display device can obtain the sliding trajectory data corresponding to the target sliding operation, and call the left and right hand recognition models to recognize the sliding trajectory data to obtain the left and right hand data of the target sliding operation.
[0051] In the above scheme, the left and right hand data are efficiently and accurately determined based on the sliding trajectory data through the left and right hand recognition model, creating conditions for dynamically adjusting the effective angles corresponding to different operating hands and adapting to the operating habits of users with different dominant hands.
[0052] In some embodiments of the present disclosure, the user data is determined based on the function proficiency data of the current user and / or the frequency of restarting the program.
[0053] Among them, the function proficiency data can represent the current user's proficiency in using the functions in the target application, and the operation proficiency data can represent the obstacles encountered by the current user in using the target application. The operation proficiency data may include at least one of pop-up window click proficiency data, pop-up window closing proficiency data, scene exit proficiency data, posting proficiency data, anchor browsing proficiency data, and notification bar browsing proficiency data. The restart program frequency can represent the number of times the current user terminates the target application and restarts the target application in a unit time.
[0054] When the scenarios and containers involved in the target application become more complex, the current user may encounter obstacles when using the target application due to unfamiliarity with the functions, and the obstacle may be resolved by restarting the target application. In this embodiment, the information display device can obtain the current user's operation proficiency data and / or program restart frequency, and determine the current user's proficiency in using the target application based on the operation proficiency data and / or program restart frequency to obtain user data.
[0055] In the above scheme, the acquisition of user data such as functional proficiency data and / or restart program frequency, as well as subsequent processing and analysis, are all carried out after informing the user in an appropriate manner and obtaining the user's explicit authorization.
[0056] Step 102: Determine the original sliding direction and sliding angle based on the sliding speed.
[0057] The original sliding direction may be an unadjusted sliding direction corresponding to the target sliding operation. The sliding direction may be discrete, and the original sliding direction may include one of lower right, upper left, upper right, lower left, downward, upward, right, and left. The sliding angle may be an angle representing the direction of the sliding speed. The angle may be continuous.
[0058] In the embodiment of the present disclosure, after determining the sliding speed, the information display device can perform direction analysis processing and angle analysis processing based on the sliding speed to obtain the original sliding direction and sliding angle respectively.
[0059] In some embodiments of the present disclosure, the original sliding direction and sliding angle are determined based on the sliding speed, including: determining the original sliding direction based on the magnitude relationship between the x-axis speed and the y-axis speed in the sliding speed and zero respectively; determining the sliding angle according to the ratio of the y-axis speed to the x-axis speed in the sliding speed.
[0060] The x-axis speed may be the component speed of the sliding speed in the x-axis direction, and the y-axis speed may be the component speed of the sliding speed in the y-axis direction.
[0061] Figure 2 A schematic diagram of an information display method provided by an embodiment of the present disclosure, such as Figure 2 As shown, in this embodiment, the information display device can decompose the sliding speed in the x-axis direction and the y-axis direction to obtain the x-axis speed and the y-axis speed. The original sliding direction is determined according to the magnitude relationship between the x-axis speed and zero and the magnitude relationship between the y-axis speed and zero.
[0062] Specifically, if the x-axis speed is greater than zero and the y-axis speed is greater than zero, the original sliding direction is determined to be the lower right. If the x-axis speed is less than zero and the y-axis speed is less than zero, the original sliding direction is determined to be the upper left. If the x-axis speed is greater than zero and the y-axis speed is less than zero, the original sliding direction is determined to be the upper right. If the x-axis speed is less than zero and the y-axis speed is greater than zero, the original sliding direction is determined to be the lower left. If the x-axis speed is equal to zero and the y-axis speed is greater than zero, the original sliding direction is determined to be the bottom. If the x-axis speed is equal to zero and the y-axis speed is less than zero, the original sliding direction is determined to be the top. If the x-axis speed is greater than zero and the y-axis speed is equal to zero, the original sliding direction is determined to be the right. If the x-axis speed is less than zero and the y-axis speed is equal to zero, the original sliding direction is determined to be the left. In addition, the information display device may divide the y-axis speed by the x-axis speed to obtain the tangent value of the sliding angle, and perform an inverse tangent calculation on the tangent value of the sliding angle to obtain the sliding angle.
[0063] In the above scheme, the sliding speed is decomposed into the x-axis speed and the y-axis speed, and the angle is discretized into the direction according to the direction of the x-axis speed and the direction of the y-axis speed, so that the original sliding direction is determined efficiently. And the sliding angle is determined efficiently according to the x-axis speed and the y-axis speed.
[0064] In some embodiments of the present disclosure, if both the x-axis speed and the y-axis speed are zero, the target sliding direction is determined to be downward. Thus, when the current user clicks on the information page displaying the first information, the first information is switched downward, which simplifies the operation of the current user browsing videos and improves the user experience.
[0065] Step 103: Determine a target response angle corresponding to the target sliding operation of the first information based on the target angle association data.
[0066] Among them, the target response angle can represent the effective angle range that supports response in four basic directions for the target sliding operation. The basic directions may include upward, downward, left, and right. The target response angle is used to limit the angles in the upward, downward, left, and right directions that allow the user to perform sliding operations. The target response angle may include the response angles of four basic directions, namely, the upward response angle, the downward response angle, the left response angle, and the right response angle. The effective angle range may include the effective angles of the four basic directions, and the response angle of a basic direction is equal to half of the effective angle of the basic direction.
[0067] In the implementation of the present disclosure, the information display device can read the response angle corresponding to the target angle association data from multiple response angles, and determine the response angle as the target response angle.
[0068] Figure 3 A flowchart of another information display method provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, determining the target response angle corresponding to the target sliding operation of the first information based on the target angle association data includes:
[0069] Step 301: Obtain an angle database.
[0070] In some embodiments of the present disclosure, the angle database includes response angles of four basic directions bound by a plurality of angle association data. The angle association data includes at least one of scene data, user data, and left and right hand data, and the angle database supports dynamic adjustment.
[0071] Among them, the angle-related data can characterize the factors that affect the interactive experience when the user performs a sliding operation on the information page of the corresponding information. The response angles of the four basic directions may include an upper response angle, a lower response angle, a left response angle, and a right response angle. The response angle can characterize the angle range of the interactive response to the corresponding sliding operation in a certain basic direction. The scene data characterizes the content application scenario of the corresponding information. The user data may be data related to the user. This embodiment does not limit the user data. For example, the user data may include data characterizing the user's proficiency and frequency in using the application. Left and right hand data can characterize whether the hand used to perform the sliding operation is the left hand or the right hand.
[0072] Taking the angle-related data including scene data, user data, and left-hand and right-hand data as an example, one scene data, one user data, and one left-hand and right-hand data can constitute one angle-related data, and the one angle-related data can be bound to the response angles of four basic directions.
[0073] In the disclosed embodiment, the information display device can obtain an existing angle database through a pre-set data interface, etc. The angle data in the angle database supports dynamic adjustment. Taking the adjustment of the upper response angle or the lower response angle as an example, by reducing the upper response angle or the lower response angle in the angle database, the invalid angle of sliding up or down is increased, thereby increasing the difficulty of swiping away from the information page of the first information, increasing the possibility of the user continuing to browse the first information and triggering the page jump control in the first information to further understand the relevant content of the first information, and improving the conversion rate of the first information.
[0074] In the above scheme, dynamic adjustment between the sliding operation and the interaction result can be achieved by dynamically adjusting the response angle in the angle database. For example, for short video scenes, the upward response angle and the downward response angle can be increased to reduce the difficulty of users switching short videos and improve the fluency of users using the target application. For live broadcast scenes or information recommendation scenes, the left response angle and the right response angle can be reduced to reduce the probability of users accidentally sliding out of live broadcast videos or information recommendation data.
[0075] Step 302: Based on the scene data of the first information included in the target angle association data, the left and right hand data of the target sliding operation, and the user data, matching is performed in the angle database to obtain the response angles of the four basic directions that are successfully matched as the target response angles.
[0076] In this embodiment, among the multiple angle association data in the angle database, the response angles of four basic directions corresponding to the angle association data in which the user data is the same as the user data in the target angle association data, the scene data is the same as the scene data of the first information, and the left and right hand data are the same as the left and right hand data of the target sliding operation are determined as the target response angles.
[0077] In the above scheme, the target response angle is determined, which creates a basis for the subsequent adjustment of the initial sliding direction.
[0078] Step 104: Compare the sliding angle and the target response angle based on the comparison strategy of the original sliding direction, and determine the target sliding direction corresponding to the target sliding operation according to the comparison result.
[0079] Among them, the comparison strategy can be a strategy for comparing and analyzing the sliding angle and the target corresponding angle. This embodiment does not limit the comparison strategy. For example, the comparison strategy can be to compare the angle values of the two angles, or the comparison strategy can be to compare the function values of the two angles, and the function value can be a trigonometric function value. The comparison result can be the angle value comparison result between the sliding angle and the target response angle, or the function value comparison result between the sliding angle and the target response angle. The target sliding direction can be the adjusted sliding direction, and the target sliding direction can be understood as the direction that the current user ultimately expects to slide. The target sliding direction can include one of downward, upward, rightward, and leftward.
[0080] In the disclosed embodiment, a correspondence between a comparison strategy and a direction is pre-configured, and the information display device can determine a comparison strategy whose direction is consistent with the original sliding direction. According to the comparison strategy, a comparison is performed between the sliding angle and the target response angle to obtain a comparison result, and the target sliding direction is determined according to the comparison result.
[0081] Figure 4 A flowchart of another information display method provided by the embodiment of the present disclosure is shown as follows: Figure 4 As shown, in some embodiments of the present disclosure, the sliding angle and the target response angle are compared based on the comparison strategy of the original sliding direction, and the target sliding direction corresponding to the target sliding operation is determined according to the comparison result, including:
[0082] Step 401: If the original sliding direction is the middle direction, determine the first tangent value of the sliding angle.
[0083] The middle direction may be an oblique direction, and the middle direction may be a direction between a vertical direction and a horizontal direction. The middle direction may include lower right, upper left, upper right, and lower left. The first tangent value may be a tangent value of a sliding angle.
[0084] In this embodiment, it is determined whether the original sliding direction is the middle direction. If so, the sliding angle is converted into an angle and a radian, and the converted sliding angle is input into a tangent function to obtain a first tangent value.
[0085] Step 402: Perform radian conversion and tangent calculation based on the response angles of the two basic directions corresponding to the middle direction in the target response angle to obtain two second tangent values.
[0086] The basic direction corresponding to the intermediate direction may include a horizontal direction and a vertical direction decomposed from the intermediate direction. The second tangent value may be a value obtained by performing tangent calculation based on the response angle of the basic direction.
[0087] In this embodiment, the intermediate direction is decomposed into a horizontal direction and a vertical direction, the response angle corresponding to the vertical direction in the target response angle is determined as the response angle of the first basic direction, and the radian tangent value of the complementary angle of the response angle of the first basic direction is used as the second tangent value corresponding to the response angle of the first basic direction. The first basic direction can be the vertical direction of the two basic directions.
[0088] The response angle corresponding to the horizontal direction in the target response angle is determined as the response angle of the second basic direction, and the tangent value of the radian of the response angle of the second basic direction is used as the second tangent value of the response angle of the second basic direction.
[0089] The second basic direction may be a horizontal direction of the two basic directions.
[0090] Step 403: Compare the first tangent value with the two second tangent values to obtain a tangent comparison result.
[0091] The tangent comparison result may represent a comparison result between the first tangent value and the second tangent value.
[0092] In this embodiment, the first tangent value is compared with one or two of the two second tangent values to obtain a corresponding tangent comparison result.
[0093] In some embodiments of the present disclosure, a first tangent value is compared with two second tangent values to obtain a tangent comparison result, including: determining whether the first tangent value is greater than the second tangent value of the upward response angle or the downward response angle of the two second tangent values, and if so, outputting the tangent comparison result; otherwise, continuing to determine whether the first tangent value is less than the second tangent value of the left response angle or the right response angle of the two second tangent values, and outputting the tangent comparison result.
[0094] like Figure 2 As shown, in this embodiment, for the lower right side of the middle direction where the original sliding direction is, it is determined whether the first tangent value is greater than the second tangent value of the downward response angle. If the first tangent value is greater than the second tangent value of the downward response angle, the output tangent comparison result is that the first tangent value is greater than the second tangent value of the downward response angle. If the first tangent value is not greater than the second tangent value of the downward response angle, it is determined whether the first tangent value is less than the second tangent value of the rightward response angle. If so, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and the first tangent value is less than the second tangent value of the rightward response angle. Otherwise, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and the first tangent value is not less than the second tangent value of the rightward response angle.
[0095] For the upper left side where the original sliding direction is the middle direction, determine whether the first tangent value is greater than the second tangent value of the upward response angle. If the first tangent value is greater than the second tangent value of the upward response angle, the output tangent comparison result is that the first tangent value is greater than the second tangent value of the upward response angle. If the first tangent value is not greater than the second tangent value of the upward response angle, determine whether the first tangent value is less than the second tangent value of the left response angle. If so, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and the first tangent value is less than the second tangent value of the left response angle. Otherwise, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and the first tangent value is not less than the second tangent value of the left response angle.
[0096] For the upper right side of the middle direction where the original sliding direction is, determine whether the first tangent value is greater than the second tangent value of the upward response angle. If the first tangent value is greater than the second tangent value of the upward response angle, the output tangent comparison result is that the first tangent value is greater than the second tangent value of the upward response angle. If the first tangent value is not greater than the second tangent value of the upward response angle, determine whether the first tangent value is less than the second tangent value of the right response angle. If so, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and the first tangent value is less than the second tangent value of the right response angle. Otherwise, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and the first tangent value is not less than the second tangent value of the right response angle.
[0097] For the lower left side of the middle direction where the original sliding direction is, determine whether the first tangent value is greater than the second tangent value of the downward response angle. If the first tangent value is greater than the second tangent value of the downward response angle, the output tangent comparison result is that the first tangent value is greater than the second tangent value of the downward response angle. If the first tangent value is not greater than the second tangent value of the downward response angle, determine whether the first tangent value is less than the second tangent value of the left response angle. If so, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and the first tangent value is less than the second tangent value of the left response angle. Otherwise, the output tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and the first tangent value is not less than the second tangent value of the left response angle.
[0098] Step 404: Determine the target sliding direction corresponding to the target sliding operation according to the tangent comparison result.
[0099] In this embodiment, the information display device may query the preset relationship between the tangent comparison result and the sliding direction according to the tangent comparison result, and determine the sliding direction corresponding to the tangent comparison result as the target sliding direction.
[0100] In some embodiments of the present disclosure, the target sliding direction corresponding to the target sliding operation is determined according to the tangent comparison result, including: if the tangent comparison result includes a second tangent value whose first tangent value is greater than the upward response angle or the downward response angle of the two second tangent values, the target sliding direction is determined to be upward or downward.
[0101] like Figure 2 As shown, in this embodiment, for the lower right side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is greater than the second tangent value of the downward response angle, the target sliding direction is downward. For the upper left side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is greater than the second tangent value of the upward response angle, the target sliding direction is upward. For the upper right side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is greater than the second tangent value of the upward response angle, the target sliding direction is upward. For the lower left side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is greater than the second tangent value of the downward response angle, the target sliding direction is downward.
[0102] In some embodiments of the present disclosure, a target sliding direction corresponding to a target sliding operation is determined based on a tangent comparison result, including: if the tangent comparison result includes a first tangent value that is not greater than a second tangent value of an upward response angle or a downward response angle among the two second tangent values, and the first tangent value is less than a second tangent value of a left response angle or a right response angle among the two second tangent values, then the target sliding direction is determined to be left or right.
[0103] like Figure 2 As shown, in this embodiment, for the lower right side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and is less than the second tangent value of the rightward response angle, then the target sliding direction is rightward. For the upper left side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and is less than the second tangent value of the leftward response angle, then the target sliding direction is leftward. For the upper right side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle, and is less than the second tangent value of the rightward response angle, then the target sliding direction is rightward. For the lower left side where the original sliding direction is the middle direction, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle, and is less than the second tangent value of the leftward response angle, then the target sliding direction is leftward.
[0104] In some embodiments of the present disclosure, a target sliding direction corresponding to a target sliding operation is determined based on a tangent comparison result, including: if the tangent comparison result includes a first tangent value that is not greater than a second tangent value of an upward response angle or a downward response angle among the two second tangent values, and the first tangent value is not less than a second tangent value of a left response angle or a right response angle among the two second tangent values, then the target sliding direction is determined as the original sliding direction, or the target sliding direction is determined as downward.
[0105] In this embodiment, for the lower right of the middle direction where the original sliding direction is, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle and is not less than the second tangent value of the right response angle, the target sliding direction is the lower right, or the target sliding direction is downward. For the upper left of the middle direction where the original sliding direction is, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle and is not less than the second tangent value of the left response angle, the target sliding direction is the upper left, or the target sliding direction is downward. For the upper right of the middle direction where the original sliding direction is, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the upward response angle and is not less than the second tangent value of the right response angle, the target sliding direction is the upper right, or the target sliding direction is downward. For the lower left of the middle direction where the original sliding direction is, if the tangent comparison result is that the first tangent value is not greater than the second tangent value of the downward response angle and is not less than the second tangent value of the left response angle, the target sliding direction is the lower left, or the target sliding direction is downward.
[0106] It can be understood that in this case, the target sliding direction is still the middle direction, and since there is no response strategy for the middle direction in the target application, the target sliding operation is an invalid sliding operation. Alternatively, in this case, the first information is switched downward.
[0107] Figure 5 A schematic diagram of a target response angle provided by an embodiment of the present disclosure, such as Figure 5 As shown, the rightward response angle is half of the rightward sliding effective angle. The downward response angle is half of the downward sliding effective angle. The quantitative relationship between other target response angles and corresponding effective angles is similar and will not be repeated here.
[0108] Figure 6 A schematic diagram of a valid angle and an invalid angle provided in an embodiment of the present disclosure, such as Figure 6As shown, if the upward response angle is 45°, the upward sliding effective angle is 90°, if the sliding angle of the target sliding operation is within the upward sliding effective angle, then the target sliding direction is upward. If the downward response angle is 45°, the downward sliding effective angle is 90°, if the sliding angle of the target sliding operation is within the downward sliding effective angle, then the target sliding direction is downward. If the left response angle is 26°, the left sliding effective angle is 52°, if the sliding angle of the target sliding operation is within the left sliding effective angle, then the target sliding direction is left. If the right response angle is 26°, the right sliding effective angle is 52°, if the sliding angle of the target sliding operation is within the right sliding effective angle, then the target sliding direction is determined to be right. If the sliding angle of the target sliding operation is within the invalid angles of 19°, the target sliding direction is the original middle direction or downward.
[0109] In the above solution, the sliding direction of the current user when using the target application is adjusted accordingly through the tangent comparison result between the sliding angle and the target response angle, so that the adjusted target sliding direction better meets the needs of the business scenario.
[0110] Step 105: Slide and switch the first information in the information page to display the second information in the target sliding direction.
[0111] The second information may be information displayed to the current user after the target sliding operation. Taking the first information as a short video as an example, if the target sliding direction is downward, the second information may be the next short video; if the target sliding direction is left, the second information may be the creator's details page.
[0112] In some embodiments of the present disclosure, the first information in the information page is displayed as the second information in the target sliding direction by sliding switching, including: sliding the first information out of the information page along the target sliding direction, and sliding the next information in the target sliding direction into the information page as the second information for display.
[0113] The next information may be information adjacent to the first information in the target sliding direction.
[0114] In this embodiment, the information display device can slide the first information out of the information page along the target sliding direction, and determine the next information adjacent to the first information along the target sliding direction, and determine the next information as the second information. The information display device slides the second information into the information page along the target sliding direction. Thus, the information displayed on the information page is dynamically adjusted according to the target sliding direction.
[0115] The information display scheme provided by the disclosed embodiment obtains sliding speed and target angle associated data in response to a target sliding operation on an information page displaying first information; determines the original sliding direction and sliding angle based on the sliding speed; determines the target response angle corresponding to the target sliding operation of the first information based on the target angle associated data; compares the sliding angle and the target response angle based on a comparison strategy of the original sliding direction, and determines the target sliding direction corresponding to the target sliding operation according to the comparison result; and slides and switches the first information in the information page to display the second information in the target sliding direction. By adopting the above technical solution, after performing a sliding operation on the information page of the first information, the sliding speed is obtained to determine the original sliding direction and the specific sliding angle, and the angle association data is obtained, and the target response angle allowed at this time is determined according to the angle association data; then, the sliding angle and the target response angle are compared according to the comparison strategy of the original sliding direction to determine the target sliding direction at this time, and the information in the target sliding direction is switched, the sliding direction and the sliding angle are accurately identified by the sliding speed, the accuracy of sliding operation identification is improved, and the sliding direction is strategically secondary allocated by comparing the sliding angle with the response angle, which not only ensures that the sliding operation meets the user's real interaction intention, but also the setting of the response angle makes the information display based on the sliding operation more in line with the needs of the business scenario, effectively improves the information display effect based on the sliding operation, and thus improves the user experience effect.
[0116] In addition, the logic of sliding interaction is optimized, which improves the user experience, makes users more favorable to the content displayed in the first information, and encourages users to trigger the page jump control in the first information to further understand the relevant content of the first information, thereby improving the conversion rate. In addition, the original sliding direction in the middle direction that the target application cannot respond to is converted to a horizontal or vertical direction. By dynamically adjusting the response angle, different response angles are dynamically set for users with different proficiency levels, which can meet the specific needs of different types of users, dynamically set different response angles for different scenarios, meet the actual business needs of different scenarios, and dynamically set different response angles for operators of different sliding operations to meet user operating habits, so as to dynamically adjust the user interaction results, so that the information after switching is more in line with the user's characteristics, and improve user satisfaction.
[0117] In some embodiments of the present disclosure, the information display method further includes: if the original sliding direction is a base direction, determining the original sliding direction as a target sliding direction.
[0118] In this embodiment, after determining the original sliding direction, the information display device can determine whether the original sliding direction is a basic direction such as upward, downward, leftward, or rightward. If so, the original sliding direction is determined as the target sliding direction. Thus, the original sliding direction as the basic direction is maintained, so that the interactive operation meets the actual needs of the user.
[0119] In some embodiments of the present disclosure, the information display method also includes: adding an interface calling code of the target tool class to the main view code of the information page and the code of the view control container in the left and right sliding container of the target application, so as to call the method of the target tool class to determine the target sliding direction and perform a sliding response.
[0120] Among them, the main view code can be the code of the recommendation page main view class, and the recommendation class main view can be implemented by inheriting the user interface table view class. The recommendation page main view class can be a class related to up and down sliding operations. Rewrite the gesture recognition method in the file of the recommendation page main view to implement the information display method. The left and right sliding container can be a container related to left and right sliding operations in the operating system. The view control container can be a specific container view controller in the target application.
[0121] The target tool class can be used to determine the target response angle corresponding to the target sliding operation according to the target angle association data. The interface calling code can be used to call the target tool class through the interface of the target tool class. For example, the original sliding direction, scene data, user data, left and right hand data are input into the target tool class, and the target tool can output the corresponding target sliding direction.
[0122] In this embodiment, in the main view code, the interface calling code of the target tool class is added, and the target sliding direction is determined by calling the target tool class. If the target sliding direction is not upward or downward, the target sliding operation is not processed, and the event continues to be passed down along the response chain. According to the design of the current information flow architecture, the gesture recognition method in the left and right sliding container distributes the judgment logic of the sliding direction to the view control container, and further distributes it to the corresponding view container through the view control container to judge the sliding direction. The interface calling code of the target tool class can be added to the sliding gesture recognition method of the business view controller to adjust the sliding direction.
[0123] In the above solution, by adding the interface calling code of the target tool class in the main view code and the view controller, the target tool class is called to determine the sliding direction when the main view and the view controller are running, creating a foundation for the implementation of the information display method at the bottom of the code.
[0124] Figure 7 A schematic diagram of another information display method provided by an embodiment of the present disclosure, such as Figure 7 As shown, the current user starts the target application, and in the process of browsing information through the information page, performs a target sliding operation on the information page displaying the first information, and the information display device determines the target angle association data through data analysis. Specifically, the information display device can determine the sliding trajectory data of the target sliding operation, input the sliding trajectory data into the left and right hand recognition model, and obtain the left and right hand data. Through the left and right hand data, it can be determined whether the current user is a left-hand user or a right-hand user. In addition, the user data is determined according to the program restart frequency of the current user. In addition, the scene data of the first information is determined according to the field identifier of the first information, and the scene data includes one of the information recommendation scene, the short video scene, and the live broadcast scene. Furthermore, the original sliding direction is adjusted according to the target angle association data to obtain the target sliding direction.
[0125] The information display method provided by the disclosed embodiment can adjust the response angle to a target sliding direction that potentially meets the user's needs when the original sliding direction corresponding to the user's target sliding operation is an intermediate direction. This solves the problem of the user's sliding operation being misidentified, and increases the user's experience of using the target application. In the live broadcast scenario, by reducing the upward or downward response angle, the possibility of the user sliding out of the live broadcast room by mistake is reduced, the user's experience of watching the live broadcast is improved, and the viewing time is increased. In addition, when the user does not perform a standardized horizontal or vertical sliding operation, it is also possible to enter the live broadcast room or the details page of the information recommendation.
[0126] Figure 8 This is a schematic diagram of the structure of an information display device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 8 As shown, the information display device includes:
[0127] An acquisition module 801 is used to acquire sliding speed and target angle associated data in response to a target sliding operation on an information page displaying first information;
[0128] A first determining module 802, configured to determine an original sliding direction and a sliding angle based on the sliding speed;
[0129] A second determination module 803 is used to determine a target response angle corresponding to the target sliding operation of the first information based on the target angle association data;
[0130] A third determining module 804 is used to compare the sliding angle and the target response angle based on the comparison strategy of the original sliding direction, and determine the target sliding direction corresponding to the target sliding operation according to the comparison result;
[0131] The display module 805 is used to display the first information in the information page by sliding switching to the second information in the target sliding direction.
[0132] In some embodiments of the present disclosure, the first determining module 802 is configured to:
[0133] Determine the original sliding direction based on the magnitude relationship between the x-axis speed and the y-axis speed in the sliding speed and zero respectively;
[0134] The sliding angle is determined according to a ratio of the y-axis speed to the x-axis speed in the sliding speed.
[0135] In some embodiments of the present disclosure, the target angle associated data includes scene data of the first information, left and right hand data of the target sliding operation, and user data. The second determination module 803 includes:
[0136] Get submodule, used to get angle database;
[0137] A matching submodule is used to match the scene data of the first information included in the target angle association data, the left and right hand data of the target sliding operation, and the user data in the angle database, and obtain the response angles of the four basic directions that are successfully matched as the target response angle.
[0138] In some embodiments of the present disclosure, the angle database includes response angles of four basic directions bound to multiple angle-related data, the angle-related data includes at least one of scene data, user data, and left and right hand data, and the angle database supports dynamic adjustment.
[0139] In some embodiments of the present disclosure, the scene data of the first information is determined based on the field identifier of the first information, and the scene data includes a live broadcast scene, a short video scene or an information recommendation scene; the left and right hand data of the target sliding operation are determined based on the sliding trajectory data of the target sliding operation and a left and right hand recognition model.
[0140] In some embodiments of the present disclosure, the third determination module 804 includes:
[0141] a first determining submodule, configured to determine a first tangent value of the sliding angle if the original sliding direction is a middle direction;
[0142] A calculation submodule, configured to perform radian conversion and tangent calculation based on the response angles of the two basic directions corresponding to the intermediate direction in the target response angle, to obtain two second tangent values;
[0143] A comparison submodule, used for comparing the first tangent value with the two second tangent values to obtain a tangent comparison result;
[0144] The second determining submodule is used to determine a target sliding direction corresponding to the target sliding operation according to the tangent comparison result.
[0145] In some embodiments of the present disclosure, the comparison submodule is used to:
[0146] Determine whether the first tangent value is greater than the second tangent value of the upward response angle or the downward response angle among the two second tangent values. If so, output the tangent comparison result; otherwise, continue to determine whether the first tangent value is less than the second tangent value of the left response angle or the right response angle among the two second tangent values, and output the tangent comparison result.
[0147] In some embodiments of the present disclosure, the second determining submodule is used to:
[0148] If the tangent comparison result includes that the first tangent value is greater than the second tangent value of the upward response angle or the downward response angle of the two second tangent values, determining the target sliding direction as upward or downward;
[0149] If the tangent comparison result includes that the first tangent value is not greater than the second tangent value of the upward response angle or the downward response angle among the two second tangent values, and the first tangent value is less than the second tangent value of the left response angle or the right response angle among the two second tangent values, the target sliding direction is determined to be left or right.
[0150] In some embodiments of the present disclosure, the information display device further includes:
[0151] The fourth determining module is configured to determine the original sliding direction as the target sliding direction if the original sliding direction is a base direction.
[0152] In some embodiments of the present disclosure, the display module 805 is used to:
[0153] The first information is slid out of the information page along the target sliding direction, and the next information in the target sliding direction is slid into the information page as the second information for display.
[0154] In some embodiments of the present disclosure, the information display device further includes:
[0155] A code module is used to add the interface calling code of the target tool class to the main view code of the information page and the code of the view control container in the left and right sliding container of the target application, so as to call the method of the target tool class to determine the target sliding direction and perform a sliding response.
[0156] The information display device provided in the embodiments of the present disclosure can execute the information display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0157] The present disclosure provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned information display method.
[0158] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0159] The following specific reference Fig. 9 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure. The electronic device 900 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0160] like Fig. 9 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0161] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0162] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the information display method of the embodiment of the present disclosure are executed.
[0163] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0164] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0165] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0166] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to a target sliding operation on an information page displaying first information, obtains sliding speed and target angle associated data; determines the original sliding direction and sliding angle based on the sliding speed; determines the target response angle corresponding to the target sliding operation of the first information based on the target angle associated data; compares the sliding angle and the target response angle based on the comparison strategy of the original sliding direction, and determines the target sliding direction corresponding to the target sliding operation according to the comparison result; and slides the first information in the information page to display the second information in the target sliding direction.
[0167] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0168] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0169] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0170] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0171] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0172] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0173] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0174] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0175] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An information display method, characterized in that: include: In response to a target sliding operation on an information page displaying first information, acquiring sliding speed and target angle associated data; determining an original sliding direction and a sliding angle based on the sliding speed; Determining, based on the target angle association data, a target response angle corresponding to the target sliding operation of the first information; Comparing the sliding angle and the target response angle based on the comparison strategy of the original sliding direction, and determining the target sliding direction corresponding to the target sliding operation according to the comparison result; The first information in the information page is slid and switched to display the second information in the target sliding direction.
2. The method according to claim 1, characterized in that Determining an original sliding direction and a sliding angle based on the sliding speed includes: Determine the original sliding direction based on the magnitude relationship between the x-axis speed and the y-axis speed in the sliding speed and zero respectively; The sliding angle is determined according to a ratio of the y-axis speed to the x-axis speed in the sliding speed.
3. The method according to claim 1, characterized in that The target angle association data includes scene data of the first information, left and right hand data of the target sliding operation, and user data. Determining a target response angle corresponding to the target sliding operation of the first information based on the target angle association data includes: Get the angle database; Based on the scene data of the first information included in the target angle association data, the left and right hand data of the target sliding operation, and the user data, matching is performed in the angle database to obtain the response angles of the four basic directions that are successfully matched as the target response angle.
4. The method according to claim 3, characterized in that The angle database includes response angles of four basic directions bound to a plurality of angle-related data, wherein the angle-related data includes at least one of scene data, user data, and left-hand and right-hand data, and the angle database supports dynamic adjustment.
5. The method according to claim 3, characterized in that: The scene data of the first information is determined based on a field identifier of the first information, and the scene data includes a live broadcast scene, a short video scene, or an information recommendation scene; The left and right hand data of the target sliding operation are determined based on the sliding track data of the target sliding operation and the left and right hand recognition model.
6. The method according to claim 1, characterized in that The sliding angle and the target response angle are compared based on the comparison strategy of the original sliding direction, and the target sliding direction corresponding to the target sliding operation is determined according to the comparison result, including: If the original sliding direction is a middle direction, determining a first tangent value of the sliding angle; Performing radian conversion and tangent calculation based on the response angles of the two basic directions corresponding to the intermediate direction in the target response angle to obtain two second tangent values; Comparing the first tangent value with the two second tangent values to obtain a tangent comparison result; A target sliding direction corresponding to the target sliding operation is determined according to the tangent comparison result.
7. The method according to claim 6, characterized in that: Comparing the first tangent value with the two second tangent values to obtain a tangent comparison result includes: Determine whether the first tangent value is greater than the second tangent value of the upward response angle or the downward response angle among the two second tangent values. If so, output the tangent comparison result; otherwise, continue to determine whether the first tangent value is less than the second tangent value of the left response angle or the right response angle among the two second tangent values, and output the tangent comparison result.
8. The method according to claim 7, characterized in that Determining a target sliding direction corresponding to the target sliding operation according to the tangent comparison result includes: If the tangent comparison result includes that the first tangent value is greater than the second tangent value of the upward response angle or the downward response angle of the two second tangent values, determining the target sliding direction as upward or downward; If the tangent comparison result includes that the first tangent value is not greater than the second tangent value of the upward response angle or the downward response angle among the two second tangent values, and the first tangent value is less than the second tangent value of the left response angle or the right response angle among the two second tangent values, the target sliding direction is determined to be left or right.
9. The method according to claim 1, characterized in that: The method further comprises: If the original sliding direction is the base direction, the original sliding direction is determined as the target sliding direction.
10. The method according to claim 1, characterized in that Sliding and switching the first information in the information page to display the second information in the target sliding direction includes: The first information is slid out of the information page along the target sliding direction, and the next information in the target sliding direction is slid into the information page as the second information for display.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: The interface calling code of the target tool class is added to the main view code of the information page and the code of the view control container in the left and right sliding container of the target application to call the method of the target tool class to determine the target sliding direction and perform sliding response.
12. An information display device, characterized in that: include: An acquisition module, configured to acquire sliding speed and target angle associated data in response to a target sliding operation on an information page displaying first information; A first determining module, configured to determine an original sliding direction and a sliding angle based on the sliding speed; A second determination module, configured to determine, based on the target angle association data, a target response angle corresponding to the target sliding operation of the first information; a third determining module, configured to compare the sliding angle and the target response angle based on a comparison strategy of the original sliding direction, and determine a target sliding direction corresponding to the target sliding operation according to a comparison result; The display module is used to display the first information in the information page by sliding switching to the second information in the target sliding direction.
13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the information display method described in any one of claims 1-11 above.
14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the information display method described in any one of claims 1 to 11.
