Component display method and device, equipment and medium
By obtaining the basic data of component display, determining the component adjustment and judgment data, and dynamically expanding the component size, the problem of poor component display effect is solved and the display effect and flexibility is improved.
Patent Information
- Application Number
- CN202411366548.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, the size and position of components are fixed during display, and the display effect cannot be effectively improved.
By obtaining the basic data of component adjustment, determining the component adjustment judgment data, including the user operator, display information type and relative position of the screen, we determine the target expansion direction and size, thereby dynamically expanding the component size.
It realizes adaptive dynamic expansion of component size, improves component trigger probability and display effect, and enhances the flexibility and diversity of component adjustment.
Smart Images

Figure CN119045938A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a component display method, device, equipment and medium. Background Art
[0002] In an application, you can set up a variety of components to quickly jump to display the corresponding content. Ad components are one of the important components, which can be set up in different user interfaces and interactive scenarios. In the related art, the size and position of components are fixed when displayed, which cannot play a role in improving the display effect and needs to be improved. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a component display method, device, equipment and medium.
[0004] The present disclosure provides a component display method, the method comprising:
[0005] In response to a display trigger operation on a target component, obtaining component adjustment basic data;
[0006] Determining component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component;
[0007] Determining a target expansion direction and a target expansion size based on the component adjustment judgment data;
[0008] The target component is enlarged and displayed based on the target expansion direction and the target expansion size.
[0009] The present disclosure also provides a component display device, the device comprising:
[0010] An acquisition module, used for acquiring component adjustment basic data in response to a display trigger operation on a target component;
[0011] A first determination module is used to determine component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component;
[0012] A second determination module, configured to determine a target expansion direction and a target expansion size based on the component adjustment judgment data;
[0013] The adjustment module is used to enlarge and display the target component based on the target expansion direction and the target expansion size.
[0014] 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 component display method provided in the embodiment of the present disclosure.
[0015] 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 component display method provided by the embodiment of the present disclosure.
[0016] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the component display solution provided by the embodiment of the present disclosure obtains component adjustment basic data in response to the display trigger operation of the target component; determines component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of the target operator of the current user, the target information type of the display information corresponding to the target component, and the screen relative position of the target component; determines the target expansion direction and the target expansion size based on the component adjustment judgment data; and expands and displays the target component based on the target expansion direction and the target expansion size. With the above technical solution, after the current user performs the display trigger operation of the target component, the target expansion direction and the target expansion size can be determined by at least one of the target operator, the target information type, and the screen relative position, and then the size of the target component can be expanded and displayed according to the target expansion direction and the target expansion size, realizing the adaptive dynamic expansion of the component size, effectively improving the trigger probability of the component, and thus improving the display effect of the component and its corresponding information, and the expansion direction and the expansion size are associated with the user operation and the component partial information, effectively improving the flexibility and diversity of the dynamic adjustment of the component. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 A flowchart of a component display method provided in an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of determining a target operator according to the coordinates of a sliding track provided by an embodiment of the present disclosure;
[0020] Figure 3A flowchart of another component display method provided in an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of a method for adjusting the size of a target component provided by an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of a target component and component text with a target extension direction being leftward provided in an embodiment of the present disclosure;
[0023] Figure 6 A schematic diagram of a target component and component text with a target expansion direction to the right provided in an embodiment of the present disclosure;
[0024] Figure 7 A structural schematic diagram of a component display device provided in an embodiment of the present disclosure;
[0025] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] 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.
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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".
[0031] 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.
[0032] In order to solve the problem that the size and position of component display are fixed and cannot improve the display effect, the embodiment of the present disclosure provides a component display method, which is introduced below in conjunction with a specific embodiment.
[0033] Figure 1 The present invention provides a flowchart of a component display method provided by an embodiment of the present invention. The method can be executed by a component 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:
[0034] Step 101: In response to a display triggering operation on a target component, component adjustment basic data is obtained.
[0035] Among them, the target component can be a functional component to be displayed in the application. This embodiment does not limit the style of the target component. For example, the target component can include a virtual card, a virtual button, etc. A virtual card can be a collection of information. This embodiment does not limit the category of the target component. For example, the target component can include a recommendation information component and / or a feedback component. The recommendation information component can be used to recommend an object to the current user. The recommendation information component can be an advertising component. By triggering the jump entry of the advertising component, you can jump to a pre-configured details landing page. The feedback component can be used to obtain user feedback on the use of the application. This embodiment does not limit the type of application. For example, the application can be a short video application. The display trigger operation can be used to trigger the display of the target component. The display trigger operation can include gesture control operations such as click operations and / or sliding operations on the page.
[0036] The component adjustment basic data may be data that affects the component adjustment. This embodiment does not limit the component adjustment basic data. For example, the component adjustment basic data may include one or more of data at the user operation level, data corresponding to component information, data representing the location of the component, and data representing the application scenario of the page where the component is located.
[0037] In some embodiments of the present disclosure, the component adjustment basic data includes at least one of the following: sliding data, information type association data, and initial position data of the target component. The sliding data may be used to record one or more sliding operation data of the current user when the display trigger operation is a sliding operation. The information type association data may be the original data used in the application to determine the information type to which the displayed information belongs. The initial position data may be used to record the original position of the target component, and the original position may be the position of the target component before the target component is enlarged and adjusted in size.
[0038] In the embodiment of the present disclosure, the user currently using the application is the current user. The current user can perform a display trigger operation of the target component according to his own needs, and the component display device obtains component adjustment basic data in response to the display trigger operation.
[0039] For example, if the application where the target component is located is a short video application, and the playback order is to play the first short video first and then the second short video, and the target component is displayed superimposed on the second short video. During the browsing of the first short video, the current user switches the first short video to the second short video through gesture control operations such as sliding and clicking. The component display device responds to the gesture control operation and obtains the adjustment basic data before rendering the target component.
[0040] Step 102: Determine component adjustment judgment data based on component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component.
[0041] The component adjustment judgment data can be used to control the adjustment of the target component in one or more dimensions. The component adjustment judgment data can also be understood as intermediate data generated in the process of determining the target expansion direction and target expansion size according to the component adjustment basic data.
[0042] The target operating hand can represent whether the hand used by the current user to perform the display trigger operation is the left hand or the right hand. The display information can be information displayed in association with the target component. For example, if the target component includes a virtual card, the display information can be the information in the virtual card; if the target component includes a virtual button, the display information can be information belonging to the same interaction frame as the virtual button. The target information type can be used to characterize the characteristics of the display information in one or more dimensions. The relative position of the screen can characterize the side of the screen that the target component is close to.
[0043] In the embodiment of the present disclosure, after acquiring the component adjustment basic data, the component display device can perform data processing on the component adjustment basic data to mine the situation of the target component represented by the component basic data in one or more dimensions to obtain component adjustment judgment data.
[0044] In some embodiments of the present disclosure, when the component adjustment basic data includes sliding data, the component adjustment judgment data includes a target operator. Accordingly, determining the component adjustment judgment data based on the component adjustment basic data includes: determining the target operator based on the coordinates of multiple sliding track points in a preset time period in the sliding data.
[0045] The preset time period may be a pre-set time period that includes multiple trigger operations of the user. Taking the application as a short video application as an example, the preset time period may be a time period for playing the video operated by the trigger operation and a preset number of videos before the video. This embodiment does not limit the preset number, for example, the preset number may be 5. The sliding track point may be a position coordinate point that records the sliding track in the sliding operation, and the sliding track point may include the starting point coordinates and the end point coordinates in the sliding track.
[0046] In this embodiment, the component display device can obtain a display trigger operation and a preset number of sliding operations of the user before the display trigger operation, and determine the starting point x-axis coordinate, starting point y-axis coordinate, end point x-axis coordinate, and end point y-axis coordinate of the operation for the display trigger operation and the preset number of sliding operations. If (end point x-axis coordinate-starting point x-axis coordinate)*(end point y-axis coordinate-starting point y-axis coordinate)>0, it is determined that the hand performing the operation is the right hand; if (end point x-axis coordinate-starting point x-axis coordinate)*(end point y-axis coordinate-starting point y-axis coordinate)<0, it is determined that the hand performing the operation is the left hand; if the above two conditions are not met, it is determined that the hand performing the operation fails to be recognized. If the hand performing each of the above operations is the left hand, it is determined that the target operating hand is the left hand; if the hand performing each of the above operations is the right hand, it is determined that the target operating hand is the right hand.
[0047] Figure 2 A schematic diagram of determining a target operator according to the coordinates of a sliding track provided by an embodiment of the present disclosure, such as Figure 2 As shown, in the case of the same swipe up operation, when the target operating hand is the left hand, the sliding trajectory is an arc from right to left, satisfying (end point x-axis coordinate-starting point x-axis coordinate)*(end point y-axis coordinate-starting point y-axis coordinate)<0; when the target operating hand is the right hand, the sliding trajectory is an arc from left to right, satisfying (end point x-axis coordinate-starting point x-axis coordinate)*(end point y-axis coordinate-starting point y-axis coordinate)>0.
[0048] In the above scheme, the target operator is determined based on the coordinates of the sliding trajectory points in a manner with less computational effort, and the accuracy of the target operator is improved by verifying whether the operators within a preset time period are consistent.
[0049] In some embodiments of the present disclosure, when the component adjustment basic data includes sliding data, the component adjustment judgment data includes a target operator. Determining the component adjustment judgment data based on the component adjustment basic data includes: inputting the sliding length, sliding displacement, sliding speed and sliding arc of the sliding data into the left and right hand models to determine the target operator, wherein the target operator is the left hand or the right hand.
[0050] Among them, the left and right hand models can be trained models that can recognize that the hand performing the sliding operation is the left hand or the right hand. The sliding length can include the length of the display trigger operation along the x-axis direction and the length along the y-axis direction. The sliding displacement can include the displacement of the display trigger operation along the x-axis direction and the displacement along the y-axis direction. The sliding speed can include the speed of the display trigger operation along the x-axis direction and the speed along the y-axis direction, the average speed of the display trigger operation, the maximum speed, and the standard deviation of the speed. The sliding arc can be the arc of the sliding track corresponding to the display trigger operation.
[0051] In the disclosed embodiment, the component display device can input sliding data such as sliding length, sliding displacement, sliding speed and sliding arc into the left and right hand models, and the left and right hand models calculate and process the above sliding data and input the target operator. Thus, the target operator is accurately determined through the trained left and right hand models.
[0052] In some embodiments of the present disclosure, when the component adjustment basic data includes information type association data, and the component adjustment judgment data includes a target information type, determining the component adjustment judgment data based on the component adjustment basic data includes at least one of the following:
[0053] Optionally, determining the component adjustment judgment data based on the component adjustment basic data includes: determining the business type of the target information type based on a business type parameter of the display information corresponding to the target component in the information type association data.
[0054] Among them, the business type parameter may be a parameter for recording the business type issued by the server, and the business type may characterize the type of business performed by displaying information. This embodiment does not limit the business type. For example, the business type may include an exposure rate improvement type and a click-through rate conversion type. The exposure rate improvement type may focus on improving the exposure rate, and the click-through rate conversion type may focus on making the user click to adjust to the corresponding landing page.
[0055] In this embodiment, the component display device can extract the business type parameter in the information type association data, and determine the business type in the target information type according to the specific value of the business type parameter.
[0056] Optionally, determining the component adjustment judgment data based on the component adjustment basic data includes: determining a resource level of the target information type based on resource parameters of the display information corresponding to the target component in the information type association data.
[0057] The resource parameter may represent the consumption amount of a virtual resource or a physical resource, and the virtual resource or the physical resource may be an exchange resource for displaying the display information in the application. The resource level may represent the magnitude of the consumption amount of the virtual resource or the physical resource, and this embodiment does not limit the resource level. For example, the resource level may include three levels: high, medium, and low.
[0058] In this embodiment, the component display device can obtain resource parameters in multiple information type association data corresponding to multiple components, obtain multiple resource parameters corresponding to the multiple components, and sort the multiple resource parameters in order from high to low values. Among the multiple resource parameters that have been sorted, the resource level corresponding to the resource parameters of the first preset ratio is determined to be high, the resource level corresponding to the resource parameters of the second preset ratio is determined to be low, and the resource level corresponding to the remaining resource parameters is determined to be medium. This embodiment does not limit the first preset ratio and the second preset ratio. For example, the first preset ratio and the second preset ratio can both be 30%.
[0059] Optionally, determining component adjustment judgment data based on component adjustment basic data includes: determining a target level of the target information type based on association information between display information corresponding to the target component and the current user in the information type association data and device information of the current device.
[0060] The association information may characterize the degree of association between the displayed information and the current user. The association information may include at least one of the following: the current user's processing data on similar information, the associated user's processing data on similar information, the similarity between the current user's historical click information and the displayed information, and the similarity between the current user's historical acquisition information and the displayed information. The similar information may be information belonging to the same category as the displayed information, and the associated user may be a user who has an association relationship with the current user. The processing data may include browsing time, whether to click, and whether to obtain the object recommended by the information. The historical click information may be the information clicked by the current user in the historical time period. The historical acquisition information may characterize the objects recommended by the information obtained by the current user in the historical time period.
[0061] The current device may be an electronic device used by the current user. The device information may characterize the properties of the current device, and this embodiment does not limit the device information. For example, the device information may include at least one of the device type, the device power, and the current time. The target level may characterize the probability level of the current user jumping to the detail landing page corresponding to the display information. The target level may be understood as the level of click-through conversion rate, and this embodiment does not limit the target level. For example, the target level may include three levels: high, medium, and low.
[0062] In this embodiment, with the authorization of the current user, the component display device can extract the associated information and device information in the information type associated data, and determine the current user's interest in the displayed information based on the associated information and device information to obtain the target level of the target information type.
[0063] In the above scheme, the original information type association data is processed to realize the judgment of the type of the displayed information in one or more dimensions, so that the subsequent size expansion adjustment of the target component is more consistent with the displayed information.
[0064] In some embodiments of the present disclosure, when the component adjustment basic data includes initial position data of the target component, and the component adjustment judgment data includes the screen relative position of the target component, determining the component adjustment judgment data based on the component adjustment basic data includes:
[0065] Based on the initial position data of the target component, determine the first distance between the left boundary of the component and the left boundary of the screen, and the second distance between the right boundary of the component and the right boundary of the screen; if the first distance is less than the second distance, determine the screen relative position of the target component to be the left side of the screen; otherwise, determine the screen relative position of the target component to be the right side of the screen.
[0066] Among them, the left boundary of the component can be the left boundary of the target component. The left boundary of the screen can be the left boundary of the current device screen. The first distance can be the distance between the left boundary of the component and the left boundary of the screen in the x-axis direction. The right boundary of the component can be the right boundary of the target component. The right boundary of the screen can be the right boundary of the current device screen. The second distance can be the distance between the right boundary of the component and the right boundary of the screen in the x-axis direction. The left side of the screen can represent that the target component is closer to the left side of the screen in the x-axis direction. The right side of the screen can represent that the target component is closer to the right side of the screen in the x-axis direction.
[0067] In this embodiment, the component display device can determine the coordinates of the left boundary of the component in the target component, and determine the coordinates of the left boundary of the screen in the current device, and use the difference between the two coordinates in the x-axis direction as the first distance. In addition, determine the coordinates of the right boundary of the component in the target component, and determine the coordinates of the right boundary of the screen in the current device, and use the difference between the two coordinates in the x-axis direction as the second distance. Determine whether the first example is less than the second distance. If so, determine that the screen relative position of the target component is the left side of the screen. Otherwise, determine that the screen relative position of the target component is the right side of the screen. In some embodiments of the present disclosure, the screen relative position can be pre-set, and the component display device can directly obtain the screen relative position.
[0068] In some embodiments of the present disclosure, when the component adjustment basic data includes initial position data of the target component, and the component adjustment judgment data includes the screen relative position of the target component, determining the component adjustment judgment data based on the component adjustment basic data includes:
[0069] Based on the initial position data of the target component, determine the first distance between the left boundary of the component and the left boundary of the screen, the second distance between the right boundary of the component and the right boundary of the screen, the third distance between the upper boundary of the component and the upper boundary of the screen, and the fourth distance between the lower boundary of the component and the lower boundary of the screen; determine the screen relative position of the target component according to the minimum value of the first distance, the second distance, the third distance, and the fourth distance. The third distance can be the distance between the upper boundary of the component and the upper boundary of the screen in the y-axis direction. The fourth distance can be the distance between the lower boundary of the component and the lower boundary of the screen in the y-axis direction.
[0070] In this embodiment, if the first distance is a minimum value, the screen relative position is the left side of the screen; if the second distance is a minimum value, the screen relative position is the right side of the screen; if the third distance is a minimum value, the screen relative position is the upper side of the screen; if the fourth distance is a minimum value, the screen relative position is the lower side of the screen. The upper side of the screen can represent that the target component is closer to the upper side of the screen in the y-axis direction. The lower side of the screen can represent that the target component is closer to the lower side of the screen in the y-axis direction.
[0071] In the above scheme, the relative position between the target component and the screen is determined based on the initial position data of the target component, which creates a basis for the subsequent size expansion and adjustment of the target component.
[0072] Step 103: Determine a target expansion direction and a target expansion size based on the component adjustment judgment data.
[0073] The target expansion direction may be a direction for adjusting the size of the target component, and the target expansion direction may include a target horizontal expansion direction and / or a target vertical expansion direction. The target horizontal expansion direction may be a direction for adjusting the size of the target component in the x-axis direction. The target vertical expansion direction may be a direction for adjusting the size of the target component in the y-axis direction.
[0074] The target expansion size may be a size for adjusting the size of the target component, and the target expansion size may include a horizontal expansion size and / or a vertical expansion size. The horizontal expansion size may be a size for adjusting the size of the target component in the x-axis direction. The vertical expansion size may be a size for adjusting the size of the target component in the y-axis direction.
[0075] In the embodiment of the present disclosure, the component display device can determine the target expansion direction and target expansion size of the target component according to the component adjustment judgment data.
[0076] Figure 3 A flowchart of another component display method provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, in some embodiments of the present disclosure, when the component adjustment judgment data includes the screen relative position of the target operator and the target component, determining the target expansion direction and the target expansion size based on the component adjustment judgment data includes:
[0077] Step 301: determine a target horizontal expansion direction based on a target operator, and determine a target vertical expansion direction based on a vertical position of a target component relative to the screen.
[0078] The vertical position in the relative position of the screen may include the upper side of the screen and the lower side of the screen.
[0079] In some embodiments of the present disclosure, the target horizontal expansion direction is determined based on the target operator, including: if the target operator is the left hand, the target horizontal expansion direction is to the left; if the target operator is the right hand, the target horizontal expansion direction is to the right.
[0080] The expansion to the left may be to expand the width of the target component to the left, and the expansion to the right may be to expand the width of the target component to the right.
[0081] In this embodiment, if the target operator is the left hand, it means that the current user uses the left hand to perform the display trigger operation, and the component display device determines the target horizontal expansion direction as expansion to the left. If the target operator is the right hand, it means that the current user uses the right hand to perform the display trigger operation, and the component display device determines the target horizontal expansion direction as expansion to the right. Thus, when the expansion direction corresponding to the target operator is different from the expansion direction corresponding to the horizontal position in the relative position of the screen, the target horizontal expansion direction is determined by the target operator, and the target operator has a higher priority, so that the horizontal expansion of the target component is more in line with the actual usage habits of the current user, thereby improving the current user's usage experience.
[0082] In some embodiments of the present disclosure, a target vertical expansion direction is determined based on the vertical position of the target component in the screen relative position, including: if the vertical position of the target component in the screen relative position is the upper side of the screen, the target vertical expansion direction is downward expansion; if the vertical position of the target component in the screen relative position is the lower side of the screen, the target vertical expansion direction is upward expansion.
[0083] The upward expansion may be to expand the height of the target component upward, and the downward expansion may be to expand the height of the target component downward.
[0084] In this embodiment, if the vertical position in the screen relative position is the upper side of the screen, it means that the target component is close to the upper side of the screen, and the component display device determines the target vertical expansion direction as downward expansion. If the vertical position in the screen relative position is the lower side of the screen, it means that the target component is close to the lower side of the screen, and the component display device determines the target vertical expansion direction as upward expansion. Thus, a basis is created for the adjusted target component to be not too close to one side of the screen in the y-axis direction, making it more convenient for the user to operate the target component.
[0085] Step 302: Determine a horizontal expansion size and a vertical expansion size in a target expansion size based on the expansion directions and expansion sizes corresponding to the horizontal positions and vertical positions in the screen relative positions of the target operator and the target component, respectively.
[0086] The expansion size may be a minimum unit size for expanding and adjusting the size of the target component.
[0087] In this embodiment, the component display device can compare whether the horizontal positions of the target operator and the screen relative position are the same, determine the horizontal expansion size based on the comparison result and the respective expansion sizes, and determine the vertical expansion size based on the expansion size corresponding to the vertical position in the screen relative position.
[0088] In some embodiments of the present disclosure, based on the expansion direction and expansion size corresponding to the horizontal position and the vertical position in the screen relative position of the target operator and the target component, respectively, determining the horizontal expansion size and the vertical expansion size in the target expansion size includes:
[0089] If the first horizontal expansion direction corresponding to the target operator is the same as the second horizontal expansion direction corresponding to the horizontal position in the screen relative position of the target component, the horizontal expansion size in the target expansion size is determined to be the sum of the first expansion size of the target operator and the second expansion size of the screen relative position; otherwise, the horizontal expansion size in the target expansion size is determined to be the first expansion size of the target operator; and the third expansion size corresponding to the vertical position in the screen relative position of the target component is determined to be the vertical expansion size in the target expansion size.
[0090] Among them, the first horizontal expansion direction can be an expansion direction in the x-axis direction determined based on the target operator. The second horizontal expansion direction can be an expansion direction in the x-axis direction determined based on the horizontal position in the relative position of the screen. The first expansion size can be a unit size for expanding and adjusting the component size corresponding to the target operator. This embodiment does not limit the first expansion size. For example, the first expansion size can be 20 pixels. The second expansion size can be a unit size for expanding and adjusting the component size corresponding to the horizontal position in the relative position of the screen. This embodiment does not limit the second expansion size. For example, the second expansion size can be 20 pixels. The third expansion size can be a unit size for expanding and adjusting the component size corresponding to the vertical position in the relative position of the screen. This embodiment does not limit the third expansion size. For example, the third expansion size can be 20 pixels.
[0091] In the disclosed embodiment, if the target operator is the left hand, the first horizontal expansion direction is to expand to the left; if the target operator is the right hand, the first horizontal expansion direction is to expand to the right. If the horizontal position in the screen relative position is the right side of the screen, the second horizontal expansion direction is to expand to the left, and if the horizontal position in the screen relative position is the left side of the screen, the second horizontal expansion direction is to expand to the right. Further, determine whether the first horizontal expansion direction and the second horizontal expansion direction are both to expand to the left or to expand to the right. If so, set the horizontal expansion size to the sum of the first expansion size corresponding to the target operator and the second expansion size corresponding to the screen relative position. If the first horizontal expansion direction and the second horizontal expansion direction are different, set the horizontal expansion size to the first expansion size corresponding to the target operator. And, set the vertical expansion size to the third expansion size corresponding to the vertical position in the screen relative position.
[0092] Thus, when the target operating hand is the left hand and the target component is located on the right side of the screen, the target component is expanded to the left twice; when the target operating hand is the right hand and the target component is located on the left side of the screen, the target component is expanded to the right twice. This to a certain extent offsets the operational inconvenience caused by the long distance between the operating hand and the component and improves the convenience of the user's operation of the component.
[0093] In some embodiments of the present disclosure, when the component adjustment judgment data includes the screen relative position of the target operator and the target component, the target expansion direction and the target expansion size are determined based on the component adjustment judgment data, including: determining the target horizontal expansion direction based on the target operator; if the first horizontal expansion direction corresponding to the target operator is the same as the second horizontal expansion direction corresponding to the horizontal position in the screen relative position of the target component, then determining the horizontal expansion size in the target expansion size as the sum of the first expansion size of the target operator and the second expansion size of the screen relative position; otherwise, determining the horizontal expansion size in the target expansion size as the first expansion size of the target operator. In the above scheme, the size expansion adjustment of the target component in a single horizontal dimension is achieved.
[0094] In some embodiments of the present disclosure, when the component adjustment judgment data includes a target information type, determining a target expansion direction and a target expansion size based on the component adjustment judgment data includes:
[0095] The target expansion direction of the target information type is determined to expand in all directions; the target expansion size is determined based on at least one of the business type, resource level, and target level of the target information type. In some embodiments of the present disclosure, the target expansion size is proportional to the resource level and the target level. In this embodiment, the higher the resource level, the larger the expansion size of the portion of the target expansion size corresponding to the resource level. The higher the target level, the larger the expansion size of the portion of the target expansion size corresponding to the resource level.
[0096] The expansion in all directions may be expansion in four directions, and the expansion in all directions may include expansion to the left, expansion to the right, expansion upward, and expansion downward.
[0097] In this embodiment, the expansion size corresponding to the exposure rate promotion type in the task type is the first task expansion size, and the expansion size corresponding to the click rate conversion type is the second task expansion size. The first task expansion size can be larger than the second task expansion size, and this embodiment does not limit the values of the first task expansion size and the second task expansion size. For example, the first task expansion size can be 20 pixels.
[0098] The expansion size corresponding to the middle and high resource levels is the first resource expansion size, the expansion size corresponding to the middle level is the second resource expansion size, and the expansion size corresponding to the low level is the third resource expansion size. The first resource expansion size, the second resource expansion size, and the third resource expansion size can be reduced in sequence. This embodiment does not limit the values of the first resource expansion size, the second resource expansion size, and the third resource expansion size. For example, the first resource expansion size can be 10 pixels.
[0099] The expansion size corresponding to the intermediate and high target levels is the first conversion expansion size, the expansion size corresponding to the intermediate level is the second conversion expansion size, and the expansion size corresponding to the low level is the third conversion expansion size. The first conversion expansion size, the second conversion expansion size, and the third conversion expansion size can be reduced in sequence. This embodiment does not limit the values of the first conversion expansion size, the second conversion expansion size, and the third conversion expansion size. For example, the first conversion expansion size can be 10 pixels.
[0100] In this embodiment, the target expansion direction is to expand in all directions. With respect to the target expansion size, if the component adjustment judgment data includes the business type, the component display device can determine the corresponding task expansion size based on the business type. If the component adjustment judgment data includes the resource level, the component display device can determine the corresponding resource expansion size based on the resource level. If the component adjustment judgment data includes the target level, the component display device can determine the corresponding conversion expansion size based on the target level. And one or more of the above-mentioned task expansion size, resource expansion size, and conversion expansion size are summed to obtain the target expansion size.
[0101] In some embodiments of the present disclosure, when the component adjustment judgment data includes the target operator, the relative screen position of the target component, and the target information type, the component display method further includes: determining the target expansion direction corresponding to the target operator and the relative screen position as the superimposed expansion direction; superimposing the superimposed size on the target expansion size corresponding to the target expansion direction determined according to the target information type to obtain an updated target expansion size; wherein the superimposed size can be the target expansion size corresponding to the superimposed expansion direction that is the same as the target expansion direction. Thus, the determination of the target expansion direction and the target expansion size is achieved by integrating the three dimensions of the target operator, the relative screen position of the target component, and the target information type, so that the target component after the size expansion adjustment meets the specific requirements of the above three dimensions.
[0102] Step 104: enlarge and display the target component based on the target expansion direction and the target expansion size.
[0103] In an embodiment of the present disclosure, during the rendering process of the target component, the component display device can pass the target expansion direction and the target expansion size to the target component, and the target component dynamically adjusts its own position and size according to the target expansion direction and the target expansion size to obtain an adjusted target component, and displays the adjusted target component on the application.
[0104] Figure 4 A schematic diagram of a method for adjusting the size of a target component provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the target component can be enlarged and adjusted according to the target expansion direction and the target expansion size to obtain an adjusted target component.
[0105] In some embodiments of the present disclosure, a target component is enlarged and displayed based on a target expansion direction and a target expansion size, including: expanding an initial size of the target component by the target expansion size along the target expansion direction to obtain a target size, and displaying the target component according to the target size.
[0106] The initial size may be the original size of the target component before the size enlargement adjustment is performed, and the target size may be the original size of the target component after the size enlargement adjustment is performed.
[0107] In this embodiment, the component display device determines the initial size of the target component, and expands the initial size in one or more target expansion directions according to the target expansion size corresponding to the target expansion direction to obtain the target expansion size. The target size is then used as the new size of the target component to display the expanded and adjusted target component.
[0108] The component display scheme provided by the embodiment of the present disclosure obtains component adjustment basic data in response to the display trigger operation of the target component; determines component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of the target operator of the current user, the target information type of the display information corresponding to the target component, and the screen relative position of the target component; determines the target expansion direction and the target expansion size based on the component adjustment judgment data; and expands and displays the target component based on the target expansion direction and the target expansion size. With the above technical scheme, after the current user performs the display trigger operation of the target component, the target expansion direction and the target expansion size can be determined by at least one of the target operator, the target information type, and the screen relative position, and then the size of the target component can be expanded and displayed according to the target expansion direction and the target expansion size, realizing the adaptive dynamic expansion of the component size, effectively improving the trigger probability of the component, and thus improving the display effect of the component and its corresponding information, and the expansion direction and the expansion size are associated with the user operation and the partial information of the component, effectively improving the flexibility and diversity of the dynamic adjustment of the component.
[0109] Furthermore, since the target component is expanded by the target expansion size in the target expansion direction, the dynamic expansion of the target component is realized, and the size and position of the target component will also change dynamically accordingly with the dynamic change of the size. In addition, the dynamic expansion of the target component avoids the impact of the target component being too large on the normal use of the application by the current user, thereby ensuring the user experience, compared with fixing the target component to a certain larger size.
[0110] In some embodiments of the present disclosure, the component display method further includes: moving the component text in the target component by a preset size along the target expansion direction.
[0111] The component text may be text in the target component, and the component text may be text used to assist the user in clicking. For example, if the target component is a virtual button, the component text may be text in the virtual button. The preset size may be a preset moving distance of the component text. Optionally, the preset size is proportional to the target expansion size in the target expansion direction.
[0112] In this embodiment, after determining the target extension direction, the component display device can determine the component text in the target component and move the component text by a preset size along the target extension direction to obtain an adjusted component text that matches the adjusted target component.
[0113] Figure 5 A schematic diagram of a target component and component text with a target extension direction to the left provided by an embodiment of the present disclosure, such as Figure 5As shown, if the target expansion direction includes leftward, the target text in the target component is moved leftward by a preset size. Figure 6 A schematic diagram of a target component and component text with a target expansion direction to the right provided by an embodiment of the present disclosure, such as Figure 6 As shown, if the target expansion direction includes rightward, the target text in the target component is moved rightward by a preset size.
[0114] In the above scheme, the size of the target component and the target text are dynamically adjusted according to the target operator, the target information type, and the relative position of the screen, so that the expansion of the target component is consistent with the movement of the component text, making the visual effect of the adjusted target component more harmonious. Moreover, when the component text is the text in the virtual button, it is easier for the user to click the virtual button.
[0115] Next, a specific example is used to further illustrate the component display method in the embodiment of the present disclosure. Taking the application as a short video application as an example, the component display method includes:
[0116] When sliding to the short video where the target component is located and the target component is about to be rendered, the size of the target component is dynamically expanded and adjusted to obtain the target size. When the adjusted target component is subsequently rendered, the adjusted target size is sent to the target component, and the target component dynamically adjusts its own size and position according to the target size.
[0117] The target component is resized based on the following strategy:
[0118] Strategy 1: If the target operator is the left hand, the target expansion direction is to the left, the target expansion size is 20 pixels, and the component text moves to the left to facilitate the user to click. If the target operator is the right hand, the target expansion direction is to the right, the target expansion size is 20 pixels, and the component text moves to the right to facilitate the user to click.
[0119] Strategy 2: If the relative position of the screen is the left side of the screen, the target expansion direction is to the right, and the target expansion size is 20 pixels. If the relative position of the screen is the right side of the screen, the target expansion direction is to the left, and the target expansion size is 20 pixels. If the relative position of the screen is the bottom side of the screen, the target expansion direction is to the top side of the screen, and the target expansion size is 20 pixels. If the relative position of the screen is the top side of the screen, the target expansion direction is to the bottom side of the screen, and the target expansion size is 20 pixels.
[0120] Strategy 3: The task expansion size corresponding to the exposure rate improvement type is larger than the task expansion size corresponding to the click-through rate conversion type.
[0121] Strategy 4: The higher the resource level, the larger the corresponding resource expansion size.
[0122] Strategy 5: The higher the target level, the larger the corresponding conversion expansion size.
[0123] In addition, if the component adjustment judgment data includes the relative position of the target operator and the screen, the target horizontal expansion direction is determined based on the target operator, and if the first horizontal expansion direction corresponding to the target operator is the same as the second horizontal expansion direction of the horizontal position in the relative position of the screen, the corresponding expansion sizes are superimposed. If the first horizontal expansion direction and the second horizontal expansion direction are opposite, the expansion size corresponding to the first horizontal expansion direction shall prevail.
[0124] For example, if the target operator is the left hand and the relative position of the screen is the right side of the screen, the target expansion size can be 2*20 pixels. If the target operator is the left hand and the relative position of the screen is the left side of the screen, the target expansion size can be 20 pixels.
[0125] Furthermore, the expansion of the target component in the above strategies 3, 4, and 5 can be superimposed on strategies 1 and 2. It can be understood that the above strategies 3, 4, and 5 can work together with strategies 1 and 2.
[0126] The component display solution provided by the embodiment of the present disclosure can improve the click-through conversion rate of the target component while ensuring the user experience of using the application.
[0127] Figure 7 This is a schematic diagram of the structure of a component 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 7 As shown, the component display device includes:
[0128] The acquisition module 701 is used to acquire component adjustment basic data in response to a display trigger operation on a target component;
[0129] A first determination module 702 is configured to determine component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component;
[0130] A second determination module 703, configured to determine a target expansion direction and a target expansion size based on the component adjustment judgment data;
[0131] The adjustment module 704 is used to enlarge and display the target component based on the target expansion direction and the target expansion size.
[0132] In some embodiments of the present disclosure, the component adjustment basic data includes at least one of the following: sliding data, information type association data, and initial position data of the target component.
[0133] In some embodiments of the present disclosure, when the component adjustment basic data includes the sliding data, and the component adjustment judgment data includes the target operator, the first determination module 702 is used to:
[0134] Determining the target operator based on the coordinates of a plurality of sliding track points in a preset time period in the sliding data;
[0135] Alternatively, the sliding length, sliding displacement, sliding speed and sliding arc of the sliding data are input into a left-hand or right-hand model to determine the target manipulator, wherein the target manipulator is the left hand or the right hand.
[0136] In some embodiments of the present disclosure, when the component adjustment basic data includes the information type associated data, and the component adjustment judgment data includes the target information type, the first determination module 702 includes at least one of the following:
[0137] A first determination submodule, configured to determine the business type of the target information type based on a business type parameter of the target component corresponding to the display information in the information type association data;
[0138] A second determination submodule is used to determine the resource level of the target information type based on the resource parameters of the display information corresponding to the target component in the information type association data;
[0139] The third determination submodule is used to determine the target level of the target information type based on the association information between the display information corresponding to the target component and the current user in the information type association data and the device information of the current device.
[0140] In some embodiments of the present disclosure, when the component adjustment basic data includes the initial position data of the target component, and the component adjustment judgment data includes the screen relative position of the target component, the first determination module 702 is used to:
[0141] Determine a first distance between a left boundary of the component and a left boundary of the screen, and a second distance between a right boundary of the component and a right boundary of the screen based on the initial position data of the target component;
[0142] If the first distance is smaller than the second distance, the screen relative position of the target component is determined to be the left side of the screen; otherwise, the screen relative position of the target component is determined to be the right side of the screen.
[0143] In some embodiments of the present disclosure, when the component adjustment judgment data includes the screen relative position of the target operator and the target component, the second determination module 703 includes:
[0144] A fourth determination submodule is used to determine a target horizontal expansion direction based on the target operator, and to determine a target vertical expansion direction based on a vertical position in a screen relative position of the target component;
[0145] The fifth determination submodule is used to determine the horizontal expansion size and the vertical expansion size in the target expansion size based on the expansion direction and the expansion size corresponding to the horizontal position and the vertical position in the screen relative position of the target operator and the target component respectively.
[0146] In some embodiments of the present disclosure, determining a target horizontal expansion direction based on the target operator includes:
[0147] If the target manipulator is the left hand, the target horizontal expansion direction is to expand to the left;
[0148] If the target operating hand is the right hand, the target horizontal expansion direction is to expand to the right.
[0149] In some embodiments of the present disclosure, determining a target vertical expansion direction based on a vertical position in a screen-relative position of the target component includes:
[0150] If the vertical position of the target component in the screen relative position is the upper side of the screen, the target vertical expansion direction is downward expansion;
[0151] If the vertical position of the target component in the screen relative position is the lower side of the screen, the target vertical expansion direction is upward expansion.
[0152] In some embodiments of the present disclosure, the fifth determining submodule is used to:
[0153] If the first horizontal expansion direction corresponding to the target operator is the same as the second horizontal expansion direction corresponding to the horizontal position in the screen relative position of the target component, the horizontal expansion size in the target expansion size is determined to be the sum of the first expansion size of the target operator and the second expansion size of the screen relative position; otherwise, the horizontal expansion size in the target expansion size is determined to be the first expansion size of the target operator;
[0154] A third expansion size corresponding to the vertical position in the screen relative position of the target component is determined as the vertical expansion size in the target expansion size.
[0155] In some embodiments of the present disclosure, when the component adjustment judgment data includes the target information type, the second determination module 703 is used to:
[0156] Determining the target expansion direction of the target information type to expand in all directions;
[0157] The target extension size is determined based on at least one of a service type, a resource level, and a target level of the target information type.
[0158] In some embodiments of the present disclosure, the target expansion size is proportional to the resource level and the target level.
[0159] In some embodiments of the present disclosure, the adjustment module 704 is used to:
[0160] The initial size of the target component is enlarged by the target expansion size along the target expansion direction to obtain a target size, and the target component is displayed according to the target size.
[0161] In some embodiments of the present disclosure, the component display device further includes:
[0162] The moving module is used to move the component text in the target component by a preset size along the target expansion direction.
[0163] The component display device provided in the embodiments of the present disclosure can execute the component display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0164] An embodiment of the present disclosure provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned component display method when executed by a processor.
[0165] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0166] The following specific reference Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure. The electronic device 800 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. Figure 8 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.
[0167] like Figure 8As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0168] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 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.
[0169] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the component display method of the embodiment of the present disclosure are executed.
[0170] 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.
[0171] 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.
[0172] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0173] 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: obtains component adjustment basic data in response to a display trigger operation on a target component; determines component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of the target operator of the current user, the target information type of the display information corresponding to the target component, and the screen relative position of the target component; determines the target expansion direction and the target expansion size based on the component adjustment judgment data; and enlarges and displays the target component based on the target expansion direction and the target expansion size.
[0174] 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).
[0175] 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.
[0176] 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.
[0177] 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.
[0178] 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.
[0179] 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.
[0180] 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.
[0181] 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.
[0182] 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. A component display method, characterized in that: include: In response to a display trigger operation on a target component, obtaining component adjustment basic data; Determining component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component; Determining a target expansion direction and a target expansion size based on the component adjustment judgment data; The target component is enlarged and displayed based on the target expansion direction and the target expansion size.
2. The method according to claim 1, characterized in that The component adjustment basic data includes at least one of the following: sliding data, information type association data, and initial position data of the target component.
3. The method according to claim 2, characterized in that When the component adjustment basic data includes the sliding data, and the component adjustment judgment data includes the target operator, determining the component adjustment judgment data based on the component adjustment basic data includes: Determining the target operator based on the coordinates of a plurality of sliding track points in a preset time period in the sliding data; Alternatively, the sliding length, sliding displacement, sliding speed and sliding arc of the sliding data are input into a left-hand or right-hand model to determine the target manipulator, wherein the target manipulator is the left hand or the right hand.
4. The method according to claim 2, characterized in that: When the component adjustment basic data includes the information type associated data, and the component adjustment judgment data includes the target information type, determining the component adjustment judgment data based on the component adjustment basic data includes at least one of the following: Determining the business type of the target information type based on the business type parameter of the target component corresponding to the display information in the information type association data; Determining a resource level of the target information type based on resource parameters of the display information corresponding to the target component in the information type association data; Based on the association information between the display information corresponding to the target component and the current user in the information type association data and the device information of the current device, the target level of the target information type is determined.
5. The method according to claim 2, characterized in that: When the component adjustment basic data includes the initial position data of the target component, and the component adjustment judgment data includes the screen relative position of the target component, determining the component adjustment judgment data based on the component adjustment basic data includes: Determine a first distance between a left boundary of the component and a left boundary of the screen, and a second distance between a right boundary of the component and a right boundary of the screen based on the initial position data of the target component; If the first distance is smaller than the second distance, the screen relative position of the target component is determined to be the left side of the screen; otherwise, the screen relative position of the target component is determined to be the right side of the screen.
6. The method according to claim 1, characterized in that When the component adjustment judgment data includes the screen relative position of the target operator and the target component, determining the target expansion direction and the target expansion size based on the component adjustment judgment data includes: Determining a target horizontal expansion direction based on the target operator, and determining a target vertical expansion direction based on a vertical position in a screen relative position of the target component; Based on the expansion directions and expansion sizes corresponding to the horizontal positions and vertical positions of the target operator and the target component in the screen relative positions, respectively, the horizontal expansion size and the vertical expansion size in the target expansion size are determined.
7. The method according to claim 6, characterized in that Determining a target horizontal expansion direction based on the target operator includes: If the target manipulator is the left hand, the target horizontal expansion direction is to expand to the left; If the target operating hand is the right hand, the target horizontal expansion direction is to expand to the right.
8. The method according to claim 6, characterized in that Determining a target vertical expansion direction based on a vertical position in a screen relative position of the target component includes: If the vertical position of the target component in the screen relative position is the upper side of the screen, the target vertical expansion direction is downward expansion; If the vertical position of the target component in the screen relative position is the lower side of the screen, the target vertical expansion direction is upward expansion.
9. The method according to claim 6, characterized in that Determining a horizontal expansion size and a vertical expansion size in a target expansion size based on an expansion direction and an expansion size corresponding to a horizontal position and a vertical position in a screen relative position of the target operator and the target component, respectively, includes: If the first horizontal expansion direction corresponding to the target operator is the same as the second horizontal expansion direction corresponding to the horizontal position in the screen relative position of the target component, the horizontal expansion size in the target expansion size is determined to be the sum of the first expansion size of the target operator and the second expansion size of the screen relative position; otherwise, the horizontal expansion size in the target expansion size is determined to be the first expansion size of the target operator; A third expansion size corresponding to the vertical position in the screen relative position of the target component is determined as the vertical expansion size in the target expansion size.
10. The method according to claim 1 or 6, characterized in that: When the component adjustment judgment data includes the target information type, determining a target expansion direction and a target expansion size based on the component adjustment judgment data includes: Determining the target expansion direction of the target information type to expand in all directions; The target extension size is determined based on at least one of a service type, a resource level, and a target level of the target information type.
11. The method according to claim 10, characterized in that The target expansion size is proportional to the resource level and the target level.
12. The method according to claim 1, characterized in that Enlarging and displaying the target component based on the target expansion direction and the target expansion size includes: The initial size of the target component is enlarged by the target expansion size along the target expansion direction to obtain a target size, and the target component is displayed according to the target size.
13. The method according to claim 1, characterized in that The method further comprises: Move the component text in the target component by a preset size along the target expansion direction.
14. A component display device, characterized in that: include: An acquisition module, used for acquiring component adjustment basic data in response to a display trigger operation on a target component; A first determination module is used to determine component adjustment judgment data based on the component adjustment basic data, wherein the component adjustment judgment data includes at least one of a target operator of the current user, a target information type of display information corresponding to the target component, and a screen relative position of the target component; A second determination module, configured to determine a target expansion direction and a target expansion size based on the component adjustment judgment data; The adjustment module is used to enlarge and display the target component based on the target expansion direction and the target expansion size.
15. 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 component display method described in any one of claims 1-13 above.
16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the component display method described in any one of claims 1 to 13.
